Skip to main content
QUICK REVIEW

[논문 리뷰] BABILong: Testing the Limits of LLMs with Long Context Reasoning-in-a-Haystack

Yuri Kuratov, Aydar Bulatov|arXiv (Cornell University)|2024. 06. 14.
Natural Language Processing TechniquesComputer Science인용 수 6
한 줄 요약

BABILong 벤치마크는 20개 과제에서 긴 맥락 추론을 평가하며 배경 텍스트와 함께, 제한된 맥락 활용(10-20%), 약한 RAG 성능, 그리고 최대 11백만 토큰까지 처리하는 강한 순환 기억 모델을 보여준다.

ABSTRACT

In recent years, the input context sizes of large language models (LLMs) have increased dramatically. However, existing evaluation methods have not kept pace, failing to comprehensively assess the efficiency of models in handling long contexts. To bridge this gap, we introduce the BABILong benchmark, designed to test language models' ability to reason across facts distributed in extremely long documents. BABILong includes a diverse set of 20 reasoning tasks, including fact chaining, simple induction, deduction, counting, and handling lists/sets. These tasks are challenging on their own, and even more demanding when the required facts are scattered across long natural text. Our evaluations show that popular LLMs effectively utilize only 10-20\% of the context and their performance declines sharply with increased reasoning complexity. Among alternatives to in-context reasoning, Retrieval-Augmented Generation methods achieve a modest 60\% accuracy on single-fact question answering, independent of context length. Among context extension methods, the highest performance is demonstrated by recurrent memory transformers after fine-tuning, enabling the processing of lengths up to 50 million tokens. The BABILong benchmark is extendable to any length to support the evaluation of new upcoming models with increased capabilities, and we provide splits up to 10 million token lengths.

연구 동기 및 목표

  • 현재 LLM들이 극도로 긴 문서에 분산된 사실들에 대해 얼마나 잘 추론하는지 평가한다.
  • 맥락 확장 방법과 검색 기반 생성이 긴 입력에서 얼마나 효과적인지 평가한다.
  • 최신 모델을 평가하기 위한 길이가 최대 1백만 토큰까지의 확장 가능한 벤치마크를 제공하며(테스트는 최대 11백만)

제안 방법

  • PG19의 배경 텍스트에 작업 문장을 삽입하여 길이가 긴 맥락을 만드는 BABI 스타일 추론 과제를 확장한다.
  • 사실 체인, 유도, 연역, 개수 세기, 목록/집합 등을 포함한 다양한 맥락 길이 및 작업 유형에 대해 24개 모델을 평가한다.
  • RAG와 맥락 확장 방법(예: 순환 기억 트랜스포머)을 비교한다.
  • 짧은 시퀀스에서 긴 시퀀스로의 커리큘럼 학습으로 BABILong에 대해 선택된 모델을 미세 조정한다.
  • 사전에 정의된 길이 분할을 최대 1M 토큰까지 사용하고 일부 모델은 11M 토큰까지 테스트한다.

실험 결과

연구 질문

  • RQ1현재 LLM이 극도로 긴 문서에 사실이 분산되었을 때 긴 맥락 추론 과제에서 어떻게 수행하는가?
  • RQ2모델이 이용 가능한 맥락을 어느 정도 활용하며, 맥락 길이와 추론 복잡도에 따라 성능이 어떻게 확장되는가?
  • RQ3특히 다중 홉 추론의 경우 BABILong 과제에서 RAG와 다양한 맥락 확장 접근법은 어떻게 비교되는가?
  • RQ4작고 미세 조정된 모델(RMT, Mamba)이 매우 긴 입력 길이에서 더 큰 모델이나 RAG를 능가할 수 있는가?
  • RQ5BABILong 결과와 다른 벤치마크(MMLU, RULER) 간의 관계는 맥락 길이에 따라 어떤가?

주요 결과

  • 인기 있는 LLM은 입력 맥락의 약 10-20%만을 효과적으로 사용한다.
  • 추론 복잡도와 입력 길이가 증가함에 따라 성능이 급격히 저하된다.
  • RAG 방법은 단일 사실 질문에서 약 60% 정확도를 달성하며 맥락 길이에 거의 독립적이다.
  • 미세 조정된 순환 기억 트랜스포머(RMT)는 매우 긴 텍스트를 처리하며 최대 11M 토큰까지 가능하고 긴 맥락 과제에서 RAG를 능가한다.
  • Mamba와 RMT는 평가된 모델 중 가장 강력한 결과를 제공하며, RMT는 학습 길이를 훨씬 넘는 능력(최대 11M 토큰)도 유지한다.
  • 미세 조정은 더 긴 맥락에서의 성능을 향상시키지만, 기본 크기 모델은 일반적으로 특수한 긴 맥락 적응 없이 제한적이다.

이 논문 읽기

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

누빈트에서 이 논문 읽기

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