Enabling On-Device Large Language Model Personalization with Self-Supervised Data Selection and Synthesis

Ruiyang Qin, Jun Xia, Zhenge Jia, Meng Jiang, Ahmed Abbasi, Peipei Zhou, Jingtong Hu, Yiyu Shi · DOI

Introduction

Large Language Models (LLMs) are increasingly deployed on edge devices, yet they often remain generic, lacking the ability to adapt to a specific user’s habits and context. This process of personalization is critical for digital assistants and companion robots. However, on-device personalization faces three significant hurdles: privacy concerns that prevent cloud-based labeling, user friction from frequent feedback requests, and the extreme resource scarcity of edge hardware. Furthermore, streaming data on devices is often temporally correlated (non-IID), which can cause standard machine learning techniques to fail.

Proposed Framework

This paper introduces a novel framework for personalizing LLMs directly on edge devices using a three-stage process focused on "dialogue sets" (question-answer pairs).

1. Self-Supervised Data Selection

To manage limited storage, the device maintains a small data buffer. When new data arrives, the system evaluates it using three unsupervised metrics to determine its informational value:

  • Entropy of Embedding (EOE): Quantifies the feature richness of the text.
  • Domain Specific Score (DSS): Uses pre-stored lexicons (e.g., medical, emotional) to assess relevance to specific topics.
  • In-Domain Dissimilarity (IDD): Prioritizes data that introduces novel information relative to the existing buffer content, preventing redundancy.
Overview of the proposed framework for on-device LLM personalization, featuring data selection and synthesis stages.

2. Sparse Annotation and Data Synthesis

To minimize user interruption, the system only requests feedback for the high-quality data selected for the buffer. To maximize the utility of this limited data, the framework employs the LLM to "self-augment" by generating multiple semantically similar versions of these high-quality pairs. This synthesis provides diverse training examples for fine-tuning without additional user input.

Experimental Evaluation

The framework was evaluated across six diverse datasets simulating various user interactions, including general instructional data (ALPACA, DOLLY, OPENORCA) and domain-specific data with high temporal correlation (MedDialog, Prosocial-Dialog, Empathetic-Dialog).

Key Results

  • Performance Gains: The framework achieved up to a 38% improvement in ROUGE-1 scores compared to vanilla baselines like Random Replacement or FIFO.
  • Consistent Learning: Unlike baseline methods that stagnated as data streamed in, the proposed framework showed a sharp and consistent learning curve across all datasets.
  • Hardware Efficiency: The system operates effectively with buffers ranging from 704KB to 11MB, making it suitable for memory-constrained hardware like mobile chips or the NVIDIA A10 GPU.
ROUGE-1 performance comparison across six datasets, showing the framework's consistent improvement over baseline methods.

Conclusion and Future Work

By combining self-supervised metrics with LLM-driven data synthesis, this framework enables effective on-device personalization while respecting privacy and hardware constraints. Future work will address the dependency on pre-defined lexicons for the Domain Specific Score and investigate methods to further reduce the compute overhead of embedding calculation and fine-tuning on low-end IoT devices.

Summary updated

BibTeX
@inproceedings{qin2024enabling,
  author = {Ruiyang Qin and Jun Xia and Zhenge Jia and Meng Jiang and Ahmed Abbasi and Peipei Zhou and Jingtong Hu and Yiyu Shi},
  title = {{Enabling On-Device Large Language Model Personalization with Self-Supervised Data Selection and Synthesis}},
  booktitle = {DAC},
  year = {2024},
  doi = {10.1145/3649329.3655665},
}
Figure