# Accelerating Long-Context Decoding in Large-Scale Hybrid LLMs Without Retraining

재학습 없이 대규모 하이브리드 LLM에서 긴 컨텍스트 디코딩 가속하기

João Eduardo Batista, Emil Vatai, Mohamed Wahib · arXiv · 2026년 11월 4일

- **연구 문제** 긴 문맥 디코딩에서 하이브리드 LLM에 남은 전체 어텐션 레이어가 KV 캐시를 많이 읽어 속도를 제한하는 문제입니다.
- **연구 방법** 학습 없이 전체 어텐션 레이어에만 슬라이딩 윈도우, 256 토큰 고정 접두부, Quest 기반 페이지 선택을 결합하고, 레이어별 W와 Q를 NSGA-II로 탐색합니다.
- **주요 결과** 21개 장문 맥락 데이터셋에서 선택된 구성은 기준 정확도를 대체로 보존했으며, 64k와 256k 토큰에서 일부 모델은 최대 1.26배와 2.23배의 처리량 향상을 보였습니다.

## 긴 문맥에서 남는 전체 어텐션 비용

하이브리드 LLM은 대부분의 전체 어텐션 레이어를 선형 어텐션이나 슬라이딩 윈도우 레이어로 바꾸어 긴 문맥의 비용을 줄입니다. 그러나 남은 소수의 전체 어텐션 레이어는 생성 토큰이 늘수록 더 많은 KV 캐시를 읽으므로, 긴 문맥에서는 디코딩 시간의 상당 부분을 차지합니다. 이 논문은 이 남은 전체 어텐션 레이어를 대상으로, 가중치를 바꾸거나 재학습하지 않고 어텐션 범위를 얼마나 제한할 수 있는지 묻습니다. 원문에서 보고된 Figure 1은 Qwen3.5-4B에서 문맥 길이가 늘수록 전체 어텐션이 디코딩 시간을 지배하는 모습을 보여 주는 측정입니다. 다만 이 그림은 픽셀 관찰이 아니라 캡션과 위치 메타데이터를 근거로 설명합니다.

저자들은 어텐션 맵이 희소하다는 선행 관찰을 근거로, 각 질의가 위치의 작은 부분집합만 필요로 할 것이라는 가설을 세웁니다. 이 가설은 저자들의 작업 가설이며, 선행 KV 축소 연구의 결과가 과제와 규모에 따라 달라진다는 점도 함께 언급됩니다.

## 슬라이딩 윈도우, 고정 접두부, Quest 선택의 결합

제안 방법은 선택된 전체 어텐션 레이어에서만 어텐션을 바꿉니다. 각 수정 레이어는 세 집합의 키에만 주의를 기울입니다. 첫째는 가장 최근의 W개 토큰인 슬라이딩 윈도우이고, 둘째는 시퀀스 앞 256개 토큰인 고정 접두부입니다. 셋째는 Quest가 현재 질의와 관련 있다고 점수화한 페이지들입니다. KV 캐시는 32토큰 페이지로 나뉘며, 각 페이지는 키의 채널별 최솟값과 최댓값으로 요약됩니다. 디코딩 단계마다 페이지를 점수화하고 예산 Q토큰이 찰 때까지 상위 페이지를 선택합니다. 페이지 선택은 KV 헤드마다 따로 이루어지므로 헤드들이 문맥의 서로 다른 부분을 가져올 수 있습니다. 매 단계 페이지 점수화는 Quest의 주된 비용이므로, 이 연구는 선택을 R 디코딩 단계마다 다시 계산하고 그 사이에는 고정합니다.

기본값은 R=32입니다. 이때 선택 시점 이후 토큰이 윈도우와 오래된 선택 사이에 빠지지 않도록 윈도우를 넓힙니다. 여기서 중요한 점은 KV 캐시가 줄지 않는다는 것입니다. 어떤 페이지도 나중에 선택될 수 있으므로 캐시는 전체 크기로 유지되고, 줄어드는 것은 디코딩 중 읽는 키의 수입니다.

## 레이어별 (W, Q) 탐색과 대체 비용 함수

이 연구는 모든 레이어에 같은 값을 쓰는 대신 레이어마다 다른 윈도우 W와 Quest 예산 Q를 탐색합니다. 탐색 공간은 W가 Q 후보 집합과 full의 합집합이고, Q가 2^8부터 2^12까지의 값으로 구성됩니다. NSGA-II는 정확도를 최대화하고 추정 비용을 최소화하는 두 목표를 함께 다룹니다. 초기 집단에는 W=256이고 Q가 512, 1024, 2048인 균일 구성 세 개를 넣고 나머지는 무작위로 생성합니다. 정확도 목적은 BABILong-qa1의 64k 토큰 문제와 LongBench Qasper의 처음 100개 예제 평균입니다. 처리량을 모든 후보에서 직접 재면 비용이 커지므로, 저자들은 레이어 구성에 따른 측정 시간의 차이로 추정하는 대체 비용 함수를 사용합니다.

이 함수는 기준 모델 시간에서 각 수정 레이어의 전체 어텐션 시간과 구성 시간의 차이를 뺀 값입니다. 각 (w, q) 쌍의 시간은 배치 크기 8에서 64k번 측정합니다. 탐색 후에는 파레토 전선에서 기준 대비 3pp 이내인 후보 중 최고 정확도, 최저 추정 비용, 정규화된 이상점에 가까운 균형점을 고릅니다.

![Figure 2: Overview of the pipeline used to obtain configurations using NSGA-II. (1) We fill an table with measured times with different window/budget values to…](https://refivu.com/papers/bf831b9d-068a-43dd-81a8-0f3d124df863/figures/figure-6e5873e48c582f9e55885a8f656c72c0.png?thumb=512)

**Figure 2** . Overview of the pipeline used to obtain configurations using NSGA-II. (1) We fill an table with measured times with different window/budget values to be used by the surrogate cost function; (2) we generate the initial solutions; (3) the solutions are evaluated in the evaluation samples and using the cost function; (4) the best solutions are combined and mutated, and (5) when the search is over, we extract 3 configurations from the Pareto front.

[원문](https://arxiv.org/abs/2611.06133v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · João Eduardo Batista, Emil Vatai, Mohamed Wahib · Accelerating Long-Context Decoding in Large-Scale Hybrid LLMs Without Retraining · 원문 그림 인용 · 원본 PDF 4쪽에서 그림 영역을 추출했습니다.

## 장문 맥락 정확도 보존 검증

정확도 검증은 BABILong qa1부터 qa5까지 64k 토큰에서의 평가와 LongBench 영어 16개 하위 데이터셋을 합친 21개 데이터셋에서 이루어졌습니다. 탐색에 쓴 BABILong-qa1과 Qasper의 100개 예제는 보고된 정확도에서 제외되었습니다. 어떤 구성이 한 데이터셋에서 기준 대비 3pp 이내이면 그 데이터셋의 정확도를 보존한 것으로 판정합니다. 논문은 Qwen3.5-4B, Qwen3.5-122B-A10B, Ornith-1.0-397B에서 최고 정확도 구성, 균형 구성, R32 균일 구성이 기준 모델의 평균 정확도를 크게 떨어뜨리지 않았다고 보고합니다. 평균 차이는 Qwen3.5-4B의 경우 0.5pp 이내, Qwen3.5-122B-A10B의 경우 0.2pp 이내, Ornith-397B의 경우 0.4pp 이내로 보고됩니다.

Ornith에서는 더 낮은 예산의 균일 구성을 추가로 시험했는데, 이때 4개 데이터셋에서 정확도가 떨어졌습니다. 이 결과는 해당 모델과 설정에서 얻은 것이며, 모든 구성이 모든 모델에서 같은 수준으로 보존되었다는 뜻은 아닙니다.

![Table 6: Configurations evaluated for each model: the window W and Quest budget B (tokens) of every full-attention layer, indexed by its position in the model.…](https://refivu.com/papers/bf831b9d-068a-43dd-81a8-0f3d124df863/figures/figure-1e8a85c6ce30245ca5198f4e259c849c.png?thumb=512)

**Table 6** . Configurations evaluated for each model: the window W and Quest budget B (tokens) of every full-attention layer, indexed by its position in the model. ‘full’ marks a layer left at full attention, whose budget is irrelevant (‘–’). On gpt-oss-120b, the search front contained a single configuration; on Ornith, Best Speed is the Uniform 1024 configuration.

[원문](https://arxiv.org/abs/2611.06133v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · João Eduardo Batista, Emil Vatai, Mohamed Wahib · Accelerating Long-Context Decoding in Large-Scale Hybrid LLMs Without Retraining · 원문 그림 인용 · 원본 PDF 19쪽에서 그림 영역을 추출했습니다.

## 64k와 256k 토큰에서의 디코딩 처리량

처리량 실험은 배치 크기 4에서 생성 토큰 16k, 64k, 256k 지점을 기준 모델과 비교합니다. Qwen3.5-4B에서 최고 속도 구성은 64k에서 1.26배, 256k에서 2.22배 빨랐습니다. Qwen3.5-122B-A10B에서 균형 구성은 64k에서 1.20배, 256k에서 2.23배였습니다. Ornith-1.0-397B에서 최고 속도 또는 R32 구성은 64k에서 1.16배, 256k에서 2.06배였습니다. 반면 Qwen3.5-27B와 Gemma-4-31B에서는 각각 최대 1.11배와 1.09배 수준에 그쳤고, gpt-oss-120b는 문맥 길이 한계 근처에서만 작은 개선을 보였습니다. 저자들은 밀집 모델에서 가중치 읽기 시간이 커서 어텐션 절감의 효과가 줄어든다고 해석합니다.

이 해석은 프로파일 결과와 함께 제시된 저자의 해석입니다. 짧은 문맥에서는 Quest 선택의 추가 연산 때문에 모든 구성이 기준보다 느렸습니다.

![Table 3: Models studied in this work and hardware used. For multi-GPU runs, we use tensor parallelism of 2 and 4](https://refivu.com/papers/bf831b9d-068a-43dd-81a8-0f3d124df863/figures/figure-a1c595983cde94b00781e1dcb9fad73c.png?thumb=512)

**Table 3** .Models studied in this work and hardware used. For multi-GPU runs, we use tensor parallelism of 2 and 4.

[원문](https://arxiv.org/abs/2611.06133v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · João Eduardo Batista, Emil Vatai, Mohamed Wahib · Accelerating Long-Context Decoding in Large-Scale Hybrid LLMs Without Retraining · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.

![Figure 5: Throughput of the baseline Qwen3.5-4B model, best- accuracy configuration, and two uniform configurations with SW A and Quest budgets or 2048 and 409…](https://refivu.com/papers/bf831b9d-068a-43dd-81a8-0f3d124df863/figures/figure-3696357a5ea62cd997a5e684f578accf.png?thumb=512)

**Figure 5** . Throughput of the baseline Qwen3.5-4B model, best- accuracy configuration, and two uniform configurations with SW A and Quest budgets or 2048 and 4096 tokens.

[원문](https://arxiv.org/abs/2611.06133v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · João Eduardo Batista, Emil Vatai, Mohamed Wahib · Accelerating Long-Context Decoding in Large-Scale Hybrid LLMs Without Retraining · 원문 그림 인용 · 원본 PDF 15쪽에서 그림 영역을 추출했습니다.

![Figure 7: Average time spent in each kernel category when decoding 256 tokens, starting at a context length of 64k tokens](https://refivu.com/papers/bf831b9d-068a-43dd-81a8-0f3d124df863/figures/figure-e82c8ae5c972f2513aef94c6bc632a36.png?thumb=512)

**Figure 7** .Average time spent in each kernel category when decoding 256 tokens, starting at a context length of 64k tokens.

[원문](https://arxiv.org/abs/2611.06133v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · João Eduardo Batista, Emil Vatai, Mohamed Wahib · Accelerating Long-Context Decoding in Large-Scale Hybrid LLMs Without Retraining · 원문 그림 인용 · 원본 PDF 17쪽에서 그림 영역을 추출했습니다.

## 적용 범위와 남은 한계

이 방법의 가장 분명한 한계는 짧은 문맥입니다. Quest 선택의 추가 연산 때문에 짧은 문맥에서는 구성이 기준 모델보다 느리며, 이익은 약 32k에서 64k 토큰 이후에 나타납니다. 메모리 측면에서도 제한이 있습니다. Quest가 모든 페이지를 선택 가능하게 유지하므로 디코딩 연산은 줄어도 KV 캐시 메모리 사용량은 줄지 않습니다. 탐색 비용도 무시할 수 없습니다. 원문은 A100과 GB200에서 탐색 GPU 시간을 보고하며, 후보 공간을 모두 탐색하지 않고 24에서 40개 구성을 시도했다고 밝힙니다. 또한 코드 최적화 사례는 Qwen3.5-4B 하나에서 4개 커널에 대해 수행된 예비적 사례이므로 일반 성능 보장으로 읽으면 안 됩니다.

이 방법은 장문 맥락 정확도 평가에 쓰인 여러 모델과 과제에서 효과가 확인되었지만, 모든 모델 계열과 모든 문맥 길이에 대한 보편성은 확인하지 않았습니다.

![Figure 6: Speedup obtained in 4 polybench kernels (gemm, correlation, heat-3d and lu) as the conversation with each configuration moved towards 256k tokens. Th…](https://refivu.com/papers/bf831b9d-068a-43dd-81a8-0f3d124df863/figures/figure-78f82a3850446823037dc10c1ab130e8.png?thumb=512)

**Figure 6** . Speedup obtained in 4 polybench kernels (gemm, correlation, heat-3d and lu) as the conversation with each configuration moved towards 256k tokens. The lack of lines implies there was no correct code in that interval.

[원문](https://arxiv.org/abs/2611.06133v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · João Eduardo Batista, Emil Vatai, Mohamed Wahib · Accelerating Long-Context Decoding in Large-Scale Hybrid LLMs Without Retraining · 원문 그림 인용 · 원본 PDF 16쪽에서 그림 영역을 추출했습니다.

## 논문 정보

- **저자**: João Eduardo Batista, Emil Vatai, Mohamed Wahib
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2026년 11월 4일
- **등록일**: 2026년 11월 6일
- **수정일**: 2026년 11월 4일
- **버전**: v1
- **arXiv**: 2611.06133
- **분류**: cs.CL · cs.PF
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

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

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

## 초록

The full-attention layers of large language models (LLMs) make every generated token more expensive than the previous one, slowing models down on long-context tasks. Hybrid models reduce this cost by replacing most full-attention layers with linear-attention layers, but the first still dominate decoding at long contexts. We accelerate these remaining layers without any training or weight changes using combined sparse attention: each layer attends to a sliding window of recent tokens, a pinned prefix, and a fixed budget of most relevant tokens in the context. The window size and budget are found on a per-layer basis using a multi-objective search algorithm. Across six hybrid models from three families, from 4B to 397B parameters, the selected configurations preserve their baseline model's accuracy on 21 long-context datasets. Decoding 64k/256k tokens becomes up to 1.26x/2.22x faster on Qwen3.5-4B, 1.20x/2.23x on Qwen3.5-122B-A10B, and 1.16x/2.06x on Ornith-1.0-397B.

## 원문 인용

João Eduardo Batista, Emil Vatai, Mohamed Wahib (2026). Accelerating Long-Context Decoding in Large-Scale Hybrid LLMs Without Retraining. arXiv:2611.06133v1. https://arxiv.org/abs/2611.06133v1

**BibTeX**

```
@misc{batista2026accelerating,
  title = {{Accelerating Long-Context Decoding in Large-Scale Hybrid LLMs Without Retraining}},
  author = {João Eduardo Batista and Emil Vatai and Mohamed Wahib},
  year = {2026},
  eprint = {2611.06133},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.06133v1}
}
```

## 이 논문의 용어

- [KV cache](https://refivu.com/terms/cbf2f6d2bcc1-kv-cache)
- [vLLM](https://refivu.com/terms/fe3c96648564-vllm)
- [sliding window](https://refivu.com/terms/36584a6497c3-sliding-window)
- [LongBench](https://refivu.com/terms/ff37fb1a4d82-longbench)
- [Pareto Front](https://refivu.com/terms/f16ba3760d0a-pareto-front)
- [Gated DeltaNet](https://refivu.com/terms/867332aa385b-gated-deltanet)
- [NSGA-II](https://refivu.com/terms/8c222d247482-nsga-ii)
- [quest](https://refivu.com/terms/3cfd20347bc2-quest)
- [attention sinks](https://refivu.com/terms/e6fdf17c8785-attention-sinks)
- [surrogate cost function](https://refivu.com/terms/3f8d38fcdd64-surrogate-cost-function)

## 다른 논문 해설

- [When Bigger Becomes Brittle: Why Compression Hurts More as Language Models Scale](https://refivu.com/papers/77b52697-bb15-44e2-b310-7c5b411df181-when-bigger-becomes-brittle-why-compression-hurts-more.md)
- [Decodability Is Not Validity: Evaluating Nuisance Sensitivity in Language Model Concept Probes](https://refivu.com/papers/7196df2a-7429-4a40-bd2f-beda7abf9ece-decodability-is-not-validity-evaluating-nuisance-sensitivity.md)
- [Computation, not weight access: large language models as auditors of clinical prediction networks](https://refivu.com/papers/40df0101-bc95-4447-99c9-9bb2bba946df-computation-not-weight-access-large-language-models-as.md)
- [Hybrid LLM-Deterministic Pipelines for Enterprise-Scale Code Migration at Bloomberg](https://refivu.com/papers/f466e761-b70f-4c9b-b1d0-510cf418ddc8-hybrid-llm-deterministic-pipelines-for-enterprise-scale-code.md)
- [MoE$^2$: Optimizing Collaborative Inference for Edge Large Language Models](https://refivu.com/papers/31dce8fb-fdb7-4dff-a3e9-3ba86acbdc7b-moe-2-optimizing-collaborative-inference-for-edge-large.md)
- [Prophet: Prompting Large Language Models with Complementary Answer Heuristics for Knowledge-based Visual Question Answering](https://refivu.com/papers/3151fb77-33ba-4ee5-a72b-a95fb7293932-prophet-prompting-large-language-models-with-complementary.md)
- [Learning Pseudo-Riemannian Manifolds for Heterophilic Graphs via Graph Signature](https://refivu.com/papers/789277b0-7e43-482e-905c-8e4d5ad553be-learning-pseudo-riemannian-manifolds-for-heterophilic-graphs.md)
- [Opening the Black Box of Neural Auction Mechanisms](https://refivu.com/papers/8d083675-a2e7-4dae-8eab-589959d46289-opening-the-black-box-of-neural-auction-mechanisms.md)
- [Tight Asymptotic Bounds on the Maximum Number of Linear Regions of Piecewise-Linear Kolmogorov--Arnold networks](https://refivu.com/papers/17526235-331a-4cc3-8aba-33df9eb56bc6-tight-asymptotic-bounds-on-the-maximum-number-of.md)
- [EnergyBench: a live, gate-aligned benchmark of day-ahead forecasts for European power markets](https://refivu.com/papers/2263ceaf-ace0-496a-8cd1-65a393fc5355-energybench-a-live-gate-aligned-benchmark-of-day.md)
- [Responsible GenAI Use During Active Armed Conflict: Evidence from Sudan's Emergency Response Rooms](https://refivu.com/papers/37fece41-24a2-424d-8d61-10f081109780-responsible-genai-use-during-active-armed-conflict-evidence.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/bf831b9d-068a-43dd-81a8-0f3d124df863-accelerating-long-context-decoding-in-large-scale-hybrid)
