CAFE:复合AI因子评估框架 CAFE: A Compound-AI Factorial Evaluation Framework 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-07-11
👁️ 预览文献
💡 AI 中文简介
CAFE是一个开源平台,把实验设计方法引入复合AI系统评估。这类系统有很多可替换组件(如检索器、模型、提示词),但开发者往往不清楚哪个组件最影响答案质量。CAFE让用户把每个可替换组件注册为因子,构建因子设计并运行配置,用可配置的LLM评判器和人工评分员按统一标准打分,再通过混合效应模型把答案质量差异归因到各组件及其交互作用,报告效应量、显著性、最佳配置、成本延迟权衡和评判可靠性。在HotpotQA检索增强问答上验证,能恢复预设因子效应并在置换零假设下保持校准。
领域人工智能系统评估 / 实验设计
适合谁读需要一定专业背景(了解AI系统、统计实验设计与混合效应模型)
核心贡献1. 将实验设计与混合效应模型引入复合AI系统评估,不仅能找到最佳配置,还能解释哪个组件驱动质量及差异是否显著;2. 开源Python包与Web应用,支持因子设计、LLM+人工评分、效应量/显著性/成本延迟/评判可靠性报告。
关键数据在HotpotQA检索增强问答流水线上验证,能恢复预设因子效应并在置换零假设下保持校准;示例中3个基础模型×2个检索语料×3个提示词=18种候选配置。
推荐理由如果你正在搭复合AI流水线却不知道优化哪个组件,CAFE用统计实验设计帮你把'哪个组件真正有用'讲清楚,值得一读。
关键词["复合AI系统", "因子评估", "实验设计", "混合效应模型", "检索增强问答"]

原文摘要

查看英文原文摘要

We introduce CAFE (Compound-AI Factorial Evaluation), an open-source platform that brings design of experiments to the evaluation of compound AI systems (CAIS). Such systems expose many interchangeable choices - e.g. which retriever, model, or prompt - and practitioners rarely know which of them most affects answer quality. With CAFE, a practitioner registers each swappable component of a pipeline as a factor to build a factorial design over the chosen factors, run the resulting configurations, and score the answers on a shared rubric using a configurable LLM judge together with human raters. From these ratings it attributes answer-quality variance to the components and their interactions with mixed-effects models and reports effect sizes, significance, the best configuration, cost and latency trade-offs, and judge-human reliability. Whereas existing tools mostly either search for a good configuration or score outputs in isolation, CAFE also explains which component drives quality and whether an observed difference is significant. We validate CAFE on a retrieval-augmented question-answering (QA) pipeline over the HotpotQA benchmark dataset, where it recovers planted factor effects and stays calibrated under a permutation null. CAFE is released as a Python package and as a Web application.