Skip to main content
QUICK REVIEW

[논문 리뷰] Can Long-Context Language Models Subsume Retrieval, RAG, SQL, and More?

Jinhyuk Lee, Anthony Chen|arXiv (Cornell University)|2024. 06. 19.
Natural Language Processing TechniquesComputer Science인용 수 3
한 줄 요약

이 논문은 텍스트, 시각, 청각을 아우르는 35개의 데이터셋을 포함한 LOFT라는 벤치마크를 소개한다. 이는 최대 100만 토큰에 이르는 실제 작업을 수행하는 장기적 맥락 언어 모델(LCLMs)을 평가하기 위한 것이다. LCLMs는 커리큘럼-인-컨텍스트(CiC) 프롬프팅을 사용하여 128k 토큰에서 전문적인 검색 및 RAG 시스템과 맞먹는 성능을 보이지만, 복잡한 조합적 추론에서는 어려움을 겪으며, 맥락 창이 커짐에 따라 향상된 프롬프팅과 추론 전략이 필요하다는 점을 시사한다.

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.

연구 동기 및 목표

  • 장기적 맥락 언어 모델(LCLMs)이 검색 시스템, RAG 파이프라인, SQL 데이터베이스와 같은 전통적 도구를 대체할 수 있는지 평가하기 위해.
  • 매우 넓은 맥락 창을 처리할 수 있음에도 불구하고 LCLMs가 복잡한 추론 작업에서 겪는 한계를 규명하기 위해.
  • 합성적이거나 고정 길이 평가를 넘어서 실제 세계의 장기적 맥락 작업에서 LCLMs를 시험할 수 있는 철저하고 확장 가능한 벤치마크를 구축하기 위해.
  • 다양한 모odal과 작업에서 일관된 인-컨텍스트 학습의 패러다임으로서 커리큘럼-인-컨텍스트(CiC) 프롬프팅의 효과성을 탐색하기 위해.
  • 체인 오브 토우크(Chain-of-Thought)와 같은 프롬프팅 전략이 장기적 맥락 추론 및 검색 작업에서 LCLM 성능에 미치는 영향을 평가하기 위해.

제안 방법

  • 최대 100만 토큰의 맥락 길이를 지원하고 수천만 토큰으로도 확장 가능한, 6개의 작업을 포함한 35개의 데이터셋으로 구성된 LOFT를 제안한다.
  • 전체 컬렉션을 프롬프트에 통합하여 외부 도구 없이도 인-컨텍스트 검색과 추론가능하게 하는 커리큘럼-인-컨텍스트(CiC) 프롬프팅을 설계한다.
  • 표준화된 프롬프트와 평가 프로토콜을 사용하여 최신 LCLMs인 Gemini 1.5 Pro, GPT-4o, Claude 3 Opus를 LOFT에서 평가한다.
  • 자동 데이터 생성을 활용해 작업 전반에 걸쳐 맥락 길이를 확장하여, 실제 장기적 맥락 조건에서 LCLMs의 성능을 시험할 수 있도록 한다.
  • 전문적이고 수작업 최적화된 모델들(예: 검색에 대해 Gecko, 시각에 대해 CLIP)과의 성능 비교를 통해 LCLMs의 성능 수준과 격차를 평가한다.
  • 체인 오브 토우크와 지시 튜닝 등 다양한 프롬프팅 전략에 대한 분석을 수행하여 추론 및 검색 정확도에 미치는 영향을 분리 분석한다.
Figure 2: Corpus creation for retrieval and RAG. Given a set of test queries, we use their associated gold passages and other random passages to form the corpus.
Figure 2: Corpus creation for retrieval and RAG. Given a set of test queries, we use their associated gold passages and other random passages to form the corpus.

실험 결과

연구 질문

  • RQ1최대 100만 토큰의 컬렉션을 처리할 때, 장기적 맥락 언어 모델(LCLMs)이 검색 및 RAG 시스템과 비슷한 성능을 낼 수 있는가?
  • RQ2LCLMs는 공식 쿼리 언어로 변환하지 않고도 SQL 데이터베이스에서와 같은 복잡한 추론 작업을 수행할 수 있는가?
  • RQ3체인 오브 토우크와 같은 다양한 프롬프팅 전략이 장기적 맥락 작업에서 LCLMs의 강건성과 정확도에 어떤 영향을 미치는가?
  • RQ4LCLMs는 다수의 문서나 테이블에서 정보를 통합해야 하는 다단계 조합적 추론 작업을 효과적으로 처리할 수 있는가?
  • RQ5맥락 길이의 확장성은 실제 다중 모odal 애플리케이션에서 LCLMs의 일반화 능력과 신뢰성에 어떤 영향을 미치는가?

주요 결과

  • 128k 토큰에서 Gemini 1.5 Pro와 같은 LCLMs는 Gecko와 같은 전문 검색 시스템과 비슷한 성능을 보이며, 강력한 인-컨텍스트 검색 능력을 입증한다.
  • Gemini 1.5 Pro는 주요 다중 모달 검색 모델인 CLIP을 시각 검색 작업에서 능가하며, LCLMs가 전용 모델을 대체할 수 있음을 시사한다.
  • LCLMs의 성능은 프롬프팅 전략에 따라 크게 달라지며, 체인 오브 토우크 프롬프팅이 추론 정확도를 크게 향상시킨다.
  • 강력한 검색 및 RAG 성능에도 불구하고, LCLMs는 SQL에서의 다단계 추론과 같은 복잡한 조합적 추론 작업에서 어려움을 겪으며, 이는 추론 일반화의 심각한 격차를 드러낸다.
  • LOFT 벤치마크는 LCLMs가 많은 작업에서 전문 모델과 맞먹지만, 장기적 맥락 조건에서 강건하고 신뢰할 수 있는 추론을 수행하는 데 여전히 도전 과제를 안고 있음을 드러낸다.
  • 본 연구는 커리큘럼-인-컨텍스트 프롬프팅이 검색, RAG, 소수 샘플 학습을 종단 간 엔드 툴리스 방식으로 실행할 수 있음을 확인하며, 파이프라인 설계를 단순화한다.
Figure 3: Example of Corpus-in-Context Prompting for retrieval. CiC prompting leverages large language models’ capacity to follow instructions, leverage few-shot examples, and benefit from reasoning demonstrations to retrieve and reason over large corpora provided in context.
Figure 3: Example of Corpus-in-Context Prompting for retrieval. CiC prompting leverages large language models’ capacity to follow instructions, leverage few-shot examples, and benefit from reasoning demonstrations to retrieve and reason over large corpora provided in context.

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.