Which Snippets Matter? Boilerplate Labels on Every Firehose Snippet
A web page is more than its main content. It also has an author byline, links to other pages, a "follow us on Facebook" prompt and a cookie banner. Firehose splits every page into snippets and gives each one all of our enrichments, including embeddings, named entities, tickers, ontologies and sentiment, whatever the snippet is. But a sentiment score on a byline, a ticker match on "follow us on Facebook" or a topic on a cookie banner shouldn't count as much as the same enrichment on the page's main content. So every Firehose snippet now also has a boilerplate label that says what it is: content (the page's main content), or one of 15 kinds of boilerplate.
Why Firehose Needs a Boilerplate Detector
Firehose enriches every snippet on its own, so you can drill down into a document and see where each signal comes from. That only helps if you also know what kind of text each snippet is. In a sample of 59,697 Firehose web pages from November 2026, about one snippet in five was boilerplate, and 69% of pages had at least one boilerplate snippet. Every one of those snippets was embedded, scored and mapped like the main content around it.
Ticker mapping shows the problem most clearly. "Follow us" prompts, share buttons and cookie banners name Facebook, Instagram, WhatsApp, YouTube and Google on page after page, so Meta and Alphabet get matched on pages that are not about either company.
Across the Firehose pages we sampled in November, 17.3% of Meta and Alphabet ticker matches (2,253 of 13,045) come from "follow us" prompts and share buttons. For every other company it is 0.8% (622 of 81,481). Here are three examples, none of them about Meta or Alphabet:
| Web page | Boilerplate snippet | Label | Ticker it adds |
|---|---|---|---|
| Gadgets360, on a Robinhood engineer's guilty plea | "Follow us on X, Facebook, WhatsApp, Threads and Google News for instant updates." | subscribe_prompt | Alphabet 0.98, Meta 0.96 |
| Global News, on a Mohawk teacher's PhD | "Share this item on Facebook … Share this item via WhatsApp …" | social_sharing | Meta 0.93 |
| Papnews, on a tissue mill's training grant | "Google Analytics is a web analytics service provided by Google Ireland Limited …" | cookie_banner | Alphabet 0.99 |
All three matches reach the page's own ticker list. On the Gadgets360 page, Alphabet (0.988) and Meta (0.974) sit right next to Robinhood (0.992), the company the story is about.
Ontologies show the same problem. A cookie banner is classified like any other text, so a page about anything at all can pick up topics such as privacy or data breaches from its cookie notice. Three in four IPTC "privacy" topics on snippets (9,837 of 13,122) come from cookie banners. The same Papnews page shows how:
| Boilerplate snippet | Label | Topic it adds |
|---|---|---|
| "Google Analytics is a web analytics service provided by Google Ireland Limited …" | cookie_banner | Disclosed Customer Data Leak 0.83 |
| "Google reCAPTCHA is a SPAM protection service provided by Google Ireland Limited." | cookie_banner | Privacy 0.85 |
A page about a training grant ends up with privacy and a customer data leak among its topics.
With the boilerplate label on each snippet, those ticker matches and topics are easy to set aside. Keep the ticker matches, sentiment and topics from content snippets and you are left with the companies, tone and subjects the page is actually about. That is a stronger signal than the same enrichments counted across the whole page.
The same holds for the other enrichments:
- Sentiment and forward-looking signals. A teaser for another page carries that page's tone. A forward-looking disclaimer is full of forward-looking language by design, but says nothing about the company's outlook.
- Embeddings. A cookie banner or a copyright line is almost the same on thousands of pages. Its embedding matches queries about privacy or terms of use everywhere, and crowds out the passages you wanted.
How the Boilerplate Detector Works
The labels come from our new open model, NOSIBLE/world-v2-boilerplate on Hugging Face. For every snippet of a page it gives a probability for each of 16 labels, and the most likely label is the prediction:
| Label | What it covers |
|---|---|
content | The page's main content: its headline or title, body text, quotes, quoted social posts |
author_byline | Who wrote the main content, with outlet and date; the writer's bio; "last updated" lines |
source_attribution | Text whose only job is to credit the source the content came from |
image_caption | Captions, photo credits and image descriptions |
other_story | Headlines, teasers or text of other stories and pages |
navigation | Menus, breadcrumbs, tag lists, "next page" links, page numbers |
subscribe_prompt | Requests to subscribe, sign up, log in or follow; paywall messages |
social_sharing | Requests to share the page, lists of social networks, share counts |
advertisement | Selling or promoting something that isn't part of the main content |
cookie_banner | Cookie and tracking notices and consent requests |
legal_disclaimer | Copyright notices, terms of use, privacy notices, liability disclaimers |
financial_advice_disclaimer | "Not financial advice", "do your own research", "consult an adviser" |
forward_looking_disclaimer | Legal warnings that forward-looking statements may not come true |
publisher_info | About the website or publisher: mission, ownership, contact details |
comment_section | Reader comments, their heading and commenting rules |
other | Not main content and no other class, such as error messages and weather widgets |
Most boilerplate tools answer one question: main content or not? Naming 15 kinds of boilerplate makes the label useful on its own. You can drop all of them, or keep one on purpose: a forward-looking or financial-advice disclaimer is a useful flag in its own right.
The model reads the whole page at once, not one snippet at a time. Many snippets can't be labelled alone: "Stocks fell sharply on Tuesday" is main content on a page about markets and an other_story teaser at the foot of a page about football. So the model reads the page title and every snippet, in page order, in a single pass, and each snippet's label depends on everything around it.
Here is the model run on a short invented page. Install the dependencies and download the reference script from the model repository:
pip install torch "transformers>=5.0" huggingface_hub
hf download NOSIBLE/world-v2-boilerplate boilerplate_inference.py --local-dir .
Then pass it the page title and the snippets in page order:
from boilerplate_inference import load, classify_page
model, tokenizer = load("NOSIBLE/world-v2-boilerplate")
# An invented example page.
title = "City council approves new bus lanes"
snippets = [
"City council approves new bus lanes",
"By Jane Doe, Transport Reporter | 3 December 2026",
"The council voted 9-2 on Tuesday to add bus lanes on four main roads, starting in March.",
"The plan follows two years of complaints about slow buses in the city centre.",
"Photo: A bus on Main Street. (Credit: City Transit)",
"Read more: Stadium plans delayed again",
"Subscribe to our daily newsletter for local news.",
"We use cookies to improve your experience. By continuing you accept our cookie policy.",
"© 2026 Example News. All rights reserved.",
]
for text, probs in zip(snippets, classify_page(model, tokenizer, title, snippets)):
label = max(probs, key=probs.get)
print(f"{label:<17} {probs[label]:.2f} {text}")It prints the top label and its probability for each snippet:
content 0.98 City council approves new bus lanes
author_byline 1.00 By Jane Doe, Transport Reporter | 3 December 2026
content 1.00 The council voted 9-2 on Tuesday to add bus lanes on four main roads, starting in March.
content 1.00 The plan follows two years of complaints about slow buses in the city centre.
image_caption 1.00 Photo: A bus on Main Street. (Credit: City Transit)
other_story 0.97 Read more: Stadium plans delayed again
subscribe_prompt 1.00 Subscribe to our daily newsletter for local news.
cookie_banner 1.00 We use cookies to improve your experience. By continuing you accept our cookie policy.
legal_disclaimer 1.00 © 2026 Example News. All rights reserved.
The headline and both body paragraphs are labelled content. Everything around them gets its own kind of boilerplate, and the model is close to certain about each one.
Here are three real web pages from the live Firehose on 3 December 2026, all covering the same story: the NSA's warning that AI research by Anthropic threatens today's encryption, and the sell-off in crypto that followed. Pick a page to see its snippets in page order, each with its boilerplate label next to its other enrichments.
- 1
Coinbase Global Inc. (NASDAQ:COIN) stock plunged more than 14% in Thursday's premarket trading as a cryptocurrency selloff and fresh U.S. national security warnings about quantum computing risks weighed on digital asset stocks.
- Boilerplatecontent 1.00
- TickersCOIN.US
- Sentimentnegative
- Forward-lookingnot-forward
- TopicsEconomic ConsequencesBusinessEventShare Price Decreased
- EntitiesU.S.Coinbase Global Inc.NASDAQ
- 2
Coinbase came under pressure after the U.S. National Security Agency warned about potential threats that advances in quantum computing could pose to existing data protection systems.
- Boilerplatecontent 1.00
- TickersCOIN.US
- Sentimentnegative
- Forward-lookingnot-forward
- TopicsfearCryptocurrenciesInformation and Network Security
- EntitiesU.S.Coinbase
- 3
The iShares Bitcoin Trust (NASDAQ:IBIT) dropped 11.4%, and the Grayscale Bitcoin Trust (NYSE:GBTC) fell 11.3%.
- Boilerplatecontent 1.00
- Sentimentnegative
- Forward-lookingnot-forward
- TopicsBusinessEventEconomic ConsequencesResults Listings and Statistics
- EntitiesGrayscale Bitcoin TrustNASDAQiShares Bitcoin TrustNYSE
- 4
Broader equity markets also faced selling pressure, with the SPDR S&P 500 ETF Trust (NYSE:SPY) slipping 0.87% and the Invesco QQQ Trust (NASDAQ:QQQ) declining 0.88%.
- Boilerplatecontent 1.00
- Sentimentnegative
- Forward-lookingnot-forward
- TopicseconomicEconomic ConsequencesPublic Equities
- EntitiesNYSENASDAQ
- 5
The company recently received final approval for a U.S. national trust bank charter, allowing it to expand cryptocurrency custody and payment services while exploring additional stablecoin opportunities, according to a Bloomberg report published Nov. 9.
- Boilerplatecontent 1.00
- Sentimentpositive
- Forward-lookingforward
- TopicsBusinessEvent8.10Press Release
- EntitiesU.S.Bloomberg
- 6
Meanwhile, Monness, Crespi, Hardt analyst Gus Galá maintained a Sell rating and warned that challenges facing cryptocurrency exchanges could persist into 2027.
- Boilerplatecontent 1.00
- Sentimentnegative
- Forward-lookingforward
- TopicsCryptocurrenciesForecastBusinessEvent
- EntitiesMonness, Crespi, HardtGus Galá
- 7
He linked recent market weakness to Anthropic PBC's (NASDAQ:ANT) initial public offering, comparing the selling pressure with the reaction surrounding Space Exploration Technologies Corp.'s (NASDAQ:SPCX) public debut.
- Boilerplatecontent 1.00
- TickersSPCX.US
- Sentimentnegative
- Forward-lookingnot-forward
- TopicsEconomic Consequencesstart-up and entrepreneurial businessBusinessEvent
- EntitiesAnthropic PBCSpace Exploration Technologies Corp.NASDAQ
- 8
Separately, Armstrong emphasized cooperation among cryptocurrency companies to contain security threats following the $6.3 billion Binance hacking incident, CNBC reported on Nov. 12.
- Boilerplatecontent 1.00
- Sentimentneutral
- Forward-lookingnot-forward
- TopicsBusinessEventResponsibilitycyber crime
- EntitiesBinanceCNBCArmstrong
- 9
Coinbase represents 9.19% of the Corgi Crypto Infrastructure ETF (NASDAQ:BLCK), 5.56% of the ARK Blockchain & Fintech Innovation ETF (NYSE:ARKF) and 6.22% of the Fidelity Crypto Industry and Digital Payments ETF (NASDAQ:FDIG).
- Boilerplatecontent 1.00
- TickersCOIN.US
- Sentimentneutral
- Forward-lookingnot-forward
- TopicsEconomic ConsequencesBusinessEventCryptocurrencies
- EntitiesCoinbaseNASDAQNYSE
- 10
These holdings expose the funds to Coinbase's share-price movements, while ETF inflows, redemptions and portfolio adjustments can influence trading activity in the stock.
- Boilerplatecontent 1.00
- TickersCOIN.US
- Sentimentneutral
- Forward-lookingnot-forward
- TopicsEconomic ConsequencesBusinessEventeconomic
- EntitiesCoinbase
- 11
COIN Stock Price Activity: Coinbase Global shares were down 14.25% at $92.70 during premarket trading on Thursday, according to Benzinga Pro data.
- Boilerplatecontent 1.00
- TickersCOIN.US
- Sentimentnegative
- Forward-lookingnot-forward
- TopicsEconomic ConsequencesBusinessEventStocks and Bonds
- EntitiesCoinbase GlobalBenzinga Pro
- 12
CoreWeave stock climbed more than 7% on Monday as the AI infrastructure provider pursued a $4.3 billion loan backed by Meta-contracted Nvidia chips. See what Wall Street's forecasts and debt concerns mean for CRWV.
- Boilerplateother_story 0.78content 0.22
- TickersNVDA.USCRWV.USMETA.US
- Sentimentpositive
- Forward-lookingnot-forward
- TopicsBusinessEventCurtain RaiserEconomic Consequences
- EntitiesNvidiaCoreWeaveCRWV
- 13
A newsletter built for market enthusiasts by market enthusiasts. Top stories, top movers, and trade ideas delivered to your inbox every weekday before and after the market closes.
- Boilerplatesubscribe_prompt 0.99
- Sentimentneutral
- Forward-lookingnot-forward
- TopicsPress-DigesteconomicBusinessEvent
What to look for on each page:
- Benzinga, on Coinbase falling 14%. A paragraph about CoreWeave reads like part of the article, but it is a teaser for another story. The model labels it
other_story(0.78, withcontentat 0.22). That teaser is the only source of the NVDA, CRWV and META tickers on the page, three of the page's five. - Tom's Guide, on the NSA warning. Eight newsletter sign-ups, an affiliate notice and the writer's bio (
author_byline) are all boilerplate, but a quote that ends with a name and job title stayscontent. The Apple newsletter sign-up adds an AAPL match. - Mint, on Anthropic's research. The writer's bio turns the publisher's own name, Mint, into a match for Mint Corp (MIT.V), on a snippet labelled
author_byline.
How Good Is It?
Accuracy
We tested the model on 654,796 snippets from 59,697 web pages it never saw in training, in 71 languages. Its macro F1 across the 16 labels is 0.886. Macro means every label counts equally. Most snippets (79%) are content, so an average weighted by snippet count would mostly measure content and hide how the model does on everything else.
F1 for each label:
| Label | F1 | Test snippets |
|---|---|---|
content | 0.986 | 516,770 |
cookie_banner | 0.981 | 14,943 |
forward_looking_disclaimer | 0.954 | 546 |
navigation | 0.937 | 4,661 |
author_byline | 0.932 | 10,011 |
legal_disclaimer | 0.928 | 17,526 |
publisher_info | 0.925 | 15,695 |
financial_advice_disclaimer | 0.921 | 1,811 |
subscribe_prompt | 0.915 | 7,865 |
comment_section | 0.893 | 3,041 |
image_caption | 0.872 | 8,643 |
other_story | 0.865 | 39,408 |
other | 0.813 | 6,878 |
advertisement | 0.799 | 5,344 |
social_sharing | 0.782 | 256 |
source_attribution | 0.671 | 1,398 |
The model is close to perfect on content and cookie banners. It is weakest on source_attribution, social_sharing, which has only 256 test examples, and advertisement. The labels we score against come from Qwen and d1-ultra, not people (see Labels).
Across the 15 largest languages, macro F1 runs from 0.73 (Indonesian) to 0.89 (Russian), with English at 0.88.
Speed
The model is small and labels all of a page's snippets together, rather than one snippet at a time (see Architecture). On our inference engine, one NVIDIA L4 GPU labels about 300 web pages a second and uses under 1 GB of the GPU's memory. That is about 25 million pages a day on one GPU, cheap enough to run over every page of a web crawl, not only a sample.
The engine runs the model's matrix multiplications in 8-bit floating point (FP8). We compared it with the model in bf16 mixed precision, as in training, on the full test set: macro F1 is 0.887 with FP8 and 0.886 in bf16.
How We Built It
Architecture
The model is a full fine-tune of mmBERT-small, a multilingual ModernBERT encoder with 22 layers, hidden size 384 and about 140M parameters.
A standard sequence classifier gives one label per input. We need a label per snippet, with the rest of the page as context. So the whole page goes in as one sequence:
<bos> title <eos> snippet_1 <eos> snippet_2 <eos> … snippet_N <eos>
A window holds up to 2,048 tokens, and the title is capped at 128. A longer page is split into consecutive windows of whole snippets, each starting again with <bos> title <eos>. A snippet attends only to its own window.
Each snippet is mean-pooled over the last hidden states of its own tokens. The pooled vector goes through ModernBERT's prediction head (dense, GELU, LayerNorm) and a 16-way linear classifier, then a softmax. One forward pass labels every snippet in the window.
This is where the page context comes in. mmBERT uses global attention in every third layer and a 128-token sliding window in the others. The global layers let each snippet's tokens attend to the title and to every other snippet in the window, so the surrounding snippets inform its classification. Labels like other_story and source_attribution need that, because a teaser can look like body text on its own.
Data
We pulled 61 ten-minute windows of the Firehose with the Replay Engine, one every 7 hours 24 minutes from 7 to 26 November 2026, so the windows fall at different times of day. That gave 386,478 pages.
Many of them are the same story: syndicated wire copy, the same report on several sites, translations. Left in, they repeat the same text many times, which degrades the dataset. De-duplication runs in arrival order, comparing each page with the pages kept before it:
- Exact titles (syndication). Titles are normalised (lowercase, letters and digits only, single spaces) and put through a Bloom filter. A page whose title was already seen is dropped. This catches wire stories republished word for word, and removed 40,937 pages.
- Similar titles, same language. A MinHash of the title (128 hashes over 5-character shingles) is compared with the kept pages in the same language. A pair with an estimated Jaccard similarity of 0.3 or more is only a candidate, because many different stories share title words. The pair is dropped only if the page embeddings also agree (below). This removed 22,929 pages.
- Similar content, any language. Every remaining page is compared by cosine alone with every page kept before it, about 10 billion comparisons. This catches translations and rewrites, whose titles share no shingles. It removed 97,242 pages.
Steps 1 and 2 are cheap, and mainly shrink the pool that step 3 has to compare. The cosine in steps 2 and 3 is between the page embeddings each Firehose document carries: a 768-dimensional EmbeddingGemma vector of the title, description and URL. The cutoff depends on how far apart the two pages arrived. Within 12 hours a cosine of 0.8 counts as a duplicate, within 24 hours 0.85, within 72 hours 0.9, and pages further apart are never compared. A looser cutoff for pages that arrive close together catches rewrites of the same story. A stricter one for pages days apart keeps different stories on the same topic apart.
That left 225,370 pages. We then capped each website at 100 pages, so the big publishers don't dominate. That left 198,990 pages in 75 languages. We split them 70/30 by page (139,293 to train, 59,697 to test), so no page has snippets on both sides.
Labels
Qwen3.6-35B-A3B labelled all 2.47 million snippets, seeing the page title and one snippet at a time. A grammar restricted its output to the 16 label names, with at most three labels per snippet, and we took each label's probability from the logprobs.
We then trained a first model on Qwen's confident labels and ran it over every snippet. Where it disagreed with Qwen, or Qwen was unsure, the label was doubtful. That flagged 155,860 of the 225,370 pages. Liquid AI's d1-ultra relabelled the doubtful snippets on those pages with the whole page in view, giving a probability for each of the 16 labels, for $27.91 in total.
This relabelling step is the one we'd recommend to anyone training on labels made by a model. A large labeller is fast and cheap but wrong in consistent ways, and a first model trained on its labels is a good guide to where they are doubtful.
Training
We trained with a softmax over the 16 labels and cross-entropy against soft labels. Each snippet's target is a probability distribution over the labels, taken from Qwen's or d1-ultra's probabilities, not a single label. The softmax makes the 16 outputs one distribution that sums to 1, rather than 16 independent yes-or-no scores, so the model's probabilities are directly comparable with each other. Rare labels are weighted up so that content doesn't drown them out.
What You Can Use It For
- Weigh the Firehose's enrichments. Count tickers, entities, sentiment and topics from
contentsnippets, and treat the rest as background. - Clean web text for training. Drop the boilerplate from web pages before you train on them, so your models don't learn the same banners and footers from millions of pages.
- Rewrite the web for less. If you rewrite web pages into training data, drop the boilerplate first and spend fewer tokens on the rewrite.
- Search and retrieval. Index only
contentsnippets, so cookie banners and copyright lines stop matching queries. - Keep the boilerplate you want. Find pages that carry forward-looking or financial-advice disclaimers, measure how much of a site is advertising and see what it advertises, or use
author_bylinesnippets to find the writers worth following.
The model is open on Hugging Face as NOSIBLE/world-v2-boilerplate, under the MIT licence, with a reference script to run it on your own pages.
Limitations
Know these before you rely on the labels. The model card lists them too.
- Two high labels can mean two things. Either the snippet holds both kinds of text, such as a paragraph of the story that ends with a photo credit, or the model is unsure, and the probabilities alone don't tell you which.
- Long pages are split. The model reads up to 2,048 tokens at a time, so a longer page is split into parts and each snippet only sees its own part.
- Snippets are given, not found. The model labels the snippets it is given and does not split the page itself, so its labels depend on how the page was split.
- The rarest labels are the weakest.
source_attribution(F1 0.671),social_sharing(0.782) andadvertisement(0.799) score lowest, andsocial_sharinghas only 256 test snippets, so its score is noisy. - Uneven across languages. Macro F1 is 0.88 in English, which is about a third of the test snippets, but 0.77 in Hindi and 0.73 in Indonesian.
- Three weeks of training data. Every training page comes from the Firehose between 7 and 26 November 2026, so new kinds of boilerplate and site redesigns since then are not in it.
- The Firehose keeps part of the output. Only a page's first 30 non-blank snippets, in page order, get a label, and each carries its top label and up to two runners-up with a probability of 0.05 or more, not all 16 probabilities.
Get Access to the Firehose
Boilerplate labels come on every Firehose document, alongside the entities, tickers, locations, ontologies, sentiment and embeddings on each snippet. Firehose access is reserved, and each API key is approved individually. To request access, email stuart@nosible.com.