TESTNAV: Pareto-Guided Search for Compositional Robustness Testing
测试AI模型面对多种叠加干扰时不必穷举所有组合,也能找出真正危险的失败案例
当亮度变化、运动模糊等多种干扰同时出现在同一张图片或文本中时,可能的组合数量会爆炸式增长,而且很多组合会让输入变得极不真实,没有测试价值。TESTNAV把稳健性测试变成一个双目标优化问题:既要让模型性能大幅下降,又要让被干扰的输入尽量保持和原始输入相似,并用进化算法NSGA-II高效找出这些平衡点组合。在覆盖图像、文本和代码的四个基准测试中,TESTNAV只需检查全部组合空间的35.8%到89.3%,速度比现有搜索方法最多快2.15倍,且结果一致。
他们做了什么
- 现实中的输入往往同时受到多种干扰影响(比如亮度变化加运动模糊),但穷举所有组合会导致组合数量爆炸式增长——四种干扰类型、每种六个强度等级就有1296种组合,而其中很多组合会让输入变得不真实,诊断价值有限
- TESTNAV把稳健性测试重新定义为双目标优化问题:一是让干扰组合尽可能拉低模型性能,二是用SSIM、KID(图像)或chrF、BERT-F1(文本与代码)等针对不同数据类型的相似度指标,确保被干扰的输入仍然贴近原始输入
- TESTNAV使用进化算法NSGA-II来高效逼近这两个目标之间的最优平衡点集合(帕累托前沿),而不需要评估全部组合
- 研究者在Tiny-ImageNet、QQP、HumanEval、MBPP四个基准上穷举评估全部1296种组合建立真实基准后发现,TESTNAV只需检查35.8%至89.3%的组合空间,就能以最多快2.15倍的速度得到与穷举搜索相同的最优组合集合
- 只优化性能下降或只优化输入相似度的单目标搜索,以及现有基于神经网络内部激活情况的覆盖率指标,表现都不如TESTNAV,说明必须同时兼顾两个目标才能找到真正有价值的失败案例

| Dataset 𝒟 | Size | Model | Perturbations | Fidelity ϕ | Task ψ | Clean ψ(𝒟) | |
|---|---|---|---|---|---|---|---|
| Tiny-ImageNet | 10,000 | CaiT-S36 | speckle noise, glass blur, brightness, pixelate | KID, SSIM | Accuracy | 86.7% | |
| QQP | 1,000 | RoBERTa-base | synonym, typo, contraction, punctuation | BERT-F1, chrF | Accuracy | 91.2% | |
| HumanEval | 164 | CodeGen-2B-mono | butterfingers, char case, whitespace, newline | BERT-F1, chrF | RP5@1 | 23.2% | |
| MBPP | 974 | CodeGen-2B-mono | butterfingers, char case, whitespace, newline | BERT-F1, chrF | RP5@1 | 31.9% |


| Method | SSIM | KID | chrF | BERT-F1 | chrF | BERT-F1 | chrF | BERT-F1 |
|---|---|---|---|---|---|---|---|---|
| TestNav | 0.704 | 0.686 | 0.646 | 0.651 | 0.729 | 0.730 | 0.697 | 0.690 |
| Greedy Search | 0.557 | 0.464 | 0.638 | 0.782 | 0.742 | 0.783 | 0.681 | 0.751 |
| Genetic Algorithm | 0.540 | 0.552 | 0.693 | 0.707 | 0.753 | 0.767 | 0.640 | 0.631 |
| Random Search | 0.510 | 0.503 | 0.526 | 0.514 | 0.502 | 0.522 | 0.514 | 0.490 |

| Metric pair | 𝒫∗ | Θ1 | Θ2 | Θ3 | Θ4 |
|---|---|---|---|---|---|
| (δ,ρSSIM) | 27 | 9 | 12 | 4 | 2 |
| (δ,ρKID) | 27 | 4 | 7 | 14 | 2 |
为什么重要
对于自动驾驶、医学影像等对可靠性要求极高的系统来说,穷举测试所有可能的多重干扰组合在计算上是不现实的。TESTNAV提供了一种在有限测试预算内、高效找出真正有意义的失败案例的方法,为模型测试团队设计更可靠的稳健性评估流程提供了实用参考。
本文术语
- 帕累托前沿(Pareto front) · 在两个互相制约的目标之间,无法再同时改善两者的一组最优平衡点
- NSGA-II · 一种用于同时优化多个相互竞争目标的进化算法
- SSIM/KID · 衡量被干扰图像与原始图像在结构或统计上相似程度的指标
- chrF/BERT-F1 · 衡量被干扰文本或代码与原始文本相似程度的指标
- Recall@P* · 衡量搜索过程中已经找到了多少比例真正最优组合的指标
论文原文摘要(英文)
Deep learning models remain vulnerable to real-world input perturbations, especially when multiple corruptions co-occur in the same input (e.g., brightness shifts and motion blur). Compositional testing reveals these interaction effects but introduces two challenges: combinatorial growth of the perturbation space as dimensions and severity levels increase, and uneven diagnostic value-many combinations yield unrealistically degraded inputs with limited practical relevance. We present TESTNAV, 1 a Pareto-guided robustness testing framework for efficiently exploring discrete, compositional perturbation spaces when only a limited number of perturbation configurations can be evaluated. TESTNAV prioritises severe yet realistic failures by formulating robustness testing as bi-objective optimisation: maximise performance degradation while preserving input fidelity measured by modality-specific metrics (e.g., SSIM and KID for vision; chrF and BERT-F1 for language and code). It uses NSGA-II to approximate the bi-objective Pareto front. Across four benchmarks spanning vision, natural language, and code generation, TESTNAV recovers Pareto fronts up to 2.15x faster than search-based baselines, using 35.8%-89.3% of the discrete perturbation space defined by four perturbation dimensions with six levels each.
在 arXiv 阅读最新论文
- SWE-bench Science: Can Coding Agents Resolve Engineering Tasks in Science?让AI编程助手去修复真实科学软件,连最强的那个也有一半以上任务没做对
- When Saying No Makes Better Videos: Designing Dual Gatekeeping for Pedagogically Grounded AI Content Creation会说'不行'的AI才能做出更好的教学视频
- LoRA-GA$^2$: Low Rank Adaptation with Multi-step Gradient Adaptive Alignment在正式微调前先偷看几步训练的梯度,让LoRA的初始化更聪明
- Natural Language Code Retrieval for 1C:Enterprise: An Open Benchmark and Efficient Bi-Encoder首个用俄语提问就能搜索1C企业软件代码的公开基准和专用AI模型问世
- FlashPrefill V2: Block-Sparse Prefill Attention for Long-Context LLM Serving把稀疏注意力从论文原型变成能真正上线服务的加速方案
- NepOOC-M: Bilingual Nepali-English Benchmark and Comparative Analysis of Multimodal Architectures for OOC Detection尼泊尔语假新闻检测:只看文字就能追平图文结合模型
- Robust Incomplete Multimodal Sentiment Analysis via Iterative Proxy Correction文本信息缺失或损坏时,这个AI不靠一次性猜测,而是反复修正猜测结果,从而更准确地判断情绪
- Remember, Verify, or Ask? Cross-Family Evaluation of Memory Commitment in LLM AgentsAI助手在该向你提问的时候,却更愿意自己去核实事实
METAL LAB 最新报道
图片来源: Arooj Arif et al., arXiv:2608.19882, CC BY 4.0