paper-with-me

홈 › Papers

ChunkLLM: A Lightweight Pluggable Framework for Accelerating LLMs Inference

2025-09-28 · Haojie Ouyang, Jianwei Lv, Lei Ren, Chen Wei, Xiaojie Wang, Fangxiang Feng arxiv

Transformer-based large models excel in natural language processing and computer vision, but face severe computational inefficiencies due to the self-attention's quadratic complexity with input tokens. Recently, researchers have proposed a series of methods based on block selection and compression to alleviate this problem, but they either have issues with semantic incompleteness or poor training-inference efficiency. To comprehensively address these challenges, we propose ChunkLLM, a lightweight and pluggable training framework. Specifically, we introduce two components: QK Adapter (Q-Adapter and K-Adapter) and Chunk Adapter. The former is attached to each Transformer layer, serving dual purposes of feature compression and chunk attention acquisition. The latter operates at the bottommost layer of the model, functioning to detect chunk boundaries by leveraging contextual semantic information. During the training phase, the parameters of the backbone remain frozen, with only the QK Adapter and Chunk Adapter undergoing training. Notably, we design an attention distillation method for training the QK Adapter, which enhances the recall rate of key chunks. During the inference phase, chunk selection is triggered exclusively when the current token is detected as a chunk boundary, thereby accelerating model inference. Experimental evaluations are conducted on a diverse set of long-text and short-text benchmark datasets spanning multiple tasks. ChunkLLM not only attains comparable performance on short-text benchmarks but also maintains 98.64% of the performance on long-context benchmarks while preserving a 48.58% key-value cache retention rate. Particularly, ChunkLLM attains a maximum speedup of 4.48x in comparison to the vanilla Transformer in the processing of 120K long texts.

📄 PDF Abstract BibTeX arXiv:2510.02361

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

PRCA: Fitting Black-Box Large Language Models for Retrieval Question Answering via Pluggable Reward-Driven Contextual Adapter

2023-10-23 · Haoyan Yang, Zhitao Li, Yong Zhang, Jianzong Wang 외

The Retrieval Question Answering (ReQA) task employs the retrieval-augmented framework, composed of a retriever and generator. The generator formulates the answer based on the documents retrieved by the retriever. Incorp…

Question AnsweringRetrieval

LightNER: A Lightweight Tuning Paradigm for Low-resource NER via Pluggable Prompting

2021-08-31 · COLING 2022 10 · Xiang Chen, Lei LI, Shumin Deng, Chuanqi Tan 외

Most NER methods rely on extensive labeled data for model training, which struggles in the low-resource scenarios with limited training data. Existing dominant approaches usually suffer from the challenge that the target…

Few-Shot LearningLanguage ModellingNERTransfer Learning

Plug-Tagger: A Pluggable Sequence Labeling Framework with Pre-trained Language Models

2021-11-16 · ACL ARR November 2021 11 · Anonymous

Fine-tuning the pre-trained language models (PLMs) on downstream tasks is the de-facto paradigm in NLP. Despite the superior performance on sequence labeling, the fine-tuning requires large-scale parameters and time-cons…

Language ModelingLanguage Modelling

One Token Can Help! Learning Scalable and Pluggable Virtual Tokens for Retrieval-Augmented Large Language Models

2024-05-30 · Yutao Zhu, Zhaoheng Huang, Zhicheng Dou, Ji-Rong Wen

Retrieval-augmented generation (RAG) is a promising way to improve large language models (LLMs) for generating more factual, accurate, and up-to-date content. Existing methods either optimize prompts to guide LLMs in lev…

Question AnsweringRAGRetrievalRetrieval-augmented Generation

Enhancing the Capability and Robustness of Large Language Models through Reinforcement Learning-Driven Query Refinement

2024-07-01 · Zisu Huang, Xiaohua Wang, Feiran Zhang, Zhibo Xu 외

The capacity of large language models (LLMs) to generate honest, harmless, and helpful responses heavily relies on the quality of user prompts. However, these prompts often tend to be brief and vague, thereby significant…