HERMES: A Multi-Granularity Labeling Substrate for Pre-training Data Mixtures
HERMES introduces a reusable, data-derived hierarchical labeling substrate that uses learned semantic transforms and residual vector quantization to annotate documents with multi-granularity codes, enabling the discovery of optimal data mixture strategies across varying resolutions that fixed-granularity methods cannot test.
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 giant robot (an AI) how to speak and think by feeding it a massive library of books, websites, and articles. The big question isn't just how much data you feed it, but which books you choose and in what order.
This paper introduces a new tool called HERMES to solve a specific problem: How do we organize this messy library so the robot learns the best possible mix of topics?
Here is the breakdown using simple analogies:
1. The Problem: The "One-Size-Fits-All" Label
Imagine you have a giant pile of mixed-up documents. To teach the robot, you need to sort them into groups.
- Old Way: You might use a pre-made list of categories like "Science," "History," or "Cooking." But these are rigid. If you want to look at "Science" in more detail, you can't just zoom in; you have to throw away the old list and make a brand new one from scratch.
- The Bottleneck: The paper argues that the problem isn't the robot's ability to learn (the "mixer"); the problem is the labeling system itself. It's too rigid.
2. The Solution: HERMES (The "Russian Nesting Doll" of Labels)
HERMES is a new way to label every single document in the library once, but in a way that lets you "zoom in" or "zoom out" as much as you want without ever re-sorting the books.
Think of HERMES like a set of Russian Nesting Dolls or a hierarchical address system:
- Level 1 (The Big Box): Every document gets a broad label, like "Music" or "Cooking." There are about 256 of these big boxes.
- Level 2 (The Middle Box): Inside "Music," you can zoom in to see sub-groups like "Rock," "Jazz," or "Hip-Hop." There are about 65,000 of these.
- Level 3 (The Tiny Box): Inside "Hip-Hop," you can zoom in even further to specific artists or eras. There are about 130,000 of these tiny groups.
The Magic Trick: You don't need to run three different sorting machines. You run the sorting machine once. The "zoom level" is just a matter of how many digits of the address you read.
- Read 1 digit? You get the broad "Music" category.
- Read 3 digits? You get the specific "1990s Hip-Hop" category.
This saves massive amounts of computing power because you only have to label the library once, but you can experiment with different levels of detail instantly.
3. The Discovery: It's Not About the "Best" Group, It's About the "Right" Zoom
The researchers tested this on a 1-billion-parameter AI model. They found two surprising things:
Finding A: The "Goldilocks" Zone
They tried two different ways of picking books from the groups:
- The "Cover All Bases" approach: Pick a few books from every single sub-group, no matter how small or low-quality.
- The "Top Quality" approach: Only pick the top 30% of the best books within each sub-group.
The Result: At the middle zoom level (Level 2, the 65,000 groups), the "Top Quality" approach made the robot significantly smarter. It learned better because the groups were big enough that picking the "best" books actually made sense.
Finding B: The "Too Small" Trap
However, when they zoomed in to the finest level (Level 3, the 130,000 tiny groups), the "Top Quality" approach stopped working.
- Why? The groups became so small that there were only a handful of books in them. Trying to pick the "best" book from a group of only 5 books is like trying to pick the best player from a team of 5; the difference is negligible, and you might accidentally pick a bad one just by chance.
- The Lesson: You can't just keep zooming in forever. There is a "sweet spot" where the groups are detailed enough to be useful, but big enough to have a good selection of high-quality data.
4. The Conclusion: A New Way to Think About Data
The paper concludes that HERMES isn't just a better sorting algorithm (it actually performs about the same as standard sorting methods when you look at the big picture).
Its real value is that it turns data organization into a "dial" instead of a "switch."
- Before: You had to choose between "Coarse Labels" or "Fine Labels" and stick with it.
- Now: You can use one single labeling system and adjust the "granularity dial" to find the perfect balance for your specific AI training needs.
In short, HERMES gives researchers a flexible, reusable map of their data, allowing them to find the perfect "zoom level" where high-quality data selection actually improves the AI's brainpower.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.