Language Model Decomposition: Quantifying the Dependency and Correlation of Language Models

Hao Zhang
10/19/2022
cs.CLcs.AIcs.LG

Official code: haozhg/lmd (11 stars, Python, Apache-2.0, PyTorch, last commit 2022-12-22).

Abstract

Pre-trained language models (LMs), such as BERT (Devlin et al., 2018) and its variants, have led to significant improvements on various NLP tasks in past years. However, a theoretical framework for studying their relationships is still missing.

Show full abstract

In this paper, we fill this gap by investigating the linear dependency between pre-trained LMs. The linear dependency of LMs is defined analogously to the linear dependency of vectors. We propose Language Model Decomposition (LMD) to represent a LM using a linear combination of other LMs as basis, and derive the closed-form solution. A goodness-of-fit metric for LMD similar to the coefficient of determination is defined and used to measure the linear dependency of a set of LMs. In experiments, we find that BERT and eleven (11) BERT-like LMs are 91% linearly dependent. This observation suggests that current state-of-the-art (SOTA) LMs are highly "correlated". To further advance SOTA we need more diverse and novel LMs that are less dependent on existing LMs.

View on arXivView PDF

Code Implementations(1)

haozhg/lmdOfficial100%
PyTorchApache-2.0

Language Model Decomposition: Quantifying the Dependency and Correlation of Language Models

111Python, ShellOct 8, 20223 years agoApache-2.0
bertdeep-learninglanguage-modelsmultilingual-bertnatural-language-processing+7 more

Similar Papers

Cite this paper

@article{zhang2022language,
  title  = {Language Model Decomposition: Quantifying the Dependency and Correlation of Language Models},
  author = {Hao Zhang},
  year   = {2022},
  eprint = {2210.10289},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.10289}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2210.10289.svg)](https://codeofpaper.com/paper/2210.10289)

Discussion