Top LLM Internal Parameters Revealed by Timing Attacks
Timing attacks can recover key architectural details of black-box LLMs, including hidden dimension size, number of decoder layers, number of attention heads, and the intermediate size of the Multi-Layer Perceptron (MLP) layer. These attacks build an accurate timing model of the LLM inference pipeline, exploiting how generation latency varies with different model properties to reverse-engineer unknown architectures.
The top 3
- LLM Architecture Revealed: Decoder-Only Transformer: Timing attacks have unveiled that OpenAI's embedding model utilizes a decoder-only Transformer architecture, a detail previously not publicly disclosed, by detecting caching patterns.
- Cache Sharing Secrets: LLM Service Optimizations Exposed: Timing attacks can detect the presence and sharing of prompt caching across users and organizations in LLM API providers, inferring if a user's prompt shares a prefix with a recently cached one.
- Input Theft via Timing: Reconstructing User Prompts: Researchers demonstrated that timing side-channel attacks can partially or completely reconstruct user input prompts by exploiting cache mechanisms, leading to the inference of sensitive query content.
Sources
Open the full topic