Skip to content

PRISEM: budget-aware entity matching

Role: AI Researcher

Research demo system at the WPI YOSSI Lab

Problem
Checking every record pair with an LLM or a person costs more than a fixed budget allows.
What was done
Co-built a four-tier router: rules, an embedding model, LLMs on CPU and human review, routed by uncertainty.
What changed
On a 91-pair demo, raising the budget from 150 to 250 units cut human review from 80 pairs to 2.
Pairs flagged for human review out of 91, budget 150 then 250 units
80 to 2
Cost tiers
4
Lexical features in the rule tier
8

Switch between the two measured budgets

Review budget, two measured states

80 of 91

pairs flagged for human review at a budget of 150 units

Tiers, cheapest first: rules over 8 lexical features, a BGE sentence-embedding model, 4-bit LLMs on CPU, then human review.

Flagged for human reviewNot flagged

The demo was measured at these two budgets only. Nothing between them was measured, so nothing between them is drawn.

Budget 150 units: 80 of 91 pairs flagged for human review.

Problem

decides whether two records describe the same thing. LLM matchers cost money per pair, and human review costs more. A system with a fixed budget has to decide which pairs deserve the expensive check.

Approach

A rule-based scorer over 8 lexical features, such as Jaccard, Levenshtein and token sort, keeps confident pairs. The least certain go to a BGE sentence-embedding model with , then to 4-bit quantized LLMs run CPU-only through llama.cpp (Qwen2.5-1.5B, Phi-3.5-mini, Jellyfish-8B), scored by reading Yes and No token log-probabilities. A Gradio interface tracks the budget live.

Highlights

  • Co-built PRISEM, a four-tier entity matcher that stays within a fixed budget.
  • A rule scorer over 8 lexical features keeps confident pairs out of costly tiers.
  • Turned 4-bit Qwen2.5-1.5B, Phi-3.5-mini and Jellyfish-8B into CPU-only match scorers.
  • Scored matches from Yes and No token log-probabilities, with no GPU or paid API.
  • Calibrated embedding scores with isotonic regression.
  • Built the Gradio review interface, so people check only uncertain matches.
  • A larger demo budget cut human review from 80 to 2 of 91 pairs.