mlsanityData to 13 Oct 2026

Towards Infinite-Long Prefix in Transformer

arXiv 2406.14036 ↗First posted 20 Jun 2024cs.LG cs.AI cs.CLcited by 10

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

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,304
  2. 2014Adam: A Method for Stochastic Optimizationcited by 37,093
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,043
  4. 2023GPT-4 Technical Reportcited by 18,278
  5. 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,321
  6. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,231
  7. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,072
  8. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,322
  9. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,979
  10. 2020Measuring Massive Multitask Language Understandingcited by 7,876
  11. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,657
  12. 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,898
38 more
  1. 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,785
  2. 2016Gaussian Error Linear Units (GELUs)cited by 3,472
  3. 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,586
  4. 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,229
  5. 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,215
  6. 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,196
  7. 2020Don't Stop Pretraining: Adapt Language Models to Domains and Taskscited by 1,556
  8. 2023Video-ChatGPT: Towards Detailed Video Understanding via Large Vision and Language Modelscited by 1,052
  9. 2022GLM-130B: An Open Bilingual Pre-trained Modelcited by 841
  10. 2023MetaMath: Bootstrap Your Own Mathematical Questions for Large Language Modelscited by 730
  11. 2022A Survey on In-context Learningcited by 719
  12. 2021P-Tuning v2: Prompt Tuning Can Be Comparable to Fine-tuning Universally Across Scales and Taskscited by 687
  13. 2018Gradient Descent Provably Optimizes Over-parameterized Neural Networkscited by 658
  14. 2015Empirical Evaluation of Rectified Activations in Convolutional Networkcited by 517
  15. 2023Active Retrieval Augmented Generationcited by 510
  16. 2023Text-to-image Diffusion Models in Generative AI: A Surveycited by 265
  17. 2019Transformer Dissection: A Unified Understanding of Transformer's Attention via the Lens of Kernelcited by 211
  18. 2024Many-Shot In-Context Learningcited by 205
  19. 2021OpenPrompt: An Open-source Framework for Prompt-learningcited by 148
  20. 2023Multitask Prompt Tuning Enables Parameter-Efficient Transfer Learningcited by 115
  21. 2023The Expressive Power of Low-Rank Adaptationcited by 101
  22. 2020The Recurrent Neural Tangent Kernelcited by 67
  23. 2019Quadratic Suffices for Over-parametrization via Matrix Chernoff Boundcited by 59
  24. 2023A Short Survey of Viewing Large Language Models in Legal Aspectcited by 51
  25. 2023Attention Scheme Inspired Softmax Regressioncited by 49
  26. 2018Deep Learning using Rectified Linear Units (ReLU)cited by 45
  27. 2023An Over-parameterized Exponential Regressioncited by 45
  28. 2023PolySketchFormer: Fast Transformers via Sketching Polynomial Kernelscited by 33
  29. 2024Conv-Basis: A New Paradigm for Efficient Attention Inference and Gradient Computation in Transformerscited by 32
  30. 2024Computational Limits of Low-Rank Adaptation (LoRA) Fine-Tuning for Transformer Modelscited by 31
  31. 2024The Fine-Grained Complexity of Gradient Computation for Training Large Language Modelscited by 30
  32. 2024Training Tensor Attention Efficiently: From Cubic to Almost Linear Timecited by 30
  33. 2024Prompting a Pretrained Transformer Can Be a Universal Approximatorcited by 25
  34. 2024Fourier Circuits in Neural Networks and Transformers: A Case Study of Modular Arithmetic with Multiple Inputscited by 22
  35. 2024Do Efficient Transformers Really Save Computation?cited by 20
  36. 2024How Sparse Attention Approximates Exact Attention? Your Attention is Naturally nC-Sparsecited by 16
  37. 2024Exploring the Frontiers of Softmax: Provable Optimization, Applications in Diffusion Model, and Beyondcited by 15
  38. 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

Cited by year

Citing papers per year: 2024: 8; 2025: 2.

10 papers.