mlsanityData to 7 Oct 2026

HARP: Hesitation-Aware Reframing in Transformer Inference Pass

arXiv 2412.07282 ↗First posted 10 Dec 2024cs.CL cs.AI cs.LGcited by 2

Not on the map. Why?

Abstract (arXiv)

This paper aims to improve the performance of large language models by addressing the variable computational demands in inference steps, where some tokens require more computational resources than others. We present HARP, a simple modification to "off-the-shelf" Transformer forward pass. Drawing from hesitation and the framing effect in decision-making, HARP selectively applies additional computation when the model encounters uncertainty during token generation. Our method mimics human cognitive processes by pausing at difficult decision points and reframing inputs for a different perspective. Unlike other approaches, HARP is model-agnostic, training-free, and easy to implement. We evaluate our method across various downstream tasks and model sizes, demonstrating performance improvements up to +5.16%. Notably, HARP achieves these gains while maintaining inference times twice faster than beam search. Simple and yet with significant gains, HARP provides insights into the potential of adaptive computation for enhancing the performance of Transformer-based language models.

Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 25 of its 40 references that are in the map. First posted on arXiv 10 Dec 2024.

Builds on

25 of 40 references.

References · 25

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2024The Llama 3 Herd of Modelscited by 14,192
  4. 2021Training Verifiers to Solve Math Word Problemscited by 9,743
  5. 2020Measuring Massive Multitask Language Understandingcited by 7,768
  6. 2017Deep reinforcement learning from human preferencescited by 3,846
  7. 2024Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phonecited by 1,883
  8. 2018CommonsenseQA: A Question Answering Challenge Targeting Commonsense Knowledgecited by 1,793
  9. 2024MMLU-Pro: A More Robust and Challenging Multi-Task Language Understanding Benchmarkcited by 1,758
  10. 2022Fast Inference from Transformers via Speculative Decodingcited by 1,615
  11. 2016Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translationcited by 1,471
  12. 2023Accelerating Large Language Model Decoding with Speculative Samplingcited by 975
13 more
  1. 2016The LAMBADA dataset: Word prediction requiring a broad discourse contextcited by 960
  2. 2016Abstractive Text Summarization Using Sequence-to-Sequence RNNs and Beyondcited by 809
  3. 2016Adaptive Computation Time for Recurrent Neural Networkscited by 479
  4. 2024LayerSkip: Enabling Early Exit Inference and Self-Speculative Decodingcited by 302
  5. 2024Quiet-STaR: Language Models Can Teach Themselves to Think Before Speakingcited by 292
  6. 2023Think before you speak: Training Language Models With Pause Tokenscited by 254
  7. 2024V-STaR: Training Verifiers for Self-Taught Reasonerscited by 214
  8. 2013A Survey on Multi-view Learningcited by 152
  9. 2024A Thorough Examination of Decoding Methods in the Era of LLMscited by 112
  10. 2024STaR-GATE: Teaching Language Models to Ask Clarifying Questionscited by 99
  11. 2024Hallucination Detection in LLMs: Fast and Memory-Efficient Fine-Tuned Modelscited by 15
  12. 2022A Call for Clarity in Beam Search: How It Works and When It Stopscited by 10
  13. 2024SED: Self-Evaluation Decoding Enhances Large Language Models for Better Generationcited by 5

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 1; 2026: 1.

2 papers.