arXiv · 2611.40376
Splytters: A Python Library for Adversarial Data Splits
Abstract
Random train/test splits are the default practice in machine learning and NLP evaluation, yet they tend to place similar examples in both splits, which can overstate generalization. Prior work has proposed non-random splits, including adversarial splits, which typically make the test set harder by making it dissimilar to the training set, but these methods are spread across papers and are rarely reusable across datasets or modalities. We present splytters, an open-source Python library that implements non-random data splitting with a single, embedding-agnostic, scikit-learn-compatible interface. The library provides 31 splitting algorithms for three objectives (adversarial, overlap, and balanced) and sorters that rank examples by difficulty, and it supports text, image, audio, and tabular data. On various text, image, and audio tasks, adversarial splits can yield harder test sets than random splits and can thus be used to test generalizability.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Stefan Larson, Kirtan Shah. 2026-11-30. Splytters: A Python Library for Adversarial Data Splits. https://searcharxiv.org/abs/2611.40376
Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite Search arXiv by Indiciae: BibTeX · RIS.