Can LLMs Replace Parsers? What the Benchmarks Show

An HTML snippet flowing through a CSS selector path and an LLM extraction path into the same JSON output, with SWDE benchmark score bars comparing the two

8 min read

The pitch is simple: hand a page to a language model, get JSON back, never maintain a selector again. The research is more specific than the pitch. Web extraction benchmarks measure several different tasks, often on pages that look nothing like a 2026 product page, and the best published scores still leave a share of values wrong or missing. This article reads what the main benchmarks show and what they don’t, and proposes a test that answers the question for your own sources.

Published results, not our bake-off

This article reports results from papers and preprints. We haven’t reproduced them or tested models on live retailer pages; the test design at the end is a proposal.

Key takeaways

  • “LLM vs parser” isn’t one comparison. SWDE measures attribute extraction from 124,291 pages on 80 sites; WebSRC measures question answering; product attribute benchmarks measure extracting values from titles and descriptions.
  • Small models now do well on the classic benchmark: a February 2026 preprint reports 88.1% F1 on SWDE with a 0.6-billion-parameter model and no examples from the target sites. SWDE’s pages date from around 2011.
  • On product attributes, GPT-4 reached about 85% average F1 in a 2024 study. Fine-tuned GPT-3.5 matched it at a fraction of the cost, but scored about 17% lower when moved to the other dataset.
  • None of these is the number that matters for price data: exact match on price, currency and availability, on your sources, after the sites change.
  • The research is moving toward hybrids: models that prune the page, tie each value to a DOM node, or write reusable extraction scripts instead of reading every page.

Different benchmarks, different questions

BenchmarkTaskSizeWhat it doesn’t cover
SWDE (2011)Extract set attributes from pages in a vertical, such as a camera’s model, price and manufacturer124,291 pages, 80 sites, 8 verticalsModern JavaScript-rendered pages; offers, variants and locations
WebSRC (2021)Answer questions about a web page segment400,000+ question-answer pairs from 6,400 segmentsFixed-schema extraction at catalog scale
OA-Mine and AE-110K, as used in ExtractGPTExtract attribute values from product titles and descriptions491 and 524 test offers; 2,451 and 1,482 test valuesHTML structure; prices
SemiBench, as used in SCRIBESExtract from groups of structurally similar pages56 page groups, 268 pagesScale; very complex layouts

Sizes as reported in the AXE, ExtractGPT and SCRIBES papers.

A score on one of these says little about the others. A model that answers questions about a page well may still produce malformed records at scale, and one that extracts attributes from a product title has never had to find the price on a page with three prices on it.

What the scores say

SWDE is the long-running reference for attribute extraction from web pages, and the most recent strong result comes from a small model. AXE, a preprint posted on February 2, 2026 by researchers at Cairo University, Ejada Systems, Fawry and Microsoft, prunes the HTML tree before reading it and uses a 0.6-billion-parameter model with task adapters.

SWDE attribute extraction, F1 by method

As reported in the AXE preprint, February 2026; the axis starts at 60

60708090 F1AXE, zero-shot88.10WebLM large, one seed site87.57MarkupLM large85.71Render-Full84.30WebLM base84.21SimpDOM83.06SSM63.00
Source: Mansour, Alshaer and El-Saban, “AXE: Low-Cost Cross-Domain Web Structured Information Extraction,” arXiv:2602.01838 (preprint, not peer-reviewed), Table 2. Baseline scores are as cited in the preprint. Graphic: JsonEngine.
Data behind the chart
MethodSWDE F1
AXE, zero-shot88.10
WebLM large, one seed site87.57
MarkupLM large85.71
Render-Full84.30
WebLM base84.21
SimpDOM83.06
SSM63.00

Two details matter more than the headline. First, pruning cut the average input from 16,582 tokens to 351, a 97.9% reduction, which is what lets a small model do the job. Second, grounding matters: removing the step that maps each extracted value back to a node in the page dropped F1 from 88.37% to 83.95% in the paper’s ablation. Results also varied by vertical, from 80.9% for autos to 93.1% for restaurants, and on WebSRC’s test set AXE scored 71.1 F1, below the WebLM figure the paper cites. The comparison is with specialized encoder models, not with large general-purpose LLMs, and SWDE’s pages are about fifteen years old.

Product attributes, and what extraction costs

Product attribute extraction is closer to e-commerce work. In ExtractGPT (University of Mannheim, latest version September 2024), GPT-4 with example demonstrations reached 84.9% average F1 across two datasets of product offers, against 79.8% for the best pre-trained language model baseline. Llama-3-70B came within about 2 points. Without examples, GPT-4 peaked at 69.1% on OA-Mine.

Similar accuracy, very different cost

Cost per 1,000 extracted attribute values on OA-Mine, 2024 API prices

$0$2$4$6Fine-tuned GPT-3.5, list output$0.26Fine-tuned GPT-3.5, JSON output$1.23GPT-4, JSON with 10 examples$6.44The paper reports similar average F1, about 85%, for all three. Model prices have changed since.
Source: Brinkmann, Shraga and Bizer, “ExtractGPT: Exploring the Potential of Large Language Models for Product Attribute Value Extraction,” arXiv:2310.12537v5 (2024). Graphic: JsonEngine.
Data behind the chart
SetupCost per 1,000 values, OA-MineCost per 1,000 values, AE-110K
Fine-tuned GPT-3.5, list output$0.2600$0.2643
Fine-tuned GPT-3.5, JSON output$1.2307$0.9709
GPT-4, JSON with 10 examples$6.4411$6.3123

The dollar figures are dated, but the ratio is the lesson: on OA-Mine the most expensive setup cost about 25 times the cheapest for similar accuracy. Fine-tuning has its own cost, though. Models fine-tuned on one dataset and tested on the other scored lower than plain GPT-3.5, an average drop of 17% in the paper. A model tuned to your current sources may not transfer to the next one.

An 85% F1 is a strong research result and an uncomfortable production number. If a comparable share of values in a price feed were wrong or missing, nobody would use the feed. That gap is why prices, currencies and availability are usually taken from structured data or stable selectors, with models used where those fail.

Where the research is heading: hybrids

The most interesting recent work doesn’t ask a model to read every page. AXE reduces the page to the relevant nodes and maps each answer back to an XPath, so values can be checked against the source. SCRIBES, from Meta and Stanford researchers, goes further: it trains a model with reinforcement learning to write a reusable extraction script for a group of similar pages, rewarded by how well the script works across the site. The authors report script quality more than 13% better than strong baselines and large compute savings at web scale, and also weaker results on pages with nested lists and multi-column layouts.

That is, in effect, a model writing a parser. The pattern matches what tends to work in practice: structured markup first, selectors where layouts are stable, a model for the long tail and for new layouts, and validation on everything.

A test you can run on your own sources

A four-arm extraction test

Four methods, the same inputs and the same scorecard

Same inputs: stored page snapshots · held-out sites · fixed schemaA. SelectorsCSS or XPath per siteStrength: exact, cheapRisk: breaks on redesignB. Structured markupJSON-LD, microdataStrength: stable fieldsRisk: missing on some sitesC. LLM extractionpage to JSON schemaStrength: new layoutsRisk: invented values, costD. Hybridmarkup, selectors, then modelStrength: right toolper fieldRisk: more moving partsSame scorecardExact match: price, currency, availabilityF1 on long-tail attributesInvented vs missing valuesCost per 1,000 pagesLatencyRe-run after a layout changeModel arms: treat page text as untrusted input, require an evidence span for each value, and allow “not found”.
Test design by JsonEngine. Graphic: JsonEngine.
Data behind the chart
ArmMethodStrengthRisk
ACSS or XPath selectors per siteExact, cheap to runBreaks on redesign
BStructured markup (JSON-LD, microdata)Stable, standard fieldsMissing or incomplete on some sites
CLLM extraction to a JSON schemaAdapts to new layoutsInvented values; per-page cost
DHybrid: markup, then selectors, then modelRight tool per fieldMore moving parts

Run all four arms on the same stored snapshots, so differences come from the method rather than from the site changing between runs, and keep some sites out of any tuning so you measure transfer. Score prices, currencies and availability by exact match, not F1: a price that is nearly right is wrong. Count invented values separately from missing ones, because a model that says “not found” is far easier to work with than one that guesses. Then collect a fresh snapshot after a redesign and run everything again; that step is where selectors usually lose and where the case for models is strongest.

For the model arms, two safeguards are worth building in from the start. Treat page text as untrusted input, since pages can contain text written to steer a model, and require an evidence span or node reference for each value so it can be checked against the page.

Quick answers

Can LLMs replace web scraping parsers?

For some tasks they match specialized models on benchmarks, but published scores still leave a share of values wrong or missing, and the benchmarks don’t measure exact prices on modern pages. Hybrids that use structured data and selectors for core fields and models for the long tail are the safer design.

How accurate are LLMs at extracting product attributes?

In a 2024 University of Mannheim study, GPT-4 reached about 85% average F1 on two product attribute datasets when given examples. Without examples, it peaked at 69.1%.

What is the SWDE benchmark?

A dataset of 124,291 pages from 80 websites in 8 verticals, released in 2011, used to measure attribute extraction from structured web pages. A February 2026 preprint reports 88.1% F1 with a 0.6-billion-parameter model and no examples from the target sites.

Are LLMs cheaper than parsers?

Per page, usually not: once written, a parser costs little to run, while a model call costs per token. The case for models is lower maintenance. In a 2024 study, cost per 1,000 extracted values ranged from $0.26 to $6.44 for similar accuracy, depending on the setup.

How should I compare an LLM with my existing parser?

On the same stored snapshots, with held-out sites and a fixed schema: exact checks on price and currency, invented versus missing values, cost per 1,000 pages, latency, and a re-run after the site changes its layout.

Validated product data, whatever extracts it

We deliver prices, availability and attributes checked field by field, whichever extraction method fits each source. See our services or get in touch.