HARP improves LLM performance by adding extra computation only when needed, mimicking how humans pause to think during difficult decisions.
https://arxiv.org/abs/2412.07282v1
π€ Original Problem:
LLMs use the same computational resources for every token generation, regardless of difficulty. This wastes resources on easy tokens while potentially underserving complex ones.
π‘ Solution in this Paper:
β HARP modifies the Transformer's forward pass to detect uncertainty during token generation.
β When uncertainty is high, it applies dropout to the embeddings to get a different perspective on the input.
β The model combines logits from both the original and reframed perspectives for better token prediction.
β This mimics human cognitive processes of hesitation and reframing when faced with difficult decisions.
π Key Insights:
β Token-level uncertainty effectively identifies when additional computation is needed
β One additional reframing perspective is optimal - more reframings can hurt performance
β The method requires no training or model modifications
π Results:
β Performance improvements up to 5.16% across various tasks
β 2x faster inference compared to beam search
β Works across different model sizes (3B-8B parameters)










