paper-with-me

홈 › Papers

What Can Transformer Learn with Varying Depth? Case Studies on Sequence Learning Tasks

2024-04-02 · Xingwu Chen, Difan Zou

We study the capabilities of the transformer architecture with varying depth. Specifically, we designed a novel set of sequence learning tasks to systematically evaluate and comprehend how the depth of transformer affects its ability to perform memorization, reasoning, generalization, and contextual generalization. We show a transformer with only one attention layer can excel in memorization but falls short in other tasks. Then, we show that exhibiting reasoning and generalization ability requires the transformer to have at least two attention layers, while context generalization ability may necessitate three attention layers. Additionally, we identify a class of simple operations that a single attention layer can execute, and show that the complex tasks can be approached as the combinations of these simple operations and thus can be resolved by stacking multiple attention layers. This sheds light on studying more practical and complex tasks beyond our design. Numerical experiments corroborate our theoretical findings.

📄 PDF Abstract BibTeX arXiv:2404.01601

Code (0)

등록된 구현이 없습니다.

Tasks

Memorization

Methods 이 논문이 사용한 방법론

SET Dynamic Sparse Training method where weight mask is updated randomly periodically

Similar Papers 제목 키워드 기반

What Affects the Effective Depth of Large Language Models?

2025-12-16 · Yi Hu, Cai Zhou, Muhan Zhang arxiv

The scaling of large language models (LLMs) emphasizes increasing depth, yet performance gains diminish with added layers. Prior work introduces the concept of "effective depth", arguing that deeper models fail to fully …

Transformer as Linear Expansion of Learngene

2023-12-09 · Shiyu Xia, Miaosen Zhang, Xu Yang, Ruiming Chen 외

We propose expanding the shared Transformer module to produce and initialize Transformers of varying depths, enabling adaptation to diverse resource constraints. Drawing an analogy to genetic expansibility, we term such …

A Little Depth Goes a Long Way: The Expressive Power of Log-Depth Transformers

2025-03-05 · William Merrill, Ashish Sabharwal

Recent theoretical results show transformers cannot express sequential reasoning problems over long inputs, intuitively because their computational depth is bounded. However, prior work treats the depth as a constant, le…

Exploring the Cryptographic Limits of Transformer Networks

2026-06-28 · Stefan Domunco, Andis Draguns, Philip Torr, Isaac Robinson 외 arxiv

In recent work it has been shown that colluding AI agents can use steganographic methods to exchange malicious information. Whether a transformer can implement steganographic methods depends on what cryptographic functio…

FocDepthFormer: Transformer with latent LSTM for Depth Estimation from Focal Stack

2023-10-17 · Xueyang Kang, Fengze Han, Abdur R. Fayjie, Patrick Vandewalle 외

Most existing methods for depth estimation from a focal stack of images employ convolutional neural networks (CNNs) using 2D or 3D convolutions over a fixed set of images. However, their effectiveness is constrained by t…

DecoderDepth Estimation