Dynamic preprocessing in on-device VLMs leaks input geometry and content via timing and cache side-channels
A dual-layer side-channel attack can infer both image geometry and semantic class from local vision-language models
AI/ML arXiv 26 Mar 2026 Attack Prototype evidence
Published as “Shape and Substance: Dual-Layer Side-Channel Attacks on Local Vision-Language Models”
Why it matters
An unprivileged co-located process can infer sensitive medical or encrypted visual content from a locally running VLM, breaking the privacy guarantees of on-device AI.
Summary
The paper shows that dynamic high-resolution preprocessing in local vision-language models creates a dual-layer side-channel: deterministic timing reveals the image aspect ratio, and LLC-miss telemetry reveals visual semantic density. Using these two signals, an unprivileged co-located process can classify inputs with 84% overall accuracy, achieving 100% recall on encrypted data and 93% recall on chest X-rays. The authors demonstrate the effect across multiple models (Qwen2-VL vs. static LLaVA) and hardware platforms (Intel and AMD), and propose mitigation strategies such as constant-work padding and restricting performance-counter access.
What they found 3
- The combined attack achieves perfect recall for encrypted data inputs.
“correctly identifying 100% of Encrypted Data”
- Square inputs incur roughly a 60% latency increase compared to rectangular inputs in dynamic models.
“square inputs incur an approximately 60% latency increase compared to rectangular inputs”
- The timing gap between square and portrait inputs remains about 1.61× on AMD hardware, confirming algorithmic leakage.
“the relative latency gap between square and portrait inputs remains clear (1.61×)”
Caveats 3
- The semantic (Tier 2) leakage is weaker on the AMD system with a larger 64 MB LLC, indicating the side-channel’s effectiveness depends on hardware cache size.
- Our experiments demonstrate the presence of the vulnerability under a consistent experimental setup.
- Future work could further examine how system-level conditions influence the strength of the leakage.
What’s new here 4
- Identifies a two-tier side-channel (timing + cache) specific to dynamic preprocessing in vision-language models.
- Demonstrates that geometric leakage is algorithmic and hardware-independent, while semantic leakage depends on cache size.
- Provides cross-model and cross-architecture validation, showing the issue persists on both Intel and AMD CPUs.
- Proposes concrete mitigations at the application (constant-work padding, privacy mode) and OS (performance-counter restrictions) levels.