Improving the OOD Performance of Closed-Source LLMs on NLI Through Strategic Data Selection

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Stacey, Joe, Alazraki, Lisa, Ubhi, Aran, Ermis, Beyza, Mueller, Aaron, Rei, Marek
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866909993751543808
author Stacey, Joe
Alazraki, Lisa
Ubhi, Aran
Ermis, Beyza
Mueller, Aaron
Rei, Marek
author_facet Stacey, Joe
Alazraki, Lisa
Ubhi, Aran
Ermis, Beyza
Mueller, Aaron
Rei, Marek
contents We investigate the robustness of fine-tuned Large Language Models (LLMs) for the task of Natural Language Inference (NLI), finding that the in-distribution gains from fine-tuning correspond to a large drop in out-of-distribution (OOD) performance. Despite the widespread use of closed-source LLMs, there are no robustness mitigation methods that work under their API fine-tuning constraints. Existing methods to improve robustness typically require changing the fine-tuning process or large-scale data augmentation, methods that are infeasible or cost prohibitive for closed-source models. To address this, we propose strategically selecting the NLI fine-tuning data, prioritising more complex examples or replacing existing training examples with LLM-generated data. Prioritising more complex training examples improves performance on challenging OOD NLI datasets, while training with synthetic data leads to substantial improvements on easier OOD datasets. We find that synthetic examples are often too simple, and by prompting LLMs to create more complex synthetic data we can improve performance on both easy and challenging OOD datasets. Finally, we show that recent autoregressive LLMs are substantially more robust to distributional shifts compared to encoder models, and should be a preferred baseline for future research.
format Preprint
id arxiv_https___arxiv_org_abs_2505_20209
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Improving the OOD Performance of Closed-Source LLMs on NLI Through Strategic Data Selection
Stacey, Joe
Alazraki, Lisa
Ubhi, Aran
Ermis, Beyza
Mueller, Aaron
Rei, Marek
Computation and Language
I.2.7
We investigate the robustness of fine-tuned Large Language Models (LLMs) for the task of Natural Language Inference (NLI), finding that the in-distribution gains from fine-tuning correspond to a large drop in out-of-distribution (OOD) performance. Despite the widespread use of closed-source LLMs, there are no robustness mitigation methods that work under their API fine-tuning constraints. Existing methods to improve robustness typically require changing the fine-tuning process or large-scale data augmentation, methods that are infeasible or cost prohibitive for closed-source models. To address this, we propose strategically selecting the NLI fine-tuning data, prioritising more complex examples or replacing existing training examples with LLM-generated data. Prioritising more complex training examples improves performance on challenging OOD NLI datasets, while training with synthetic data leads to substantial improvements on easier OOD datasets. We find that synthetic examples are often too simple, and by prompting LLMs to create more complex synthetic data we can improve performance on both easy and challenging OOD datasets. Finally, we show that recent autoregressive LLMs are substantially more robust to distributional shifts compared to encoder models, and should be a preferred baseline for future research.
title Improving the OOD Performance of Closed-Source LLMs on NLI Through Strategic Data Selection
topic Computation and Language
I.2.7
url https://arxiv.org/abs/2505.20209