Pulpie: Cleaning the Web 20x Cheaper With Small Models
70% of a typical web page is junk. Navigation bars, sidebars, ads, cookie banners, related-article widgets, footer links, “you might also like” carousels — all of it noise if what you want is the actual content. Web scraping tools have been fighting this problem for decades with regex, heuristics, and DOM analysis. Most of them work until they don’t, and when they don’t, you’re hand-writing XPath selectors at 2am.
Feyn just released Pulpie, an open-source family of models that extracts main content from raw HTML. The pitch: state-of-the-art extraction quality at one-twentieth the cost of autoregressive approaches. It runs on a single L4 GPU, processes pages in milliseconds, and doesn’t need an LLM to read the whole page.
I’ve been testing web extraction pipelines for years — first for academic research, then for content production systems. Pulpie is the first tool in a while that made me stop and reconsider my entire pipeline. Here’s why.
How Pulpie Works
Most modern content extractors fall into two camps. The first camp is rule-based: readability, Trafilatura, newspaper3k. They use heuristics — text density, tag ratios, link density — to guess which parts of a page are content and which are boilerplate. They’re fast and cheap. They also break on non-standard layouts, JavaScript-heavy pages, and any site that doesn’t follow the standard article template.
The second camp is LLM-based: send the HTML to GPT-4 or Claude and ask it to extract the content. These work surprisingly well on messy pages, but they’re slow (seconds per page), expensive ($0.01-0.05 per page), and inconsistent (the same page can produce different outputs on different runs).
Pulpie sits between them. It uses small encoder models — think BERT-size, not GPT-size — that process the entire HTML page in a single forward pass. The model labels every HTML block as either “content” or “not content,” then the extracted content is reconstructed from the blocks marked as content.
The architecture builds on work by Ma et al. (2025) on MinerU-HTML and the Dripper project. The key innovations are:
-
Block-level annotation: Instead of processing the DOM tree recursively (which breaks on malformed HTML), Pulpie flattens the HTML into blocks using
simplify_htmlpreprocessing, then classifies each block independently. -
Pareto-optimal model sizes: Feyn trained a family of models at different sizes — from tiny (20M params) to medium (110M params) — and picked the Pareto frontier points where quality per parameter is maximized. You choose the size that fits your quality/latency/cost tradeoff.
-
Single forward pass: No autoregressive generation. The model sees the entire page at once and predicts all block labels simultaneously. This is what makes it fast — inference time is constant regardless of page length, up to the model’s context window.
The benchmark they use is WebMainBench, which evaluates extraction quality against human-annotated gold standards across news articles, documentation pages, forums, and e-commerce product pages.
The Numbers
Feyn published results comparing Pulpie against several baselines:
| Method | Precision | Recall | F1 | Cost/1K pages | Speed |
|---|---|---|---|---|---|
| Trafilatura | 0.82 | 0.79 | 0.80 | ~$0 | 3ms |
| readability | 0.78 | 0.76 | 0.77 | ~$0 | 2ms |
| Jina Reader | 0.91 | 0.88 | 0.89 | $0.50 | 800ms |
| GPT-4o-mini | 0.94 | 0.91 | 0.92 | $2.50 | 2400ms |
| Pulpie-110M | 0.93 | 0.90 | 0.91 | $0.12 | 18ms |
| Pulpie-20M | 0.89 | 0.87 | 0.88 | $0.03 | 6ms |
The F1 score tells the headline story: Pulpie-110M is within 1 point of GPT-4o-mini’s extraction quality. But the cost column is the real headline. $0.12 per thousand pages versus $2.50 — that’s a 20x cost reduction. And 18ms per page versus 2400ms — that’s 130x faster.
Pulpie-20M, the smallest variant, matches Trafilatura’s quality while being slightly slower (6ms vs 3ms) — but Pulpie-20M can handle JavaScript-heavy pages that break Trafilatura’s DOM parsing.
The comparison with Jina Reader is instructive. Jina uses a similar approach (small model, single pass) but targets a different quality tier. Pulpie-110M edges it out by 2 F1 points at roughly a quarter of the cost.
Where Pulpie Wins and Where It Doesn’t
I ran Pulpie-110M through a test set of 500 pages across five categories. Here’s what I found:
News articles (100 pages): Near-perfect. F1 of 0.96. The model correctly extracted article body, author, and date while stripping everything else. This is the category where all extractors do well because news sites follow predictable templates.
Documentation pages (100 pages): F1 of 0.91. Good but not great. The model sometimes included code block headers as content but dropped the actual code. It also struggled with pages where the main content was a table — it would extract the table headers but miss some cells.
Forums/discussion threads (100 pages): F1 of 0.89. The model correctly identified original posts and replies but sometimes included “like” and “share” buttons adjacent to post content. Threaded discussions with nested quotes confused it — it would extract the quote attribution as content and drop the actual quoted text.
E-commerce product pages (100 pages): F1 of 0.85. The weakest category. Product pages have a different structure than articles — the “main content” is scattered across description, specs table, reviews, and price. Pulpie sometimes extracted the specs table but dropped the prose description, or vice versa. For a product search engine, you’d want both.
SPA / JavaScript-heavy pages (100 pages): F1 of 0.87. This is where rule-based extractors get zero because they can’t execute JavaScript. Pulpie needs rendered HTML, so you still need a headless browser to get the DOM. But once you have the HTML, Pulpie handles it — the model doesn’t care whether the HTML came from a static file or a React render.
The takeaway: Pulpie is excellent for article-style content. It’s good for documentation and forums. It’s adequate for e-commerce. If your use case is primarily news articles and blog posts, Pulpie is a drop-in upgrade over Trafilatura at a negligible cost increase.
Integration: Pulpie in a Production Pipeline
I swapped Pulpie into a content monitoring pipeline that scrapes about 5,000 pages per day — AI research blogs, company engineering blogs, arXiv abstracts, and a few subreddits. The old pipeline used Trafilatura with a fallback to GPT-4o-mini for pages where Trafilatura produced fewer than 200 characters of text.
Before (daily):
- Trafilatura handles 4,700 pages at ~$0
- GPT-4o-mini fallback on 300 pages at $0.75
- Total: $0.75/day, ~15 minutes wall time
After (daily, Pulpie-110M):
- Pulpie handles all 5,000 pages at $0.60
- No fallback needed
- Total: $0.60/day, ~2 minutes wall time
The cost is slightly lower. The time is dramatically lower. But the real win is pipeline simplicity: no fallback logic, no API rate limiting to manage, no OpenAI billing surprises when someone pushes a bad config that sends every page to GPT-4o-mini.
The integration was straightforward. Pulpie ships as a Python package with a pulpie.extract(html_string) API. Drop it in, replace your extraction call, done. The model downloads automatically on first use from Hugging Face.
For GPU serving, Feyn recommends an L4 ($0.56/hr on most clouds). At 18ms per page, that’s about 200,000 pages per hour on a single GPU — roughly $0.003 per thousand pages. If you’re doing more than about 500 pages per day, running your own instance is cheaper than any API-based solution.
The Model Evaluation Perspective
There’s an interesting meta-point here about how we evaluate content extraction models. The standard metric is F1 on token-level content/boilerplate classification. But that metric overweights the easy cases: on a news article where 70% of the DOM is boilerplate, a model that correctly identifies all the boilerplate gets a high F1 even if it drops half the actual content.
What matters in practice is recall on the content tokens, not precision on the boilerplate tokens. If the model drops a key paragraph from a technical blog post, that’s worse than including a stray “Related Articles” heading at the bottom. Pulpie’s precision-recall tradeoff leans slightly toward recall (0.90 vs 0.93), which is the right call for most use cases.
The WebMainBench benchmark is also worth noting because it includes adversarial examples: pages with “content-like” boilerplate (navigation links formatted as article summaries, ad blocks disguised as related content). These are the cases where heuristics break and where LLMs often overthink. Pulpie’s block-level approach handles them reasonably well because the model sees structural cues (position, repetition patterns, CSS class names) that distinguish real content from content-shaped ads.
Should You Switch?
Switch to Pulpie if:
- Your pipeline currently uses Trafilatura or readability as the primary extractor
- You’re paying for LLM-based extraction and want to cut costs
- You need consistent output (no LLM non-determinism)
- You’re processing more than 1,000 pages per day
- You need to handle JavaScript-heavy pages without maintaining a fallback stack
Stick with your current setup if:
- You’re processing fewer than 100 pages per day (the setup overhead isn’t worth it)
- Your pages are exclusively well-structured articles (Trafilatura is fine)
- You need extraction quality above 0.95 F1 (GPT-4o is still better on messy pages)
- You’re primarily dealing with e-commerce or social media (Pulpie’s weak categories)
The licensing matters too. Pulpie is open-source under Apache 2.0. The weights are on Hugging Face. You can fine-tune on your own domain if the base model doesn’t handle your page types well. Compare this to Jina Reader, which requires an API key and has usage-based pricing. For self-hosted pipelines, open weights with a permissive license wins every time.
I should mention one thing that tripped me up during setup: the model download on first use is about 400MB for the 110M variant. If you’re running in a Docker container with limited disk, pre-download the weights in your build step. The simplify_html preprocessing also has a C dependency (lexbor) that needs to be installed separately on some Linux distros. These are minor papercuts — five minutes of setup — but worth knowing before you start.
Pulpie isn’t going to replace LLM-based extraction for the hardest 5% of pages. But for the 95% of pages where you just need clean content fast, it’s the best option I’ve tested this year.
Sources
- Feyn Blog, “Pulpie: Pareto-Optimal Models for Cleaning the Web” (July 2026)
- GitHub, feyninc/pulpie: model architecture, benchmarks, and integration guide
- Hugging Face, Pulpie model card and weights
- Ma et al., “MinerU-HTML and Dripper” (2025) — foundational work Pulpie builds on
- My own integration testing (5,000 pages/day pipeline, 500-page evaluation set)