paper-with-me

홈 › Papers

QuickLLaMA: Query-aware Inference Acceleration for Large Language Models

2024-06-11 · Jingyao Li, Han Shi, Xin Jiang, Zhenguo Li, Hong Xu, Jiaya Jia

The capacity of Large Language Models (LLMs) to comprehend and reason over long contexts is pivotal for advancements in diverse fields. Yet, they still stuggle with capturing long-distance dependencies within sequences to deeply understand semantics. To address this issue, we introduce Query-aware Inference for LLMs (Q-LLM), a system designed to process extensive sequences akin to human cognition. By focusing on memory data relevant to a given query, Q-LLM can accurately capture pertinent information within a fixed window size and provide precise answers to queries. It doesn't require extra training and can be seamlessly integrated with any LLMs. Q-LLM using LLaMA3 (QuickLLaMA) can read Harry Potter within 30s and accurately answer the questions. On widely recognized benchmarks, Q-LLM improved by 7.17% compared to the current state-of-the-art on LLaMA3, and by 3.26% on Mistral on the $\infty$-bench. In the Needle-in-a-Haystack and BABILong task, Q-LLM improved upon the current SOTA by 7.0% and 6.1%. Our code can be found in https://github.com/dvlab-research/Q-LLM.

📄 PDF Abstract BibTeX arXiv:2406.07528

Code (1)

dvlab-research/q-llm 공식 구현 pytorch

Similar Papers 제목 키워드 기반

EdgeQAT: Entropy and Distribution Guided Quantization-Aware Training for the Acceleration of Lightweight LLMs on the Edge

2024-02-16 · Xuan Shen, Zhenglun Kong, Changdi Yang, Zhaoyang Han 외

Despite the remarkable strides of Large Language Models (LLMs) in various fields, the wide applications of LLMs on edge devices are limited due to their massive parameters and computations. To address this, quantization …

Quantization

An LLM-Guided Query-Aware Inference System for GNN Models on Large Knowledge Graphs

2026-03-04 · Waleed Afandi, Hussein Abdallah, Ashraf Aboulnaga, Essam Mansour arxiv

Efficient inference for graph neural networks (GNNs) on large knowledge graphs (KGs) is essential for many real-world applications. GNN inference queries are computationally expensive and vary in complexity, as each invo…

Knowledge DistillationKnowledge Graphs

OmniSparse: Training-Aware Fine-Grained Sparse Attention for Long-Video MLLMs

2025-11-15 · Feng Chen, Yefei He, Shaoxuan He, Yuanyu He 외 arxiv

Existing sparse attention methods primarily target inference-time acceleration by selecting critical tokens under predefined sparsity patterns. However, they often fail to bridge the training-inference gap and lack the c…

Semantic Similarity

LightRetriever: A LLM-based Hybrid Retrieval Architecture with 1000x Faster Query Inference

2025-05-18 · Guangyuan Ma, Yongliang Ma, Xuanrui Gou, Zhenpeng Su 외

Large Language Models (LLMs)-based hybrid retrieval uses LLMs to encode queries and documents into low-dimensional dense or high-dimensional sparse vectors. It retrieves documents relevant to search queries based on vect…

GPURetrieval

LocalSUG: City-Preference-Enhanced LLM for Query Suggestion in Local-Life Services

2026-03-05 · Jinwen Chen, Shiwen Zhang, Shuai Gong, Zheng Zhang 외 arxiv

In local-life service platforms, query suggestion reduces user effort by generating candidate queries from input prefixes. Traditional multi-stage systems rely heavily on historical popular queries, limiting their abilit…