Skip to main content
QUICK REVIEW

[논문 리뷰] The What, Why, and How of Context Length Extension Techniques in Large Language Models -- A Detailed Survey

Saurav Pawar, S. M Towhidul Islam Tonmoy|arXiv (Cornell University)|2024. 01. 15.
Topic ModelingComputer Science인용 수 6
한 줄 요약

LLM의 맥락 길이 확장 기술에 대한 포괄적 고찰로, 보간(interpolation)과 외삽(extrapolation) 방법을 분류하고 위치, 메모리, 검색 및 미세 조정 접근법과 평가 과제에 대해 검토한다.

ABSTRACT

The advent of Large Language Models (LLMs) represents a notable breakthrough in Natural Language Processing (NLP), contributing to substantial progress in both text comprehension and generation. However, amidst these advancements, it is noteworthy that LLMs often face a limitation in terms of context length extrapolation. Understanding and extending the context length for LLMs is crucial in enhancing their performance across various NLP applications. In this survey paper, we delve into the multifaceted aspects of exploring why it is essential, and the potential transformations that superior techniques could bring to NLP applications. We study the inherent challenges associated with extending context length and present an organized overview of the existing strategies employed by researchers. Additionally, we discuss the intricacies of evaluating context extension techniques and highlight the open challenges that researchers face in this domain. Furthermore, we explore whether there is a consensus within the research community regarding evaluation standards and identify areas where further agreement is needed. This comprehensive survey aims to serve as a valuable resource for researchers, guiding them through the nuances of context length extension techniques and fostering discussions on future advancements in this evolving field.

연구 동기 및 목표

  • NLP 과제 전반에서 LLM의 맥락 길이 확장의 중요성을 제고한다.
  • 보간(interpolation) vs 외삽(extrapolation)으로 구분된 맥락 길이 확장 기술의 체계적인 분류 체계(탐조)를 제공한다.
  • 포지셔널 인코딩, 기억/검색, 어텐션 수정 등 기존 메커니즘과 이들의 제로샷(zero-shot) 및 미세 조정(fine-tuned) 변형을 검토한다.
  • 맥락 길이 확장 연구의 평가 표준, 과제 및 합의 격차를 논의한다.
  • 맥락 길이 확장을 위한 향후 연구의 개방적 과제와 방향을 강조한다.

제안 방법

  • 인터폴레이션과 익스트래폴레이션 기술을 구분하는 분류 체계를 제안하며, 제로샷과 미세 조정 가지를 포함한다.
  • RoPE, ALiBi 등과 같은 포지셔널 인코딩 방법과 이들의 외삽 특성을 검토한다.
  • 긴 맥락을 위한 특수 어텐션, 윈도우 기반 및 메모리/검색 접근법을 조사한다.
  • PI, NTK-aware 방법, 그리고 메모리 영감 기법(Landmark Attention, TiM)과 같은 보간 접근법을 고찰한다.
  • 제로샷 대 미세 조정 전략과 이를 긴 맥락 작업에의 적용 가능성을 요약한다.
Figure 2: Implementation of ALiBi Press et al. ( 2021b ) . When calculating attention in a neural network, the figure’s method involves adding a fixed bias to each attention score before applying the softmax function. This bias is the same for all attention scores in a specific head. The rest of the
Figure 2: Implementation of ALiBi Press et al. ( 2021b ) . When calculating attention in a neural network, the figure’s method involves adding a fixed bias to each attention score before applying the softmax function. This bias is the same for all attention scores in a specific head. The rest of the

실험 결과

연구 질문

  • RQ1LLM의 맥락 길이를 확장하는 주요 기술은 무엇인가?
  • RQ2보간(interpolation)과 외삽(extrapolation) 방법은 접근 방식과 활용 가능성에서 어떻게 다를까?
  • RQ3긴 맥락을 위한 포지셔널 인코딩, 특수 어텐션, 메모리 기반 방법의 강점과 한계는 무엇인가?
  • RQ4맥락 길이 확장 기술을 평가하는 데 어떤 과제들이 존재하며 표준에 대한 합의가 있는가?

주요 결과

  • RoPE 기반, ALiBi, 그리고 PI를 포함한 다수의 긴 맥락 전략이 존재하며, 제로샷 외삽 기술로 두드러진다.
  • RoPE 및 그 변형은 상대 위치 정보를 가능하게 하고 긴 시퀀스에서의 외삽을 개선한다.
  • 메모리/검색 접근법과 랜드마크 토큰은 계산량을 줄이고 학습 또는 추론 중 더 긴 맥락을 가능하게 한다.
  • 보간(Interpolation) 및 NTK-인식 방법은 다양한 데이터 요구로 사전 학습된 모델을 더 긴 맥락에 적응시킬 수 있다.
  • 특정 외삽 기법에서 효율성 향상과 안정성 개선이 관찰되지만 정확도 및 자원 사용 간의 트레이드오프는 남아 있다.
Figure 3: Visualization of RoPE Su et al. ( 2024 ) , which employs rotational matrices to capture precise absolute positional information in token sequences. By rotating segments of query and key projection matrices at different speeds, RoPE ensures unique rotations, influencing attention scores. Th
Figure 3: Visualization of RoPE Su et al. ( 2024 ) , which employs rotational matrices to capture precise absolute positional information in token sequences. By rotating segments of query and key projection matrices at different speeds, RoPE ensures unique rotations, influencing attention scores. Th

이 논문 읽기

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

누빈트에서 이 논문 읽기

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