paper-with-me

Papers

SpeContext: Enabling Efficient Long-context Reasoning with Speculative Context Sparsity in LLMs

2025-11-30 · Jiaming Xu, Jiayi Pan, Hanzhen Wang, Yongkang Zhou, Jiancai Ye, Yu Wang, Guohao Dai arxiv

In this paper, we point out that the objective of the retrieval algorithms is to align with the LLM, which is similar to the objective of knowledge distillation in LLMs. We analyze the similarity in information focus between the distilled language model(DLM) and the original LLM from the perspective of information theory, and thus propose a novel paradigm that leverages a DLM as the retrieval algorithm. Based on the insight, we present SpeContext, an algorithm and system co-design for long-context reasoning. (1) At the algorithm level, SpeContext proposes lightweight retrieval head based on the head-level attention weights of DLM, achieving > 90% parameters reduction by pruning the redundancy. (2) At the system level, SpeContext designs an asynchronous prefetch dataflow via the elastic loading strategy, effectively overlapping KV cache retrieval with the LLM computation. (3) At the compilation level, SpeContext constructs the theoretical memory model and implements an adaptive memory management system to achieve acceleration by maximizing GPU memory utilization. We deploy and evaluate SpeContext in two resourceconstrained environments, cloud and edge. Extensive experiments show that, compared with the Huggingface framework, SpeContext achieves up to 24.89x throughput improvement in cloud and 10.06x speedup in edge with negligible accuracy loss, pushing the Pareto frontier of accuracy and throughput.

📄 PDF Abstract BibTeX arXiv:2512.00722

Code (0)

등록된 구현이 없습니다.

Tasks

Knowledge Distillation

Similar Papers 제목 키워드 기반

LongSpec: Long-Context Speculative Decoding with Efficient Drafting and Verification

2025-02-24 · Penghui Yang, Cunxiao Du, Fengzhuo Zhang, Haonan Wang 외

Speculative decoding has become a promising technique to mitigate the high inference latency of autoregressive decoding in Large Language Models (LLMs). Despite its promise, the effective application of speculative decod…

Code Completion

ConfSpec: Efficient Step-Level Speculative Reasoning via Confidence-Gated Verification

2026-01-28 · Siran Liu, Cyril Y. He arxiv

Chain-of-Thought reasoning significantly improves the performance of large language models on complex tasks, but incurs high inference latency due to long generation traces. Step-level speculative reasoning aims to mitig…

SpecPV: Improving Self-Speculative Decoding for Long-Context Generation via Partial Verification

2025-12-02 · Zhendong Tan, Xingjun Zhang, Chaoyi Hu, Junjie Peng 외 arxiv

Growing demands from tasks like code generation, deep reasoning, and long-document understanding have made long-context generation a crucial capability for large language models (LLMs). Speculative decoding is one of the…

Code Generation

Thinking with Drafts: Speculative Temporal Reasoning for Efficient Long Video Understanding

2025-11-30 · Pengfei Hu, Meng Cao, Yingyao Wang, Yi Wang 외 arxiv

Long video understanding is essential for human-like intelligence, enabling coherent perception and reasoning over extended temporal contexts. While the emerging thinking-with-frames paradigm, which alternates between gl…

Reinforcement Learning

Scaling Up, Speeding Up: A Benchmark of Speculative Decoding for Efficient LLM Test-Time Scaling

2025-08-30 · Shengyin Sun, Yiming Li, Xing Li, Yingzhao Lian 외 arxiv

Test-time scaling has emerged as a powerful paradigm for enhancing the reasoning capabilities of large language models (LLMs) by allocating additional computational resources during inference. However, this paradigm is i…