FormBench: A Benchmark for Fine-Grained Retrieval in Formulation Patents

Vineeth Venugopal, Elsa Olivetti, Jonathan WelcharXiv 2026

TL;DR

FormBench is a new large-scale benchmark designed to test how well AI models can retrieve specific chemical formulation data from a sea of nearly identical patent passages. The study reveals a startling "geometric collapse" in top-tier commercial models like OpenAI’s text-embedding-3-large, which score near zero on fine-grained retrieval despite excelling at general tasks.

What Problem Does This Paper Address?

In the world of formulation chemistry—think shampoos, adhesives, or pharmaceuticals—the difference between a relevant document and a "near-miss" is incredibly subtle. Two patent passages might mention the exact same list of chemicals, but in one, a surfactant acts as an emulsifier, while in the other, it’s a wetting agent.

Standard retrieval benchmarks (like BEIR or MTEB) usually test a model's ability to distinguish between different topics (e.g., "chemistry" vs. "history"). However, for a formulation scientist, the challenge is fine-grained discrimination: finding the specific composition or process they need among thousands of documents that use the same technical vocabulary. The authors argue that current general-purpose embedding models are "blind" to these functional differences because they haven't been trained to see the structural nuances within a specific scientific domain.

Methods

The authors built a sophisticated pipeline to generate 55,352 high-quality queries from US formulation patents:

  1. Ontological Screening: They used a Llama-3 model to extract entities (materials, processes, properties) from 3.1 million patent passages.
  2. Hard Negative Mining: Instead of random distractors, they used Jaccard similarity of chemical entities to find "hard negatives"—passages that look chemically similar to the target but are functionally different.
  3. Synthetic Query Generation: They used a three-stage LLM pipeline (Claude Sonnet 4 and Haiku) to generate and verify queries. A query was only kept if a "blinded" model could correctly pick the target passage out of a shuffled set.
  4. Task-Adaptive Fine-Tuning (TAPT): They tested whether contrastive fine-tuning on these domain-specific triplets could "rescue" open-source models (Nomic, GTE, Qwen3) from the failures seen in commercial APIs.
The FormBench synthetic query generation and verification pipeline.

Datasets

The paper introduces FormBench, released in BEIR-compatible format. It consists of:

  • FormBench-Random (C0): ~1M passages where distractors are randomly sampled. This tests coarse domain retrieval.
  • FormBench-Structured (C1): ~1M passages where distractors are "near-misses" from the same chemical domain. This is the primary, more difficult test.
  • FormBench-Sample: A smaller subset for rapid prototyping.

Key Insights and Ideas

  • The Geometric Collapse: Commercial APIs suffer from "within-domain anisotropy." They correctly identify that a passage is about "chemistry," but they squash all chemistry passages into such a narrow "cone" in the embedding space that they can't rank the correct one first.
  • The Retrieval-Classification Dissociation: Surprisingly, models that are great at classifying patents (e.g., OpenAI) are the worst at retrieving them. This suggests that being able to categorize a topic does not mean a model understands the fine-grained relationships required for search.
  • BM25 is a "Lexical Floor": The classic keyword-based BM25 algorithm outperformed every single zero-shot neural model on the difficult C1 corpus. If a neural model can't beat BM25, it’s essentially failing to use its "semantic" understanding.
  • TAPT is the Cure: Contrastive fine-tuning on domain-specific triplets (Anchor, Hard Negative, Soft Negative) successfully "stretches" the embedding space, creating a "discrimination gap" that allows for successful retrieval.
Comparison of model performance on random (C0) vs. structured (C1) distractors. Note the massive collapse of commercial APIs on C1.

Key Results

The quantitative results highlight a massive performance gap between commercial APIs and fine-tuned open-source models:

  • Commercial Failure: OpenAI-3-large achieved an abysmal 0.009 nDCG@10 on the structured (C1) corpus. For context, it only placed the correct anchor passage at rank 1 in 0.3% of cases.
  • The TAPT Rescue: After task-adaptive fine-tuning, Qwen3-Embed reached 0.4085 nDCG@10, finally surpassing the BM25 baseline (0.3751).
  • Corpus Sensitivity: As the "haystack" grows, API performance collapses much faster than fine-tuned models. At a small scale, APIs look okay; at a million-passage scale, they fail.
Distribution of cosine similarities. API models (top) show a narrow band (collapse), while TAPT models (bottom) show a wide discrimination gap.

Limitations and Future Work

The authors acknowledge several limitations:

  • Language & Geography: The benchmark is currently limited to English-language US patents (1995–2022).
  • Synthetic Queries: While heavily verified, the queries are LLM-generated. Future versions should include human-authored queries from professional chemists.
  • Relevance Proxy: The "graded relevance" is based on entity overlap (Jaccard similarity), which is a computational proxy for, but not a perfect match of, human expert judgment.

Future work involves extending the benchmark to multilingual sources and incorporating more complex, multi-hop reasoning queries that reflect how scientists actually interact with patent literature.

Summary updated

Abstract

We introduce FormBench, a platform for testing the ability of models to retrieve precise chemical information from technical documents. FormBench contains 55,352 queries and two retrieval corpus variants each with ~1M passages: FormBench-Random (C0), with randomly sampled distractors, and FormBench-Structured (C1), with structurally proximate distractors. Each query is paired with an anchor passage, a hard negative, and a soft negative - derived from a materials ontology through entity overlap scoring, providing a deeper graded signal on a model's discriminatory power. We evaluate 10 model configurations spanning commercial API encoders (OpenAI, Voyage), open-source encoders (Nomic, GTE-large, Qwen3-Embed), and their task-adaptive fine-tuned (TAPT) variants. We find: (1) commercial APIs score very poorly across all configurations (OpenAI-3-large: 0.009 on C1, 0.213 on C0); (2) TAPT on FormBench triplets lifts Qwen3-Embed to 0.4085 on C1, 0.4835 on C0; (3) BM25 remains competitive (0.375 on C1, 0.467 on C0), exceeded only by TAPT-Qwen3; (4) corpus size has a significant impact on retrieval behavior, as demonstrated through a corpus-size ablation; (5) the API failure traces to within-domain geometric collapse; (6) APIs outperform even the TAPT variants on classification and clustering tasks. FormBench is released in BEIR-compatible format at huggingface.co/datasets/vinven7/FormBench under CC-BY-4.0.
BibTeX
@misc{venugopal2026formbench,
  author = {Vineeth Venugopal and Elsa Olivetti and Jonathan Welch},
  title = {{FormBench: A Benchmark for Fine-Grained Retrieval in Formulation Patents}},
  year = {2026},
  eprint = {2610.30175},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.30175},
}
Figure