prefix tuning

Controlling pretrained transformer models by prepending learned continuous or discrete prefix tokens so task behavior can be modified without full model fine-tuning. Applications include encoding natural-language skills, conditioning on task identity or quantized features, and adapting models (e.g., zero-shot TTS) at inference time.

prefixtuning

12-Month Skill Trend

Momentum and market value over time
Trending
Score
+20 in 12 mo
96
12 mo agoNow
Career
Value
+$12K in 12 mo
$42K/year
12 mo agoNow

Recommended Survey Paper

Quick overview of the field
View more

Must-Read Papers

Most classic and influential ideas
View more

This work identifies and systematically characterizes a prevalent phenomenon in pre-trained Transformer language models—abrupt angular shifts between the final-layer hidden states and input representations—which leads to imbalanced utilization of intermediate layers. To address this issue, the authors propose Jump Regularization (JREG), a lightweight, architecture-agnostic regularization technique that effectively constrains the magnitude of such angular jumps during pre-training. Experimental results across three Llama model scales demonstrate consistent performance improvements over baseline models when JREG is incorporated, confirming its efficacy and generalizability in promoting more balanced layer-wise representation learning.

angular distancefinal layerhidden state jumps

Optimal Control for Transformer Architectures: Enhancing Generalization, Robustness and Efficiency

May 16, 2025
KK
Kelvin Kan
🏛️ UCLA | University of Texas at Austin | Brown University | SRI International | University of Massachusetts

This work addresses the weak generalization, poor robustness, and low parameter efficiency of Transformers by systematically introducing optimal control theory into their modeling and training—first of its kind. We formulate a continuous-time dynamical framework that integrates variational inference, dynamics-based regularization, and lightweight controller embedding, enabling theoretically grounded training optimization and architecture design. Our approach departs from conventional black-box hyperparameter tuning, offering an interpretable and analyzable modeling paradigm. Empirical evaluation demonstrates a 46% reduction in training loss with 42% fewer parameters on nanoGPT; a 5.6% loss reduction on GPT-2; and consistent performance gains across diverse tasks—including text generation, sentiment analysis, image classification, and point cloud classification—validating its universality, strong generalization, and robustness.

Achieving parameter efficiency while improving test performanceApplying optimal control theory to Transformer training and architectureEnhancing Transformer performance with generalization and robustness guarantees

Transformer Layers as Painters

Jul 12, 2024
QS
Qi Sun
🏛️ Emergence AI | Sakana AI

The functional mechanisms underlying layer-wise operations in Transformer models remain poorly understood, particularly regarding the necessity and interchangeability of layer ordering. Method: This work proposes an empirical analysis framework based on freezing large language models (LLMs) and systematically conducts three types of architectural interventions: layer ablation, layer reordering, and parallel layer execution. Contribution/Results: We discover that middle layers exhibit strong functional uniformity and order invariance—enabling safe skipping, arbitrary reordering, or concurrent execution—thereby challenging the conventional assumption of strict layer-order dependency. Across diverse downstream tasks, skipping or parallelizing middle layers reduces inference latency by up to 30% on average, with accuracy degradation under 1%. This study is the first to empirically characterize the functional heterogeneity spectrum across Transformer layers, providing an interpretable, evidence-based foundation for model lightweighting, architectural compression, and novel variant design.

Exploring layer removal and reorganization effectsInvestigating accuracy-latency trade-offs in modelsUnderstanding transformer layers' information impact

Understanding Emergent Abilities of Language Models from the Loss Perspective

Mar 23, 2024
ZD
Zhengxiao Du
🏛️ Zhipu AI | Tsinghua University

This work challenges the prevailing hypothesis that emergent capabilities in large language models (LLMs) are solely determined by model scale, seeking instead to identify their fundamental drivers. Method: We conduct controlled experiments across Transformer models of varying sizes—trained with identical architecture, pretraining corpus, and tokenization—to isolate the effects of scale from those of optimization progress. Contribution/Results: We find that pretraining loss, rather than parameter count, is a more fundamental predictor of emergence: downstream task performance aligns closely across scales at equivalent loss values, and sharp, task-specific accuracy jumps occur when loss falls below empirically determined thresholds—well above chance. We formally characterize emergence as a loss-driven phenomenon and propose a loss-threshold criterion to replace conventional discontinuity-based detection. Empirical validation confirms a strong correspondence between loss thresholds and the onset of emergent behavior, establishing a new paradigm for modeling emergence mechanisms.

Language ModelModel SizePre-training Loss

Toward a Theory of Tokenization in LLMs

Apr 12, 2024
NR
Nived Rajaraman
🏛️ University of California, Berkeley

Why do large language models (LLMs) require tokenization, and why does character-level modeling lead to performance degradation in Transformers? Method: The authors construct a *k*-order Markov data source and rigorously analyze the cross-entropy of Transformers under character-level versus token-level modeling, grounding the analysis in information-theoretic modeling capacity. They establish a provable relationship between tokenization strategies and the accuracy of sequence probability estimation. Contribution/Results: Theoretically, without tokenization, Transformers collapse to modeling only unigram character distributions, failing to capture higher-order dependencies; with appropriate tokenization, learning single-step token predictions suffices to near-optimally model the source distribution. Empirically, tokenization significantly reduces cross-entropy on high-order Markov sources. This work provides the first rigorous information-theoretic and probabilistic justification that tokenization is a necessary condition for overcoming the fundamental limitations of character-level Transformer modeling.

Compare transformers' learning with and without tokenization on simple dataJustify tokenization use by analyzing cross-entropy loss in transformersStudy tokenization's role in transformer performance on Markov processes

Latest Papers

What's happening recently
View more

Dynamical Properties of Tokens in Self-Attention and Effects of Positional Encoding

Nov 25, 2025
DP
Duy-Tung Pham
🏛️ FPT Software AI Center | National University of Singapore | Ho Chi Minh University of Economics

This work investigates the dynamic evolution of token representations in pretrained Transformers, focusing on how positional encoding schemes—absolute versus rotary—affect their continuous-time dynamical behavior. We propose a modeling framework grounded in nonlinear dynamical systems theory, rigorously deriving necessary and sufficient conditions for token representations to converge to zero or diverge. Our analysis is the first to systematically demonstrate that rotary positional encoding suppresses pathological convergence and enhances representation separation. Both theoretical analysis and empirical experiments confirm that excessive token convergence degrades model expressivity. Guided by these insights, we design lightweight architectural enhancements—such as dynamic attention scaling—that effectively mitigate convergence issues and yield consistent performance gains across multiple benchmarks. This work establishes a novel dynamical-systems perspective for understanding Transformer internals and provides interpretable, theory-backed principles for architecture optimization.

Analyzes token dynamics in Transformers via continuous-time limitCharacterizes token convergence or divergence based on model parametersInvestigates positional encoding effects and proposes architectural refinements

Vocabulary In-Context Learning in Transformers: Benefits of Positional Encoding

Nov 09, 2025
QM
Qian Ma
🏛️ Beijing Normal University

This paper investigates whether a single-layer Transformer without positional encoding possesses the universal approximation property (UAP) for vocabulary-in-context learning (VICL). Theoretically, we prove that in the absence of positional encoding, the model cannot achieve VICL-UAP; however, introducing positional encodings satisfying specific spectral conditions—such as sinusoidal encoding—strictly restores UAP. Our analysis is grounded in function approximation theory, where we formally model and analyze VICL capability via mathematical characterization of representational capacity. This work establishes, for the first time, a necessary and sufficient framework linking the existence of positional encoding to VICL-UAP. The results demonstrate, from an approximation-theoretic perspective, that positional encoding is both *necessary and sufficient* for VICL-UAP—not merely a heuristic aid for sequence modeling, but a fundamental theoretical prerequisite for contextual generalization. This provides a novel paradigm for understanding the essential role of positional information in Transformers.

It demonstrates positional encoding enables universal approximation property in single-layer Transformers.The paper investigates vocabulary in-context learning limitations in Transformers without positional encoding.The study provides sufficient conditions for positional encoding in vocabulary in-context learning.

Diminishing Returns in Self-Supervised Learning

Dec 03, 2025
OB
Oli Bridge
🏛️ University College London

This study investigates the marginal benefits of a three-stage strategy—self-supervised pretraining, intermediate fine-tuning, and downstream task adaptation—for small-scale Vision Transformers (~5M parameters). Motivated by the observation that intermediate fine-tuning may degrade downstream performance due to task misalignment, we propose a systematic ablation framework to assess the impact of varying dataset and objective combinations across stages. Experiments reveal that targeted pretraining substantially improves small-model performance, whereas introducing semantically distant intermediate tasks yields no gain—and often harms performance while wasting compute. The core contribution is the empirical demonstration that, for small ViTs, **the quality of data selection is far more critical than the number of stacked tasks**, challenging conventional assumptions about multi-stage transfer. This finding provides key empirical evidence and methodological guidance for designing efficient, lightweight self-supervised learning paradigms.

Explores diminishing returns in self-supervised learning for small vision transformers.Identifies targeted pre-training and data selection as key for efficient small models.Investigates how intermediate fine-tuning can harm downstream task performance.

Standard supervised training often struggles to learn effective query-key attention patterns in Transformer-based sequence classification tasks, particularly failing to induce a preference for neighboring positions. This work demonstrates through systematic ablation studies and simplified theoretical analysis that self-pretraining (SPT), driven by a masked reconstruction objective, enables the model to acquire such localized attention structures from random initialization, substantially improving optimization dynamics. Without relying on external data, SPT significantly outperforms purely supervised training on benchmarks such as the Long-Range Arena. The performance gains are primarily attributed to the model’s enhanced ability to learn interactions among nearby tokens, highlighting proximity-aware attention as a key mechanism underlying SPT’s effectiveness.

attention patternsmasked token predictionself-pretraining

Train Once, Answer All: Many Pretraining Experiments for the Cost of One

Sep 27, 2025
SB
Sebastian Bordt
🏛️ University of Töbingen | Töbingen AI Center | Independent Researcher

High experimental costs and difficulties in conducting controlled, multi-condition studies hinder pretraining research for large language models (LLMs). To address this, we propose a “single-training, multiple-experiments” paradigm: ten heterogeneous experiments—including knowledge acquisition, mathematical reasoning, and others—are executed in parallel during a single 1.5B-parameter LLM pretraining run. Leveraging controlled-variable design, dynamic data injection, interactive detection, and contamination analysis, we ensure negligible cross-experiment interference. This approach dramatically improves research efficiency—reproducing established findings and enabling novel explorations—while incurring virtually no additional computational overhead or performance degradation, achieving up to 90% compute savings. Our core contribution is the first systematic realization of a scientific experimentation framework for LLM pretraining that supports concurrent multi-task learning, multi-hypothesis testing, and full reproducibility.

Enabling rigorous scientific research with limited compute budgetReducing computational cost of multiple pretraining experimentsSimultaneously conducting diverse experiments in single training run

Hot Scholars

SI

Shunsuke Inenaga

Professor, Department of Informatics, Kyushu University
Algorithms and Data StructuresString AlgorithmsCompressionCombinatorics on Words
GR

Giuseppe Romana

PhD in Mathematics and Computational Sciences, Università degli Studi di Palermo
Combinatorics on WordsData CompressionFormal Languages
TG

Travis Gagie

Associate Professor at Dalhousie University
data structuresdata compression
TH

Tianyang Hu

Assistant Professor, The Chinese University of Hong Kong, Shenzhen
Deep LearningMaching LearningStatistics