Sketching Aims to Speed Up Context Attribution for Language Models

Paper / preprint arXiv cs.AI · Reported findings, not independently verified by us.

A new research paper describes a sketching algorithm intended to estimate how individual prompt tokens affect a language model’s output while using fewer model evaluations. The work studies leave-one-out attribution: measuring how the output changes when each token is removed from the prompt in turn.

Directly computing all attribution values for a prompt of n tokens takes n model evaluations. Under a stability assumption, the authors say their method achieves error proportional to ε with constant probability using O(√log(1/ε)/ε) evaluations. They also prove a matching lower bound of the same order in an oracle model.

The technical approach applies forward differentiation to a backpropagation circuit. The authors say this reduces sketch variance and improves on the evaluation count required by a direct adaptation of earlier forward-differentiation sketches. Their experiments check the assumed coefficient decay and test the method on a small language-model retrieval task. The original paper provides the derivations and experimental results: arXiv paper.

🇬🇧 https://arxiv.org/abs/2611.17313v1

Leave a Comment

The weekly brief: selected developments, projects and videos