Scale-Dependent Semantic Deduplication
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- python
- Domain
- data, machine-learning
Research direction
Start by locating the existing SemDeDup stage and SemDeDupConfig, then review the linked paper's power-law and collision-rate formulas. Map the required configuration, threshold defaults, SemanticCollisionAudit utility, warning, documentation table, and integration test to the existing project structure. Done means all listed Definition of Done items are implemented and the large-scale simulated test verifies tighter thresholds reduce near-duplicates.
Written by the indexing model from the issue text.
Description
What:
Add scale-dependent threshold adjustment to the existing SemDeDup stage, where semantic similarity thresholds tighten as corpus size (or target model size) increases. Based on the empirical finding that gradient alignment for semantically equivalent documents increases with model capability, causing accelerated "semantic collisions" at hundreds of billions of tokens.
Why:
arXiv:2603.06603 (Feb 2026) demonstrates that semantic duplication disrupts standard scaling laws — causing mild degradation in small models but rapidly increasing loss penalties in larger models. Fixed similarity thresholds calibrated on small runs systematically over-retain semantic duplicates at production scale, corrupting scaling predictions. This is a silent bug in every large-scale pretraining pipeline using SemDeDup with fixed thresholds.
Definition of Done:
- Extend SemDeDupConfig with scale_aware: bool and target_model_params: int fields
- Implement threshold scaling function: ε(N_corpus, N_model) derived from the power law + collision rate formula in the paper
- Ships with recommended default thresholds at 1B / 10B / 100B / 1T token scales (table in docs)
- SemanticCollisionAudit utility: samples the corpus at target scale, reports estimated semantic collision rate before dedup
- Integration test: verify tighter thresholds reduce semantic near-duplicate count at simulated large scale
- Warning logged when target_model_params is unset and corpus size exceeds 100B tokens
- Dominant language
- Python
- Stars
- 1.8k
- Forks
- 328
- Avg merge
- 4d 5h
- Merged PRs (30d)
- 30
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from NVIDIA-NeMo/Curator
-
community-request waiting-on-maintainers
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
NVIDIA-NeMo/Curator#2375 ·
-
DocumentSplitter treats multi-character separators as regex (wrong splits, re.error crash on "++") Opencommunity-request waiting-on-maintainers
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
NVIDIA-NeMo/Curator#2374 ·
-
xenna_grafana_dashboard.json missing from the wheel — Xenna Grafana dashboard is never provisioned Opencommunity-request waiting-on-customer
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
NVIDIA-NeMo/Curator#2189 · 5 comments ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
NVIDIA-NeMo/Curator#1544 · 1 comment ·
-
community-request waiting-on-maintainers
Difficulty 2/5 1-3 hours Newbie friendliness 48/100
NVIDIA-NeMo/Curator#2397 ·
All issues in NVIDIA-NeMo/Curator
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
bancolombia/sentinel#23 ·
-
test md OpenCI
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
bug client
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100