← Latest papers
🤖 AI

CuraWeb: Joint Optimization of Quality, Redundancy, and Diversity for Web-Scale Pretraining Data

The paper introduces CuraWeb, a novel 2T-token English corpus constructed through a joint optimization framework that balances quality, redundancy, and diversity to overcome the limitations of singular-objective curation, resulting in a more holistic data distribution that significantly boosts LLM performance on knowledge-intensive and reasoning tasks.

Original authors: Peiguang Li, Yongwei Zhou, Juncheng Diao, Yuchun Fan, Jian Yang, Jianxiao Yang, Zhongda Su, Shuguang Jiao, Xiao Wei, Zhiye Zou, Gan Dong, Zhizhao Zeng, Rongxiang Weng, Jingang Wang, Xunliang Cai

Published 2026-07-28
📖 8 min read🧠 Deep dive

Original authors: Peiguang Li, Yongwei Zhou, Juncheng Diao, Yuchun Fan, Jian Yang, Jianxiao Yang, Zhongda Su, Shuguang Jiao, Xiao Wei, Zhiye Zou, Gan Dong, Zhizhao Zeng, Rongxiang Weng, Jingang Wang, Xunliang Cai

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 super-smart robot how to understand the world. To do this, you don't just give it a few textbooks; you dump the entire internet into its brain. This is how modern Artificial Intelligence (AI) learns. Scientists call this "pre-training." The robot reads billions of sentences from websites, news articles, and forums to learn how humans speak, think, and solve problems. But here's the catch: the internet is messy. It's full of spam, copy-pasted nonsense, and repetitive ads. If you feed a robot a diet of junk food, it gets sick and can't think clearly. So, researchers have to act like strict nutritionists, filtering out the bad stuff and keeping only the high-quality, diverse, and interesting information. The big question they've been wrestling with is: How do you clean up the internet without accidentally throwing away the rare, weird, and brilliant ideas that make the robot truly smart?

Enter CuraWeb, a new project by researchers at Meituan that tries to solve this messy problem. Think of previous methods as using a giant, blunt sieve to sift through sand. If you shake the sieve too hard, you lose the gold nuggets along with the dirt. The old way of cleaning data was like that: it used simple rules to filter out "bad" text, but in doing so, it often threw away complex math, coding, and science articles because they looked "weird" compared to normal sentences. The CuraWeb team realized that to build a truly brilliant AI, you need a more delicate approach. They didn't just want to clean the data; they wanted to curate it like a museum curator, ensuring the collection is high-quality, not repetitive, and covers every corner of human knowledge.

The Problem with the "One-Size-Fits-All" Sieve

For a long time, the standard way to prepare data for AI was a bit like a factory assembly line. First, you run the text through a rule-based filter (like checking if a page has too many numbers or weird symbols). Then, you run it through a model that guesses if the text is "good." Finally, you remove duplicates. The problem, the authors found, is that this assembly line treats every topic the same. It's like a librarian who decides to throw away any book with a long title or complex vocabulary because it looks "messy."

In reality, a math textbook or a coding manual is messy compared to a casual blog post. It has formulas, symbols, and strange formatting. Old filters saw these as errors and deleted them. This meant the AI was losing its chance to learn from the very things that make it smart: complex reasoning and specialized knowledge. The old methods also tended to create a "homogenized" diet, where the AI only read about popular topics like entertainment or shopping, missing out on the long-tail knowledge found in science, law, and niche hobbies.

The CuraWeb Solution: A Smart, Multi-Track Kitchen

The CuraWeb team proposed a new way of cooking the data, shifting from a single, blunt filter to a joint optimization of three things: Quality (is it good?), Redundancy (is it a copy?), and Diversity (is it unique?). They built a framework that acts like a team of expert chefs, each with a specific job, working together to prepare a 2-trillion-token feast for the AI.

1. The Customized Sieve (Domain-Aware Filtering)

Instead of using one set of rules for everything, CuraWeb uses a "smart sieve" that knows the difference between a blog post and a math problem.

  • The Old Way: If a document had too many symbols (like +, -, =), the old rules would delete it, thinking it was garbage.
  • The CuraWay: They realized that for math and code, those symbols are essential. So, they created a "priority bypass." If the system detects a document is about Math, Science, or Coding, it skips the strict "no symbols" rule. It lets these complex documents pass through to the next stage, ensuring the AI doesn't lose its ability to do calculus or write code. They also refined their rules to be less aggressive, keeping more useful snippets of knowledge that old filters would have tossed out.

2. The "Soft" Duplicate Detector

Imagine you have a library where someone keeps printing the same form, just changing the name on it. A simple scanner might miss these because the text isn't exactly the same.

  • The Old Way: Old systems used a "hard threshold." If two documents looked 95% similar, they deleted one. But this was dangerous. In specialized fields, experts often use the same technical terms, making their writing look very similar even if they are saying different things. A hard delete would wipe out these valuable, unique insights.
  • The CuraWay: They introduced a Soft Semantic Deduplication strategy. Instead of deleting a document the moment it looks similar to another, they use a "voting system." They check how similar it is across multiple angles. If a document is really similar (like a copy-paste job), it gets a heavy penalty. But if it's just similar because it's about the same technical topic, it gets a lighter penalty. The document is only deleted if the "penalty score" gets too high. This is like a librarian who doesn't throw away a book just because it's about the same topic as another; they only throw it away if it's actually the same story. This method reduced the number of false deletions (throwing away good stuff) from 37.5% down to 28.03% in the trickiest cases.

3. The Smart Sampler (Power Sampling)

Once the data is clean, you have to decide what to actually feed the robot. You can't feed it everything, so you have to pick the best.

  • The Old Way: Some systems just picked random high-quality documents. Others tried to balance quality and variety but often ended up with a boring mix.
  • The CuraWay: They created a Power Sampling method. Imagine a lottery where the tickets for the most interesting, high-value documents (like deep scientific papers or clever reasoning tasks) have huge numbers on them, making them much more likely to be picked. They scored documents on two things: Writing Quality (is it well-written?) and Content Value (does it teach something new?). They combined these scores and used a "power" function to amplify the best documents. This means the AI gets a diet rich in high-value, diverse knowledge, rather than just a lot of average stuff.

The Results: A Smarter Robot

The researchers tested their new dataset, CURAWEB, by training a 3-billion-parameter AI model on it. They compared this model to others trained on famous datasets like FineWeb-Edu and DCLM.

The results were clear: CuraWeb worked better.

  • Overall Performance: The model trained on CuraWeb scored an average of 48.07% across 10 different benchmarks, beating the previous best (DCLM) by 1.82%.
  • Reasoning and Knowledge: The biggest wins were in tasks that require thinking hard. On a math test called GSM8K, the CuraWeb model jumped by 4.39% compared to the next best. On a general knowledge test (MMLU), it improved by 6.61%.
  • The "Specialist" Effect: The study showed that while some old datasets were great at specific things (like textbooks) but bad at others, CuraWeb was strong everywhere. It didn't just trade one skill for another; it improved the robot's ability to reason and understand complex topics without losing its general smarts.

Why This Matters

The paper suggests that the future of AI isn't just about feeding it more data; it's about feeding it better data. The old approach of "cleaning" data often meant "dumbing it down" by removing anything that didn't look like a standard sentence. CuraWeb shows that by being smarter about how we filter, deduplicate, and select data, we can build AI models that are not only more accurate but also better at the hard, creative, and specialized tasks that humans care about.

In short, the authors didn't just find a better way to clean the internet; they found a way to preserve its soul—the weird, complex, and brilliant parts that make us human—and give it to the machines. Their experiments suggest that if you treat data with care, respecting its diversity and complexity, the AI learns faster and thinks deeper. It's a reminder that in the race for artificial intelligence, the quality of the ingredients matters just as much as the size of the pot.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →