potentialpaper

Learning Tractable Distributions of Language Model Continuations

Gwen Yidou-Weng, Ian Li, Anji Liu, Oliver Broadrick, Guy Van den Broeck, Benjie Wang

ICLR 2026 submission

Edit this page

Or clone it with git

The page gets its repository with its first edit, so start in the web editor.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

Abstract. Controlled language generation is the task of generating text conditional on some constraint: for example, valid syntax, or alignment to human values. A fundamental challenge is that these constraints may depend on future tokens, which standard autoregressive language models (LM) cannot readily account for. Prior work has tackled this problem by modeling future completions using a tractable probabilistic circuit as a surrogate model that aims to approximate the distribution over future completions, which is used to adjust the LM logits at decoding time. However, we surprisingly find that their distribution over future tokens is often insensitive to the past context, limiting their effectiveness in controlling LMs. By viewing tractable probabilistic circuits as latent variable models, we show via theoretical and empirical analysis that this can be largely attributed to the suboptimal context encoder used in these models. In this paper, we overcome this limitation by utilizing a separate, more powerful neural language model encoder. Building on this, we propose an efficient decoding-time controller that reuses the same language model used for generation to encode a context-rich prior over the latent states, while the tractable surrogate performs exact future lookahead from the conditioned state. Importantly, we show how this can be done without incurring significant decoding-time overhead. Experiments across diverse controlled generation tasks demonstrate significant improvements over prior approaches in terms of constraint satisfaction and perplexity of generations.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

add · history

No versions are recorded yet: its preprint, the venues it went to and what they decided, the camera-ready. Missing a version?

We don't know of a submission of this paper to a venue with open reviews. Missing a submission?

Loading the discussion…