paper-with-me

Papers

CLEX: Continuous Length Extrapolation for Large Language Models

2023-10-25 · Guanzheng Chen, Xin Li, Zaiqiao Meng, Shangsong Liang, Lidong Bing

Transformer-based Large Language Models (LLMs) are pioneering advances in many natural language processing tasks, however, their exceptional capabilities are restricted within the preset context window of Transformer. Position Embedding (PE) scaling methods, while effective in extending the context window to a specific length, demonstrate either notable limitations in their extrapolation abilities or sacrificing partial performance within the context window. Length extrapolation methods, although theoretically capable of extending the context window beyond the training sequence length, often underperform in practical long-context applications. To address these challenges, we propose Continuous Length EXtrapolation (CLEX) for LLMs. We generalise the PE scaling approaches to model the continuous dynamics by ordinary differential equations over the length scaling factor, thereby overcoming the constraints of current PE scaling methods designed for specific lengths. Moreover, by extending the dynamics to desired context lengths beyond the training sequence length, CLEX facilitates the length extrapolation with impressive performance in practical tasks. We demonstrate that CLEX can be seamlessly incorporated into LLMs equipped with Rotary Position Embedding, such as LLaMA and GPT-NeoX, with negligible impact on training and inference latency. Experimental results reveal that CLEX can effectively extend the context window to over 4x or almost 8x training length, with no deterioration in performance. Furthermore, when evaluated on the practical LongBench benchmark, our model trained on a 4k length exhibits competitive performance against state-of-the-art open-source models trained on context lengths up to 32k. Our code is available at https://github.com/DAMO-NLP-SG/CLEX.

📄 PDF Abstract BibTeX arXiv:2310.16450

Code (1)

damo-nlp-sg/clex 공식 구현 pytorch

Tasks

4kPosition

Methods 이 논문이 사용한 방법론

Multi-Head Attention 설명 없음
Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Adam 설명 없음
Position-Wise Feed-Forward Layer 설명 없음
Label Smoothing Label Smoothing is a regularization technique that introduces noise for the labels. This accounts for the fact that datasets may have mistakes in them, so maximizing the…
Residual Connection 설명 없음
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…

Similar Papers 제목 키워드 기반

MucLex: A German Lexicon for Surface Realisation

2020-05-01 · LREC 2020 5 · Kira Klimt, Daniel Braun, Daniela Schneider, Florian Matthes

Language resources for languages other than English are often scarce. Rule-based surface realisers need elaborate lexica in order to be able to generate correct language, especially in languages like German, which includ…

Text Generation

Simulating Content Consistent Vehicle Datasets with Attribute Descent

2019-12-18 · ECCV 2020 8 · Yue Yao, Liang Zheng, Xiaodong Yang, Milind Naphade 외

This paper uses a graphic engine to simulate a large amount of training data with free annotations. Between synthetic and real data, there is a two-level domain gap, i.e., content level and appearance level. While the la…

AttributeData AugmentationDomain AdaptationPerson Re-Identification+2

Scaling Laws of RoPE-based Extrapolation

2023-10-08 · Xiaoran Liu, Hang Yan, Shuo Zhang, Chenxin An 외

The extrapolation capability of Large Language Models (LLMs) based on Rotary Position Embedding is currently a topic of considerable interest. The mainstream approach to addressing extrapolation with LLMs involves modify…

16k

CLex: A Lexicon for Exploring Color, Concept and Emotion Associations in Language

2012-04-01 · EACL 2012 4 · Svitlana Volkova, William B. Dolan, Theresa Wilson
Machine TranslationNatural Language InferenceSentiment Analysis

Comparison of Machine Learning Methods for Multi-label Classification of Nursing Education and Licensure Exam Questions

2020-11-01 · EMNLP (ClinicalNLP) 2020 11 · John Langton, Krishna Srihasam, Junlin Jiang

In this paper, we evaluate several machine learning methods for multi-label classification of text questions. Every nursing student in the United States must pass the National Council Licensure Examination (NCLEX) to beg…

ClassificationMulti-Label ClassificationMUlTI-LABEL-ClASSIFICATIONMulti Label Text Classification+3