Skip to main content
QUICK REVIEW

[Paper Review] Intrinsic Dimensionality Explains the Effectiveness of Language Model Fine-Tuning

Armen Aghajanyan, Luke Zettlemoyer|arXiv (Cornell University)|Dec 22, 2020
Topic ModelingComputer Science7 citations
TL;DR

This paper proposes that the effectiveness of fine-tuning large pre-trained language models stems from their low intrinsic dimensionality—the idea that downstream tasks can be optimized using far fewer parameters than the full model. The authors show that fine-tuning with just 200 randomly projected parameters can achieve 90% of full model performance on MRPC, and that larger models tend to have lower intrinsic dimension, explaining their superior generalization.

ABSTRACT

Although pretrained language models can be fine-tuned to produce state-of-the-art results for a very wide range of language understanding tasks, the dynamics of this process are not well understood, especially in the low data regime. Why can we use relatively vanilla gradient descent algorithms (e.g., without strong regularization) to tune a model with hundreds of millions of parameters on datasets with only hundreds or thousands of labeled examples? In this paper, we argue that analyzing fine-tuning through the lens of intrinsic dimension provides us with empirical and theoretical intuitions to explain this remarkable phenomenon. We empirically show that common pre-trained models have a very low intrinsic dimension; in other words, there exists a low dimension reparameterization that is as effective for fine-tuning as the full parameter space. For example, by optimizing only 200 trainable parameters randomly projected back into the full space, we can tune a RoBERTa model to achieve 90\\% of the full parameter performance levels on MRPC. Furthermore, we empirically show that pre-training implicitly minimizes intrinsic dimension and, perhaps surprisingly, larger models tend to have lower intrinsic dimension after a fixed number of pre-training updates, at least in part explaining their extreme effectiveness. Lastly, we connect intrinsic dimensionality with low dimensional task representations and compression based generalization bounds to provide intrinsic-dimension-based generalization bounds that are independent of the full parameter count.

Motivation & Objective

  • To understand why fine-tuning large pre-trained language models generalizes so well despite vast parameter counts and limited labeled data.
  • To investigate whether the success of fine-tuning stems from the low intrinsic dimensionality of downstream tasks within the pre-trained representation space.
  • To examine how pre-training implicitly minimizes the intrinsic dimension of downstream tasks, even without direct access to them.
  • To derive generalization bounds based on intrinsic dimension rather than full parameter count, providing a new theoretical lens for model generalization.
  • To empirically measure and compare intrinsic dimensionality across a range of pre-trained models and tasks, revealing trends with model scale.

Proposed method

  • Measure intrinsic dimensionality of fine-tuning by optimizing a low-dimensional subspace (via random projection) of the full parameter space and evaluating performance.
  • Use a random projection technique to map a small number of trainable parameters (e.g., 200) into the full model’s parameter space, simulating low-dimensional optimization.
  • Apply compression-based generalization bounds (Arora et al., 2018) to derive bounds that depend on intrinsic dimension $ d $, not full parameter count $ D $.
  • Correlate intrinsic dimension with generalization gap and model performance across multiple NLP tasks and pre-trained models.
  • Conduct empirical studies across 12+ pre-trained models to analyze the relationship between model size and intrinsic dimensionality.
  • Interpret pre-training as implicitly minimizing the description length (i.e., intrinsic dimension) of downstream tasks, acting as a compression framework.

Experimental results

Research questions

  • RQ1Can fine-tuning a large pre-trained language model achieve near-optimal performance using only a small number of effective parameters?
  • RQ2Does pre-training implicitly reduce the intrinsic dimensionality of downstream tasks, and if so, how does this relate to model performance?
  • RQ3Is there a correlation between model size and intrinsic dimensionality, and does this explain the improved performance of larger models?
  • RQ4Can intrinsic dimensionality serve as a basis for generalization bounds independent of the full model’s parameter count?
  • RQ5How does intrinsic dimensionality relate to generalization gap and downstream task accuracy across diverse NLP benchmarks?

Key findings

  • Fine-tuning a RoBERTa model using only 200 randomly projected parameters achieves 90% of the performance of full fine-tuning on the MRPC dataset.
  • There is a strong inverse correlation between model size and intrinsic dimensionality: larger pre-trained models tend to have lower intrinsic dimension, especially after a fixed number of pre-training updates.
  • Lower intrinsic dimensionality across tasks is strongly correlated with higher evaluation accuracy and smaller relative generalization gaps.
  • Compression-based generalization bounds derived from intrinsic dimension grow as $ ilde{O}( ext{sqrt}(d/m)) $, where $ d $ is the intrinsic dimension and $ m $ is the number of training samples, independent of the full model’s parameter count $ D $.
  • The process of pre-training implicitly minimizes the description length of downstream tasks, effectively acting as a compression framework for NLP tasks.
  • Empirical results show that intrinsic dimensionality is a more informative predictor of generalization than model size alone, with low intrinsic dimension consistently associated with better generalization.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.