paper-with-me

Papers

Linearizing Large Language Models

2024-05-10 · Jean Mercat, Igor Vasiljevic, Sedrick Keh, Kushal Arora, Achal Dave, Adrien Gaidon, Thomas Kollar

Linear transformers have emerged as a subquadratic-time alternative to softmax attention and have garnered significant interest due to their fixed-size recurrent state that lowers inference cost. However, their original formulation suffers from poor scaling and underperforms compute-matched transformers. Recent linear models such as RWKV and Mamba have attempted to address these shortcomings by proposing novel time-mixing and gating architectures, but pre-training large language models requires significant data and compute investments. Thus, the search for subquadratic architectures is limited by the availability of compute and quality pre-training datasets. As a cost-effective alternative to pre-training linear transformers, we propose Scalable UPtraining for Recurrent Attention (SUPRA). We present a method to uptrain existing large pre-trained transformers into Recurrent Neural Networks (RNNs) with a modest compute budget. This allows us to leverage the strong pre-training data and performance of existing transformer LLMs, while requiring 5% of the training cost. We find that our linearization technique leads to competitive performance on standard benchmarks, but we identify persistent in-context learning and long-context modeling shortfalls for even the largest linear models. Our code and models can be found at https://github.com/TRI-ML/linear_open_lm.

📄 PDF Abstract BibTeX arXiv:2405.06640

Code (1)

tri-ml/linear_open_lm 공식 구현 pytorch

Tasks

In-Context LearningMamba

Methods 이 논문이 사용한 방법론

Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…

Similar Papers 제목 키워드 기반

LoLCATs: On Low-Rank Linearizing of Large Language Models

2024-10-14 · Michael Zhang, Simran Arora, Rahul Chalamala, Alan Wu 외

Recent works show we can linearize large language models (LLMs) -- swapping the quadratic attentions of popular Transformer-based LLMs with subquadratic analogs, such as linear attention -- avoiding the expensive pretrai…

MMLU

Feedback Linearization for Unknown Systems via Reinforcement Learning

2019-10-29 · Tyler Westenbroek, David Fridovich-Keil, Eric Mazumdar, Shreyas Arora 외

We present a novel approach to control design for nonlinear systems which leverages model-free policy optimization techniques to learn a linearizing controller for a physical plant with unknown dynamics. Feedback lineari…

reinforcement-learningReinforcement LearningReinforcement Learning (RL)

Feedback Linearization of Car Dynamics for Racing via Reinforcement Learning

2021-10-20 · Michael Estrada, Sida Li, Xiangyu Cai

Through the method of Learning Feedback Linearization, we seek to learn a linearizing controller to simplify the process of controlling a car to race autonomously. A soft actor-critic approach is used to learn a decoupli…

Car Racingreinforcement-learningReinforcement LearningReinforcement Learning (RL)

Improving Input-Output Linearizing Controllers for Bipedal Robots via Reinforcement Learning

2020-04-15 · L4DC 2020 6 · Fernando Castañeda, Mathias Wulfman, Ayush Agrawal, Tyler Westenbroek 외

The main drawbacks of input-output linearizing controllers are the need for precise dynamics models and not being able to account for input constraints. Model uncertainty is common in almost every robotic application and…

reinforcement-learningReinforcement LearningReinforcement Learning (RL)

Liger: Linearizing Large Language Models to Gated Recurrent Structures

2025-03-03 · Disen Lan, Weigao Sun, Jiaxi Hu, Jusen Du 외

Transformers with linear recurrent modeling offer linear-time training and constant-memory inference. Despite their demonstrated efficiency and performance, pretraining such non-standard architectures from scratch remain…