Research Papers 论文研究 5h ago Updated 1h ago 更新于 1小时前 42

RiskBlend: A Multi-Signal Framework for Test Input Prioritization in Machine Learning Regression Testing RiskBlend:机器学习回归测试中的多信号测试输入优先级框架

RiskBlend is a classifier-agnostic framework for prioritizing test inputs during ML regression testing, combining four risk signals: historical failure patterns, prediction shift, decision-boundary shift, and neighborhood change The framework uses validation-learned APFD-squared weighting to optimally combine these complementary signals Evaluated across 1,200 experimental configurations (4 datasets, 5 classifiers, 4 regression-update scenarios, 15 random seeds), RiskBlend achieved the highest av 现有ML回归测试输入优先级排序方法主要依赖单一模型置信度分数,未充分利用模型版本间预测、决策边界和局部邻域的变化信息 提出RiskBlend框架,融合历史失败模式、预测偏移、决策边界偏移和邻域变化四种互补风险信号 采用验证学习的APFD-squared加权方法组合多信号,在1200个实验配置中全面优于基线 在4个数据集、5种分类器、4种回归更新场景和15个随机种子的实验中,RiskBlend在所有80种组合中均取得最高平均APFD 置信度方法在稀疏分类特征的线性分类器上仍具竞争力,归因于特征空间几何特性

55
Hot 热度
70
Quality 质量
58
Impact 影响力

Analysis 深度分析

TL;DR

  • RiskBlend is a classifier-agnostic framework for prioritizing test inputs during ML regression testing, combining four risk signals: historical failure patterns, prediction shift, decision-boundary shift, and neighborhood change
  • The framework uses validation-learned APFD-squared weighting to optimally combine these complementary signals
  • Evaluated across 1,200 experimental configurations (4 datasets, 5 classifiers, 4 regression-update scenarios, 15 random seeds), RiskBlend achieved the highest average APFD in all 80 dataset-classifier-scenario combinations
  • Improvements of up to 0.32 APFD over the strongest baseline were observed
  • Confidence-based methods remain competitive primarily for linear classifiers on sparse categorical features, attributed to feature-space geometry

Why It Matters

ML model retraining introduces regression faults where previously correct predictions become incorrect, and detecting these faults is expensive due to reliance on human annotation or simulation. This work provides a practical, classifier-agnostic solution for prioritizing which test inputs to verify first under limited budgets, directly addressing a critical pain point in MLOps and continuous integration pipelines for machine learning systems.

Technical Details

  • Four risk signals: (1) Historical failure patterns from previous regression cycles, (2) Prediction shift measuring changes in predicted labels between model versions, (3) Decision-boundary shift quantifying how classification boundaries move, and (4) Neighborhood change capturing how local input distributions are affected by model updates
  • APFD-squared weighting: Signal combination is learned via validation on held-out data, optimizing for Average Percentage of Faults Detected squared (APFD²), a metric that penalizes late fault detection more heavily
  • Classifier-agnostic design: The framework is model-agnostic and was evaluated across five different classifier types, demonstrating broad applicability
  • Extensive empirical validation: 1,200 configurations spanning four datasets, five classifiers, four regression-update scenarios, and 15 random seeds provide robust statistical grounding
  • Key finding: Cross-version behavioral signals provide complementary information that single-model confidence scores cannot capture, with the largest gains observed in non-linear classifiers and dense feature spaces

Industry Insight

  • Organizations running continuous ML pipelines should adopt multi-signal prioritization rather than relying solely on confidence scores, as the latter fail to capture cross-version behavioral changes that are the primary source of regression faults
  • The classifier-agnostic nature of RiskBlend means it can be integrated into existing MLOps toolchains without requiring model-specific adaptations, reducing implementation friction
  • For teams with linear classifiers and sparse categorical features, simpler confidence-based approaches may still be sufficient, allowing resource allocation to more complex scenarios where RiskBlend's gains are largest

TL;DR

  • 现有ML回归测试输入优先级排序方法主要依赖单一模型置信度分数,未充分利用模型版本间预测、决策边界和局部邻域的变化信息
  • 提出RiskBlend框架,融合历史失败模式、预测偏移、决策边界偏移和邻域变化四种互补风险信号
  • 采用验证学习的APFD-squared加权方法组合多信号,在1200个实验配置中全面优于基线
  • 在4个数据集、5种分类器、4种回归更新场景和15个随机种子的实验中,RiskBlend在所有80种组合中均取得最高平均APFD
  • 置信度方法在稀疏分类特征的线性分类器上仍具竞争力,归因于特征空间几何特性

为什么值得看

本文针对机器学习模型迭代更新时的回归测试痛点,提出多信号融合优先级排序框架,显著降低验证成本。研究结果为ML系统持续集成中的测试资源优化提供了可复用的技术方案和实证依据。

技术解析

  • 多信号融合架构:RiskBlend整合四种风险信号:(1)历史失败模式-利用过往版本中的错误样本分布;(2)预测偏移-量化输入在版本间预测概率的变化;(3)决策边界偏移-测量分类边界的局部移动;(4)邻域变化-分析样本周围邻居标签的一致性变化
  • 加权学习机制:采用验证集学习的APFD-squared加权策略,通过优化平均先发现率平方指标自动学习各信号权重,避免人工调参
  • 实验规模与设置:涵盖4个公开数据集、5种分类器(含线性/非线性)、4种模型更新场景(增量训练/超参调整/数据分布漂移/架构变更),15个随机种子重复实验,总计1200个配置
  • 性能基准:相比最强基线方法最高提升0.32 APFD,在全部80种数据集-分类器-场景组合中均取得最优表现,验证了方法的泛化能力

行业启示

  • 机器学习回归测试应从单点指标评估转向多维度行为分析,版本间的动态变化信号比静态置信度更具预测价值
  • 测试优先级策略需考虑特征空间特性,稀疏分类特征场景下传统方法仍有效,密集连续特征场景应优先采用多信号框架
  • 建议将RiskBlend类方法集成到ML CI/CD流水线中,通过自动化风险排序将验证预算集中在高回归概率样本上,降低人工标注成本

Disclaimer: The above content is generated by AI and is for reference only. 免责声明:以上内容由 AI 生成,仅供参考。

Research 科学研究 Evaluation 评测 Training 训练 Inference 推理