paper-with-me

홈 › Papers

Inference-Friendly Models With MixAttention

2024-09-23 · Shashank Rajput, Ying Sheng, Sean Owen, Vitaliy Chiley

The size of the key-value (KV) cache plays a critical role in determining both the maximum context length and the number of concurrent requests supported during inference in modern language models. The KV cache size grows proportionally with the number of attention heads and the tokens processed, leading to increased memory consumption and slower inference for long inputs. In this work, we explore the use of MixAttention, a model architecture modification closely related to a blog published by Character.AI. MixAttention combines sliding window attention, where only a small subset of recent tokens is stored in the KV cache, with KV cache sharing across layers. Our experiments demonstrate that MixAttention significantly reduces memory usage and improves inference speed without sacrificing model performance in both short and long-context tasks. We also explore various configurations of this architecture, identifying those that maintain quality across evaluation metrics while optimizing resource efficiency.

📄 PDF Abstract BibTeX arXiv:2409.15012

Code (1)

whyNLP/LCKV pytorch

Methods 이 논문이 사용한 방법론

Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Attention 설명 없음
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 제목 키워드 기반

LLMs Can Understand Encrypted Prompt: Towards Privacy-Computing Friendly Transformers

2023-05-28 · Xuanqi Liu, Zhuotao Liu

The community explored to build private inference frameworks for transformer-based large language models (LLMs) in a server-client setting, where the server holds the model parameters and the client inputs its private da…

HEMET: A Homomorphic-Encryption-Friendly Privacy-Preserving Mobile Neural Network Architecture

2021-05-31 · Qian Lou, Lei Jiang

Recently Homomorphic Encryption (HE) is used to implement Privacy-Preserving Neural Networks (PPNNs) that perform inferences directly on encrypted data without decryption. Prior PPNNs adopt mobile network architectures s…

Privacy Preserving

A Quantization-Friendly Separable Convolution for MobileNets

2018-03-22 · Tao Sheng, Chen Feng, Shaojie Zhuo, Xiaopeng Zhang 외

As deep learning (DL) is being rapidly pushed to edge computing, researchers invented various ways to make inference computation more efficient on mobile/IoT devices, such as network pruning, parameter compression, and e…

Edge-computingGPUimage-classificationImage Classification+2

Lighthouse: A User-Friendly Library for Reproducible Video Moment Retrieval and Highlight Detection

2024-08-06 · Taichi Nishimura, Shota Nakada, Hokuto Munakata, Tatsuya Komatsu

We propose Lighthouse, a user-friendly library for reproducible video moment retrieval and highlight detection (MR-HD). Although researchers proposed various MR-HD approaches, the research community holds two main issues…

audio moment retrievalHighlight DetectionMoment Retrieval

SpaceEvo: Hardware-Friendly Search Space Design for Efficient INT8 Inference

2023-03-15 · ICCV 2023 1 · Li Lyna Zhang, Xudong Wang, Jiahang Xu, Quanlu Zhang 외

The combination of Neural Architecture Search (NAS) and quantization has proven successful in automatically designing low-FLOPs INT8 quantized neural networks (QNN). However, directly applying NAS to design accurate QNN …

Neural Architecture SearchQuantization