Skip to content
matol-16Public

About

Code base for *DENOISING HIERARCHICAL REPRESENTATIONS: JOINT CONTINUOUS DIFFUSION FOR LANGUAGE MODELIN* by M. Ollu and N. Komodakis

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hierarchical Continuous Diffusion Language Models

Mathias Ollu1,2  ·  Nikos Komodakis2,3,4
1Ecole Polytechnique   2Archimedes, Athena RC   3University of Crete   4IACM-Forth

arXiv:2610.08738

H-CoBit vs CoBit: compute saving and relative quality gain on LM1B, OpenWebText and GSM8K

Better generations for less compute. For each dataset, (left) the compute H-CoBit needs to match/surpass CoBit's best results, relative to CoBit's own cost; (right) the quality gain for optimal samplers. Gen-PPL is read at dataset entropy, GSM8K reports accuracy. LM1B is not budget-matched (CoBit 1M steps vs H-CoBit 600k).

Overview

We introduce Hierarchical Continuous Diffusion Language Models (H-CDLMs), a simple framework that improves continuous diffusion language models with minimal compute and parameter overhead. We diffuse multiple modalities in parallel, representing tokens at different semantic granularities: the tokens themselves, and coarser clusters obtained by clustering pretrained token embeddings. Both modalities are jointly diffused and denoised by a single model, and samplers and noise schedules can be set per modality.

  • H-CoBit applies the framework to CoBit. At dataset entropy, it reaches a generative perplexity (GenPPL) of 49.4 on LM1B and 50.4 on OpenWebText, improving on the baseline by 24.2 and 20.7 points, and improves MAUVE on both. On GSM8K, it reaches 27.4% accuracy, outperforming prior continuous diffusion and flow-based models.
  • H-FLM applies the framework to the flow matching model FLM, with consistent gains over FLM, showing that the framework generalizes across continuous generative paradigms.

Results

GenPPL (GPT-2 Large) at dataset entropy $H$.

Model LM1B steps NFE $H$ GenPPL ↓ OWT steps NFE $H$ GenPPL ↓
CoBit-S 1M 128 4.34 85.2 750k 256 5.46 83.2
H-CoBit 600k 256 4.34 57.3 750k 128 5.45 67.8
CoBit-S, $s_\text{noise}=1.05$ 1M 256 4.34 73.6 750k 256 5.46 71.1
H-CoBit + per-modality sampler 600k 512 4.34 49.4 750k 256 5.46 50.4

GSM8K accuracy, trained on TinyGSM.

Model NFE Acc. (%)
CoBit-S 512 23.4
CoBit-S 1024 25.4
H-CoBit ($n=16$) 512 27.4

Code

  • hcobit/: training and evaluation of H-CoBit and CoBit-S, with checkpoints and the paper's results (Tables 1, 2 and 11, Figure 4).
  • hflm/: H-FLM, coming soon.

The H-CoBit checkpoints are on Hugging Face at matol-16/hcdlm, and the CoBit-S baselines are CoBit's own release, gbatzolis/CoBit. To download them and reproduce a headline number:

cd hcobit
python scripts/prepare_data.py lm1b                                       # after the setup in hcobit/README.md
python scripts/download_checkpoints.py                                  # -> hcobit/checkpoints/
python evaluate.py genppl lm1b hcobit_pms --nfe 512 --gamma 0.3          # Table 1: GenPPL 49.4 at H = 4.34

The commands for every result are in hcobit/README.md.

Acknowledgements

This work builds on CoBit (Batzolis et al., 2026) and FLM (Lee et al., 2026). Cluster maps are computed from the pretrained token embeddings of LangFlow (LM1B, OpenWebText) and S-FLM (TinyGSM); hcobit/README.md shows how to rebuild them.

License

This repository is released under the MIT License. Code derived from CoBit keeps its original MIT notice, and code derived from FLM keeps its original Apache-2.0 license.

Citation

@misc{ollu2026denoisinghierarchicalrepresentationsjoint,
      title={Denoising Hierarchical Representations: Joint Continuous Diffusion for Language Modeling},
      author={Mathias Ollu and Nikos Komodakis},
      year={2026},
      eprint={2610.08738},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2610.08738},
}

About

Code base for *DENOISING HIERARCHICAL REPRESENTATIONS: JOINT CONTINUOUS DIFFUSION FOR LANGUAGE MODELIN* by M. Ollu and N. Komodakis

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages