An embedding turns a product title into a vector, so that similar products sit close together. That makes embeddings ideal for one job in product matching and risky for another. Finding candidate matches among millions of listings is the first job; deciding that two listings describe the same product is the second. The research draws that line fairly clearly, and this article follows it. For the wider family of matching methods, see our entity resolution overview.
A literature summary
This covers a core set of influential papers, not a systematic review. Results come from the papers’ own benchmarks and settings.
Key takeaways
- Similar isn’t the same. An embedding puts the 128 GB and 256 GB versions of a phone next to each other, which is right for retrieval and wrong for matching.
- Bi-encoders embed each listing once and compare vectors; cross-encoders read two listings together. The Sentence-BERT authors put the difference at 65 hours versus about 5 seconds to find the most similar pair among 10,000 sentences.
- For blocking, embeddings work without labels: DeepBlocker (2021) achieved higher recall than an industrial rule-based blocker on all but one dataset it tested.
- Learned matchers score best on products seen in training and drop on new ones. On WDC Products, a contrastive model fell from 82.15 to 53.31 F1 when every test product was unseen.
- The robust design is two-stage: embeddings for recall, then a stricter decision step with attribute checks, a cross-encoder or an LLM, and human review of the uncertain middle.
Two jobs: finding candidates and deciding matches
Comparing every listing in one catalog with every listing in another is impossible at scale: two catalogs of a million listings each produce a trillion pairs. Matching systems therefore work in stages, and embeddings belong at the wide end.
From a trillion pairs to a decision
Matching two catalogs of one million listings each, stage by stage
Data behind the chart
| Stage | Pairs remaining | Main error to measure |
|---|---|---|
| All possible pairs | 10¹² | None; not computed |
| Embedding retrieval, top 10 per listing | 10⁷ | True matches not retrieved (recall at K) |
| Attribute checks | About 10⁶, illustrative | Correct matches wrongly filtered |
| Decision step | Match, review or non-match | Precision, recall, calibration |
The stages fail differently. A true match that retrieval misses is gone for good, so the first stage is judged on recall: of the real matches, how many appear among the candidates. The last stage is judged on precision and recall of its decisions, and on how well its scores separate sure cases from the ones a person should check.
Why “similar” isn’t “same”
Embedding models are trained to place texts with similar meaning close together. For product identity, the decisive details are often the ones that barely change meaning: storage size, pack count, color, model year, “Pro.”
Close in embedding space, different products
Listings near one phone listing, and what a distance threshold would catch
Data behind the chart
| Listing | Relation to the anchor listing | Inside the threshold? |
|---|---|---|
| Phone X 128GB Black, store B | Same product | Yes |
| Phone X 128 GB, blue | Color variant | Yes |
| Phone X 256 GB, black | Storage variant | Yes |
| Case for Phone X, 2-pack | Accessory | Yes |
| Phone X Pro 128 GB | Different model | Borderline |
| Wireless earbuds, laptop stand | Unrelated | No |
No single threshold separates the true match from its neighbors here, which is why the papers that do well on hard benchmarks either train on difficult negative examples or add explicit checks. WDC Products builds this difficulty in: its “corner cases” are pairs that look alike but differ, or differ in wording but match. In practice, extracting the decisive attributes (capacity, pack count, model number) and comparing them as values is more reliable than hoping the vector space encodes them.
Bi-encoders, cross-encoders and the speed gap
A bi-encoder embeds each listing once; finding candidates is then a nearest-neighbor search over stored vectors. A cross-encoder reads both listings together and outputs a match score, which lets it compare details directly but requires one model call per pair. Reimers and Gurevych quantified the gap when introducing Sentence-BERT in 2019: finding the most similar pair in 10,000 sentences took about 65 hours with BERT as a cross-encoder and about 5 seconds with Sentence-BERT embeddings.
That gap sets the architecture. Bi-encoders handle retrieval; cross-encoders such as Ditto, which reads a pair with a pre-trained language model, handle decisions on the shortlist. Large language models now compete for the decision step too. In a study by Peeters, Steiner and Bizer, published at EDBT 2025, GPT-4 reached 89.61 F1 without task-specific training on the hardest WDC Products variant, ahead of fine-tuned Ditto at 84.90. At one model call per pair, that is still a shortlist tool.
Embeddings for blocking
Blocking is where embeddings have the clearest evidence. DeepBlocker (Thirumuruganathan and colleagues, PVLDB 2021) converts each record into a vector and takes the top K most similar records by cosine similarity, with no labeled training data. A simple autoencoder performed best on structured and dirty datasets, and a hybrid model on textual ones. Against an industrial rule-based blocker, the deep learning approach achieved higher recall on all but one dataset; on Amazon-Google it reached 97.1% recall, though with a candidate set about four times larger. Taking the union of both blockers added 0.3 to 6.7 points of recall on structured data.
Two practical lessons follow. Rules and embeddings catch different matches, so combining them is cheap insurance. And recall is only meaningful at a stated candidate budget: a blocker that returns more candidates will find more matches, and the decision step has to pay for every one of them.
Contrastive learning and unseen products
Contrastive learning trains an encoder to pull matching records together and push non-matches apart. Sudowoodo (Megagon Labs) does it without labels, as a base for matching and other data integration tasks with few labels. R-SupCon, from the University of Mannheim, uses labeled pairs in supervised contrastive pre-training. The WDC Products benchmark (2023), with 11,715 offers for 2,162 products, tested how such models handle products absent from training.
What happens when the products are new
WDC Products, 80% corner cases, large training set: F1 with all test products seen vs all unseen
Data behind the chart
| System | F1, 0% unseen | F1, 100% unseen | Change |
|---|---|---|---|
| R-SupCon | 82.15 | 53.31 | −28.84 |
| Ditto | 79.12 | 68.35 | −10.77 |
| RoBERTa | 78.15 | 69.75 | −8.40 |
| HierGAT | 75.42 | 68.53 | −6.89 |
| Word co-occurrence | 56.67 | 30.26 | −26.41 |
| Magellan | 31.96 | 34.95 | +2.99 |
The authors’ conclusion is that “all matching systems struggle with unseen entities to varying degrees.” The contrastive model had the best score on familiar products and the steepest fall on new ones; only Magellan, a symbolic baseline with low scores overall, didn’t lose ground. The EDBT 2025 study found the same weakness from another angle: fine-tuned RoBERTa and Ditto lost between 22 and 53 F1 points when trained on other matching benchmarks and tested on WDC Products, while GPT-4, used without training, didn’t show that drop. For a price feed, “unseen” is the normal case: new products appear every week.
How to evaluate embedding-based matching
| Work | Approach | Stage | Labels needed | Reported result |
|---|---|---|---|---|
| Sentence-BERT (2019) | Siamese bi-encoder | Retrieval | Trained on sentence pairs | Most similar pair among 10,000 sentences: about 5 seconds vs 65 hours |
| DeepBlocker (PVLDB 2021) | Record embeddings, top-K cosine | Blocking | None | Higher recall than a rule-based blocker on all but one dataset |
| Ditto (PVLDB 2021) | Cross-encoder on a pre-trained language model | Decision | Labeled pairs | 84.90 F1 on WDC Products, as reported in the EDBT 2025 study |
| Sudowoodo (Megagon Labs) | Self-supervised contrastive learning | Blocking and matching | None to few | State-of-the-art results at several supervision levels, per the authors |
| R-SupCon on WDC Products (2023) | Supervised contrastive learning | Decision | Labeled pairs | 82.15 F1 on seen products, 53.31 on unseen |
| GPT-4, EDBT 2025 study | Large language model, no training | Decision | None | 89.61 F1 on WDC Products, 80% corner cases |
Results come from different settings and aren’t a ranking.
The papers suggest an evaluation that measures each stage on its own terms:
- Retrieval: recall at a fixed K on held-out products, reported with the candidate set size.
- Decision: precision, recall and F1, broken down by hard cases such as variants and accessories.
- Split by product, not by pair: no product should appear in both training and test data, or the scores will describe memory rather than matching.
- Calibration: whether a score of 0.9 really means a match nine times in ten, which decides how much goes to review.
- Clusters: pair decisions combine into groups, and one false match can merge two products.
- Review cost: the number of pairs a person must check per 1,000 listings, which is often the real budget constraint.
Quick answers
Are embeddings good for product matching?
For finding candidates, yes. For final decisions, less so, because embeddings place variants with a different size, pack count or color close together. Robust systems use embeddings for recall and a stricter step to decide.
What is the difference between a bi-encoder and a cross-encoder?
A bi-encoder embeds each listing once and compares vectors, so it scales to millions of listings. A cross-encoder reads both listings together, which is more accurate on details but needs one model call per pair.
Do matching models generalize to new products?
Less than benchmark scores suggest. On WDC Products, every learned matcher lost F1 when the test products were unseen in training; the contrastive R-SupCon fell from 82.15 to 53.31.
How do you evaluate product matching?
Stage by stage: recall at a fixed number of candidates for retrieval, and precision, recall and F1 for decisions, on a split where test products don’t appear in training and hard cases such as variants are included.
Can LLMs do product matching?
In a study published at EDBT 2025, GPT-4 reached 89.61 F1 without task-specific training on the hardest WDC Products variant, ahead of fine-tuned Ditto at 84.90, and held up better on unfamiliar products. With one call per pair, it suits the decision step rather than comparing every pair.
Matched product data across stores
We match listings across retailers with identifiers first and attribute checks for the rest, and flag uncertain pairs for review. See price monitoring or get in touch.
