Skip to content

Guiding LLMs at Inference Time via Bregman Tilting

Jacob L. Block, Aryan Mokhtari, Sanjay Shakkottai

cs.LG

Abstract

We study inference-time guidance for large language models (LLMs) in iterative problem solving, where the LLM generates an attempt, receives text feedback from the environment, and tries again. While input prompting, which puts prior attempts and feedback in context, is a standard approach, it gives no control over how the LLM uses the feedback in its next attempt. Thus, we introduce Bregman tilting, which complements any input-prompting approach by directly modifying the LLM&#39;s next-token distribution. At each decoding step, it scores each token by its change in log-probability when the feedback is added to a prompt that contains the prior attempt, and updates the distribution via a mirror ascent step on the expected score, regularized by a Tsallis-entropy-based family of Bregman divergences indexed by α∈[0,1]α\in [0,1]. At α=1α= 1 this recovers the exponential tilt of prior methods, while α<1α< 1 changes the divergence geometry to discount the influence of unlikely tokens under input prompting. The resulting update damps each token&#39;s tilt by its input-prompting likelihood, and it locally improves the true correctness probability whenever the score positively covaries with correctness under the input-prompting distribution sharpened to a lower temperature. Experiments on coding and math show that Bregman tilting outperforms input prompting in every setting, while α=0α= 0 performs best, beating the exponential tilt at α=1α= 1 and highlighting the value of our framework as a whole.

Create a lesson