CoBit: Language Modeling with Bitstream Diffusion

Georgios Batzolis, Mark Girolami, Luca Ambrogioni

TL;DR

CoBit (Continuous Bitstream Diffusion) bridges the performance gap between non-sequential diffusion language models and traditional autoregressive models by diffusing over fixed-width binary bitstreams instead of token embeddings. By replacing the standard $O(V)$ vocabulary output head with an $O(\log V)$ bitwise head and utilizing an entropy-gated stochastic sampler, CoBit achieves state-of-the-art text generation quality while drastically reducing memory footprint and boosting training throughput.

What Problem Does This Paper Address?

Autoregressive (AR) language models like GPT dominate text generation because they scale reliably, but their token-by-token generation mechanism is inherently sequential and slow. Diffusion Language Models (DLMs) offer a parallel alternative, refining all positions in a text sequence simultaneously.

However, DLMs have historically suffered from a "quality-diversity gap": they either produce low-quality samples or suffer from sample entropy collapse, where the model over-generates "safe," highly frequent tokens to achieve low perplexity. Furthermore, standard DLMs face a severe vocabulary bottleneck. They require output layers that scale linearly with the vocabulary size $O(V)$, which becomes a massive computational and memory drain as vocabularies grow to support multilingual and multimodal tokens. CoBit addresses both the generation quality gap and the vocabulary scaling bottleneck.

Methods

CoBit introduces a novel framework for continuous diffusion over discrete text by encoding tokens as bitstreams:

  1. Bitstream Representation & Semantic Patching: A sequence of $T$ semantic tokens is encoded into fixed-width binary bits. To prevent the sequence length from exploding to $T \times m$ (where $m = \lceil\log_2 V\rceil$), CoBit groups the bits of each token into a single "patch." This preserves the semantic context length $T$ within the Transformer trunk while reducing the vocabulary classifier to a compact $O(\log V)$ bitwise head.
  2. Matched-Filter Residual Parameterization: Because the posterior distribution of an isolated bit under Gaussian noise has a known closed-form solution, the authors design the network to analytically compute this independent-bit posterior. The neural network (a Sequence Diffusion Transformer) only has to predict the contextual residual, allowing it to focus entirely on learning language semantics rather than basic bit-level noise.
  3. Entropy-Gated Stochastic Sampler: Deterministic samplers often over-contract, leading to low-diversity text. CoBit employs an EDM-style stochastic sampler where Langevin-type corrections are gated by an online-estimated entropy-rate profile. This automatically concentrates stochasticity in high-information regions where bit uncertainty is actively being resolved, while remaining nearly deterministic elsewhere.
Figure 1: End-to-end CoBit architecture. Text is encoded into a Tm-length bitstream and corrupted via Gaussian noise. The diffused bits xσ are patched into semantic groups and processed by a length-T Transformer trunk. In parallel with the trunk, a skip connection routes the raw noisy bits directly to the head, where a contextual residual is combined with the analytic matched filter to produce bit-level logits.

Datasets

The authors trained and evaluated CoBit on two standard language modeling benchmarks:

  • One Billion Word Benchmark (LM1B): Packed into 128-token blocks using a 15-bit representation based on the bert-base-uncased tokenizer.
  • OpenWebText (OWT): Processed into 1024-token blocks and mapped through a reversible 16-bit codec (gpt2id_bpe16) to maintain compatibility with the GPT-2 tokenizer.

Key Insights and Ideas

  • Continuous Bit-Space Beats One-Hot Embeddings: Language generation doesn't strictly require discrete diffusion. Continuous diffusion over a compact, structured coordinate system (like bitstreams) can be highly effective and bypasses the geometric complexities of diffusing over high-dimensional one-hot token embeddings.
  • Don't Relearn Local Noise: Factoring out independent-bit posteriors via the matched-filter parameterization acts as a powerful inductive bias. It prevents the model from wasting capacity relearning local Gaussian denoising, freeing up parameters for contextual language modeling.
  • Stochasticity Needs Gating: Injecting uniform noise during sampling degrades quality. Gating the stochastic churn based on the entropy rate ensures that the effective Langevin correction is strongest precisely when and where token identities are actively being decided.
  • Logarithmic Vocabulary Scaling: Shifting from token-space to bit-space changes vocabulary scaling from linear $O(V)$ to logarithmic $O(\log V)$, offering a highly scalable paradigm for future large-scale unified vocabularies (e.g., combining text, images, and audio).

Key Results

CoBit demonstrates significant improvements in both generation quality and computational efficiency:

  • Quality & Diversity: On LM1B, the 130M-parameter CoBit model achieved a generative perplexity (GenPPL) of 59.76 at a matched real-data entropy of 4.31 using 256 neural function evaluations (NFEs), matching the quality regime of autoregressive references. On OpenWebText, scaling to a 462M-parameter model (CoBit-M) achieved a GenPPL of 19.5 near real-data entropy, dominating prior continuous and discrete DLM baselines and approaching pretrained GPT-2 Medium nucleus sampling.
Main single-point comparison table
  • Computational Efficiency: Thanks to the $O(\log V)$ bitwise head, CoBit yields massive systems-level savings. At OpenWebText scale ($V=65,536$), CoBit achieved a 3.3× higher training throughput and a 19× reduction in generation memory compared to a matched token-space baseline.

Limitations and Future Work

  • Scale Verification: The authors evaluated CoBit up to 462M parameters. It remains future work to verify if these architectural and sampling gains persist at the multi-billion-parameter scale of modern frontier models.
  • Inference Latency: Although generation is parallel, diffusion language models still require multiple iterative denoising steps (e.g., 256 NFEs). This makes CoBit computationally more expensive at inference time than autoregressive models utilizing KV-caching. The authors note that future work in distillation, caching, or consistency-based generation will be essential to make DLMs competitive in latency-sensitive settings.

Summary updated

BibTeX
@inproceedings{batzolis2026cobit,
  author = {Georgios Batzolis and Mark Girolami and Luca Ambrogioni},
  title = {{CoBit: Language Modeling with Bitstream Diffusion}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=WvVrxnsb7c},
}
Figure