Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Simplifying the Modeling of Arbitrary Conditionals in Natural Language

About

Causal Transformers model sequences through an autoregressive factorization of the joint distribution, which enables efficient left-to-right decoding and conditional likelihood computation. However, they cannot tractably sample from or evaluate arbitrary conditionals -- e.g., a block of text conditioned on past and future tokens. Recent work aims to solve this problem through novel architectures, but they often lead to sub-optimal modeling of such conditionals and degraded generations. We propose Arbitrary Conditionals GPT (AC-GPT) which introduces a simple modification to standard causal Transformers to enable evaluating and sampling from arbitrary conditionals -- including past, future, and mixed contexts -- within a single forward pass. Unlike prior approaches, our method preserves the standard left-to-right ordering and next-token prediction objective essential for both strong performance and efficient training on natural language. Crucially, this compatibility allows existing LLMs to be fine-tuned for arbitrary conditioning. Our empirical results indicate that our method outperforms baselines on modeling arbitrary conditionals, without degrading standard left-to-right performance.

Yinhan Lu, Eric Elmoznino, L\'eo Gagnon, Sarthak Mittal, Tejas Kasetty, Guillaume Lajoie• 2026

Related benchmarks

TaskDatasetResultRank
Likelihood EvaluationFineWeb sample-10BT (train)
Likelihood24.06
7
Unconditional Text GenerationFineWeb sample-10BT
MAUVE0.893
7
Text InfillingFineWeb sample-10BT
MAUVE Score93.4
7
Infilling Likelihood EvaluationFineWeb sample-10BT
Likelihood27.7
7
Training Distribution Generation (no future)FineWeb sample-10BT
MAUVE0.337
4
Unconditional Likelihood EvaluationFineWeb sample-10BT
Likelihood28.79
4
Showing 6 of 6 rows

Other info

Follow for update