paper-with-me

Papers

Deja Vu: Contextual Sparsity for Efficient LLMs at Inference Time

2023-10-26 · Zichang Liu, Jue Wang, Tri Dao, Tianyi Zhou, Binhang Yuan, Zhao Song, Anshumali Shrivastava, Ce Zhang, Yuandong Tian, Christopher Re, Beidi Chen

Large language models (LLMs) with hundreds of billions of parameters have sparked a new wave of exciting AI applications. However, they are computationally expensive at inference time. Sparsity is a natural approach to reduce this cost, but existing methods either require costly retraining, have to forgo LLM's in-context learning ability, or do not yield wall-clock time speedup on modern hardware. We hypothesize that contextual sparsity, which are small, input-dependent sets of attention heads and MLP parameters that yield approximately the same output as the dense model for a given input, can address these issues. We show that contextual sparsity exists, that it can be accurately predicted, and that we can exploit it to speed up LLM inference in wall-clock time without compromising LLM's quality or in-context learning ability. Based on these insights, we propose DejaVu, a system that uses a low-cost algorithm to predict contextual sparsity on the fly given inputs to each layer, along with an asynchronous and hardware-aware implementation that speeds up LLM inference. We validate that DejaVu can reduce the inference latency of OPT-175B by over 2X compared to the state-of-the-art FasterTransformer, and over 6X compared to the widely used Hugging Face implementation, without compromising model quality. The code is available at https://github.com/FMInference/DejaVu.

📄 PDF Abstract BibTeX arXiv:2310.17157

Code (1)

fminference/dejavu 공식 구현 pytorch

Tasks

In-Context Learning

Methods 이 논문이 사용한 방법론

SPEED The monocular depth estimation (MDE) is the task of estimating depth from a single frame. This information is an essential knowledge in many computer vision tasks such as scene…

Similar Papers 제목 키워드 기반

ShadowLLM: Predictor-based Contextual Sparsity for Large Language Models

2024-06-24 · Yash Akhauri, Ahmed F AbouElhamayed, Jordan Dotzel, Zhiru Zhang 외

The high power consumption and latency-sensitive deployments of large language models (LLMs) have motivated efficiency techniques like quantization and sparsity. Contextual sparsity, where the sparsity pattern is input-d…

Quantization

SVD Contextual Sparsity Predictors for Fast LLM Inference

2026-03-14 · Georgii Serbin, Kirill Koshkin, Zhongao Sun, Anastasiya Bistrigova 외 arxiv

Contextual sparsity is one of the approaches used to reduce computational complexity in the inference process of large language models (LLMs). Existing techniques for efficient LLM inference acceleration based on context…

Code Generation

First Activations Matter: Training-Free Methods for Dynamic Activation in Large Language Models

2024-08-21 · Chi Ma, Mincong Huang, Ying Zhang, Chao Wang 외

Dynamic activation (DA) techniques, such as DejaVu and MoEfication, have demonstrated their potential to significantly enhance the inference efficiency of large language models (LLMs). However, these techniques often rel…

DejAIvu: Identifying and Explaining AI Art on the Web in Real-Time with Saliency Maps

2025-02-12 · Jocelyn Dzuong

The recent surge in advanced generative models, such as diffusion models and generative adversarial networks (GANs), has led to an alarming rise in AI-generated images across various domains on the web. While such techno…

MarketingMisinformation

Dejavu: Towards Experience Feedback Learning for Embodied Intelligence

2025-10-11 · Shaokai Wu, Yanbiao Ji, Qiuchang Li, Zhiyi Zhang 외 arxiv

Embodied agents face a fundamental limitation: once deployed in real-world environments, they cannot easily acquire new knowledge to improve task performance. In this paper, we propose Dejavu, a general post-deployment l…

Reinforcement LearningSemantic Similarity