跳到正文
arXiv cs.AI· Sidney Shapiro, Sanad Al-Khatib, Aurora Pinz\'on Arzola, Emiliano Sebastian Gonzalez Venegas, Daniel Pearson·· 2 小时前AI 评分52

arXiv 论文提出模式校验基准协议,对比 PydanticAI、LangGraph、DSPy 等六种 Python 实现

Schema-Validated LLM Workflows: A Benchmark Protocol and Comparative Evaluation Across Six Python Implementations

AI 导读

一篇 arXiv 论文提出可复现的基准协议,在五个业务工作流任务上对比 PydanticAI、LangGraph、DSPy、CrewAI、Agno 和无框架 SDK 六种 Python 实现,区分结构有效性与任务正确性。

正文 · 原文

View PDF HTML (experimental)

Abstract:Large language models are increasingly used to extract records, generate SQL, summarize reports, answer policy questions, and route operational work. At these software boundaries, parseable output is necessary but does not establish task correctness. We present a reproducible benchmark protocol, a public executable artifact, and a confirmatory live API evaluation that separate structural validity from task-specific correctness across five business workflow tasks and six Python implementation conditions: PydanticAI, LangGraph, DSPy, CrewAI, Agno, and a framework-free SDK reference.
We hypothesize that (H1) schema validity and task quality are separable, (H2) structured-output binding paths are heterogeneous under a shared model and lowest-common-denominator contract, and (H3) condition-by-task interactions concentrate failures rather than shifting all tasks equally. Confirmatory analysis uses distinct task instances (100 extraction and 50 per other task, with three nested replicates) under a frozen analysis plan, yielding a 5400-row primary matrix with equivalence margins and Holm-adjusted contrasts against the SDK reference.
In the eligible confirmatory run, overall schema validity was 0.684 and mean automated quality was 0.638. PydanticAI, LangGraph, and DSPy retained near-ceiling schema validity with mean quality 0.91-0.94, while the plain SDK, Agno, and CrewAI conditions were substantially lower in this package and model configuration. Schema-valid rows still produced many task-score flags, especially in extraction and compliance QA, and quality residuals show strong condition-by-task interactions (including a workflow collapse for CrewAI). Labelled ablations address retry budgets and feature-using mechanisms; primary contrasts remain system-configuration findings, not causal attributions to marketed library features.
Comments: 28 pages, 1 figure; code at this http URL
Subjects: Software Engineering (cs.SE); Artificial Intelligence (cs.AI)
MSC classes: 68T50, 68N01
ACM classes: I.2.7; D.2.5; D.2.8
Cite as: arXiv:2611.27106 [cs.SE]
  (or arXiv:2611.27106v1 [cs.SE] for this version)
  https://doi.org/10.48550/arXiv.2611.27106

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Sidney Shapiro [view email]
[v1] Fri, 20 Nov 2026 04:32:13 UTC (39 KB)

来源:arXiv cs.AI · arxiv.org