paper-with-me

홈 › Papers

Relaxed Recursive Transformers: Effective Parameter Sharing with Layer-wise LoRA

2024-10-28 · Sangmin Bae, Adam Fisch, Hrayr Harutyunyan, Ziwei Ji, Seungyeon Kim, Tal Schuster

Large language models (LLMs) are expensive to deploy. Parameter sharing offers a possible path towards reducing their size and cost, but its effectiveness in modern LLMs remains fairly limited. In this work, we revisit "layer tying" as form of parameter sharing in Transformers, and introduce novel methods for converting existing LLMs into smaller "Recursive Transformers" that share parameters across layers, with minimal loss of performance. Here, our Recursive Transformers are efficiently initialized from standard pretrained Transformers, but only use a single block of unique layers that is then repeated multiple times in a loop. We further improve performance by introducing Relaxed Recursive Transformers that add flexibility to the layer tying constraint via depth-wise low-rank adaptation (LoRA) modules, yet still preserve the compactness of the overall model. We show that our recursive models (e.g., recursive Gemma 1B) outperform both similar-sized vanilla pretrained models (such as TinyLlama 1.1B and Pythia 1B) and knowledge distillation baselines -- and can even recover most of the performance of the original "full-size" model (e.g., Gemma 2B with no shared parameters). Finally, we propose Continuous Depth-wise Batching, a promising new inference paradigm enabled by the Recursive Transformer when paired with early exiting. In a theoretical analysis, we show that this has the potential to lead to significant (2-3x) gains in inference throughput.

📄 PDF Abstract BibTeX arXiv:2410.20672

Code (0)

등록된 구현이 없습니다.

Tasks

Knowledge Distillation

Methods 이 논문이 사용한 방법론

Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…
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…
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…
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…
Residual Connection 설명 없음
Attention 설명 없음
Multi-Head Attention 설명 없음

Similar Papers 제목 키워드 기반

Improving Recursive Transformers with Mixture of LoRAs

2025-12-14 · Mohammadmahdi Nouriborji, Morteza Rohanian, Omid Rohanian arxiv

Parameter sharing in recursive transformers reduces model size but collapses layer-wise expressivity. We propose Mixture of LoRAs (MoL), a lightweight conditional-computation mechanism that inserts Low-Rank Adaptation (L…

Sliced Recursive Transformer

2021-11-09 · Zhiqiang Shen, Zechun Liu, Eric Xing

We present a neat yet effective recursive operation on vision transformers that can improve parameter utilization without involving additional parameters. This is achieved by sharing weights across the depth of transform…

Image Classification

MergeOver: Post-Training Token Merging for Recursive Vision Transformers

2026-08-13 · Junseo Kim, Uraz Odyurt, Amirreza Yousefzadeh arxiv

Vision Transformers (ViTs) demonstrate exceptional performance in computer vision but suffer from large parameter counts and quadratic computational complexity, severely limiting their deployment on resource-constrained …

Relaxed Parameter Sharing: Effectively Modeling Time-Varying Relationships in Clinical Time-Series

2019-06-07 · Machine Learning for Healthcare 2019 2019 8 · Jeeheh Oh, Jiaxuan Wang, Shengpu Tang, Michael Sjoding 외

Recurrent neural networks (RNNs) are commonly applied to clinical time-series data with the goal of learning patient risk stratification models. Their effectiveness is due, in part, to their use of parameter sharing over…

Respiratory FailureTime SeriesTime Series Analysis

Deeply Shared Filter Bases for Parameter-Efficient Convolutional Neural Networks

2020-06-09 · NeurIPS 2021 12 · Woochul Kang, Daeyeon Kim

Modern convolutional neural networks (CNNs) have massive identical convolution blocks, and, hence, recursive sharing of parameters across these blocks has been proposed to reduce the amount of parameters. However, naive …

image-classificationImage Classificationobject-detectionObject Detection