Abstract
Personalized text generation has become crucial for adapting language models to diverse and evolving users' personal context across cultural, temporal, and contextual dimensions. While existing methods often rely on centralized fine-tuning or static preference alignment, they struggle to achieve real-time adaptation under resource constraints inherent to personal devices. This limitation creates a dilemma: large cloud-based models lack access to localized user-specific information, while small on-device models cannot match the generation quality of their cloud counterparts. To address this dichotomy, we present CoSteer, a novel collaborative framework that enables decoding-time personalization through localized delta steering. Our key insight lies in leveraging the logits difference between personal context-aware and -agnostic outputs from local small models as steering signals for cloud-based LLMs. Specifically, we formulate token-level optimization as an online learning problem, where local delta vectors dynamically adjust the remote LLM's logits within the on-device environment. This approach preserves privacy by transmitting only the final steered tokens rather than raw data or intermediate vectors, while maintaining cloud-based LLMs' general capabilities without fine-tuning. Through comprehensive experiments on various personalized generation tasks, we demonstrate that CoSteer effectively assists LLMs in generating personalized content by leveraging locally stored user profiles and histories, ensuring privacy preservation through on-device data processing while maintaining acceptable computational overhead.
Introduction
Personalizing Large Language Models (LLMs) typically forces a difficult trade-off between output quality and user privacy. High-quality personalization usually requires sending sensitive user history and context to massive cloud-based models, which is a significant privacy concern. Conversely, running small language models (SLMs) entirely on-device preserves privacy but often results in lower reasoning depth and knowledge breadth compared to larger cloud-based counterparts.
Existing "tuning-free" methods like prompt engineering still require data transmission to the cloud, while training-based methods like LoRA adapters are too computationally heavy for most personal devices to update in real-time as user interests evolve. CoSteer bridges this gap by providing "cloud-level" intelligence with "local-level" privacy through a collaborative decoding-time framework.
Methods
The core innovation of CoSteer is Local Delta Steering. Instead of sending private context to the cloud, the user's device runs a Small Language Model (SLM) locally to generate steering signals. The process involves four key components:
- Dual-Contrast Utility: The local device runs the SLM twice for every token: once with the private user context and once without it. The difference between these two outputs (the "logit delta") represents the specific "direction" of personalization.
- Collaborative Decoding: The cloud-based LLM generates its own "base" suggestions. The local device then takes these suggestions and "steers" them using the local delta.
- FTRL Optimization: To ensure steering doesn't break model coherence, the process is formulated as an online learning problem using the Follow-The-Regularized-Leader (FTRL) algorithm. This mathematically balances the cloud model's broad knowledge with the local model's specific steering.
- Byte-Level Fusion: Since cloud and local models may use different tokenizers, a byte-level mapping system allows cross-model collaboration (e.g., a Llama model steering a Qwen model).
The framework also includes variants like LightCoSteer for faster processing and AdaCoSteer, which dynamically stops steering once the model is confident, saving device battery.
Key Results
CoSteer was evaluated across eight diverse datasets, including tasks like daily assistant drafting (Cogenesis), long-form academic and review writing (LongLaMP), and stylistic preference alignment (e.g., HelpSteer).
Key findings include:
- Performance: CoSteer consistently outperformed local-only models and cloud models without context. In many cases, it approached the performance of a cloud model that has full, privacy-violating access to user data.
- Weak-to-Strong Generalization: A surprising finding is that a tiny 0.6B parameter model can effectively steer a 32B parameter giant. The "intelligence" comes from the large model, while the "intent" is successfully injected by the small one.
- Efficiency: Processing context locally is significantly cheaper than cloud processing. CoSteer is roughly 3.3x less computationally expensive for cloud providers than standard "send-everything" approaches.
- Privacy and Robustness: Because fusion happens locally, the cloud only sees final tokens. Furthermore, the cloud model acts as a safeguard, preventing output from collapsing even if local context is noisy.
Conclusion
CoSteer demonstrates that high-quality personalization and robust privacy are not mutually exclusive. By leveraging local delta steering, the framework enables efficient, real-time adaptation of large cloud models to individual user needs without compromising sensitive data. Future work will explore speculative steering to process multiple tokens simultaneously and extending this logic to multi-modal applications like images and audio.
Summary updated