Dictionary learning over distributed models