From Superficial Patterns to Semantic Understanding: Fine-Tuning Language Models on Contrast Sets

  • 2025-01-05 23:19:55
  • Daniel Petrov
  • 0

Abstract

Large scale pretrained language models have demonstrated high performance onstandard datasets for natural language inference (NLI) tasks. Unfortunately,these evaluations can be misleading, as although the models can perform well onin-distribution data, they perform poorly on out-of-distribution test sets,such as contrast sets. Contrast sets consist of perturbed instances of datathat have very minor, but meaningful, changes to the input that alter the goldlabel, revealing how models can learn superficial patterns in the training datarather than learning more sophisticated language nuances. As an example, theELECTRA-small language model achieves nearly 90% accuracy on an SNLI datasetbut drops to 75% when tested on an out-of-distribution contrast set. Theresearch performed in this study explores how a language models' robustness canbe improved by exposing it to small amounts of more complex contrast setsduring training to help it better learn language patterns. With this approach,the model regains performance and achieves nearly 90% accuracy on contrastsets, highlighting the importance of diverse and challenging training data.

 

Quick Read (beta)

loading the full paper ...