[Paper Review] Revisiting Out-of-distribution Robustness in NLP: Benchmark, Analysis, and LLMs Evaluations
This paper proposes BOSS, a comprehensive benchmark for evaluating out-of-distribution (OOD) robustness in NLP, featuring 5 tasks and 20 datasets with rigorously selected, dissimilar OOD distributions. It reveals three distinct ID-OOD performance correlation patterns in fine-tuned models, shows that standard robustness methods offer limited gains over vanilla fine-tuning, and finds that LLMs with in-context learning outperform fine-tuned small models on OOD data, especially when ID data is scarce.
This paper reexamines the research on out-of-distribution (OOD) robustness in the field of NLP. We find that the distribution shift settings in previous studies commonly lack adequate challenges, hindering the accurate evaluation of OOD robustness. To address these issues, we propose a benchmark construction protocol that ensures clear differentiation and challenging distribution shifts. Then we introduce BOSS, a Benchmark suite for Out-of-distribution robustneSS evaluation covering 5 tasks and 20 datasets. Based on BOSS, we conduct a series of experiments on pre-trained language models for analysis and evaluation of OOD robustness. First, for vanilla fine-tuning, we examine the relationship between in-distribution (ID) and OOD performance. We identify three typical types that unveil the inner learning mechanism, which could potentially facilitate the forecasting of OOD robustness, correlating with the advancements on ID datasets. Then, we evaluate 5 classic methods on BOSS and find that, despite exhibiting some effectiveness in specific cases, they do not offer significant improvement compared to vanilla fine-tuning. Further, we evaluate 5 LLMs with various adaptation paradigms and find that when sufficient ID data is available, fine-tuning domain-specific models outperform LLMs on ID examples significantly. However, in the case of OOD instances, prioritizing LLMs with in-context learning yields better results. We identify that both fine-tuned small models and LLMs face challenges in effectively addressing downstream tasks. The code is public at \url{https://github.com/lifan-yuan/OOD_NLP}.
Motivation & Objective
- To address the lack of standardized, challenging OOD benchmarks in NLP that accurately reflect real-world distribution shifts.
- To investigate the relationship between in-distribution (ID) and out-of-distribution (OOD) performance in fine-tuned pre-trained language models.
- To evaluate the effectiveness of existing robustness-enhanced methods and large language models (LLMs) on OOD generalization using a unified benchmark.
- To provide a protocol for constructing more rigorous and representative OOD benchmarks based on distribution dissimilarity and performance degradation.
Proposed method
- Proposes a three-principle protocol for OOD benchmark construction: (1) use large, diverse ID datasets; (2) select OOD datasets with distinct text sources and semantics; (3) prioritize distribution shifts that cause significant performance degradation.
- Introduces BOSS, a benchmark suite with 5 NLP tasks (sentiment analysis, toxic detection, NLI, NER, extractive QA), each with one ID and three OOD datasets to ensure challenging, diverse distribution shifts.
- Employs controlled experiments varying model scale, training steps, training sample size, and tunable parameters to analyze ID-OOD performance correlations.
- Evaluates five classic OOD robustness methods on BOSS to assess their generalization gains over vanilla fine-tuning.
- Tests five LLMs using multiple adaptation paradigms: fine-tuning on domain-specific data and in-context learning with ID or OOD demonstrations.
- Uses standardized templates and instructions for LLM inference, ensuring consistent evaluation across models and tasks.
Experimental results
Research questions
- RQ1How do different distribution shift characteristics affect the generalization performance of fine-tuned NLP models?
- RQ2What is the nature of the correlation between in-distribution (ID) and out-of-distribution (OOD) performance across various model configurations?
- RQ3Do existing robustness-enhanced methods significantly improve OOD generalization compared to vanilla fine-tuning on a standardized benchmark?
- RQ4How do large language models (LLMs) with in-context learning compare to fine-tuned small models in OOD generalization, especially under data scarcity?
- RQ5Can ID performance reliably predict OOD robustness, and what patterns emerge in ID-OOD performance relationships?
Key findings
- Three distinct ID-OOD performance correlation patterns were identified: monotonic linear positive, monotonic piecewise linear positive, and non-monotonic V-shaped, indicating complex learning dynamics in fine-tuned models.
- Despite some gains in specific cases, classic OOD robustness methods did not significantly outperform vanilla fine-tuning on the BOSS benchmark, suggesting limited generalization benefits.
- When sufficient in-distribution (ID) data is available, fine-tuned small models outperform LLMs on ID examples, but LLMs with in-context learning achieve better OOD performance.
- The performance gap between ID and OOD generalization increases with training steps for some tasks (e.g., sentiment analysis), indicating that overfitting to ID data can harm OOD robustness.
- On the CoNLL NER dataset, OOD generalization is easiest (highest ID-OOD correlation), while on WNUT it is hardest (lowest correlation), highlighting task-specific differences in OOD challenges.
- In extractive question answering, the SearchQA dataset shows the most pronounced curve change in ID-OOD correlation, suggesting higher sensitivity to training dynamics.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.