mlsanityData to 14 Oct 2026

Remote Timing Attacks on Efficient Language Model Inference

arXiv 2410.17175 ↗First posted 22 Oct 2024cs.CR cs.LGcited by 13

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

  1. 2024CLLMs: Consistency Large Language Models28 Feb
  2. 2024Speculative Streaming: Fast LLM Inference without Auxiliary Models16 Feb
  3. 2024Break the Sequential Dependency of LLM Inference Using Lookahead Decoding3 Feb
  4. 2024Medusa: Simple LLM Inference Acceleration Framework with Multiple Decoding Heads19 Jan
  5. 2023Accelerating Transformer Inference for Translation via Parallel Decoding17 May
  6. 2023SpecInfer: Accelerating Generative Large Language Model Serving with Tree-based Speculative Inference and Verification16 May

Other references · 14

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2015Distilling the Knowledge in a Neural Networkcited by 10,324
  4. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
  5. 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
  6. 2017Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inferencecited by 1,593
  7. 2018Blockwise Parallel Decoding for Deep Autoregressive Modelscited by 323
  8. 2024Mixture-of-Depths: Dynamically allocating compute in transformer-based language modelscited by 258
  9. 2018Deep Fingerprinting: Undermining Website Fingerprinting Defenses with Deep Learningcited by 43
  10. 2015k-fingerprinting: a Robust Scalable Website Fingerprinting Techniquecited by 34
  11. 2024What Was Your Prompt? A Remote Keylogging Attack on AI Assistantscited by 26
  12. 2017Automated Website Fingerprinting through Deep Learningcited by 21
2 more
  1. 2018DeepCorr: Strong Flow Correlation Attacks on Tor Using Deep Learningcited by 8
  2. 2017The Loopix Anonymity Systemcited by 3

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 1; 2025: 7; 2026: 5.

13 papers.

Sort:

By area:

Similar, not cited

Close in wording, no citation either way

  1. 2026Arbitrary Cipher Attacks Against Large Language Models Do Not Require Fine-Tuning
  2. 2023A Comprehensive Overview of Backdoor Attacks in Large Language Models within Communication Networks
  3. 2025Security Concerns for Large Language Models: A Survey
  4. 2024CleanGen: Mitigating Backdoor Attacks for Generation Tasks in Large Language Models
  5. 2026SpecGuard: Inference-Time Backdoor Detection For Free
  6. 2026Closing the Activation-Cone Blind Spot: Response-Time Probing and Unified Defense
  7. 2024Automatic and Universal Prompt Injection Attacks against Large Language Models
  8. 2025SPIRIT: Patching Speech Language Models against Jailbreak Attacks