Remote Timing Attacks on Efficient Language Model Inference
On the map: Efficient LLM inference and serving → Speculative decoding
Abstract (arXiv)
Scaling up language models has significantly increased their capabilities. But larger models are slower models, and so there is now an extensive body of work (e.g., speculative sampling or parallel decoding) that improves the (average case) efficiency of language model generation. But these techniques introduce data-dependent timing characteristics. We show it is possible to exploit these timing differences to mount a timing attack. By monitoring the (encrypted) network traffic between a victim user and a remote language model, we can learn information about the content of messages by noting when responses are faster or slower. With complete black-box access, on open source systems we show how it is possible to learn the topic of a user's conversation (e.g., medical advice vs. coding assistance) with 90%+ precision, and on production systems like OpenAI's ChatGPT and Anthropic's Claude we can distinguish between specific messages or infer the user's language. We further show that an active adversary can leverage a boosting attack to recover PII placed in messages (e.g., phone numbers or credit card numbers) for open source systems. We conclude with potential defenses and directions for future work.
Key facts. Cited by 13 papers in the map (data through 14 Oct 2026). Placed in Speculative decoding, one of 12 directions in Efficient LLM inference and serving. Builds on 20 of its 54 references that are in the map. First posted on arXiv 22 Oct 2024.
Builds on
20 of 54 references.
Closest ancestors · 6
Same direction, newest first
- 2024CLLMs: Consistency Large Language Models28 Feb
- 2024Speculative Streaming: Fast LLM Inference without Auxiliary Models16 Feb
- 2024Break the Sequential Dependency of LLM Inference Using Lookahead Decoding3 Feb
- 2024Medusa: Simple LLM Inference Acceleration Framework with Multiple Decoding Heads19 Jan
- 2023Accelerating Transformer Inference for Translation via Parallel Decoding17 May
- 2023SpecInfer: Accelerating Generative Large Language Model Serving with Tree-based Speculative Inference and Verification16 May
Other references · 14
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2015Distilling the Knowledge in a Neural Networkcited by 10,324
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
- 2017Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inferencecited by 1,593
- 2018Blockwise Parallel Decoding for Deep Autoregressive Modelscited by 323
- 2024Mixture-of-Depths: Dynamically allocating compute in transformer-based language modelscited by 258
- 2018Deep Fingerprinting: Undermining Website Fingerprinting Defenses with Deep Learningcited by 43
- 2015k-fingerprinting: a Robust Scalable Website Fingerprinting Techniquecited by 34
- 2024What Was Your Prompt? A Remote Keylogging Attack on AI Assistantscited by 26
- 2017Automated Website Fingerprinting through Deep Learningcited by 21
2 more
- 2018DeepCorr: Strong Flow Correlation Attacks on Tor Using Deep Learningcited by 8
- 2017The Loopix Anonymity Systemcited by 3
Built on by
Citing papers per year: 2024: 1; 2025: 7; 2026: 5.
13 papers.
Sort:
By area:
- 2025Auditing Prompt Caching in Language Model APIscited by 20
- 2025LLM Fingerprinting via Semantically Conditioned Watermarkscited by 9
- 2024When Speculation Spills Secrets: Side Channels via Speculative Decoding In LLMscited by 7
- 2025Beyond Data Privacy: New Privacy Risks for Large Language Modelscited by 6
- 2025Network-Level Prompt and Trait Leakage in Local Research Agentscited by 5
- 2025On the Promise for Assurance of Differentiable Neurosymbolic Reasoning Paradigmscited by 3
- 2025Whisper Leak: a side-channel attack on Large Language Modelscited by 3
- 2026PrefixWall: Mitigating Prefix Caching Side Channels in Shared LLM Systemscited by 1
- 2026A Large-Scale Benchmark and Risk Assessment of Traffic Analysis Attacks on Cloud LLM Servicescited by 1
- 2025Towards Anonymous Neural Network Inferencecited by 0
- 2026Leaky Language Models: Stealing Architecture and Inference Optimizations via Per-Token Timingcited by 0
- 2026Sensitive-Topic Leakage Through LLM Routing Metadata: Measurement and Mitigationcited by 0
1 more
- 2026Speedbumps: Rejection Attacks on Speculative Decodingcited by 0
- 2026Speedbumps: Rejection Attacks on Speculative Decoding7 Oct 2026
- 2026Sensitive-Topic Leakage Through LLM Routing Metadata: Measurement and Mitigation7 Oct 2026
- 2026A Large-Scale Benchmark and Risk Assessment of Traffic Analysis Attacks on Cloud LLM Services25 Sep 2026
- 2026Leaky Language Models: Stealing Architecture and Inference Optimizations via Per-Token Timing22 Jul 2026
- 2026PrefixWall: Mitigating Prefix Caching Side Channels in Shared LLM Systems11 Mar 2026
- 2025Whisper Leak: a side-channel attack on Large Language Models5 Nov 2025
- 2025Beyond Data Privacy: New Privacy Risks for Large Language Models16 Sep 2025
- 2025Network-Level Prompt and Trait Leakage in Local Research Agents27 Aug 2025
- 2025Towards Anonymous Neural Network Inference23 May 2025
- 2025LLM Fingerprinting via Semantically Conditioned Watermarks22 May 2025
- 2025On the Promise for Assurance of Differentiable Neurosymbolic Reasoning Paradigms13 Feb 2025
- 2025Auditing Prompt Caching in Language Model APIs11 Feb 2025
1 more
- 2024When Speculation Spills Secrets: Side Channels via Speculative Decoding In LLMscited by 7
- 2026PrefixWall: Mitigating Prefix Caching Side Channels in Shared LLM Systemscited by 1
- 2026Leaky Language Models: Stealing Architecture and Inference Optimizations via Per-Token Timingcited by 0
- 2026Speedbumps: Rejection Attacks on Speculative Decodingcited by 0
- 2026Speedbumps: Rejection Attacks on Speculative Decoding7 Oct 2026
- 2026Leaky Language Models: Stealing Architecture and Inference Optimizations via Per-Token Timing22 Jul 2026
- 2026PrefixWall: Mitigating Prefix Caching Side Channels in Shared LLM Systems11 Mar 2026
- 2024When Speculation Spills Secrets: Side Channels via Speculative Decoding In LLMs1 Nov 2024
- 2025LLM Fingerprinting via Semantically Conditioned Watermarks22 May 2025
- 2025Auditing Prompt Caching in Language Model APIscited by 20
- 2025Beyond Data Privacy: New Privacy Risks for Large Language Modelscited by 6
- 2025Whisper Leak: a side-channel attack on Large Language Modelscited by 3
- 2026A Large-Scale Benchmark and Risk Assessment of Traffic Analysis Attacks on Cloud LLM Servicescited by 1
- 2025Towards Anonymous Neural Network Inferencecited by 0
- 2026Sensitive-Topic Leakage Through LLM Routing Metadata: Measurement and Mitigationcited by 0
- 2026Sensitive-Topic Leakage Through LLM Routing Metadata: Measurement and Mitigation7 Oct 2026
- 2026A Large-Scale Benchmark and Risk Assessment of Traffic Analysis Attacks on Cloud LLM Services25 Sep 2026
- 2025Whisper Leak: a side-channel attack on Large Language Models5 Nov 2025
- 2025Beyond Data Privacy: New Privacy Risks for Large Language Models16 Sep 2025
- 2025Towards Anonymous Neural Network Inference23 May 2025
- 2025Auditing Prompt Caching in Language Model APIs11 Feb 2025
Similar, not cited
Close in wording, no citation either way
- 2026Arbitrary Cipher Attacks Against Large Language Models Do Not Require Fine-Tuning
- 2023A Comprehensive Overview of Backdoor Attacks in Large Language Models within Communication Networks
- 2025Security Concerns for Large Language Models: A Survey
- 2024CleanGen: Mitigating Backdoor Attacks for Generation Tasks in Large Language Models
- 2026SpecGuard: Inference-Time Backdoor Detection For Free
- 2026Closing the Activation-Cone Blind Spot: Response-Time Probing and Unified Defense
- 2024Automatic and Universal Prompt Injection Attacks against Large Language Models
- 2025SPIRIT: Patching Speech Language Models against Jailbreak Attacks