用证据驱动的自动测试框架,让大模型应用发布更可靠。
Automated Self-Testing as a Quality Gate: Evidence-Driven Release Management for LLM Applications
- 设计五维质量门禁,基于任务成功率、安全率等指标做发布决策
- 在38次评估中识别出两次需回滚的版本,保障四周稳定演进
- 适合关注大模型应用质量保障与自动化发布的研发团队
大模型应用因输出非确定性和模型行为动态变化,传统测试难以支撑发布治理。本文提出一种自动化自测框架,引入基于证据的质量门禁,在任务成功率、研究上下文保留度、P95延迟、安全通过率和证据覆盖率五个实证维度上做出促进(PROMOTE)、暂停(HOLD)或回滚(ROLLBACK)决策。通过一个持续开发中的多智能体对话AI系统纵向案例研究,覆盖20多次内部发布和38次评估运行。门禁在早期识别出两个需回滚的版本,并支持四周期稳定演进。采用曼-肯德尔趋势分析、斯皮尔曼相关性及自助法置信区间等方法验证,发现证据覆盖率是严重退化的首要判别因子,且运行时长随测试套规模可预测增长。人工校准研究(n=60分层样本,两名独立评估者,大模型作为裁判交叉验证)显示:大模型裁判与系统门禁分歧(kappa=0.13)主要源于延迟违规和路由错误——仅从响应文本无法察觉;而裁判能独立发现结构检查遗漏的内容质量问题,符合多维门禁设计预期。框架代码、伪代码及校准数据已公开,支持质量保障与复现。
原文摘要 · Abstract (English)
LLM applications are AI systems whose nondeterministic outputs and evolving model behavior make traditional testing insufficient for release governance. We present an automated self-testing framework that introduces quality gates with evidence-based release decisions (PROMOTE/HOLD/ROLLBACK) across five empirically grounded dimensions: task success rate, research context preservation, P95 latency, safety pass rate, and evidence coverage. We evaluate the framework through a longitudinal case study of an internally deployed multi-agent conversational AI system with specific marketing capabilities in active development, covering 38 evaluation runs across 20+ internal releases. The gate identified two ROLLBACK-grade builds in early runs and supported stable quality evolution over a four-week staging lifecycle while exercising persona-grounded, multi-turn, adversarial, and evidence-required scenarios. Statistical analysis (Mann-Kendall trends, Spearman correlations, bootstrap confidence intervals), gate ablation, and overhead scaling indicate that evidence coverage is the primary severe-regression discriminator and that runtime scales predictably with suite size. A human calibration study (n=60 stratified cases, two independent evaluators, LLM-as-judge cross-validation) reveals complementary multi-modal coverage: LLM-judge disagreements with the system gate (kappa=0.13) are attributable to structural failure modes - latency violations and routing errors - invisible in response text alone, while the judge independently surfaces content quality failures missed by structural checks, consistent with a multi-dimensional gate design. The framework, supplementary pseudocode, and calibration artifacts are provided to support AI-system quality assurance and independent replication.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。