Pay Attention to What Matters

Pedro Luiz Silva, Antonio de Domenico, Ali Maatouk, Fadhel Ayed
9/19/2024
cs.CLcs.AI

No confident code implementation found for this paper.

Abstract

Despite the remarkable success of Large Language Models (LLMs), they still exhibit a limited capability to align their outputs to the user instructions. In this work, we introduce a simple and effective method, which we name GUIDE, that mechanistically increases attention scores in instruction tokens. To support this operation, we present Influence, a novel metric that highlights how the user's instructions propagate through the transformer layers and impact the LLM output. Our results show that GUIDE improves the accuracy of following instructions 29.4 % to 60.4%, outperforming natural prompting alternatives and Supervised Fine-Tuning up to 1M tokens.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{silva2024attention,
  title  = {Pay Attention to What Matters},
  author = {Pedro Luiz Silva and Antonio de Domenico and Ali Maatouk and Fadhel Ayed},
  year   = {2024},
  eprint = {2409.19001},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2409.19001v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2409.19001.svg)](https://codeofpaper.com/paper/2409.19001)

Discussion