Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
41 tokens/sec
GPT-4o
60 tokens/sec
Gemini 2.5 Pro Pro
44 tokens/sec
o3 Pro
8 tokens/sec
GPT-4.1 Pro
50 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

Iterative Forward Tuning Boosts In-Context Learning in Language Models (2305.13016v3)

Published 22 May 2023 in cs.CL

Abstract: Despite the advancements in in-context learning (ICL) for 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.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (8)
  1. Binyuan Hui (57 papers)
  2. Min Yang (239 papers)
  3. Binhua Li (30 papers)
  4. Fei Huang (408 papers)
  5. Yongbin Li (128 papers)
  6. Jiaxi yang (31 papers)
  7. Bailin Wang (34 papers)
  8. Bowen Li (166 papers)
Citations (12)