Context-Aware Testing: A New Paradigm for Model Testing with Large Language Models
Paulius Rauba, Nabeel Seedat, Max Ruiz Luyten, Mihaela van der Schaar

TL;DR
This paper introduces context-aware testing (CAT) for large language models, leveraging contextual information to identify meaningful failures, and presents SMART Testing as the first instantiation of this paradigm, outperforming traditional data-only methods.
Contribution
It proposes a novel paradigm of context-aware testing for ML models and develops SMART Testing, the first system to operationalize CAT using large language models for failure hypothesis generation.
Findings
SMART identifies more relevant failures than alternatives.
CAT outperforms data-only testing methods.
Empirical results demonstrate the effectiveness of SMART.
Abstract
The predominant de facto paradigm of testing ML models relies on either using only held-out data to compute aggregate evaluation metrics or by assessing the performance on different subgroups. However, such data-only testing methods operate under the restrictive assumption that the available empirical data is the sole input for testing ML models, disregarding valuable contextual information that could guide model testing. In this paper, we challenge the go-to approach of data-only testing and introduce context-aware testing (CAT) which uses context as an inductive bias to guide the search for meaningful model failures. We instantiate the first CAT system, SMART Testing, which employs large language models to hypothesize relevant and likely failures, which are evaluated on data using a self-falsification mechanism. Through empirical evaluations in diverse settings, we show that SMART…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
Taxonomy
TopicsTopic Modeling · Data Quality and Management · Semantic Web and Ontologies
