# Towards Green Text Generation: Memory-Based Speculative Decoding

친환경 텍스트 생성을 향하여: 메모리 기반 speculative decoding

Antal van den Bosch · arXiv · 2026년 11월 12일

- **연구 문제** 대형 언어 모델의 순차 생성은 느리고 에너지가 많이 드는데, speculative decoding의 드래프트 모델이 비용을 치르면 이득이 사라질 수 있습니다.
- **연구 방법** Olifant는 TiMBL IGTree로 학습 인스턴스를 trie로 압축해, GPU 없이 CPU에서 네 토큰 문맥으로 다음 토큰을 제안합니다.

## 추론 비용과 에너지 문제

대형 언어 모델의 텍스트 생성은 토큰을 하나씩 순서대로 만들어야 하므로 처리량이 제한됩니다. 이 논문은 특히 의료·법률처럼 클라우드 API를 쓸 수 없는 온디바이스 환경에서 검증기 한 번의 순전파가 얼마나 많은 에너지를 쓰는지를 문제로 삼습니다. speculative decoding은 저비용 드래프트 모델이 여러 토큰을 제안하고 검증기가 한 번에 확인하게 하여 속도를 높이지만, 드래프트 모델 자체의 비용이 이득을 상쇄할 수 있습니다. 신경망 드래프트는 검증기와 같은 계열이라 수락률은 높아도 추론 비용이 크고, n-gram은 빠르지만 관찰한 시퀀스를 넘어 일반화하지 못합니다.

## Olifant의 인스턴스 베이스와 질의 방식

Olifant는 TiMBL의 IGTree 알고리즘으로 학습 인스턴스를 trie에 압축합니다. 학습 코퍼스를 Mistral-7B-v0.1의 SentencePiece로 토큰화하고 w=4 윈도우로 나누어 (t1, t2, t3, t4)→t5 형태의 인스턴스를 만듭니다. trie는 정보 이득이 큰 문맥 위치를 위에 두고, 다수 레이블이 부모와 같은 노드를 저장하지 않아 대략 95%가량 줄어듭니다. 질의 시에는 루트에서 문맥 토큰을 순서대로 맞추다가 가장 깊게 일치한 노드의 다수 토큰을 반환하므로, 학습에 없던 문맥도 가장 정보가 많은 위치의 접두부로 답할 수 있습니다. 이 과정에는 GPU와 역전파가 없습니다.

## 두 검증 체제와 실험 설정

실험은 KV 캐시 없이 전체 시퀀스를 한 번에 넣는 체제와, KV 캐시를 유지하며 거부 시 캐시를 자르는 체제로 나뉩니다. 두 체제에서 7개 전략, 드래프트 길이 k∈{3,5,8}, 세 과제의 100개 프롬프트를 사용해 6,300개 생성을 수행했습니다. 과제는 WikiText-103, PubMed Summarization, EurLex 테스트 분할입니다. 처리량은 tps와 수락률·MAL로, 출력 품질은 탐욕 디코딩 참조와 비교한 ROUGE-L로 측정했습니다. 에너지는 KV 캐시 없는 체제에서 별도 63개 설정 격자로, KV 캐시 체제에서는 처리량 스윕과 같은 실행에서 1 Hz 전력 로그를 맞춰 측정했습니다.

## KV 캐시 없는 검증의 처리량

KV 캐시가 없으면 드래프트 토큰을 추가하는 비용이 작아 대부분의 전략이 plain보다 빨라졌습니다. 이때 수락률은 38.1%에서 19.9%로 낮아졌지만 MAL이 1.13에서 1.53으로 늘어 처리량은 4.73에서 5.55 tps로 올랐습니다. 출력 품질은 모든 전략에서 평균 ROUGE-L 0.956으로 같았습니다.

![Table 1: Throughput and speedup (local Mistral-7B verifier, no KV cache), 100 prompts per task. Speedup relative to plain. olifant-fw = olifant-fineweb; olifan…](https://refivu.com/papers/d0d9e634-398d-4df3-9710-8a24455c2ce9/figures/figure-6e27a25603e1dae28fd28c0f906281a7.png?thumb=512)

**Table 1** : Throughput and speedup (local Mistral-7B verifier, no KV cache), 100 prompts per task. Speedup relative to plain. olifant-fw = olifant-fineweb; olifant- wiki = olifant-wikitext; olifant-pub = olifant-pubmed; olifant-eur = olifant-eurlex. Bold: best per task.

[원문](https://arxiv.org/abs/2611.16714v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Antal van den Bosch · Towards Green Text Generation: Memory-Based Speculative Decoding · 원문 그림 인용 · 원본 PDF 5쪽에서 그림 영역을 추출했습니다.

![Table 6: Complete acceptance rates (%) and mean ac- cepted lengths (MAL, tokens per verification step) for all draft models, tasks, and draft lengths k,uncache…](https://refivu.com/papers/d0d9e634-398d-4df3-9710-8a24455c2ce9/figures/figure-88ed4882f1fb33ff9bf201d1741a63f5.png?thumb=512)

**Table 6** : Complete acceptance rates (%) and mean ac- cepted lengths (MAL, tokens per verification step) for all draft models, tasks, and draft lengths k,uncached verifier regime (100 prompts per task).

[원문](https://arxiv.org/abs/2611.16714v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Antal van den Bosch · Towards Green Text Generation: Memory-Based Speculative Decoding · 원문 그림 인용 · 원본 PDF 11쪽에서 그림 영역을 추출했습니다.

## KV 캐시 검증에서의 처리량

도메인 불일치 전략은 대체로 0.9–1.1× 수준에 머물렀습니다. 법률 텍스트의 olifant-eurlex는 k=3에서 1.25×, k=5에서 1.26×를 기록해 여전히 이득이 있었습니다. 반면 TinyLlama는 같은 가속기를 공유하는 순차 드래프트 때문에 0.47×에서 0.29×의 속도 저하를 보였습니다. 이 결과는 KV 캐시 체제의 Mistral-7B 검증기와 법률 과제 조건에서 얻은 것입니다.

## 토큰당 에너지와 시간의 분리

KV 캐시 없는 체제에서는 전력이 약 28 W 근처로 거의 일정해서, 에너지 비율이 처리량 배수와 거의 같은 방향으로 움직였습니다. 모든 드래프트 전략은 모든 과제와 k에서 에너지를 낮췄습니다. KV 캐시 체제에서는 k가 커질수록 전력이 16.4 W에서 22.1 W로 올라 시간과 에너지가 갈라집니다. olifant-eurlex는 k=3에서 1.25× 빠르면서 100 토큰당 93 J로 연구 내 가장 낮은 에너지를 보였고, k=8에서는 1.16× 빠르지만 에너지는 1.18× 더 들었습니다.

![Table 4: Cached-regime energy (J/100 tokens; lower is better) and energy ratio vs. cached plain at the same k, derived from the timestamped throughput sweep jo…](https://refivu.com/papers/d0d9e634-398d-4df3-9710-8a24455c2ce9/figures/figure-2fba4b5753e5cda9ebdc14a98ae722e1.png?thumb=512)

**Table 4** : Cached-regime energy (J/100 tokens; lower is better) and energy ratio vs. cached plain at the same k, derived from the timestamped throughput sweep joined with the 1 Hz power log; 100 prompts per cell. Only high-acceptance domain-matched drafting (olifant- eurlex on legal, k≤5 ) saves energy; ratios below 1.00 indicate an energy cost despite any speed gain. Bold: best per task.

[원문](https://arxiv.org/abs/2611.16714v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Antal van den Bosch · Towards Green Text Generation: Memory-Based Speculative Decoding · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.

## 도메인 일치와 텍스트 중복의 구분

법률 텍스트에서 olifant-eurlex는 k=3 기준 수락률 38.1%를 보여 4-gram의 24.7%, 신경망 드래프트의 21.1%보다 높았습니다. 같은 텍스트를 쓴 비교이므로 차이는 드래프트 모델에서 왔습니다. 그러나 텍스트 자체도 중요합니다. 법률 텍스트의 within-text 반복은 12.1%로 가장 낮았지만, 같은 과제 안의 다른 텍스트와 공유되는 4-gram 비율은 73.6%였습니다. 저자들은 이 문서 간 정형성을 오프라인 학습이 포착하는 요인으로 해석합니다. 따라서 텍스트 특성과 방법의 기여는 함께 작용하며 서로 분리되어 있습니다.

![Table 5: Redundancy of the evaluation texts (100 gen- erations per task, Mistral tokens). Within-text: mean fraction of a text’s token 4-grams already seen ear…](https://refivu.com/papers/d0d9e634-398d-4df3-9710-8a24455c2ce9/figures/figure-056f1038d7ce791e6c07407fc8eced35.png?thumb=512)

**Table 5** : Redundancy of the evaluation texts (100 gen- erations per task, Mistral tokens). Within-text: mean fraction of a text’s token 4-grams already seen earlier in the same text. Cross-doc.: mean fraction of a text’s dis- tinct 4-grams that also occur in another text of the same task. gzip: compression ratio of the task’s concatenated text (lower = more redundant).

[원문](https://arxiv.org/abs/2611.16714v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Antal van den Bosch · Towards Green Text Generation: Memory-Based Speculative Decoding · 원문 그림 인용 · 원본 PDF 9쪽에서 그림 영역을 추출했습니다.

## 손익분기 수락률과 KV 캐시의 영향

식 (1)에 따르면 드래프트 토큰 비용이 검증 비용과 같을 때 손익분기 수락률은 k/(k+1)입니다. k=3이면 75%, k=8이면 89%입니다. KV 캐시가 없으면 검증 비용이 드래프트 토큰 추가에 거의 영향을 받지 않아 이 조건이 거의 적용되지 않습니다. KV 캐시를 쓰면 법률 텍스트의 olifant-eurlex 같은 전략도 낮은 수락률에서 손익분기 근처에 머무릅니다. 저자들은 거부 fast-path가 있으면 첫 토큰 수락률 약 20–25% 부근에서 이득이 나타난다고 봅니다.

![Table 7: Complete acceptance rates (%) and mean accepted lengths (MAL) for all draft models, tasks, and draft lengths k,KV-cachedverifier regime (100 prompts p…](https://refivu.com/papers/d0d9e634-398d-4df3-9710-8a24455c2ce9/figures/figure-03d81ecded4a7ee137b6c8bd56c6d530.png?thumb=512)

**Table 7** : Complete acceptance rates (%) and mean accepted lengths (MAL) for all draft models, tasks, and draft lengths k,KV-cachedverifier regime (100 prompts per task).

[원문](https://arxiv.org/abs/2611.16714v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Antal van den Bosch · Towards Green Text Generation: Memory-Based Speculative Decoding · 원문 그림 인용 · 원본 PDF 11쪽에서 그림 영역을 추출했습니다.

## 단일 플랫폼과 탐욕 검증의 한계

모든 실험은 Mac Studio의 Apple M1 Max와 단일 검증기 Mistral-7B-v0.1에서 수행했습니다. 에너지는 소비자 하드웨어의 시스템 전체 측정이므로 같은 하드웨어 안의 상대 비교로만 읽어야 하며 교차 플랫폼 주장으로 확장하지 않습니다. 측정은 batch size 1의 탐욕 검증에서만 수행했고, 온도 샘플링과 배치 서빙에서의 마진은 확정하지 않았습니다. Olifant는 추론 중 세션 피드백을 반영하지 않아, 학습되지 않은 도메인에서는 온라인 적응형 4-gram이 경쟁력을 보입니다.

## 논문 정보

- **저자**: Antal van den Bosch
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2026년 11월 12일
- **등록일**: 2026년 11월 13일
- **수정일**: 2026년 11월 12일
- **버전**: v1
- **arXiv**: 2611.16714
- **분류**: cs.CL
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2611.16714v1) · [원문 PDF ↗](https://arxiv.org/pdf/2611.16714v1)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

Speculative decoding accelerates text generation with large language models by letting a cheap draft model propose tokens that a large verifier checks in a single forward pass. We introduce Olifant, a draft model built on a memory-based classifier. It predicts the next token from a four-token window in under 0.3 ms on CPU, requiring no GPU, no backpropagation, and no accelerator memory. We measure throughput and energy under two verifier regimes on consumer hardware. Without a KV cache, drafting is nearly free: a domain-matched Olifant model reaches 38.1% acceptance on EU legal text, delivering 2.43x throughput and 2.51x lower energy per token than the neural verifier model alone. With a KV-cached verifier, itself a ~10x energy saver, drafting costs matter: a TinyLlama draft model halves throughput and triples energy despite high acceptance, whereas Olifant still yields 1.25x throughput and the lowest energy in the study (93 J per 100 tokens, 14x below the uncached baseline). We further show that KV caching decouples time from energy: verification of longer drafts raises power draw, shifting the energy-optimal draft length below the speed-optimal one. Speculative decoding is not dead in the age of fast verifiers, provided drafting is nearly free.

## 원문 인용

Antal van den Bosch (2026). Towards Green Text Generation: Memory-Based Speculative Decoding. arXiv:2611.16714v1. https://arxiv.org/abs/2611.16714v1

**BibTeX**

```
@misc{bosch2026towards,
  title = {{Towards Green Text Generation: Memory-Based Speculative Decoding}},
  author = {Antal van den Bosch},
  year = {2026},
  eprint = {2611.16714},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.16714v1}
}
```

## 이 논문의 용어

- [ROUGE-L](https://refivu.com/terms/b00e147f8ed4-rouge-l)
- [greedy decoding](https://refivu.com/terms/668f299cabe4-greedy-decoding)
- [KV cache](https://refivu.com/terms/cbf2f6d2bcc1-kv-cache)
- [Speculative decoding](https://refivu.com/terms/2496d9bbec40-speculative-decoding)
- [verifier](https://refivu.com/terms/7e971aef0230-verifier)
- [Wikitext-103](https://refivu.com/terms/6b182ddb67ef-wikitext-103)
- [speedup](https://refivu.com/terms/48c9c2eb8140-speedup)
- [acceptance rate](https://refivu.com/terms/4a35d5530e2c-acceptance-rate)
- [context window](https://refivu.com/terms/0ab30b05f958-context-window)
- [draft model](https://refivu.com/terms/025e7f0671f3-draft-model)
- [rejection fast-path](https://refivu.com/terms/2c772e47f44e-rejection-fast-path)
- [TinyLlama-1.1B-Chat-v1.0](https://refivu.com/terms/ddf3ee68a179-tinyllama-1-1b-chat-v1-0)
- [tokens per second](https://refivu.com/terms/4e113059f96d-tokens-per-second)

## 다른 논문 해설

- [Fewer Expert Transfers Without Changing Routing: Expert Eviction for MoE Offloading](https://refivu.com/papers/f13a013c-a325-4ab6-a312-16f38ffe7d2b-fewer-expert-transfers-without-changing-routing-expert.md)
- [The Noise Floor of a Quantization Comparison: Engine, restart, batch and kernel drift, measured against 8-bit and 4-bit effects in two decision models](https://refivu.com/papers/90daa962-d240-4d1b-8049-acc2b3e6195c-the-noise-floor-of-a-quantization-comparison-engine.md)
- [Neural Compression for Scientific Particle Data: Perspectives on How Learning Can Help](https://refivu.com/papers/54659143-795e-405b-ba95-cbdbdf75eee4-neural-compression-for-scientific-particle-data-perspectives.md)
- [Robust and Communication-Efficient Federated Learning from Non-IID Data](https://refivu.com/papers/8cfbbb74-26ed-46b1-9bcb-908c177043d6-robust-and-communication-efficient-federated-learning-from.md)
- [Relational Knowledge Distillation](https://refivu.com/papers/bc94c76c-131e-4c9c-80c8-1c9bc90a7da4-relational-knowledge-distillation.md)
- [ThiNet: A Filter Level Pruning Method for Deep Neural Network Compression](https://refivu.com/papers/13501147-4289-4a98-981e-919e37e87fc7-thinet-a-filter-level-pruning-method-for-deep.md)
- [What Limits Thermal Infrared Drone Detection? A Cross-Dataset Benchmark Analysis](https://refivu.com/papers/3687e0e1-1a5f-4621-b6ce-230e9211734a-what-limits-thermal-infrared-drone-detection-a-cross.md)
- [Mind the Accuracy-Approval Gap: How Users Evaluate Sycophantic AI in Everyday Tasks](https://refivu.com/papers/d62f0b2a-4b25-4637-8d3b-cd531c6a07d1-mind-the-accuracy-approval-gap-how-users-evaluate.md)
- [Calibration and Conformal Prediction for Medical Question Answering in Arabic and English: Evidence from Two Non-Parallel Benchmarks](https://refivu.com/papers/45cccf3d-bbd8-47a2-9b61-eba7a12cf21d-calibration-and-conformal-prediction-for-medical-question.md)
- [Pretraining Data Statistics Shape the Phases of Learning Entity Comparison in Language Models](https://refivu.com/papers/d3386662-50ed-4e67-b429-1af214567cba-pretraining-data-statistics-shape-the-phases-of-learning.md)
- [Protein Language Models Fail To Capture Contact Predictions Under Invariant Relabeling](https://refivu.com/papers/6d0f72bd-7bd5-4117-b92c-0da1541c0083-protein-language-models-fail-to-capture-contact-predictions.md)
- [Shortcuts or Memorisation? Revisiting Data Corruption in Natural Language Understanding with Large Language Models](https://refivu.com/papers/47df16a6-990c-4da2-8525-44fedd241d7b-shortcuts-or-memorisation-revisiting-data-corruption-in.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/d0d9e634-398d-4df3-9710-8a24455c2ce9-towards-green-text-generation-memory-based-speculative)
