Introduction
This post walks through the ICLR 2024 paper "A Mutual Information Perspective on Federated Contrastive Learning" by Christos Louizos, Matthijs Reisser, and Dmitry Korzhenkov. It's a story about how federated learning devices can collaborate to train strong visual representations without ever sharing raw data—and how the notorious non-i.i.d. problem turns from a liability into free supervision.
Why Federated Learning Can't Just Ship Data to the Cloud
Under GDPR, China's Personal Information Protection Law, and CCPA, uploading raw user data is increasingly untenable. Data generated on phones, watches, and wearables should stay local—but we still want globally intelligent models. Federated learning trains a shared model across millions of devices that exchange model updates, never raw images.
Background: SimCLR and InfoNCE
SimCLR (Chen et al., 2020) learns representations by:
1. Taking an image and producing two augmentations (random crop + color distortion) 2. Pulling the pair together in embedding space while pushing apart negative samples 3. Training with the InfoNCE loss:
Here \(\tau\) is the temperature hyperparameter (typically set to 0.07 or 0.5, often without much justification).
The Villain: non-i.i.d. Data
Running SimCLR directly in a federated setting with heterogeneous clients fails badly:
- With label skew (user A only has orange cats, user B only British Shorthairs), negatives are mostly other users' data, diluting learned features into generic "user style" rather than semantics
- Accuracy can drop below purely local training
- Label skew: in the most extreme setting (each client holds only 2 classes), federated SimCLR with user verification boosts accuracy from ~65% to ~87%—a 21-point lead over the next-best method.
- Covariate shift (same classes, different user styles/filters): the user verification loss is harmful, since \(I(User; Label) \approx 0\) and the model is being taught noise. Pure local SimCLR works best.
The Key Insight: User ID as Supervision
Louizos et al. observed that when label skew is extreme, the user ID itself is a strong proxy for the label: if user 42 only photographs orange cats, predicting "user 42" is nearly equivalent to predicting "orange cat." Formally, the mutual information \(I(User; Label)\) is large under severe label skew.
They therefore add a User Verification Loss: a classification head that predicts which client a feature vector \(z\) came from.
The Theoretical Contribution
The paper derives a new global mutual information lower bound:
> Global mutual information ≥ local SimCLR contribution + user verification contribution + constant
The bound may not be tight, but its power is in decomposing an otherwise unoptimizable global mutual information objective into two terms that can each be optimized locally on clients.
Experimental Findings
Philosophical Takeaway
Counterintuitively, the more skewed the data distribution, the smaller the privacy cost—and it can even become an advantage. Non-i.i.d. data, long considered the scourge of federated learning, becomes a free supervision signal here.
Open Directions
1. Adaptive user verification: automatically detect label skew vs. covariate shift and toggle the module 2. Hierarchical mutual information: add an \(I(Group; Label)\) term for clients with natural clusters (e.g., by region) 3. Differential privacy: user verification can leak identity information—how to maximize \(I(z;s)\) while minimizing actual identity leakage? 4. Cross-modal extension: applying the "user fingerprint" idea to text, speech, and sensor data
References
1. Louizos, C., Reisser, M., & Korzhenkov, D. (2024). *A Mutual Information Perspective on Federated Contrastive Learning*. ICLR 2024. 2. Chen, T., Kornblith, S., Noroozi, M., & Hinton, G. (2020). *A Simple Framework for Contrastive Learning of Visual Representations*. ICML. 3. McMahan, H. B., et al. (2017). *Communication-Efficient Learning of Deep Networks from Decentralized Data*. AISTATS. 4. Kairouz, P., et al. (2021). *Advances and Open Problems in Federated Learning*. Foundations and Trends in Machine Learning. 5. Yang, Q., et al. (2019). *Federated Machine Learning: Concept and Applications*. ACM TIST.