Online dictionary learning over distributed models