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.
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.
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