Empirical Evaluation of Pre-trained Transformers for Human-Level NLP: The Role of Sample Size and Dimensionality

Adithya V Ganesan, Matthew Matero, Aravind Reddy Ravula, Huy Vu, H. Andrew Schwartz
5/7/2021
cs.CL
transformer-attention

Official code: adithya8/ContextualEmbeddingDR (4 stars, Jupyter Notebook, last commit 2023-07-31).

Abstract

In human-level NLP tasks, such as predicting mental health, personality, or demographics, the number of observations is often smaller than the standard 768+ hidden state sizes of each layer within modern transformer-based language models, limiting the ability to effectively leverage transformers. Here, we provide a systematic study on the role of dimension reduction methods (principal components analysis, factorization techniques, or multi-layer auto-encoders) as well as the dimensionality of embedding vectors and sample sizes as a function of predictive performance.

Show full abstract

We first find that fine-tuning large models with a limited amount of data pose a significant difficulty which can be overcome with a pre-trained dimension reduction regime. RoBERTa consistently achieves top performance in human-level tasks, with PCA giving benefit over other reduction methods in better handling users that write longer texts. Finally, we observe that a majority of the tasks achieve results comparable to the best performance with just $\frac{1}{12}$ of the embedding dimensions.

View on arXivView PDF

Code Implementations(1)

Empirical Comparison of Dimensionality Reduction Techniques for Contextual Embeddings over Low Sample Human-Level Tasks

41Jupyter Notebook, ShellDec 3, 20193 years ago
contextual-embeddingsdimensionality-reductionnlp

Similar Papers

Cite this paper

@article{ganesan2021empirical,
  title  = {Empirical Evaluation of Pre-trained Transformers for Human-Level NLP: The Role of Sample Size and Dimensionality},
  author = {Adithya V Ganesan and Matthew Matero and Aravind Reddy Ravula and Huy Vu and H. Andrew Schwartz},
  year   = {2021},
  eprint = {2105.03484},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2105.03484}
}

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/2105.03484.svg)](https://codeofpaper.com/paper/2105.03484)

Discussion