Data filtering methods for training language models
This paper presents a comparative analysis of Confident Learning and Dataset Cartography for detecting label errors in Russian text classification datasets, demonstrating that while both methods outperform random removal, their effectiveness in improving model performance depends heavily on dataset size and noise levels, with Confident Learning yielding significant gains on small, noisy datasets.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you are trying to teach a robot to understand human language. You give it a massive textbook filled with examples and answers. But here's the catch: some of the answers in the textbook are wrong. Maybe a sentence that should be labeled "happy" was accidentally marked "angry," or a grammatically correct sentence was marked as "wrong."
If you teach the robot using a textbook full of mistakes, it will learn those mistakes, too. This is the problem of label noise.
This paper is like a quality control inspection for three different Russian-language textbooks (datasets) used to train AI. The authors, E. Shevchenko and E. Bruches, tested two different "detective tools" to find and remove the bad examples before the robot starts studying.
Here is a simple breakdown of their experiment and what they found:
The Two Detectives
The researchers compared two automatic methods for finding errors:
The "Second Opinion" Detective (Confident Learning):
- How it works: Imagine you have a student take a test. Then, you take that same student, split them into four groups, and have each group grade the others' answers. If a student consistently gets a specific question wrong according to the other groups, but the answer key says they are right, the "Second Opinion" detective flags it as a likely error in the answer key.
- The vibe: It's thorough but aggressive. It trusts the consensus of the model's predictions.
The "Study Habits" Detective (Dataset Cartography):
- How it works: This detective watches the student study over time. If the student keeps getting a specific question right, then wrong, then right again, or just seems confused about it after many study sessions, the detective marks it as "troublesome." It looks at how the model's confidence changes over time.
- The vibe: It's more cautious. It only removes examples that the model consistently struggles to learn.
The Three Textbooks (Datasets)
They tested these detectives on three very different Russian datasets:
- The Big Book (ru_emotion_e-culture): A huge collection of 49,000 forum posts about emotions. It's big and generally high-quality.
- The Medium Book (RuCoLA): A collection of 8,500 sentences to check if they are grammatically correct. It's medium-sized but tricky because "correctness" can be subjective.
- The Small Book (TERRa): A tiny collection of 2,300 pairs of sentences to check if one implies the other. It's small and suspected to be messy.
What Happened? (The Results)
1. The Big Book: "Don't Fix What Isn't Broken"
On the huge dataset, the textbooks were already pretty good.
- The Result: When the detectives removed the "bad" examples they found, the robot actually got slightly worse at the task.
- The Lesson: When you have a massive amount of data, the robot is smart enough to ignore a few bad apples on its own. Removing them just made the book smaller without making it better.
2. The Medium Book: "Better than Random, But Not Perfect"
On the medium dataset, both detectives found a lot of errors (about 15–18% of the book).
- The Result: Removing these errors didn't make the robot perfect, but it did make it perform better than if you had just randomly thrown away the same number of pages.
- The Lesson: The detectives were actually finding real mistakes, not just guessing. However, the dataset was still too noisy or the task too hard to see a huge jump in performance just by cleaning it.
3. The Small Book: "The Magic of Cleaning"
This was the most dramatic result. The small dataset was suspected to be very messy.
- The Result: The "Second Opinion" detective found that 35% of the book was wrong! When they removed those bad examples, the robot's performance jumped significantly.
- The Comparison: If they had just randomly thrown away 35% of the book, the robot would have crashed and burned. But because they threw away the specific bad examples, the robot became much smarter.
- The Lesson: For small, messy datasets, finding and removing the errors is a game-changer.
The Big Takeaway
The paper concludes that there is no "one size fits all" solution.
- If you have a huge, clean dataset, you don't need to waste time filtering; the AI can handle the noise.
- If you have a small, messy dataset, using a tool like "Confident Learning" to clean the data is essential. It's like cleaning a small, muddy room: if you don't remove the mud, you can't see the floor.
The authors also noted that the "Study Habits" detective (Dataset Cartography) is safer and less likely to accidentally throw away good examples, while the "Second Opinion" detective (Confident Learning) is more aggressive and better at finding the worst errors in small datasets.
In short: Cleaning your data is like polishing a lens. If the lens is already clear and huge, polishing it a bit more doesn't help. But if the lens is small and covered in mud, cleaning it is the only way to see clearly.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.