HARP: Hesitation-Aware Reframing in Transformer Inference Pass

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Storaï, Romain, Hwang, Seung-won
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866916756025507840
author Storaï, Romain
Hwang, Seung-won
author_facet Storaï, Romain
Hwang, Seung-won
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2412_07282
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle HARP: Hesitation-Aware Reframing in Transformer Inference Pass
Storaï, Romain
Hwang, Seung-won
Computation and Language
Artificial Intelligence
Machine Learning
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.
title HARP: Hesitation-Aware Reframing in Transformer Inference Pass
topic Computation and Language
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2412.07282