vix.ing · top · new · best · stats

Leave No Context Behind: Efficient Infinite Context Transformers with Infini-attention

2024/04/10 by Tsendsuren Munkhdalai, Manaal Faruqui, Munkhdalai, Tsendsuren +3 · 5 voices · 60 citations
Computer Science · Engineering · #Advanced Image and Video Retrieval Techniques #Advanced Neural Network Applications #Anomaly Detection Techniques and Applications #Computer science #Context (archaeology) #Electrical engineering #Engineering #History #Transformer

paper · pdf · doi:10.48550/arxiv.2404.07143

published in arXiv (Cornell University) (Cornell University)

openalex publication_date 2024/04/10 · openalex created_date 2024/04/12 · openalex updated_date 2026/07/28

Abstract

This work introduces an efficient method to scale Transformer-based Large Language Models (LLMs) to infinitely long inputs with bounded memory and computation. A key component in our proposed approach is a new attention technique dubbed Infini-attention. The Infini-attention incorporates a compressive memory into the vanilla attention mechanism and builds in both masked local attention and long-term linear attention mechanisms in a single Transformer block. We demonstrate the effectiveness of our approach on long-context language modeling benchmarks, 1M sequence length passkey context block retrieval and 500K length book summarization tasks with 1B and 8B LLMs. Our approach introduces minimal bounded memory parameters and enables fast streaming inference for LLMs.

Cited by

Discussions

Related