Provable Differentially Private Computation of the Cross-Attention Mechanism
On the map: Diffusion models → Robustness, privacy and adversarial aspects
Abstract (arXiv)
Cross-attention has emerged as a cornerstone module in modern artificial intelligence, underpinning critical applications such as retrieval-augmented generation (RAG), system prompting, and guided stable diffusion. However, this is a rising concern about securing the privacy of cross-attention, as the underlying key and value matrices frequently encode sensitive data or private user information. In this work, we introduce a novel data structure designed to enforce differential privacy (DP) for cross-attention mechanisms, accompanied by provable theoretical guarantees. Specifically, letting n denote the input sequence length, d the feature dimension, R the maximum magnitude of query and key matrices, Rw the maximum magnitude of the value matrix, and r, s, εs the parameters for polynomial kernel methods, our proposed structure achieves widetildeO(ndr2) space and initialization complexity, with a query time of widetildeO(d r2) per token. Moreover, we demonstrate that our mechanism satisfies (ε, δ)-DP, incurring an additive error of widetildeO((1-εs)-1 n-1 ε-1 R2s Rw r2) and a relative error of 2εs/(1-εs) with respect to the ground truth. Crucially, our framework maintains robustness against adaptive queries, ensuring security even in adversarial settings. To the best of our knowledge, this constitutes the first approach providing provable differential privacy for cross-attention, establishing a foundation for future privacy-preserving algorithms in large generative models (LGMs).
Key facts. Cited by 14 papers in the map (data through 7 Oct 2026). Placed in Robustness, privacy and adversarial aspects, one of 14 directions in Diffusion models. Builds on 62 of its 95 references that are in the map. First posted on arXiv 20 Jul 2024.
Builds on
62 of 95 references.
References · 62
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2022Photorealistic Text-to-Image Diffusion Models with Deep Language Understandingcited by 6,322
- 2022Scalable Diffusion Models with Transformerscited by 5,931
- 2022Emergent Abilities of Large Language Modelscited by 2,483
- 2022Prompt-to-Prompt Image Editing with Cross Attention Controlcited by 2,409
- 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,185
- 2023Voyager: An Open-Ended Embodied Agent with Large Language Modelscited by 2,081
- 2021Improving language models by retrieving from trillions of tokenscited by 1,278
- 2021CrossViT: Cross-Attention Multi-Scale Vision Transformer for Image Classificationcited by 806
- 2021Large Language Models Can Be Strong Differentially Private Learnerscited by 405
- 2021Differentially Private Fine-tuning of Language Modelscited by 392
38 more
- 2023Multi-step Jailbreaking Privacy Attacks on ChatGPTcited by 320
- 2014Sketching as a Tool for Numerical Linear Algebracited by 285
- 2023How to DP-fy ML: A Practical Guide to Machine Learning with Differential Privacycited by 150
- 2024Is A Picture Worth A Thousand Words? Delving Into Spatial Reasoning for Vision Language Modelscited by 111
- 2023Fast Attention Requires Bounded Entriescited by 102
- 2023Dynamic Prompt Learning: Addressing Cross-Attention Leakage for Text-Based Image Editingcited by 76
- 2022Differentially Private Language Models for Secure Data Sharingcited by 68
- 2024JailbreakZoo: Survey, Landscapes, and Horizons in Jailbreaking Large Language and Vision-Language Modelscited by 67
- 2022Mixed Differential Privacy in Computer Visioncited by 53
- 2023On the Role of Attention in Prompt-tuningcited by 49
- 2023Privacy in Large Language Models: Attacks, Defenses and Future Directionscited by 48
- 2022Robustness Implies Privacy in Statistical Estimationcited by 47
- 2023How to Capture Higher-order Correlations? Generalizing Matrix Softmax Attention to Kronecker Computationcited by 44
- 2024Why Larger Language Models Do In-context Learning Differently?cited by 44
- 2023On Sparse Modern Hopfield Modelcited by 41
- 2024On Computational Limits of Modern Hopfield Models: A Fine-Grained Complexity Analysiscited by 41
- 2020Local Differential Privacy and Its Applications: A Comprehensive Surveycited by 40
- 2022Privately Fine-Tuning Large Language Models with Differential Privacycited by 39
- 2024Uniform Memory Retrieval with Larger Capacity for Modern Hopfield Modelscited by 38
- 2024Outlier-Efficient Hopfield Layers for Large Transformer-Based Modelscited by 38
- 2019A New Analysis of Differential Privacy's Generalization Guaranteescited by 36
- 2023STanHop: Sparse Tandem Hopfield Model for Memory-Enhanced Time Series Predictioncited by 35
- 2022Just Fine-tune Twice: Selective Differential Privacy for Large Language Modelscited by 32
- 2024Towards Few-Shot Adaptation of Foundation Models via Multitask Finetuningcited by 31
- 2023Split-and-Denoise: Protect large language model inference with local differential privacycited by 30
- 2024The Fine-Grained Complexity of Gradient Computation for Training Large Language Modelscited by 30
- 2024Training Tensor Attention Efficiently: From Cubic to Almost Linear Timecited by 29
- 2023The Trade-off between Universality and Label Efficiency of Representations from Contrastive Learningcited by 27
- 2021Tight and Robust Private Mean Estimation with Few Userscited by 26
- 2023Differentially Private Attention Computationcited by 25
- 2024Privacy Preserving Prompt Engineering: A Surveycited by 24
- 2024Unraveling the Smoothness Properties of Diffusion Models: A Gaussian Mixture Perspectivecited by 24
- 2024OmniControlNet: Dual-stage Integration for Conditional Image Generationcited by 24
- 2023Dolfin: Diffusion Layout Transformers without Autoencodercited by 23
- 2024BiSHop: Bi-Directional Cellular Learning for Tabular Data with Generalized Sparse Modern Hopfield Modelcited by 21
- 2023Better and Simpler Lower Bounds for Differentially Private Statistical Estimationcited by 16
- 2024Nonparametric Modern Hopfield Modelscited by 16
- 2022Adaptive and Dynamic Multi-Resolution Hashing for Pairwise Summationscited by 14
50 most cited of 62 All 62 (JSON)
Built on by
Citing papers per year: 2024: 7; 2025: 7.
14 papers.
Sort:
By area:
- 2024Circuit Complexity Bounds for RoPE-based Transformer Architecturecited by 26
- 2024Multi-Layer Transformers Gradient Can be Approximated in Almost Linear Timecited by 22
- 2024The Computational Limits of State-Space Models and Mamba via the Lens of Circuit Complexitycited by 21
- 2024HSR-Enhanced Sparse Attention Accelerationcited by 19
- 2024Theoretical Constraints on the Expressive Power of mathsfRoPE-based Tensor Attention Transformerscited by 12
- 2025Integrating Large Language Models for Automated Structural Analysiscited by 12
- 2025Theoretical Guarantees for High Order Trajectory Refinement in Generative Flowscited by 9
- 2025Fast RoPE Attention: Combining the Polynomial Method and Fast Fourier Transformcited by 9
- 2024Fast John Ellipsoid Computation with Differential Privacy Optimizationcited by 7
- 2025Only Large Weights (And Not Skip Connections) Can Prevent the Perils of Rank Collapsecited by 7
- 2025Scaling Law Phenomena Across Regression Paradigms: Multiple and Kernel Approachescited by 4
- 2024Inverting the Leverage Score Gradient: An Efficient Approximate Newton Methodcited by 3
- 2025Only Large Weights (And Not Skip Connections) Can Prevent the Perils of Rank Collapse22 May 2025
- 2025Fast RoPE Attention: Combining the Polynomial Method and Fast Fourier Transform17 May 2025
- 2025Integrating Large Language Models for Automated Structural Analysis13 Apr 2025
- 2025Theoretical Foundation of Flow-Based Time Series Generation: Provable Approximation, Generalization, and Efficiency18 Mar 2025
- 2025Time and Memory Trade-off of KV-Cache Compression in Tensor Transformer Decoding14 Mar 2025
- 2025Theoretical Guarantees for High Order Trajectory Refinement in Generative Flows12 Mar 2025
- 2025Scaling Law Phenomena Across Regression Paradigms: Multiple and Kernel Approaches3 Mar 2025
- 2024Theoretical Constraints on the Expressive Power of mathsfRoPE-based Tensor Attention Transformers23 Dec 2024
- 2024The Computational Limits of State-Space Models and Mamba via the Lens of Circuit Complexity9 Dec 2024
- 2024Circuit Complexity Bounds for RoPE-based Transformer Architecture12 Nov 2024
- 2024HSR-Enhanced Sparse Attention Acceleration14 Oct 2024
- 2024Multi-Layer Transformers Gradient Can be Approximated in Almost Linear Time23 Aug 2024
- 2024Circuit Complexity Bounds for RoPE-based Transformer Architecturecited by 26
- 2024Multi-Layer Transformers Gradient Can be Approximated in Almost Linear Timecited by 22
- 2024HSR-Enhanced Sparse Attention Accelerationcited by 19
- 2024Theoretical Constraints on the Expressive Power of mathsfRoPE-based Tensor Attention Transformerscited by 12
- 2025Integrating Large Language Models for Automated Structural Analysiscited by 12
- 2025Fast RoPE Attention: Combining the Polynomial Method and Fast Fourier Transformcited by 9
- 2024Fast John Ellipsoid Computation with Differential Privacy Optimizationcited by 7
- 2025Only Large Weights (And Not Skip Connections) Can Prevent the Perils of Rank Collapsecited by 7
- 2025Scaling Law Phenomena Across Regression Paradigms: Multiple and Kernel Approachescited by 4
- 2024Inverting the Leverage Score Gradient: An Efficient Approximate Newton Methodcited by 3
- 2025Only Large Weights (And Not Skip Connections) Can Prevent the Perils of Rank Collapse22 May 2025
- 2025Fast RoPE Attention: Combining the Polynomial Method and Fast Fourier Transform17 May 2025
- 2025Integrating Large Language Models for Automated Structural Analysis13 Apr 2025
- 2025Scaling Law Phenomena Across Regression Paradigms: Multiple and Kernel Approaches3 Mar 2025
- 2024Theoretical Constraints on the Expressive Power of mathsfRoPE-based Tensor Attention Transformers23 Dec 2024
- 2024Circuit Complexity Bounds for RoPE-based Transformer Architecture12 Nov 2024
- 2024HSR-Enhanced Sparse Attention Acceleration14 Oct 2024
- 2024Multi-Layer Transformers Gradient Can be Approximated in Almost Linear Time23 Aug 2024
- 2024Inverting the Leverage Score Gradient: An Efficient Approximate Newton Method21 Aug 2024
- 2024Fast John Ellipsoid Computation with Differential Privacy Optimization12 Aug 2024
Similar, not cited
Close in wording, no citation either way
- 2024Privacy-Preserving Retrieval-Augmented Generation with Differential Privacy
- 2026Differentially Private Retrieval-Augmented Generation
- 2025RAPID: Retrieval Augmented Training of Differentially Private Diffusion Models
- 2026An Efficient and Privacy-Preserving Architecture for Cross-Institutional Collaborative RAG
- 2025Private-RAG: Answering Multiple Queries with LLMs while Keeping Your Data Private
- 2024DP-RDM: Adapting Diffusion Models to Private Domains Without Fine-Tuning
- 2025Dual-Priv Pruning : Efficient Differential Private Fine-Tuning in Multimodal Large Language Models
- 2025Differentially Private Synthetic Text Generation for Retrieval-Augmented Generation (RAG)