English

Foundation Model's Embedded Representations May Detect Distribution Shift

Machine Learning 2024-02-05 v2 Computation and Language

Abstract

Sampling biases can cause distribution shifts between train and test datasets for supervised learning tasks, obscuring our ability to understand the generalization capacity of a model. This is especially important considering the wide adoption of pre-trained foundational neural networks -- whose behavior remains poorly understood -- for transfer learning (TL) tasks. We present a case study for TL on the Sentiment140 dataset and show that many pre-trained foundation models encode different representations of Sentiment140's manually curated test set MM from the automatically labeled training set PP, confirming that a distribution shift has occurred. We argue training on PP and measuring performance on MM is a biased measure of generalization. Experiments on pre-trained GPT-2 show that the features learnable from PP do not improve (and in fact hamper) performance on MM. Linear probes on pre-trained GPT-2's representations are robust and may even outperform overall fine-tuning, implying a fundamental importance for discerning distribution shift in train/test splits for model interpretation.

Keywords

Cite

@article{arxiv.2310.13836,
  title  = {Foundation Model's Embedded Representations May Detect Distribution Shift},
  author = {Max Vargas and Adam Tsou and Andrew Engel and Tony Chiang},
  journal= {arXiv preprint arXiv:2310.13836},
  year   = {2024}
}

Comments

17 pages, 8 figures, 5 tables

R2 v1 2026-06-28T12:57:21.928Z