paper-with-me

홈 › Papers

Anchor-based Large Language Models

2024-02-12 · Jianhui Pang, Fanghua Ye, Derek Fai Wong, Xin He, Wanshun Chen, Longyue Wang

Large language models (LLMs) predominantly employ decoder-only transformer architectures, necessitating the retention of keys/values information for historical tokens to provide contextual information and avoid redundant computation. However, the substantial size and parameter volume of these LLMs require massive GPU memory. This memory demand increases with the length of the input text, leading to an urgent need for more efficient methods of information storage and processing. This study introduces Anchor-based LLMs (AnLLMs), which utilize an innovative anchor-based self-attention network (AnSAN) and also an anchor-based inference strategy. This approach enables LLMs to compress sequence information into an anchor token, reducing the keys/values cache and enhancing inference efficiency. Experiments on question-answering benchmarks reveal that AnLLMs maintain similar accuracy levels while achieving up to 99% keys/values cache reduction and up to 3.5 times faster inference. Despite a minor compromise in accuracy, the substantial enhancements of AnLLMs employing the AnSAN technique in resource utilization and computational efficiency underscore their potential for practical LLM applications.

📄 PDF Abstract BibTeX arXiv:2402.07616

Code (1)

pangjh3/anllm 공식 구현 pytorch

Tasks

Computational EfficiencyDecoderGPUQuestion Answering

Similar Papers 제목 키워드 기반

Code-Switching Reveals Language Anchoring in Multilingual LLMs

2026-06-18 · Jeonghyun Park, Seunghyun Yoon, Yonghyun Jun, Hwanhee Lee arxiv

Multilingual Large Language Models (MLLMs) are increasingly expected to handle Code-Switched (CS) inputs, yet mixing languages frequently degrades performance relative to source- or target-language monolingual counterpar…

Question Answering

Visual Anchors Are Strong Information Aggregators For Multimodal Large Language Model

2024-05-28 · Haogeng Liu, Quanzeng You, Xiaotian Han, Yongfei Liu 외

In the realm of Multimodal Large Language Models (MLLMs), vision-language connector plays a crucial role to link the pre-trained vision encoders with Large Language Models (LLMs). Despite its importance, the vision-langu…

Language ModelingLanguage ModellingLarge Language ModelMultimodal Large Language Model

AnchorBench: A Multi-Pathway Benchmark for the Anchoring Effect in LLMs

2026-08-14 · Yiderigun Borjigin, Alexander Hermann, Christian Cyron, Roland Aydin arxiv

The anchoring effect is a cognitive bias in which an initial reference value shifts a later judgment toward itself. This effect is well established in human judgment and decision-making, and recent work suggests that lar…

Anchoring Bias in Large Language Models: An Experimental Study

2024-12-09 · Jiaxu Lou, Yifan Sun

Large Language Models (LLMs) like GPT-4 and Gemini have significantly advanced artificial intelligence by enabling machines to generate and comprehend human-like text. Despite their impressive capabilities, LLMs are not …

Anchor function: a type of benchmark functions for studying language models

2024-01-16 · Zhongwang Zhang, Zhiwei Wang, Junjie Yao, Zhangchen Zhou 외

Understanding transformer-based language models is becoming increasingly crucial, particularly as they play pivotal roles in advancing towards artificial general intelligence. However, language model research faces signi…

Language Modelling