cd /news/machine-learning/dataset-overlap-check-how-much-of-on… · home › topics › machine-learning › article
[ARTICLE · art-182720] src=discuss.huggingface.co ↗ pub= topic=machine-learning verified=true sentiment=· neutral

Dataset-overlap: check how much of one dataset is already in another, locally or in the browser

A benchmark run of the dataset-overlap tool on all 3,500 labelled pairs from the near-duplicate text benchmark reproduced the published exact collection counts for both collections (2,000 and 1,500 records), with is_duplicate scores of 0.9745 for exact Jaccard and 0.9621/0.9629 for the 128-permutation MinHash/LSH path with two salts. At threshold 0.8, the exact B row count was 506/1,500 (33.7%) while the default gave 534 and 516, a gap the author attributes to estimation rather than candidate loss. The author recommends starting with character 5-grams, 128 components and 0.8, prioritizing the band selector, pooled resolution and reporting scope, and warns that a low estimate does not certify a clean eval split.

recommendation

Start with character 5-grams, 128 MinHash components and a 0.8 threshold, then verify LSH candidates with exact shingle Jaccard on raw text rather than lowering the threshold to compensate for retrieval gaps.

more in playbook: Evals and testing for LLM apps
read2 min views7 publishedDec 6, 2026

For now, I tried a few different settings using the benchmark you published: I used all 3,500 labelled pairs and both collections (2,000 and 1,500 records) in your near-duplicate text benchmark. I ran the Python code embedded in the pinned Space source in a native Colab CPU runtime, not the browser UI, and reproduced the published exact collection counts.

is_duplicate was 0.9745 for exact Jaccard and 0.9621/0.9629 for the current 128-permutation MinHash/LSH path with two salts. This supports the default on this English synthetic benchmark. At threshold 0.8 the exact B row count is 506/1,500 (33.7%); the default gives 534 and 516. Both default collection runs agree with exhaustive comparison of the same signatures, so here the discrepancy is estimation rather than candidate loss. This does not hold for every setting.

I would retain the surface-overlap focus. A low estimate does not certify a clean eval split; a high pooled score does not measure redundant complete records or model lift. The existing warning about the shared salt and sensitive signatures remains important.

I would start with character 5-grams, 128 components and 0.8. If arbitrary permutation counts are supported, restrict them to tested configurations or relax the band selector. I would not adjust the final threshold merely to compensate for a retrieval problem.

When both raw datasets are available locally, LSH can generate candidates and exact shingle Jaccard can verify them. Verification removes estimation errors for retrieved pairs, but cannot recover omitted candidates. With signatures only, exhaustive comparison is still approximate relative to the raw text.

Goal Measurement
Whole-record duplication Normalized exact and near match
Partial eval leakage Substring or directional per-record containment
New data acquisition Distinct record difference against existing data
Shared surface content Pooled Jaccard/containment with uncertainty
No raw record exchange Compatible signatures with stated scope

I would prioritize the band selector, pooled resolution and reporting scope before adding new matching modes.

── more in #machine-learning 4 stories · sorted by recency
── more on @dataset-overlap 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/dataset-overlap-chec…] indexed:0 read:2min 2026-12-06 · —