paper-with-me

홈 › Papers

Needle in the Haystack for Memory Based Large Language Models

2024-07-01 · Elliot Nelson, Georgios Kollias, Payel Das, Subhajit Chaudhury, Soham Dan

Current large language models (LLMs) often perform poorly on simple fact retrieval tasks. Here we investigate if coupling a dynamically adaptable external memory to a LLM can alleviate this problem. For this purpose, we test Larimar, a recently proposed language model architecture which uses an external associative memory, on long-context recall tasks including passkey and needle-in-the-haystack tests. We demonstrate that the external memory of Larimar, which allows fast write and read of an episode of text samples, can be used at test time to handle contexts much longer than those seen during training. We further show that the latent readouts from the memory (to which long contexts are written) control the decoder towards generating correct outputs, with the memory stored off of the GPU. Compared to existing transformer-based LLM architectures for long-context recall tasks that use larger parameter counts or modified attention mechanisms, a relatively smaller size Larimar is able to maintain strong performance without any task-specific training or training on longer contexts.

📄 PDF Abstract BibTeX arXiv:2407.01437

Code (0)

등록된 구현이 없습니다.

Tasks

DecoderGPULanguage ModelingLanguage ModellingLarge Language Model

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 설명 없음

Similar Papers 제목 키워드 기반

Fast Bayesian Optimization of Needle-in-a-Haystack Problems using Zooming Memory-Based Initialization (ZoMBI)

2022-08-26 · Alexander E. Siemenn, Zekun Ren, Qianxiao Li, Tonio Buonassisi

Needle-in-a-Haystack problems exist across a wide range of applications including rare disease prediction, ecological resource management, fraud detection, and material property optimization. A Needle-in-a-Haystack probl…

Bayesian OptimizationDisease PredictionFraud DetectionManagement

Multimodal Needle in a Haystack: Benchmarking Long-Context Capability of Multimodal Large Language Models

2024-06-17 · Hengyi Wang, Haizhou Shi, Shiwei Tan, Weiyi Qin 외

Multimodal Large Language Models (MLLMs) have shown significant promise in various applications, leading to broad interest from researchers and practitioners alike. However, a comprehensive evaluation of their long-conte…

BenchmarkingHallucinationImage Retrieval+4

Multilingual Needle in a Haystack: Investigating Long-Context Behavior of Multilingual Large Language Models

2024-08-19 · Amey Hengle, Prasoon Bajpai, Soham Dan, Tanmoy Chakraborty

While recent large language models (LLMs) demonstrate remarkable abilities in responding to queries in diverse languages, their ability to handle long multilingual contexts is unexplored. As such, a systematic evaluation…

8kInformation RetrievalQuestion AnsweringRetrieval

NoLiMa: Long-Context Evaluation Beyond Literal Matching

2025-02-07 · Ali Modarressi, Hanieh Deilamsalehy, Franck Dernoncourt, Trung Bui 외

Recent large language models (LLMs) support long contexts ranging from 128K to 1M tokens. A popular method for evaluating these capabilities is the needle-in-a-haystack (NIAH) test, which involves retrieving a "needle" (…

DENIAHL: In-Context Features Influence LLM Needle-In-A-Haystack Abilities

2024-11-28 · Hui Dai, Dan Pechi, Xinyi Yang, Garvit Banga 외

The Needle-in-a-haystack (NIAH) test is a general task used to assess language models' (LMs') abilities to recall particular information from long input context. This framework however does not provide a means of analyzi…