σ-GPTs: A New Approach to Autoregressive Models
Arnaud Pannatier, Evann Courdier, François Fleuret
TL;DR
Sigma-GPT introduces shuffled autoregression by training a Transformer on randomly permuted sequences and augmenting it with dual positional encodings, enabling on-demand control of generation order. The approach supports conditional density estimation, infilling, and token-based rejection sampling to generate sequences in bursts with a dynamically varying number of steps. Across language modeling, maze path solving, and aircraft vertical-rate prediction, sigma-GPT shows competitive performance with left-to-right GPT and advantages over diffusion baselines in several settings, while incurring higher training complexity. The work demonstrates that order-agnostic generation yields practical benefits for conditioning and rapid sampling, with a clear impact on tasks requiring flexible inference and efficient generation pipelines.
Abstract
Autoregressive models, such as the GPT family, use a fixed order, usually left-to-right, to generate sequences. However, this is not a necessity. In this paper, we challenge this assumption and show that by simply adding a positional encoding for the output, this order can be modulated on-the-fly per-sample which offers key advantageous properties. It allows for the sampling of and conditioning on arbitrary subsets of tokens, and it also allows sampling in one shot multiple tokens dynamically according to a rejection strategy, leading to a sub-linear number of model evaluations. We evaluate our method across various domains, including language modeling, path-solving, and aircraft vertical rate prediction, decreasing the number of steps required for generation by an order of magnitude.
