Iterative Forward Tuning Boosts In-Context Learning in Language Models
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
- 2017Attention Is All You Needcited by 59,932
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023GPT-4 Technical Reportcited by 18,132
- 2020Measuring Massive Multitask Language Understandingcited by 7,768
- 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,482
- 2016Layer Normalizationcited by 5,579
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
- 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,747
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
32 more
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,317
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
- 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,114
- 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,970
- 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,968
- 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,734
- 2019SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systemscited by 1,718
- 2021What Makes Good In-Context Examples for GPT-3?cited by 1,184
- 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,122
- 2022Measuring and Narrowing the Compositionality Gap in Language Modelscited by 1,054
- 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 915
- 2022GPT-NeoX-20B: An Open-Source Autoregressive Language Modelcited by 711
- 2022Automatic Chain of Thought Prompting in Large Language Modelscited by 684
- 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 667
- 2022Towards Reasoning in Large Language Models: A Surveycited by 593
- 2023Chameleon: Plug-and-Play Compositional Reasoning with Large Language Modelscited by 352
- 2019Selection via Proxy: Efficient Data Selection for Deep Learningcited by 337
- 2021GRAD-MATCH: Gradient Matching based Data Subset Selection for Efficient Deep Model Trainingcited by 269
- 2022Black-Box Tuning for Language-Model-as-a-Servicecited by 254
- 2022Reasoning with Language Model Prompting: A Surveycited by 251
- 2019QASC: A Dataset for Question Answering via Sentence Compositioncited by 248
- 2022Why Can GPT Learn In-Context? Language Models Implicitly Perform Gradient Descent as Meta-Optimizerscited by 204
- 2023Large Language Models are Versatile Decomposers: Decompose Evidence and Questions for Table-based Reasoningcited by 177
- 2021Noisy Channel Language Model Prompting for Few-Shot Text Classificationcited by 163
- 2022Self-Adaptive In-Context Learning: An Information Compression Perspective for In-Context Example Selection and Orderingcited by 158
- 2021Active Learning by Acquiring Contrastive Examplescited by 154
- 2023Large Language Models Are Latent Variable Models: Explaining and Finding Good Demonstrations for In-Context Learningcited by 149
- 2021Can You Learn an Algorithm? Generalizing from Easy to Hard Problems with Recurrent Networkscited by 108
- 2023Finding Support Examples for In-Context Learningcited by 104
- 2022Structured Prompting: Scaling In-Context Learning to 1,000 Examplescited by 81
- 2022The Dual Form of Neural Networks Revisited: Connecting Test Time Predictions to Training Patterns via Spotlights of Attentioncited by 45
- 2013Submodular Optimization with Submodular Cover and Submodular Knapsack Constraintscited by 40
Built on by
Citing papers per year: 2023: 3; 2024: 8; 2025: 4.
15 papers.
Sort:
By area:
- 2023Fine-Tuning Language Models with Just Forward Passescited by 337
- 2023In-context Vectors: Making In Context Learning More Effective and Controllable Through Latent Space Steeringcited by 240
- 2023One-Shot Learning as Instruction Data Prospector for Large Language Modelscited by 43
- 2024Adaptive In-conversation Team Building for Language Model Agentscited by 38
- 2024Scaling Data Diversity for Fine-Tuning Language Models in Human Alignmentcited by 25
- 2025A Survey of Slow Thinking-based Reasoning LLMs using Reinforced Learning and Inference-time Scaling Lawcited by 18
- 2024Tapilot-Crossing: Benchmarking and Evolving LLMs Towards Interactive Data Analysis Agentscited by 17
- 2024In-Context Learning State Vector with Inner and Momentum Optimizationcited by 15
- 2024ICLEval: Evaluating In-Context Learning Ability of Large Language Modelscited by 12
- 2025ContextNav: Towards Agentic Multimodal In-Context Learningcited by 9
- 2024ICDPO: Effectively Borrowing Alignment Capability of Others via In-context Direct Preference Optimizationcited by 6
- 2024Self-Instructed Derived Prompt Generation Meets In-Context Learning: Unlocking New Potential of Black-Box LLMscited by 5
3 more
- 2025Teaching LLMs According to Their Aptitude: Adaptive Reasoning for Mathematical Problem Solvingcited by 4
- 2024How does Multi-Task Training Affect Transformer In-Context Capabilities? Investigations with Function Classescited by 2
- 2025Efficient Knowledge Feeding to Language Models: A Novel Integrated Encoder-Decoder Architecturecited by 0
- 2025ContextNav: Towards Agentic Multimodal In-Context Learning6 Oct 2025
- 2025A Survey of Slow Thinking-based Reasoning LLMs using Reinforced Learning and Inference-time Scaling Law5 May 2025
- 2025Teaching LLMs According to Their Aptitude: Adaptive Reasoning for Mathematical Problem Solving17 Feb 2025
- 2025Efficient Knowledge Feeding to Language Models: A Novel Integrated Encoder-Decoder Architecture7 Feb 2025
- 2024Self-Instructed Derived Prompt Generation Meets In-Context Learning: Unlocking New Potential of Black-Box LLMs3 Sep 2024
- 2024ICLEval: Evaluating In-Context Learning Ability of Large Language Models21 Jun 2024
- 2024Adaptive In-conversation Team Building for Language Model Agents29 May 2024
- 2024In-Context Learning State Vector with Inner and Momentum Optimization17 Apr 2024
- 2024How does Multi-Task Training Affect Transformer In-Context Capabilities? Investigations with Function Classes4 Apr 2024
- 2024Scaling Data Diversity for Fine-Tuning Language Models in Human Alignment17 Mar 2024
- 2024Tapilot-Crossing: Benchmarking and Evolving LLMs Towards Interactive Data Analysis Agents8 Mar 2024
- 2024ICDPO: Effectively Borrowing Alignment Capability of Others via In-context Direct Preference Optimization14 Feb 2024
- 2023Fine-Tuning Language Models with Just Forward Passescited by 337
- 2023In-context Vectors: Making In Context Learning More Effective and Controllable Through Latent Space Steeringcited by 240
- 2023One-Shot Learning as Instruction Data Prospector for Large Language Modelscited by 43
- 2024In-Context Learning State Vector with Inner and Momentum Optimizationcited by 15
- 2024ICLEval: Evaluating In-Context Learning Ability of Large Language Modelscited by 12
- 2024How does Multi-Task Training Affect Transformer In-Context Capabilities? Investigations with Function Classescited by 2
- 2024ICLEval: Evaluating In-Context Learning Ability of Large Language Models21 Jun 2024
- 2024In-Context Learning State Vector with Inner and Momentum Optimization17 Apr 2024
- 2024How does Multi-Task Training Affect Transformer In-Context Capabilities? Investigations with Function Classes4 Apr 2024
- 2023One-Shot Learning as Instruction Data Prospector for Large Language Models16 Dec 2023
- 2023In-context Vectors: Making In Context Learning More Effective and Controllable Through Latent Space Steering11 Nov 2023
- 2023Fine-Tuning Language Models with Just Forward Passes27 May 2023