Towards Infinite-Long Prefix in Transformer
Not on the map. Why?
Abstract (arXiv)
Prompting and context-based fine-tuning methods, which we call Prefix Learning, have been proposed to enhance the performance of language models on various downstream tasks. They are empirically efficient and effective, matching the performance of full parameter fine-tuning, but the theoretical understandings are limited. In this paper, we aim to address this limitation by studying their ability from the perspective of prefix length. In particular, we provide a convergence guarantee for training an ultra-long prefix in a stylized setting using the Neural Tangent Kernel (NTK) framework. Based on this strong theoretical guarantee, we design and implement an algorithm that only needs to introduce and fine-tune a few extra trainable parameters instead of an infinite-long prefix in each layer of a transformer, and can approximate the prefix attention to a guaranteed polynomial-small error. Preliminary experimental results on vision, natural language, and math data show that our method achieves superior or competitive performance compared to existing methods like full parameters fine-tuning, P-Tuning V2, and LoRA. This demonstrates our method is promising for parameter-efficient fine-tuning. Our code can be found at urlhttps://github.com/ChristianYang37/chiwun/tree/main/src/NTK-Attention.
Key facts. Cited by 10 papers in the map (data through 13 Oct 2026). Builds on 54 of its 139 references that are in the map. First posted on arXiv 20 Jun 2024.
Builds on
54 of 139 references.
References · 54
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,304
- 2014Adam: A Method for Stochastic Optimizationcited by 37,093
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,043
- 2023GPT-4 Technical Reportcited by 18,278
- 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,321
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,231
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,072
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,322
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,979
- 2020Measuring Massive Multitask Language Understandingcited by 7,876
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,657
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,898
38 more
- 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,785
- 2016Gaussian Error Linear Units (GELUs)cited by 3,472
- 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,586
- 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,229
- 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,215
- 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,196
- 2020Don't Stop Pretraining: Adapt Language Models to Domains and Taskscited by 1,556
- 2023Video-ChatGPT: Towards Detailed Video Understanding via Large Vision and Language Modelscited by 1,052
- 2022GLM-130B: An Open Bilingual Pre-trained Modelcited by 841
- 2023MetaMath: Bootstrap Your Own Mathematical Questions for Large Language Modelscited by 730
- 2022A Survey on In-context Learningcited by 719
- 2021P-Tuning v2: Prompt Tuning Can Be Comparable to Fine-tuning Universally Across Scales and Taskscited by 687
- 2018Gradient Descent Provably Optimizes Over-parameterized Neural Networkscited by 658
- 2015Empirical Evaluation of Rectified Activations in Convolutional Networkcited by 517
- 2023Active Retrieval Augmented Generationcited by 510
- 2023Text-to-image Diffusion Models in Generative AI: A Surveycited by 265
- 2019Transformer Dissection: A Unified Understanding of Transformer's Attention via the Lens of Kernelcited by 211
- 2024Many-Shot In-Context Learningcited by 205
- 2021OpenPrompt: An Open-source Framework for Prompt-learningcited by 148
- 2023Multitask Prompt Tuning Enables Parameter-Efficient Transfer Learningcited by 115
- 2023The Expressive Power of Low-Rank Adaptationcited by 101
- 2020The Recurrent Neural Tangent Kernelcited by 67
- 2019Quadratic Suffices for Over-parametrization via Matrix Chernoff Boundcited by 59
- 2023A Short Survey of Viewing Large Language Models in Legal Aspectcited by 51
- 2023Attention Scheme Inspired Softmax Regressioncited by 49
- 2018Deep Learning using Rectified Linear Units (ReLU)cited by 45
- 2023An Over-parameterized Exponential Regressioncited by 45
- 2023PolySketchFormer: Fast Transformers via Sketching Polynomial Kernelscited by 33
- 2024Conv-Basis: A New Paradigm for Efficient Attention Inference and Gradient Computation in Transformerscited by 32
- 2024Computational Limits of Low-Rank Adaptation (LoRA) Fine-Tuning for Transformer Modelscited by 31
- 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 30
- 2024Prompting a Pretrained Transformer Can Be a Universal Approximatorcited by 25
- 2024Fourier Circuits in Neural Networks and Transformers: A Case Study of Modular Arithmetic with Multiple Inputscited by 22
- 2024Do Efficient Transformers Really Save Computation?cited by 20
- 2024How Sparse Attention Approximates Exact Attention? Your Attention is Naturally nC-Sparsecited by 16
- 2024Exploring the Frontiers of Softmax: Provable Optimization, Applications in Diffusion Model, and Beyondcited by 15
- 2023Baize: An Open-Source Chat Model with Parameter-Efficient Tuning on Self-Chat Datacited by 13
50 most cited of 54 All 54 (JSON)
Built on by
Citing papers per year: 2024: 8; 2025: 2.
10 papers.
- 2024Do Large Language Models Have Compositional Ability? An Investigation into Limitations and Scalabilitycited by 40
- 2024Multi-Layer Transformers Gradient Can be Approximated in Almost Linear Timecited by 22
- 2024Bypassing the Exponential Dependency: Looped Transformers Efficiently Learn In-context by Multi-step Gradient Descentcited by 21
- 2024HSR-Enhanced Sparse Attention Accelerationcited by 19
- 2024Differential Privacy Mechanisms in Neural Tangent Kernel Regressioncited by 14
- 2024Provable Differentially Private Computation of the Cross-Attention Mechanismcited by 14
- 2025Video Latent Flow Matching: Optimal Polynomial Projections for Video Interpolation and Extrapolationcited by 11
- 2024Advancing the Understanding of Fixed Point Iterations in Deep Neural Networks: A Detailed Analytical Studycited by 4
- 2024Unlocking the Theory Behind Scaling 1-Bit Neural Networkscited by 4
- 2025Neural Algorithmic Reasoning for Hypergraphs with Looped Transformerscited by 4
- 2025Video Latent Flow Matching: Optimal Polynomial Projections for Video Interpolation and Extrapolation1 Feb 2025
- 2025Neural Algorithmic Reasoning for Hypergraphs with Looped Transformers18 Jan 2025
- 2024Unlocking the Theory Behind Scaling 1-Bit Neural Networks3 Nov 2024
- 2024Advancing the Understanding of Fixed Point Iterations in Deep Neural Networks: A Detailed Analytical Study15 Oct 2024
- 2024Bypassing the Exponential Dependency: Looped Transformers Efficiently Learn In-context by Multi-step Gradient Descent15 Oct 2024
- 2024HSR-Enhanced Sparse Attention Acceleration14 Oct 2024
- 2024Multi-Layer Transformers Gradient Can be Approximated in Almost Linear Time23 Aug 2024
- 2024Do Large Language Models Have Compositional Ability? An Investigation into Limitations and Scalability22 Jul 2024
- 2024Provable Differentially Private Computation of the Cross-Attention Mechanism20 Jul 2024
- 2024Differential Privacy Mechanisms in Neural Tangent Kernel Regression18 Jul 2024