Personalized Language Model Learning on Text Data Without User Identifiers

Yucheng Ding, Yangwenjian Tan, Xiangyu Liu, Chaoyue Niu, Fandong Meng, Jie Zhou, Ning Liu, Fan Wu, Guihai Chen

Introduction

Personalization is a cornerstone of modern AI, enabling systems to adapt to individual user preferences, linguistic styles, and subjective biases. Traditionally, this requires a User ID to link data to a specific profile. However, in privacy-sensitive applications, service providers often collect data anonymously to protect users.

A common attempt to bypass identifiers involves replacing names with static mathematical vectors (user embeddings). Unfortunately, because these vectors are unique and persistent, they act as digital fingerprints, allowing cloud servers to track users just as easily as a username would. Conversely, running large-scale models entirely on-device is often computationally prohibitive for real-time applications. This research introduces IDfree-PL (Identifier-free Personalized Learning), a framework designed to achieve cloud-level performance and personalization without the fingerprinting risks associated with static embeddings.

Methodology

The core innovation of IDfree-PL is the transition from static identifiers to dynamic local probability distributions. Instead of a fixed embedding, each client device maintains its own local distribution (e.g., Beta or Gaussian).

The IDfree-PL framework architecture, illustrating the sampling of user embeddings (u) from a local distribution to maintain privacy while training a frozen language model.

The IDfree-PL Workflow

  1. Dynamic Sampling: Every time a device interacts with the cloud, it samples a new user embedding from its local distribution. This creates a "one-to-many" mapping that breaks the deterministic link between a specific vector and a specific user.
  2. On-Device Optimization: The device optimizes the parameters of its local distribution using the reparameterization trick. This minimizes loss on local data while the heavy language model remains frozen.
  3. Cloud Fine-Tuning: The cloud receives these anonymous, "noisy" embeddings paired with text data and fine-tunes the global model to adapt to personalized inputs without ever seeing a persistent ID.

Privacy Strategies

The framework employs two primary strategies to ensure anonymity:

  • Non-identifiability: By using specific distributions (like Beta) that are linearly dependent, it becomes mathematically impossible for the cloud to uniquely reconstruct an individual's distribution from a mixture of many users.
  • Misattribution: By using Gaussian distributions with gradient clipping, the system ensures that different users' distributions overlap significantly, making it highly probable that the cloud will misidentify the source of any given embedding.

Experimental Results

The authors evaluated IDfree-PL across diverse tasks, including sentiment analysis (Sentiment140), book reviews (Amazon-Kindle), and industrial keyboard data (Sina Weibo).

Comparison of inference accuracy with and without personalization across different language models, demonstrating the performance gains achieved by IDfree-PL.

Key Findings

  • Accuracy Gains: IDfree-PL improved inference accuracy by up to 5.69% compared to non-personalized cloud models. The system proved particularly effective on "high entropy" samples—ambiguous or subjective cases where user context is vital.
  • Efficiency: Compared to running a 1.8B parameter model on-device (which took ~83 seconds), the cloud-based IDfree-PL responded in milliseconds, adding only 0.01s of overhead.
  • Privacy Protection: Misattribution tests confirmed that the probability of the cloud correctly identifying a user from their sampled embedding remained significantly low.

Discussion and Future Work

A major insight of this work is that IDfree-PL can outperform pure on-device learning. While on-device models often overfit to a single user's limited dataset, IDfree-PL allows the global model to learn from a rich variety of personalized styles across the entire user base while maintaining individual anonymity.

Future research may focus on reducing the local compute required to tune distributions and exploring how these dynamic embeddings scale with "frontier" models exceeding 70 billion parameters, where the embedding space is significantly higher-dimensional.

Summary updated

BibTeX
@inproceedings{ding2025personalized,
  author = {Yucheng Ding and Yangwenjian Tan and Xiangyu Liu and Chaoyue Niu and Fandong Meng and Jie Zhou and Ning Liu and Fan Wu and Guihai Chen},
  title = {{Personalized Language Model Learning on Text Data Without User Identifiers}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2025},
}
Figure