惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 司徒正美
大猫的无限游戏
大猫的无限游戏
腾讯CDC
J
Java Code Geeks
博客园 - 【当耐特】
Microsoft Azure Blog
Microsoft Azure Blog
V
Visual Studio Blog
人人都是产品经理
人人都是产品经理
博客园 - Franky
博客园 - 聂微东
阮一峰的网络日志
阮一峰的网络日志
美团技术团队
云风的 BLOG
云风的 BLOG
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
U
Unit 42
雷峰网
雷峰网
B
Blog RSS Feed
博客园_首页
量子位
F
Fortinet All Blogs
罗磊的独立博客
H
Hackread – Cybersecurity News, Data Breaches, AI and More
酷 壳 – CoolShell
酷 壳 – CoolShell
C
Check Point Blog

Snorkel AI

Building AI-Native Systems for Federal Infrastructure: A Conversation with Rezaur Rahman Code World Models and AutoHarness for LLM Agents Benchtalks #1: Alex Shaw (Terminal-Bench, Harbor) – Building the Benchmark Factory Building FinQA: An Open RL Environment for Financial Reasoning Agents How Tool Discipline Let a 4B Model Outsmart a 235B Giant on Financial Tasks Coding agents don’t need to be perfect, they need to recover Closing the Evaluation Gap in Agentic AI SlopCodeBench: Measuring Code Erosion as Agents Iterate Introducing the Snorkel Agentic Coding Benchmark 2026: The year of environments Part V: Future Direction and Emerging Trends in Rubric-Based AI Evaluation The self-critique paradox: Why AI verification fails where it’s needed most Chat With the Terminal-Bench Team | Snorkel AI Intelligence per watt: A new metric for AI’s future Terminal-Bench 2.0: Raising the bar for AI agent evaluation Snorkeling in RL environments Introducing SnorkelSpatial: A Benchmark for LLM Spatial Reasoning Scaling Trust: Rubrics in Snorkel's Quality Process Evaluating Multi-Agent Systems in Enterprise Tool Use Evaluating Coding Agents with Terminal-Bench 2.0 The science of rubric design The right tool for the job: An A-Z of rubrics Data quality and rubrics: how to build trust in your models Building the benchmark: inside our agentic insurance underwriting dataset Evaluating AI agents for insurance underwriting LLM observability: key practices, tools, and challenges Anthropic Claude + AWS: revolutionizing pharma data analytics with Snorkel AI Data-centric development of an enterprise AI agent with Snorkel Building the data development platform for specialized AI LLM-as-a-judge for enterprises: evaluate model alignment at scale
Parsing isn’t neutral: why evaluation choices matter
11450pwpadmin · 2025-09-26 · via Snorkel AI

Behind every AI benchmark is a hidden choice: how to read the model’s answers. That choice—parsing—can quietly tilt results more than the model itself.

Parsing is where we take an AI system’s raw response and extract the “answer” we use for scoring. It sounds mechanical, but as our research shows, the choice of parser can dramatically change measured accuracy.

In this post, we’ll unpack one of the most overlooked pieces of model evaluation, parsing, and explore three key questions:

  • What happens when you enforce strict versus flexible parsing rules?
  • How structured outputs can limit model reasoning itself?
  • Why do the same models look better or worse depending on the evaluation setup?

The Setup: Same Models, Different Parsers

We ran a range of models across SnorkelGraph, a benchmark of graph reasoning problems. Each problem has a structural answer, such as a list of nodes, which must be parsed, normalized, and then passed through graph validators to check correctness.

To prepare those answers, we tested two main parsing strategies:

  • Structured parsers: Requires exact JSON outputs, parsed with tools like Pydantic.
  • Unstructured parsers: Extracts answers using regex rules or another LLM.

This design put parsing at the center, allowing us to measure its direct impact on evaluation outcomes.

Results: Parsing Changes the Score

Figure 1: Parsing Methods Comparison LiteLLM JSON mode uses a structured output flag, Pydantic AI applies its parsing library, Regex Parser extracts answers from a specified format, and LLM Parser uses GPT-4o to extract answers.
Figure 2: Model Performance Comparison

The results, shown in Figure 1: Parsing Methods Comparison and Figure 2: Model Performance Comparison, reveal three notable patterns:

  • Structured formats can constrain reasoning. Models like GPT-4.1 and Grok-3 performed worse when forced into rigid JSON structures, as the requirement to maintain exact formatting limited their ability to reason fully through the task.
  • Reasoning-first models held steady. Models like Claude Sonnet 4, Gemini 2.5 Pro, and o4-mini showed minimal sensitivity to the parsing method, with only slight decreases under regex parsing due to its stricter format requirements.
  • Flexible parsing raised scores for weaker models. Regex and LLM parsers captured valid answers from freer-form reasoning, improving reported accuracy. GPT-4o struggled across all formats but performed best when given more flexibility with the LLM parser.

Parsing speed also varied dramatically. As shown in Figure 3: Parsing Methods – Time Comparison, regex and JSON parsing were nearly instantaneous, LLM parsing took a few seconds, and Pydantic AI lagged far behind at nearly 30 seconds per response.

Figure 3: Parsing Methods – Time Comparison

In short: the same model could look better or worse depending on how its answers were parsed.

Why Structured Outputs Can Hold Models Back

Forcing models into structured formats didn’t just affect evaluation—it actively reduced reasoning quality.

Weaker models, in particular, struggled to balance two demands at once: reasoning through the problem and conforming to schema rules. The result was often incomplete reasoning or failed answers, even before validation.

By contrast, when allowed to reason freely and have answers extracted and validated later, models performed better across the board. Structured constraints don’t just change how we measure results—they can reshape reasoning itself.

Why It’s Tricky

Parsing isn’t just a technical detail—it’s part of the evaluation. Strict parsing enforces discipline but can constrain reasoning. Flexible parsing captures more reasoning ability but risks overstating robustness by being too forgiving.

It’s a trade-off: exactness versus resilience. Both are valid, but they measure different things.

Recommendations for Practitioners

  • For precision: Use regex parsing—it’s reliable, fast, and strict.
  • For flexibility: Use LLM-based parsing—it better reflects reasoning, though it’s less exact.
  • Use caution with structured outputs: They can depress scores and limit reasoning for weaker models.

Closing Thoughts

Parsing may seem like a technical afterthought, but it shapes the story you tell about your AI. By making deliberate parsing choices—and recognizing their impact before answers even reach an evaluator—we can move from misleading metrics to evaluations we can trust.

That’s why our published SnorkelGraph benchmark uses an LLM parser with unstructured outputs. The goal isn’t to measure whether models can produce perfectly formatted JSON, but whether they can actually solve the complex spatial and mathematical reasoning problems the benchmark was designed to test.

At Snorkel AI, we pay close attention to every aspect of evaluating LLM responses, and iteratively improve them by collaborating with our network of experts to develop rubrics of carefully chosen evaluation criteria. Be sure to take a look at our series of posts on rubric development. Get in touch with us if you have a project that needs high quality data!