论文

Splytters:一个用于对抗性数据划分的开源 Python 库

Splytters: A Python Library for Adversarial Data Splits

精选理由

做模型评测的朋友可以看看这个:arXiv 上的 splytters 把 31 种非随机划分算法整合成一个 sklearn 风格的库,文本、图像、音频、表格都能用。以前这类对抗性划分方法散在各论文里没法复用,现在一行接口就能生成比随机划分更难的测试集。

研究人员在 arXiv 发布了开源 Python 库 splytters,用于替代随机 train/test 划分,解决随机划分会把相似样本同时放进两侧、从而高估泛化能力的问题。该库提供 31 种划分算法,覆盖对抗性(adversarial)、重叠(overlap)、均衡(balanced)三类目标,并附带按难度对样本排序的 sorter 工具。

正文

splytters 的接口与 scikit-learn 兼容,且与嵌入方式无关(embedding-agnostic),一套 API 即可用于文本、图像、音频和表格数据。此前各类非随机划分方法散落在不同论文中,难以跨数据集、跨模态复用,该库把 31 种算法统一到一个实现里。在文本、图像、音频的多个任务上,对抗性划分能生成比随机划分更难的测试集,可用于检验模型的真实泛化能力。

对做模型评测和基准构建的开发者来说,这是一份可以直接接入 sklearn 流程的工具,补上了评测方法学里长期缺失的基础设施环节。

原文 · arXiv cs.LG

Splytters: A Python Library for Adversarial Data Splits

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.

产业坐标与信源核验

本条情报归属 AITOP「论文」核心追踪栏目。在跨区域产业观察坐标中,该动态直接关联「AI 开发者工具链、Coding Agent 与工程化实践」研究主线,反映出当前技术演进与商业落地的最新风向。涉及核心实体与技术议题包括:Splytters、scikit-learn、数据划分、模型评测,读者可通过下方标签进入对应专题页查阅历史脉络与关联对比。

信源核验说明:本文原始线索采编自「arXiv cs.LG」(@Stefan Larson, Kirtan Shah),经 AITOP 多维评分管线结构化提炼。