> ## Content Index
> Fetch the complete content index at: https://globalfeed.ai/llms.txt
> Use this file to discover other available public pages before exploring further.

# A language model that thinks in meaning first: ByteDance's Cola2 writes ideas, then words
- URL: https://globalfeed.ai/en/a-language-model-that-thinks-in-meaning-first-bytedances-cola2-writes-ideas-then-words/
- Published: 2026-11-07T23:20:16.000Z
- Updated: 2026-11-07T23:20:16.000Z
- Description: Cola2, an open model from the University of Hong Kong and ByteDance Seed, does not write left to right; it first generates meaning as short vectors with the diffusion technique of image models. We explain how it works, how it was trained, what was tried and dropped, and how to try it.
- Author: GlobalFeed Editor
- Tags: ByteDance, Cola2, diffusion, language model, University of Hong Kong, research, Open Model, Open Source, x-ByteDance, dil-en, elle

Before you build a sentence, you roughly decide what you want to say and pick the words afterwards. Almost every language model today does the opposite: it writes left to right, one token at a time, predicting only the next piece at each step. Cola2, built by researchers at the University of Hong Kong and ByteDance Seed, tries to break that habit. It first generates the meaning of the text as short summaries made of continuous numbers, and then turns those summaries into words.

The team released the model on 6 November [on Hugging Face](https://huggingface.co/ByteDance-Seed/Cola2?ref=globalfeed.ai), with inference code, evaluation scripts and documentation [on GitHub](https://github.com/ByteDance-Seed/Cola2?ref=globalfeed.ai). The method is described in full in a 47-page [arXiv paper](https://arxiv.org/abs/2610.31305?ref=globalfeed.ai). Cola2 is not a product that will replace chat models today; it is a base model released for research. What makes it interesting is that it beats Llama-3-8B on some tests despite training on 43 times less data, and that its training is not finished.

## What generating meaning first means

Cola2 has three parts. The first is a compressor (a VAE). It splits text into meaningful spans of 1 to 8 tokens and turns each span into a single latent vector of 64 numbers. On average two tokens are represented by one vector. The model picks span boundaries itself: a score marks where the meaning shifts, and a small feedback controller keeps adjusting the threshold so the average compression rate stays on target.

The second part is a Diffusion Transformer (DiT) of about 4 billion parameters, using the diffusion technique familiar from image generators. Image models start from noise and sharpen the picture step by step; Cola2's DiT starts from noise and sharpens a block of eight latent vectors in eight steps. All positions in the block are generated together, while earlier blocks stay fixed as history.

The third part is a 36-layer decoder shaped like Qwen3-4B. It predicts how many tokens each latent vector stands for and turns the vector into actual words. Then comes a subtle but important step: the written text is compressed again and added to the history, so the next block looks at a history that matches the words actually chosen. The team calls this latent feedback. The whole model has about 8.77 billion parameters.

## How it was trained

The released model was trained on the open OLMo 2 pretraining data, retokenized with the Qwen3-4B tokenizer. The decoder and the compressor's input table were initialized from Qwen3-4B-Base, so the model did not learn language from scratch. Training ran in three stages. In stage one only the compressor and decoder trained, on 52.43 billion tokens. In stage two the DiT was added and saw another 125.83 billion tokens together with the compressor. In stage three the compressor was frozen and only the DiT kept training, on 167.77 billion tokens. The total is 346.03 billion tokens.

Two decisions are critical. First, the DiT's training signal was blocked from flowing back into the compressor. In the team's measurement, allowing it puts the model 2.2 points ahead early on, but it falls behind after 80,000 steps and ends 1 point behind at 140,000 steps. Their explanation: the DiT reshapes the latent vectors to be easier for itself to predict rather than more useful for text. The token-prediction signal still flows into the compressor, because what the vector should keep is decided by what the decoder needs.

The second decision is how the decoder is fed. During training it sees a clean vector in 20% of blocks, a noisy one in 40% and no vector at all in 40%. It learns both to follow the vector faithfully and to fill in with its own language knowledge when the vector is missing. A setting keeps that balance at inference too: the decoder guidance weight is -0.9.

## What was tried and did not work

Much of the paper is trial-and-error results, all measured on LAMBADA. Splitting text into fixed-length or random spans trailed meaning-based splitting by 8.2 and 4.4 points. With spans of up to 8 tokens allowed, dynamic splitting reached 29.4% and even beat the uncompressed model (28.7%). DLCM, an earlier method that controls compression with an extra loss term, stayed at 18.4%; the feedback controller gave 25.0%.

Some intuitions turned out wrong. A wider latent vector did not always help: accuracy of 32.3% with 64 numbers fell to 14.5% with 512, because the distribution the DiT had to learn became more complex. A bigger compressor was also worse than a small one; a four-layer layout beat every six-layer variant. A compressor that only tried to rebuild the text reached 15.7%, while one that also learned to fill in missing words rose to 26.5%. The decoder type barely mattered: the gap between an ordinary left-to-right decoder and a masked-diffusion decoder never exceeded 1.4 points.

The team also checked whether the decoder really uses the vector. Shuffling the vectors dropped accuracy from 46.5% to 34.3%, so the decoder does follow the vector's content. Under a fixed budget of 3 billion parameters, the best split was a 2-billion DiT with a 1-billion decoder.

## Results and limits

Across eight tests Cola2 averages 60.10\. In the comparison Llama-3-8B scores 66.25 and Qwen3-8B-Base 75.87\. Cola2 beats Llama-3-8B on HellaSwag (41.75 vs 39.21) and StoryCloze (80.42 vs 79.49) and reaches 87.62 on ARC-Easy. Scale matters here: Llama-3-8B trained on at least 15 trillion tokens and Qwen3-8B-Base on about 36 trillion, while Cola2's budget was 346 billion. The team stresses that the model, especially the DiT, has not converged. In a controlled scaling study, the compressed model learns more slowly but keeps closing the gap after 150 billion tokens and does not look saturated at 210 billion.

The model card states the limits openly. Cola2 is a base model, not an instruction-tuned assistant. It can repeat itself or drift off topic in long text. Evaluation is English-only; code, math and long context were not measured. Because the compared models use different data and tokenizers, the table places Cola2 rather than showing a compute-matched race. Turning compression's theoretical compute savings into real speed also needs dedicated kernels and cache work.

## How to try it

The model loads with Hugging Face Transformers and needs trust\_remote\_code=True because it uses custom code. Python 3.10, PyTorch 2.2 and a CUDA GPU with bfloat16 are recommended:

```
pip install "torch>=2.2" "transformers>=4.51,<5" "safetensors>=0.4" accelerate

import torch
from transformers import AutoModel, AutoTokenizer
mid = "ByteDance-Seed/Cola2"
tok = AutoTokenizer.from_pretrained(mid, trust_remote_code=True)
model = AutoModel.from_pretrained(mid, trust_remote_code=True,
    torch_dtype=torch.bfloat16).to("cuda").eval()
girdi = tok("Question: What is the capital of France? Answer:", return_tensors="pt").to("cuda")
g = torch.Generator(device="cuda").manual_seed(42)
print(tok.decode(model.generate(**girdi, generator=g)[0], skip_special_tokens=True))
```

Generation is not fully repeatable because every block starts from random noise; pass a fixed seed when comparing outputs. The scripts in the GitHub repository open a simple chat screen and rerun the eight-task evaluation quickly on 200 examples. The repository code is Apache 2.0; the model files follow their own release terms. Training code is not part of this release.

This is an early example of research that steps outside token-by-token generation, and all the numbers are the team's own measurements. The method's value will become clearer with versions trained on bigger budgets and with independent tests.

Sources: [Hugging Face model page](https://huggingface.co/ByteDance-Seed/Cola2?ref=globalfeed.ai), [GitHub](https://github.com/ByteDance-Seed/Cola2?ref=globalfeed.ai), [arXiv paper](https://arxiv.org/abs/2610.31305?ref=globalfeed.ai), [Project page](https://hongcanguo.github.io/Cola2/?ref=globalfeed.ai)