TRANSMISSION // 2611.27326v1

A Reversible Code for Shorter AI Reasoning

Source published

Researchers trained language models to replace recurring reasoning phrases with special tokens that can be decoded back into readable text. Across tests, total token counts fell, while accuracy changed modestly on average.

AI-generated conceptual illustration for A Reversible Code for Shorter AI Reasoning
AI-generated conceptual illustration; not documentary evidence.

Long AI reasoning traces take computing resources to process and generate. A new preprint tests whether models can express recurring parts of those traces with compact, reversible codes—without simply deleting the reasoning.

Large language models often work through a problem by generating intermediate steps before giving an answer. Those steps take tokens to process and produce. But shortening a trace by skipping words or replacing it with hidden representations can make it harder for people to inspect what the model produced.

A November 2026 preprint proposes another option: teach models a compact code for recurring spans in their reasoning. The authors report fewer total tokens across their tests, alongside a modest average change in accuracy. This is an initial evaluation, not evidence that deployed systems will be faster or cheaper in every setting.

Replacing repeated spans with special tokens

The method uses byte-pair encoding, which finds frequent adjacent pieces in text and merges them into larger units. Applied to reasoning data, these merges create new tokens for recurring spans. The tokens use Unicode’s Private Use Area, reserved for custom characters. For example, a special token might stand for a short phrase such as “she sold.”

The researchers expand each model’s vocabulary, initialize the new tokens’ embeddings using the original tokens that make up each span, and train the model to use the expanded vocabulary. They use self-distillation: a model first generates ordinary-language reasoning, which is then encoded into the compact form for fine-tuning. A decoder can convert each new token back into its original text. That makes the encoding reversible; it does not mean the model’s reasoning is unchanged.

The team tested Llama-3.1-8B-Instruct, Qwen2.5-14B-Instruct and Qwen2.5-32B-Instruct on GSM8K and MATH, which assess mathematical problem-solving, and StrategyQA and CommonsenseQA, which test other forms of reasoning and knowledge. Fine-tuning used traces from the first three datasets. CommonsenseQA was excluded from that stage because it does not provide chain-of-thought traces, but was included in evaluation.

Fewer total tokens, with accuracy trade-offs

Across 12 model-and-dataset combinations, the paper reports an average 14.7% reduction in total token counts. This measure includes tokens processed in prompts as well as tokens generated in responses. The reductions ranged from 5.6% to 20.4%. Accuracy changed by an average of 1.6 percentage points, but results varied: the largest reported drop was 3.7 points for Llama-3.1-8B on GSM8K, while some combinations showed no change or a small increase.

The authors separately examined reasoning-generation length among problems both versions answered correctly. In that subset, generation length fell by 4.9% to 27.1% across the 12 combinations. This is not the same as the total-token measure: it focuses on generated reasoning, while total counts also include prompt tokens. The separate result suggests that the savings were not limited to differences in prompt length.

Performance varied by model and task. The paper reports larger accuracy drops on some tasks for Llama-3.1-8B than for the Qwen models. A reversible code can preserve the text through encoding and decoding, but the model still has to learn to use that code effectively.

What the results do—and do not—show

“Lossless” refers to the text encoding: the compressed sequence can be decoded back into its original wording. It does not establish that the model’s reasoning process is unchanged, that every step is sound, or that answers will always remain as accurate. The reported accuracy changes show that performance can shift.

Token counts are a proxy for decoding cost, not a direct measurement of real-world latency, energy use, memory requirements or hardware costs. Those depend on implementation and deployment conditions. The experiments keep prompts and answers in English. Despite the paper’s multilingual-scratchpad framing, they do not demonstrate a fully multilingual user experience. The authors identify language compliance and code-switching as questions for further study.

This is a preprint, so the claims have not necessarily undergone peer review. The evaluation covers three model checkpoints and four benchmarks; it does not guarantee results on other tasks or systems. The central proposal is specific: rather than delete reasoning text, a model can learn shorter, reversible labels for recurring spans. Whether that approach is useful in practice will require broader testing, including direct measurements of inference speed and resource use.

Reviewed cross-references

These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.

  • A multilingual tokenizer cuts token counts—but model benefits remain untested

    Shared method: Both papers use BPE to create larger units that reduce token counts: the origin paper learns PUA tokens for frequent reasoning spans, while the target trains multilingual tokenizers with subword and multi-word merges. The shared technique does not establish that the tokenizer’s measured text savings would transfer to reasoning-model quality or inference performance.

    Model review: · openai-codex/gpt-6-luna

    Evidence and provenance

    Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.

    • 2611.27326v1 — Original paper

      Excerpt reference: static/papers/2611.27326v1.md:43-97
      Basis: Paper text
      Source SHA-256: 76ece2b006521c695fe9a96d4bb400852702741bcee4b12a72752ac979ff4488

    • 2611.13059v1 — Original paper

      Excerpt reference: static/papers/2611.13059v1.md:168-262
      Basis: Paper text
      Source SHA-256: 6daac5741c4cfad178617002d148b676ac141ee7ca049946ce04d636c36560e2

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.