paper-with-me

홈 › Papers

Giraffe: Adventures in Expanding Context Lengths in LLMs

2023-08-21 · Arka Pal, Deep Karkhanis, Manley Roberts, Samuel Dooley, Arvind Sundararajan, Siddartha Naidu

Modern large language models (LLMs) that rely on attention mechanisms are typically trained with fixed context lengths which enforce upper limits on the length of input sequences that they can handle at evaluation time. To use these models on sequences longer than the train-time context length, one might employ techniques from the growing family of context length extrapolation methods -- most of which focus on modifying the system of positional encodings used in the attention mechanism to indicate where tokens or activations are located in the input sequence. We conduct a wide survey of existing methods of context length extrapolation on a base LLaMA or LLaMA 2 model, and introduce some of our own design as well -- in particular, a new truncation strategy for modifying the basis for the position encoding. We test these methods using three new evaluation tasks (FreeFormQA, AlteredNumericQA, and LongChat-Lines) as well as perplexity, which we find to be less fine-grained as a measure of long context performance of LLMs. We release the three tasks publicly as datasets on HuggingFace. We discover that linear scaling is the best method for extending context length, and show that further gains can be achieved by using longer scales at evaluation time. We also discover promising extrapolation capabilities in the truncated basis. To support further research in this area, we release three new 13B parameter long-context models which we call Giraffe: 4k and 16k context models trained from base LLaMA-13B, and a 32k context model trained from base LLaMA2-13B. We also release the code to replicate our results.

📄 PDF Abstract BibTeX arXiv:2308.10882

Code (1)

abacusai/long-context 공식 구현 pytorch

Tasks

16k4k

Methods 이 논문이 사용한 방법론

Focus 설명 없음
BASE 설명 없음

Similar Papers 제목 키워드 기반

GIRAFFE: Design Choices for Extending the Context Length of Visual Language Models

2024-12-17 · Mukai Li, Lei LI, Shansan Gong, Qi Liu

Visual Language Models (VLMs) demonstrate impressive capabilities in processing multimodal inputs, yet applications such as visual agents, which require handling multiple images and high-resolution videos, demand enhance…

Long-range modeling

GIRAFFE HD: A High-Resolution 3D-aware Generative Model

2022-03-28 · CVPR 2022 1 · Yang Xue, Yuheng Li, Krishna Kumar Singh, Yong Jae Lee

3D-aware generative models have shown that the introduction of 3D information can lead to more controllable image generation. In particular, the current state-of-the-art model GIRAFFE can control each object's rotation, …

DisentanglementImage GenerationTranslationVocal Bursts Intensity Prediction

Giraffe: Using Deep Reinforcement Learning to Play Chess

2015-09-04 · Matthew Lai

This report presents Giraffe, a chess engine that uses self-play to discover all its domain-specific knowledge, with minimal hand-crafted knowledge given by the programmer. Unlike previous attempts using machine learning…

BIG-bench Machine LearningDeep Reinforcement LearningGame of Chessreinforcement-learning+2

GiraffeDet: A Heavy-Neck Paradigm for Object Detection

2022-02-09 · ICLR 2022 4 · Yiqi Jiang, Zhiyu Tan, Junyan Wang, Xiuyu Sun 외

In conventional object detection frameworks, a backbone body inherited from image recognition models extracts deep latent features and then a neck module fuses these latent features to capture information at different sc…

Objectobject-detectionObject Detection

ReAttention: Training-Free Infinite Context with Finite Attention Scope

2024-07-21 · Xiaoran Liu, Ruixiao Li, Qipeng Guo, Zhigeng Liu 외

The long-context capability of the Large Language Models (LLM) has made significant breakthroughs, but the maximum supported context length remains a critical bottleneck limiting their practical applications. The constra…

Language ModellingLarge Language ModelPosition