Abstract What Varies, Reuse Longer Patterns: Efficient Offline Chain-of-Thought Compression

Shibo Wang, Yuzhe He, Yifeng Zhao, Yunjiao Zhou, Zepeng Ning, Hanzhang Zhou, Kezhi Mao, Junlang QianarXiv 2026

It’s late, you’ve been staring at logs all day, and the last thing you want to think about is how much money you’re burning on LLM inference. We know that "Chain-of-Thought" (CoT) reasoning—making models think step-by-step—is the secret sauce for getting LLMs to solve hard problems. But that sauce is expensive. Long reasoning traces mean high latency and even higher compute costs.

Researchers have tried "compressing" these traces: taking a long, rambling explanation from a giant teacher model and trimming it down so a smaller student model can learn to be concise. The problem? Current methods are incredibly wasteful. They treat every single reasoning trace as a unique snowflake, asking a powerful (and expensive) teacher model to rewrite every single sentence from scratch.

A new paper, "Abstract What Varies, Reuse Longer Patterns," introduces a system called CRAFT that realizes most reasoning isn't actually unique. It’s just the same templates with different numbers plugged in.

TL;DR

CRAFT slashes the computational cost of compressing reasoning traces by over 90% by identifying recurring "skeletons" in Chain-of-Thought data. Instead of rewriting every example, it compresses a few representative templates and reuses those edits across thousands of similar instances, maintaining high accuracy while producing much shorter reasoning.

What Problem Does This Paper Address?

When an LLM solves 1,000 math problems, it doesn't invent 1,000 unique ways to say "Therefore, the total is..." It repeats itself. A lot.

Existing "offline compression" methods for Supervised Fine-Tuning (SFT) use a teacher model to either delete tokens or rewrite traces for every single training example. This is a massive "compressor budget" hog. If you have a million training examples, you’re paying for a million teacher model calls.

The authors noticed that while the entities (names, numbers, formulas) change, the wording used to relate them is highly repetitive. If we could just figure out the "template" for a reasoning step, we could compress the template once and apply that logic to everything that fits the mold.

Methods

The authors introduce CRAFT (Compression through Reusable Abstractions and Frequent Templates). The pipeline works in four main stages:

  1. Template Abstraction: It identifies problem-specific details (like the number "17" or the name "Leo") and replaces them with slots. This turns a specific sentence into a PLET (Partially Lexicalized Expression Template).
  2. Family Discovery: It clusters these PLETs. Even if two sentences aren't identical, if they share enough semantic and structural overlap, they are grouped into a "family."
  3. Representative Compression: For each family, CRAFT picks one "representative" span. It sends only this one to the expensive teacher model to be compressed (either via deletion or rewriting).
  4. Policy Reuse & Trace Assembly: The compression decision made for the representative is then mapped back onto every other member of the family. If the teacher decided to cut the middle of the template, CRAFT cuts the middle of every sentence that uses that template, plugging the original specific details back into the remaining slots.
Figure 3: Overview of PLET discovery, shared compression, and reuse. Local spans are abstracted and grouped into families, prioritized by source-token mass. Shared policies are applied using occurrence content and bindings, and compact traces are assembled as SFT targets while preserving source order and unselected content.

Datasets

The researchers evaluated CRAFT across four diverse reasoning benchmarks:

  • GSM8K: Grade school math word problems.
  • MATH-500: More challenging competition-level math.
  • TabMWP: Mathematical problems requiring tabular reasoning.
  • LogicNLI: First-order logical reasoning.

They tested these using the Qwen2.5 (3B, 7B, 14B) and LLaMA-3.1-8B model families.

Key Insights and Ideas

  • The Power of the 1500: One of the most striking findings is how much of our "complex" reasoning is actually just a few patterns. As shown in Figure 2, just the top 1,500 PLET clusters cover between 72% and 98% of the tokens in these massive reasoning datasets.
Figure 2: PLET coverage and reuse across reasoning corpora.
  • Structure > Strings: Simple dictionary-style compression (like Byte-Pair Encoding) fails here because "Leo has 5 apples" and "Maya has 12 oranges" look different to a computer. By abstracting to slots, CRAFT uncovers the shared underlying structure that exact-match methods miss.
  • Generalization: The "compression policies" learned on training data actually work on new, unseen data. This suggests that the way we explain reasoning is a finite "language" that can be pre-compressed.

Key Results

CRAFT delivers a "have your cake and eat it too" scenario for model training:

  • Massive Savings: Compared to per-example rewriting, CRAFT reduces the weighted compressor budget by a median of 90.7%.
  • Minimal Accuracy Hit: This 10x reduction in cost comes at a median accuracy loss of only 1.21 percentage points.
  • Shorter Reasoning: It doesn't just save money during training; the resulting models generate reasoning that is 25.3% shorter on average than other cross-sample encoding methods.
Figure 4: Compressor budget and downstream performance under (a,b) accuracy matching and (c,d) token matching. Left: absolute comparisons; right: paired CRAFT gains over per-example compression. Blue solid/orange dashed envelopes denote CRAFT/per-example results; dotted lines mark medians. Colors and shapes denote datasets and backbones.

Limitations and Future Work

While CRAFT is a major step forward, the authors note a few boundaries:

  • Language Specificity: The current implementation relies on English-specific NLP tools for lemma and entity recognition. Moving to multilingual support would require different "slot-filling" logic.
  • Expression vs. Logic: CRAFT focuses on shortening how a thought is expressed. It doesn't attempt to find a more efficient logical path to the answer (e.g., skipping unnecessary steps entirely).
  • Batch Nature: It’s designed for offline, batch construction of training sets. It isn't meant for real-time, "on-the-fly" compression of individual user queries.

In short, if you're building a reasoning model and you're tired of paying the "teacher tax" for every single line of your training data, CRAFT suggests you should stop looking at the words and start looking at the skeletons.

Summary updated

Abstract

Offline chain-of-thought (CoT) compression creates shorter supervision for efficient reasoning, but per-example compressors repeatedly process similar expressions across traces, wasting compressor budget. Methods that reuse identical text across examples miss longer shared expressions when names, numbers, or formulas change from one question to another. We introduce CRAFT, which abstracts problem-specific details into slots to uncover partially lexicalized expression templates (PLETs) and clusters wording variants into families. Compressing each family representative once yields shared deletion or rewriting edits, which are applied with each occurrence's own details to construct compact, ordinary-text training targets. Compared with per-example rewriting, CRAFT Rewrite reduces weighted compressor budgets by a median 90.7% with a median accuracy loss of 1.21 percentage points, while generating shorter reasoning. Against cross-sample encoding, it shortens reasoning across all eight model-dataset settings by 25.3% on average and improves accuracy in five.
BibTeX
@misc{wang2026abstract,
  author = {Shibo Wang and Yuzhe He and Yifeng Zhao and Yunjiao Zhou and Zepeng Ning and Hanzhang Zhou and Kezhi Mao and Junlang Qian},
  title = {{Abstract What Varies, Reuse Longer Patterns: Efficient Offline Chain-of-Thought Compression}},
  year = {2026},
  eprint = {2611.27710},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.27710},
}
Figure