mlsanityData to 7 Oct 2026

Iterative Forward Tuning Boosts In-Context Learning in Language Models

arXiv 2305.13016 ↗First posted 22 May 2023cs.CLcited by 15

Not on the map. Why?

Abstract (arXiv)

Despite the advancements in in-context learning (ICL) for large language models (LLMs), current research centers on specific prompt engineering, such as demonstration selection, with the expectation that a single iteration of demonstrations processing can generalize effectively to a given test sample. However, this perspective overlooks the potential benefits derived from multiple iterations involving demonstrations, a practice aligning more closely with the iterative decision-making process exhibited by humans, who often learn through analogy. In this study, we introduce a novel two-stage framework to boost ICL in LLMs. Specifically, our framework delineates the ICL process into two distinct stages: Deep-Thinking and test stages. The Deep-Thinking stage incorporates a unique attention mechanism, i.e., iterative enhanced attention, which enables multiple rounds of information accumulation. This mechanism operates by manipulating the Key-Value matrices without training, fostering enhanced understanding capabilities in LLMs by thinking demonstrations multiple times. We evaluated Deep-Thinking across a range of benchmarks and LLMs, showing its superior performance over vanilla ICL methods and its effectiveness in challenging tasks where demonstration selection is infeasible.

Key facts. Cited by 15 papers in the map (data through 7 Oct 2026). Builds on 44 of its 64 references that are in the map. First posted on arXiv 22 May 2023.

Builds on

44 of 64 references.

References · 44

  1. 2017Attention Is All You Needcited by 59,932
  2. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  3. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  4. 2020Language Models are Few-Shot Learnerscited by 32,199
  5. 2023GPT-4 Technical Reportcited by 18,132
  6. 2020Measuring Massive Multitask Language Understandingcited by 7,768
  7. 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,482
  8. 2016Layer Normalizationcited by 5,579
  9. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
  10. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
  11. 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,747
  12. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
32 more
  1. 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,317
  2. 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
  3. 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,114
  4. 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,970
  5. 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,968
  6. 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,734
  7. 2019SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systemscited by 1,718
  8. 2021What Makes Good In-Context Examples for GPT-3?cited by 1,184
  9. 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,122
  10. 2022Measuring and Narrowing the Compositionality Gap in Language Modelscited by 1,054
  11. 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 915
  12. 2022GPT-NeoX-20B: An Open-Source Autoregressive Language Modelcited by 711
  13. 2022Automatic Chain of Thought Prompting in Large Language Modelscited by 684
  14. 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 667
  15. 2022Towards Reasoning in Large Language Models: A Surveycited by 593
  16. 2023Chameleon: Plug-and-Play Compositional Reasoning with Large Language Modelscited by 352
  17. 2019Selection via Proxy: Efficient Data Selection for Deep Learningcited by 337
  18. 2021GRAD-MATCH: Gradient Matching based Data Subset Selection for Efficient Deep Model Trainingcited by 269
  19. 2022Black-Box Tuning for Language-Model-as-a-Servicecited by 254
  20. 2022Reasoning with Language Model Prompting: A Surveycited by 251
  21. 2019QASC: A Dataset for Question Answering via Sentence Compositioncited by 248
  22. 2022Why Can GPT Learn In-Context? Language Models Implicitly Perform Gradient Descent as Meta-Optimizerscited by 204
  23. 2023Large Language Models are Versatile Decomposers: Decompose Evidence and Questions for Table-based Reasoningcited by 177
  24. 2021Noisy Channel Language Model Prompting for Few-Shot Text Classificationcited by 163
  25. 2022Self-Adaptive In-Context Learning: An Information Compression Perspective for In-Context Example Selection and Orderingcited by 158
  26. 2021Active Learning by Acquiring Contrastive Examplescited by 154
  27. 2023Large Language Models Are Latent Variable Models: Explaining and Finding Good Demonstrations for In-Context Learningcited by 149
  28. 2021Can You Learn an Algorithm? Generalizing from Easy to Hard Problems with Recurrent Networkscited by 108
  29. 2023Finding Support Examples for In-Context Learningcited by 104
  30. 2022Structured Prompting: Scaling In-Context Learning to 1,000 Examplescited by 81
  31. 2022The Dual Form of Neural Networks Revisited: Connecting Test Time Predictions to Training Patterns via Spotlights of Attentioncited by 45
  32. 2013Submodular Optimization with Submodular Cover and Submodular Knapsack Constraintscited by 40

Built on by

Cited by year

Citing papers per year: 2023: 3; 2024: 8; 2025: 4.

15 papers.

Sort:

By area:

  1. 2023Fine-Tuning Language Models with Just Forward Passescited by 337
  2. 2023In-context Vectors: Making In Context Learning More Effective and Controllable Through Latent Space Steeringcited by 240
  3. 2023One-Shot Learning as Instruction Data Prospector for Large Language Modelscited by 43
  4. 2024Adaptive In-conversation Team Building for Language Model Agentscited by 38
  5. 2024Scaling Data Diversity for Fine-Tuning Language Models in Human Alignmentcited by 25
  6. 2025A Survey of Slow Thinking-based Reasoning LLMs using Reinforced Learning and Inference-time Scaling Lawcited by 18
  7. 2024Tapilot-Crossing: Benchmarking and Evolving LLMs Towards Interactive Data Analysis Agentscited by 17
  8. 2024In-Context Learning State Vector with Inner and Momentum Optimizationcited by 15
  9. 2024ICLEval: Evaluating In-Context Learning Ability of Large Language Modelscited by 12
  10. 2025ContextNav: Towards Agentic Multimodal In-Context Learningcited by 9
  11. 2024ICDPO: Effectively Borrowing Alignment Capability of Others via In-context Direct Preference Optimizationcited by 6
  12. 2024Self-Instructed Derived Prompt Generation Meets In-Context Learning: Unlocking New Potential of Black-Box LLMscited by 5
3 more
  1. 2025Teaching LLMs According to Their Aptitude: Adaptive Reasoning for Mathematical Problem Solvingcited by 4
  2. 2024How does Multi-Task Training Affect Transformer In-Context Capabilities? Investigations with Function Classescited by 2
  3. 2025Efficient Knowledge Feeding to Language Models: A Novel Integrated Encoder-Decoder Architecturecited by 0