A team scraped a large web text dataset for pretraining. Many pages are near-duplicates and some are low quality. What should it do before training?
- Exam domain
- Experimentation22% of the exam
- Difficulty
- Medium
- In this mock
- 12 questions on this domainPractise this domain
Why the exam asks this
Experimentation (22% of the exam).
Objective in the exam guide: Assist in preparing (e.g., scraping, tokenization) large datasets for pretraining, fine-tuning, and RLHF.
Data quality limits model quality.
Why C is the answer
Deduplicate and filter the data, for example with NeMo Curator
Deduplication and quality filtering improve pretraining data; NeMo Curator provides GPU-accelerated filtering and deduplication.
How it works
Scraped data contains duplicates, boilerplate and low-quality text.
Deduplication removes exact and near-duplicate content.
Filtering removes low-quality text before tokenization.
Clues in the question
The words that point to the answer, and what each one tells you.
- Near-duplicates and low quality
- Deduplicate and filter.
In detail
- Near-duplicates waste compute and can cause memorization.
- Also remove personal data where required.
Side by side with look-alikes
| Step | Fixes the problem? |
|---|---|
| Deduplicate and filter | Yes |
| Train on everything | No |
| Translate all pages | No |
| Shuffle only | No |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Translate every page into one language firstWrong
Translation is not the main issue and loses data.
B. Shuffle the files and skip any checksWrong
Shuffling does not fix duplicates.
C. Deduplicate and filter the data, for example with NeMo CuratorRight
Deduplication and quality filtering improve pretraining data; NeMo Curator provides GPU-accelerated filtering and deduplication.
D. Train on everything; more data always helpsWrongMost tempting
Low-quality and duplicate data can hurt models.
Why it tempts: Scale matters. But bad and repeated data wastes compute and harms quality.
In practice
- Measure how much data each filter removes and spot-check what it drops.