Case study · IAB Tech Lab · 2026

Using an LLM to make a model choice measurable.

Classifying web pages into the IAB Content Taxonomy is a natural job for embeddings, but there was no labeled data to tell which model to use or how small its vectors could be. I built the test set with Claude, then scored every candidate model on it, and picked the model from the scores.

704test pages generated with Claude
75.0% / 94.5%best top-1 / top-5 accuracy
~1.5× smallervectors for about 1 point of accuracy
4 modelscompared across 6 vector sizes
IAB Taxonomy Classifier

Picking an embedding model when no test set existed.

The IAB Content Taxonomy has about 700 categories, and classifying a page into it is a natural job for embeddings. But which model, and how big a vector? There was no labeled data to measure against. So I made some: Claude Haiku generated one realistic publisher page per category, 704 in all, each with a known correct answer. Every candidate model was then scored on the same test.

  • Embed the taxonomy once per model and cache it, so runs are cheap to repeat.
  • Embed each test page with the same model and rank categories by cosine similarity.
  • Score top-1 and top-5 accuracy against the known answer.
  • Test smaller vectors. Some models are trained so a shortened vector still works. Smaller vectors mean less to store, send and search, so the goal was the smallest size that keeps the accuracy.

Built on Cloudflare Workers AI and Vectorize, in TypeScript. github.com/IABTechLab/iab-taxonomy-classifier

Flowchart: each synthetic page is embedded, compared with cached taxonomy vectors, filtered to top matches, and scored against its known category
The evaluation pipeline, from the project's README.

Results across 704 test pages

768 dimensions

EmbeddingGemma-300M, top-1
75.0%
bge-base-en-v1.5, top-1
75.0%
Qwen3-Embedding-0.6B, top-1
48.9%

EmbeddingGemma-300M as the vector shrinks

768 dimensions
75.0%
512 dimensions
74.0%
256 dimensions
72.0%
128 dimensions
64.8%

Top-1 accuracy. At 512 dimensions it keeps nearly all its accuracy (top-5 even rises to 94.9%) with a third less to store and search. Below 256 it drops off. Larger models were not automatically better: Qwen3 led at 1024 dimensions (70.3%) but was unpredictable when shortened.

Want to talk about it?

I'm based in Los Angeles and open to product and engineering roles.

therevoltingx@gmail.com