paper-with-me

Papers

Exploring Transformer Extrapolation

2023-07-19 · Zhen Qin, Yiran Zhong, Hui Deng

Length extrapolation has attracted considerable attention recently since it allows transformers to be tested on longer sequences than those used in training. Previous research has shown that this property can be attained by using carefully designed Relative Positional Encodings (RPEs). While these methods perform well on a variety of corpora, the conditions for length extrapolation have yet to be investigated. This paper attempts to determine what types of RPEs allow for length extrapolation through a thorough mathematical and empirical analysis. We discover that a transformer is certain to possess this property as long as the series that corresponds to the RPE's exponential converges. Two practices are derived from the conditions and examined in language modeling tasks on a variety of corpora. As a bonus from the conditions, we derive a new Theoretical Receptive Field (TRF) to measure the receptive field of RPEs without taking any training steps. Extensive experiments are conducted on the Wikitext-103, Books, Github, and WikiBook datasets to demonstrate the viability of our discovered conditions. We also compare TRF to Empirical Receptive Field (ERF) across different models, showing consistently matched trends on the aforementioned datasets. The code is available at https://github.com/OpenNLPLab/Rpe.

📄 PDF Abstract BibTeX arXiv:2307.10156

Code (0)

등록된 구현이 없습니다.

Tasks

Language ModelingLanguage Modelling

Similar Papers 제목 키워드 기반

A Method for Controlling Extrapolation when Visualizing and Optimizing the Prediction Profiles of Statistical and Machine Learning Models

2022-01-13 · Jeremy Ash, Laura Lancaster, Chris Gotwalt

We present a novel method for controlling extrapolation in the prediction profiler in the JMP software. The prediction profiler is a graphical tool for exploring high dimensional prediction surfaces for statistical and m…

Prediction

FlowDCN: Exploring DCN-like Architectures for Fast Image Generation with Arbitrary Resolution

2024-10-30 · Shuai Wang, Zexian Li, Tianhui Song, Xubin Li 외

Arbitrary-resolution image generation still remains a challenging task in AIGC, as it requires handling varying resolutions and aspect ratios while maintaining high visual quality. Existing transformer-based diffusion me…

Image Generation

Exploring Context Window of Large Language Models via Decomposed Positional Vectors

2024-05-28 · Zican Dong, Junyi Li, Xin Men, Wayne Xin Zhao 외

Transformer-based large language models (LLMs) typically have a limited context window, resulting in significant performance degradation when processing text beyond the length of the context window. Extensive studies hav…

A Length-Extrapolatable Transformer

2022-12-20 · Yutao Sun, Li Dong, Barun Patra, Shuming Ma 외

Position modeling plays a critical role in Transformers. In this paper, we focus on length extrapolation, i.e., training on short texts while evaluating longer sequences. We define attention resolution as an indicator of…

Language ModelingLanguage ModellingPosition

Real-time Inference and Extrapolation via a Diffusion-inspired Temporal Transformer Operator (DiTTO)

2023-07-18 · Oded Ovadia, Vivek Oommen, Adar Kahana, Ahmad Peyvan 외

Extrapolation remains a grand challenge in deep neural networks across all application domains. We propose an operator learning method to solve time-dependent partial differential equations (PDEs) continuously and with e…

Operator learningSuper-Resolution