The Free Transformer
François Fleuret
TL;DR
The Free Transformer addresses limitations of purely autoregressive decoding by introducing latent conditioning through a conditional VAE for a decoder-only Transformer. It injects a latent Z into the model's middle layer and trains a lightweight encoder with a Binary Mapper to produce discrete latent codes, enabling unsupervised learning of latent structure while managing information flow with a free-bits KL objective. Empirically, Free Transformer improves performance on reasoning benchmarks for 1.5B and 8B models and shows further gains when trained on 1T tokens, all with a modest encoder overhead of roughly 3%. The approach enhances inductive bias in generation and opens avenues for more structured latent representations in large-scale autoregressive models.
Abstract
We propose an extension of the decoder Transformer that conditions its generative process on random latent variables which are learned without supervision thanks to a variational procedure. Experimental evaluations show that allowing such a conditioning translates into substantial improvements on downstream tasks.
