Personalized Dictionary Learning for Heterogeneous Datasets

Geyu Liang, Naichen Shi, Raed Al Kontar, Salar Fattahi

Introduction

Traditional Dictionary Learning (DL) operates on the assumption that data samples are drawn from a single, homogeneous source. In this paradigm, the goal is to find a set of basis elements, or "atoms," that can sparsely represent the entire dataset. However, modern data collection often occurs across decentralized "edge" devices—such as smartphones, medical sensors, or surveillance cameras—where data is inherently heterogeneous.

In these real-world scenarios, a one-size-fits-all dictionary fails to capture the nuance of local data, while a massive, all-encompassing dictionary is computationally prohibitive and poses significant privacy risks. This paper introduces Personalized Dictionary Learning (PerDL), a framework designed to disentangle shared "global" features from unique "local" features across diverse datasets.

The PerDL Framework and PerMA Algorithm

The authors formalize a model where each client $i$ possesses a dictionary composed of two distinct parts: a global dictionary ($D_g$), shared across all participants, and a local dictionary ($D_l^{(i)}$), unique to that specific client. To optimize this structure without sharing raw, private data, the authors propose PerMA (Personalized Matching and Averaging), a federated meta-algorithm.

PerMA operates through a three-phase workflow:

  1. Global Matching via DAGs: A primary challenge in federated dictionary learning is "permutation invariance"—the fact that atoms can be ordered differently or have flipped signs across different clients. To resolve this, the server constructs a Directed Acyclic Graph (DAG) to identify shared features. By treating the matching problem as a shortest-path search across graph layers, the server can accurately align global atoms.
  2. Local Updates: As a meta-algorithm, PerMA is agnostic to the specific local DL solver used (e.g., alternating minimization), provided the solver meets certain linear convergence criteria. This allows clients to refine their dictionaries based on local data constraints.
  3. Federated Aggregation: Clients transmit only their estimated global atoms to the server. The server averages these contributions to refine the global dictionary and broadcasts the updated version back to the network. This process ensures that sensitive local features never leave the client’s device.

Theoretical Guarantees: "Borrowing Strength"

A significant contribution of this work is the mathematical proof of identifiability. The authors establish the conditions—specifically regarding atom "incoherency" and the dispersion of local atoms—under which it is theoretically possible to perfectly separate global and local components.

Furthermore, the paper quantifies the phenomenon of "borrowing strength." In a collaborative environment, "weak" learners (clients with limited data or high noise) benefit from the collective intelligence of the group. The authors demonstrate that through PerMA, these weak clients inherit the faster convergence rates and lower statistical error of the global average, achieving accuracies that would be impossible in isolation.

Experimental Results

The researchers validated PerMA across three distinct environments:

  • Synthetic Benchmarks: These tests confirmed the theoretical linear convergence rates and demonstrated that the global dictionary error decreases as more clients join the network.
  • Imbalanced MNIST: To simulate real-world data skew, the authors created a version of the MNIST handwritten digit dataset where each client was heavily biased toward a single digit (e.g., 90% of samples were the digit "1"). While independent learners failed to capture the features of underrepresented digits, PerMA-enabled clients successfully reconstructed all digits by leveraging the shared global dictionary.
  • Surveillance Video (Lasiesta): In a practical application, PerMA was used to decompose video frames. The algorithm successfully identified the static background as the "global" dictionary and moving objects (cars, pedestrians) as "local" features, effectively performing background subtraction through the lens of dictionary learning.

Conclusion and Future Work

PerMA provides a robust, privacy-preserving framework for dictionary learning in heterogeneous environments. By mathematically proving how clients can "borrow strength" from one another, the authors offer a path forward for high-accuracy feature extraction on edge devices.

Future research directions include relaxing the requirement for a "warm start" (initialization sensitivity) and providing a formal theoretical analysis of the local refinement heuristics that proved successful in empirical trials.

Summary updated

BibTeX
@inproceedings{liang2023personalized,
  author = {Geyu Liang and Naichen Shi and Raed Al Kontar and Salar Fattahi},
  title = {{Personalized Dictionary Learning for Heterogeneous Datasets}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=xw6Szwu4xz},
}
Figure