NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Localized Language Models for Privacy Preserving Inference

15 concepts8 papers1 proposal

Large Language Models (LLMs) have transformed how we interact with text, but their traditional deployment architecture introduces a fundamental privacy paradox. To extract high-quality insights, users must transmit raw, highly sensitive data—such as clinical psychiatric notes, continuous mobile screen activity, or personal health metrics—to remote cloud servers. This exposure leaves data vulnerable to interception, provider logging, and unauthorized use in future model training.

To resolve this tension, a growing body of research proposes shifting the computation boundary: deploying localized and on-device LLMs that process data directly where it originates. By keeping data within the user's local hardware environment, this paradigm eliminates the need for external data transmission entirely.


The Local Privacy Proxy: Sanitizing the Pipeline

Sometimes, a task requires the reasoning power of a massive cloud-based model, but the raw input contains sensitive details that should never leave the user's device. In these scenarios, researchers use a small local language model to act as an intermediary privacy filter.

[ Raw User Prompt ] ──> ( Local Small LM: Redacts/Reformulates ) ──> [ Sanitized Prompt ] ──> ( Cloud LLM )

As demonstrated by Wang et al., a local agent can intercept user prompts, identify contextual privacy risks (such as names, relationships, or specific medical conditions), and reformulate the prompt before it is transmitted to a remote server.

Similarly, in the context of online health consultations, Ma et al. developed SafeShare, a technique that uses localized LLMs to automatically redact sensitive personal information in real-time. By shifting the anonymization burden away from the user to an automated local layer, the system ensures that raw, sensitive health data is stripped out before any external transmission occurs.


Full Local Inference for High-Stakes Domains

For applications where data is too sensitive to ever be transmitted—even in a sanitized form—the entire inference pipeline must run locally. This approach is vital in clinical medicine and continuous user tracking, where data regulations are stringent and data leakage is catastrophic.

Clinical and Psychiatric Decision Support

Analyzing unstructured text for critical insights, such as suicide risk, requires absolute confidentiality. Wiest et al. demonstrated that a 70-billion-parameter model could be deployed on consumer-grade hardware within a hospital's secure local servers. Their architecture achieved 87.5% accuracy in detecting suicidality from psychiatric admission notes without relying on cloud APIs.

To bring this capability directly into therapeutic sessions, Landau et al. optimized multimodal open-source LLMs to run on standard, memory-constrained hardware within clinical settings. Their framework combines text and acoustic analysis locally, providing objective diagnostic support while strictly adhering to data protection requirements.

Continuous Mobile Tracking and Health Monitoring

On mobile devices, continuous data tracking presents a severe privacy risk. For instance, Fang et al. introduced ScreenTK, a framework that analyzes continuous mobile screen text to detect user behavior patterns. Sending continuous screen text to the cloud would be an unacceptable privacy violation; by running the LLM entirely on-device, the data remains strictly confidential.

Similarly, for personalized digital health management, Zhu et al. developed GluLLM, a framework that adapts lightweight LLMs to run on smartphones for glucose and hypoglycemia prediction. The model safely integrates continuous glucose monitor (CGM) data, activity logs, and electronic health records locally on the user's phone.


On-Device Personalization and Fine-Tuning

Privacy preservation becomes even more challenging when models need to learn from user data over time to provide personalized experiences. Traditional fine-tuning requires aggregating data on a central server, which introduces significant data leakage risks.

To bypass this, Peng et al. introduced PocketLLM, an approach that enables fine-tuning directly on mobile devices.

Standard Fine-Tuning:  [Local Data] ──(Transmit)──> [Cloud Server] ──> (High-Memory Backpropagation)
On-Device Tuning:      [Local Data] ──> (Derivative-Free Optimization) ──> [Updated Local Model]

Standard fine-tuning relies on backpropagation, which requires storing massive activation tensors in memory—a feat impossible for resource-constrained smartphones. The authors overcome this by utilizing derivative-free optimization techniques, drastically reducing the memory overhead. This allows the model to adapt to the user's specific habits and data entirely within the device's local environment, eliminating the risk of data leakage during training.


The Hardware and Security Frontier

While moving LLMs to local devices solves the data transmission problem, it introduces a new challenge: protecting the model itself on user hardware.

As outlined in a mobile LLM roadmap by Chen et al., deploying models directly on consumer devices exposes them to sophisticated local adversarial attacks and malicious exploitation. The authors suggest that future architectures must leverage hardware-based security features, such as Trusted Execution Environments (TEEs), alongside robust program protection mechanisms. This ensures that on-device LLMs remain secure from both external exploitation and local tampering, completing the circle of local data confidentiality.

Key Foundational Work

LLM for Mobile: An Initial Roadmap (2025) — contributed 5 concept elements to this direction.
From Patient Burdens to User Agency: Designing for Real-Time Protection Support in Online Health Consultations (2025) — contributed 2 concept elements to this direction.
ScreenTK: Seamless Detection of Time-Killing Moments Using Continuous Mobile Screen Text and On-Device LLMs (2024) — contributed 2 concept elements to this direction.
History & citationVersion 1 · 2026-10-04

Current · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_on_device_llm_for_privacy_07dadda0,
  title = {on-device LLM for privacy},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/on-device-llm-for-privacy/rdr_07dadda02d254694b5e4f1c06cc88e84},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-28},
}

This exact version (version 1, frozen text):

@misc{lacuna_on_device_llm_for_privacy_07dadda0_v1,
  title = {on-device LLM for privacy},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/on-device-llm-for-privacy/rdr_07dadda02d254694b5e4f1c06cc88e84/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-28},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake