Skip to main content
QUICK REVIEW

[Paper Review] The Truth is in There: Improving Reasoning in Language Models with Layer-Selective Rank Reduction

Pratyusha Sharma, Jordan T. Ash|arXiv (Cornell University)|Dec 21, 2023
Topic ModelingComputer Science8 citations
TL;DR

LASER selectively removes higher-order singular components from specific Transformer weight matrices after training, often improving reasoning accuracy on multiple benchmarks without additional data or training.

ABSTRACT

Transformer-based Large Language Models (LLMs) have become a fixture in modern machine learning. Correspondingly, significant resources are allocated towards research that aims to further advance this technology, typically resulting in models of increasing size that are trained on increasing amounts of data. This work, however, demonstrates the surprising result that it is often possible to significantly improve the performance of LLMs by selectively removing higher-order components of their weight matrices. This simple intervention, which we call LAyer-SElective Rank reduction (LASER), can be done on a model after training has completed, and requires no additional parameters or data. We show extensive experiments demonstrating the generality of this finding across language models and datasets, and provide in-depth analyses offering insights into both when LASER is effective and the mechanism by which it operates.

Motivation & Objective

  • Show that selective, post-training rank reduction can improve Transformer performance on reasoning tasks.
  • Identify which layers and matrix types benefit most from rank reduction.
  • Analyze how training data frequency relates to gains from LASER.
  • Demonstrate generality across models, datasets, and modalities.

Proposed method

  • Represent a Transformer layer’s weight matrix W by its SVD W = U Σ Vᵀ.
  • Replace a chosen matrix with its rank-k approximation W_LR using the top-k singular vectors.
  • Define LASER intervention by (τ, ℓ, ρ) indicating matrix type, layer, and rank fraction to preserve.
  • Search over possible interventions (and compositions) to maximize performance on a validation set.
  • Evaluate on multiple datasets and models to assess generality and robustness of gains.

Experimental results

Research questions

  • RQ1Can targeted, post-training low-rank approximations of specific weight matrices improve LLM reasoning without retraining?
  • RQ2Which layer types (e.g., MLP vs. attention) and which layers benefit most from LASER?
  • RQ3What is the relationship between data frequency in training and gains from LASER?
  • RQ4How do LASER interventions affect robustness to paraphrases and other linguistic perturbations?

Key findings

  • Rank reduction can be applied to many weight matrices with little to no degradation; late-layer MLP weights often yield the largest gains.
  • On CounterFact, single-layer LASER raised top-1 accuracy from 13.3% to 24.1% (GPT-J 6B) without retraining.
  • Composing LASER interventions across multiple layers yields further improvements (e.g., top-10 accuracy from 24.0% to 29.2% on CounterFact).
  • Improvements are most pronounced on low-frequency facts in training data, suggesting a denoising effect that surfaces weakly learned information.
  • Higher-order components often encode generic high-frequency words or alternative answers; removing them reduces internal conflict and improves correctness.
  • The LASER effect generalizes across models (Roberta, GPT-J, LLaMA2) and tasks (QA, reasoning benchmarks) and even extends to non-text domains (Decision Transformer in Sokoban).
  • Paraphrase robustness improves with LASER by about 25 percentage points in certain settings.

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.