GDM Format
lastmod 2026-11-16created 2025-04-152 edits
[2406.13121] Can Long-Context Language Models Subsume Retrieval, RAG, SQL, and More?
Abstract
Long-context language models (LCLMs) have the potential to revolutionize our approach to tasks traditionally reliant on external tools like retrieval systems or databases. Leveraging LCLMs' ability to natively ingest and process entire corpora of information offers numerous advantages. It enhances user-friendliness by eliminating the need for specialized knowledge of tools, provides robust end-to-end modeling that minimizes cascading errors in complex pipelines, and allows for the application of sophisticated prompting techniques across the entire system. To assess this paradigm shift, we introduce LOFT, a benchmark of real-world tasks requiring context up to millions of tokens designed to evaluate LCLMs' performance on in-context retrieval and reasoning. Our findings reveal LCLMs' surprising ability to rival state-of-the-art retrieval and RAG systems, despite never having been explicitly trained for these tasks. However, LCLMs still face challenges in areas like compositional reasoning that are required in SQL-like tasks. Notably, prompting strategies significantly influence performance, emphasizing the need for continued research as context lengths grow. Overall, LOFT provides a rigorous testing ground for LCLMs, showcasing their potential to supplant existing paradigms and tackle novel tasks as model capabilities scale.
어디서 찾음?
OAI가 GPT 4.1을 위한 프롬프트 가이드를 발행함
- 에이전트 프롬프트에는 세 가지 리마인더를 넣으라고 권함. 문제가 풀릴 때까지 턴을 끝내지 말라는 지속성(persistence), 추측 대신 도구를 쓰라는 도구 호출, 선택 사항인 계획. OpenAI 내부 SWE-bench Verified 점수가 20% 가까이 올랐다고 함
- 긴 컨텍스트에 문서를 많이 넣을 때 XML(
<doc id='1' title='The Fox'>...</doc>)과 Lee et al.(arXiv 2406.13121)이 제안한ID: 1 | TITLE: The Fox | CONTENT: ...형식이 잘 동작했고, JSON 은 특히 성능이 나빴음 - 긴 컨텍스트에서는 지시를 컨텍스트 앞과 뒤 양쪽에 두는 것이 가장 좋았고, 한 번만 둔다면 컨텍스트 아래보다 위가 나음
Documentation
- Can Long-Context Language Models Subsume Retrieval, RAG, SQL, and More?
- https://arxiv.org/abs/2406.13121