ADAPT^2: Adapting Pre-Trained Sensing Models to End-Users via Self-Supervision Replay

Hyungjun Yoon, Jae Hyun Kwak, Biniyam Aschalew Tolera, Gaole Dai, Mo Li, Taesik Gong, Kimin Lee, Sung-Ju Lee · OpenReview

Self-supervised learning (SSL) has revolutionized mobile sensing by enabling models to learn from vast amounts of unlabeled data. However, these models often struggle when deployed to new users due to "domain shift"—variations in movement patterns, device placement, or physiological differences. This paper introduces SelfReplay (also referred to as ADAPT^2), a framework designed to personalize models on-device using a novel "meta-task replay" approach.

The Challenge: Domain Shift in Mobile Sensing

In mobile sensing applications like activity tracking or health monitoring, data is inherently noisy and heterogeneous. A model trained on one group of users often fails to generalize to others. The authors found that even powerful SSL models experience a significant performance drop—up to 19.6% in F1-score—when encountering new domains.

Performance degradation of self-supervised models when transitioning from source to target domains.

Existing solutions typically require labeled data from the end-user, which creates a high "user burden." SelfReplay addresses this by enabling adaptation using only a few seconds of unlabeled sensor data collected directly on the user's device.

The SelfReplay Framework

SelfReplay employs a two-stage process to ensure models are both robust and adaptable, moving beyond the standard SSL pipeline.

Comparison of the standard SSL pipeline versus the proposed SelfReplay framework featuring MetaSSL and ReplaySSL.

1. MetaSSL: Pre-training for Adaptability

Instead of standard SSL pre-training, SelfReplay uses MetaSSL. By applying meta-learning (specifically a variation of MAML), the model is trained on thousands of "mini-tasks" across diverse domains. This stage teaches the model "how to learn" to self-supervise, preparing it for future adaptation. A key innovation is the Domain-Invariant Negative Queue, which provides high-quality "hard negative" examples for contrastive learning even within small meta-task batches, making the training much more robust.

2. ReplaySSL: On-Device Adaptation

Once deployed on a user's phone, the model enters the ReplaySSL stage. It performs a quick "replay" of the original self-supervised task using the user's specific unlabeled data. This process aligns the model's internal weights to the user's unique "style." Because the model was pre-trained via MetaSSL, this adaptation is extremely fast and avoids the overfitting that typically occurs when fine-tuning standard SSL models on small samples.

Key Insights and Results

The researchers evaluated SelfReplay across seven diverse mobile sensing benchmarks, covering human activity recognition, gesture recognition, and stress monitoring.

  • Accuracy Boost: SelfReplay achieved an average 9.4%p improvement in F1-score across all datasets, outperforming existing baselines like DARLING and Set-SimCLR.
  • On-Device Efficiency: The adaptation step is remarkably lightweight. On a Samsung Galaxy S20, the process took as little as 10 seconds and used less than 100MB of RAM, making it practical for real-world deployment.
  • Synergy is Key: The authors found that ReplaySSL only works if the model was pre-trained with MetaSSL. Without the meta-learning stage, replaying on a few samples actually causes performance to drop due to overfitting.
  • Model Agnostic: SelfReplay is compatible with various SSL algorithms, including SimCLR (contrastive), CPC (predictive), and Multi-task learning.

Conclusion

SelfReplay demonstrates that combining meta-learning with self-supervised replay can effectively bridge the gap between general pre-trained models and personalized user experiences. By enabling fast, unlabeled, on-device adaptation, it paves the way for more reliable and user-friendly mobile sensing applications that can adapt to changing user habits over time.

Summary updated

BibTeX
@misc{yoon2024adapt,
  author = {Hyungjun Yoon and Jae Hyun Kwak and Biniyam Aschalew Tolera and Gaole Dai and Mo Li and Taesik Gong and Kimin Lee and Sung-Ju Lee},
  title = {{ADAPT^2: Adapting Pre-Trained Sensing Models to End-Users via Self-Supervision Replay}},
  year = {2024},
  eprint = {2404.15305},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.15305},
}
Figure