HERMES: A Multi-Granularity Labeling Substrate for Pre-training Data Mixtures

· Source: Artificial Intelligence · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Data Science & Analytics · Depth: Expert, quick

Summary

HERMES introduces a multi-granularity labeling substrate designed to overcome limitations of fixed-granularity data partitioning in pre-training data mixtures. Traditional methods commit to a single semantic axis and granularity, necessitating label rebuilding for resolution changes. HERMES employs a Learned Semantic Transform followed by 3-stage residual vector quantization, annotating each document with a coarse-to-fine code where prefix length dictates granularity, supporting up to approximately 130k cells. While its coarse-granularity performance aligns with KMeans-family methods, its core contribution is the hierarchical substrate itself. During 1B-parameter, 25B-token pre-training, HERMES revealed a nuanced interaction: a specific Stage-2 rule improved a 16-task capability macro-average by +0.0253 at one prefix length, but this advantage vanished at a finer level where candidate pools contracted by approximately 5x. This system reframes data mixture design, allowing navigation of a reusable, data-derived granularity hierarchy instead of selecting from fixed label sets.

Key takeaway

For Machine Learning Engineers designing large-scale pre-training data mixtures, HERMES suggests rethinking your approach to data labeling. Instead of committing to fixed label sets, you should consider implementing hierarchical, data-derived granularity systems. This allows you to dynamically explore how different data mixture rules perform across varying resolutions, potentially uncovering performance gains like the +0.0253 macro-average lift observed, or identifying when specific rules lose their effectiveness as data pools contract.

Key insights

HERMES provides a hierarchical, data-derived labeling system for pre-training data, enabling flexible granularity control.

Principles

Method

HERMES uses a Learned Semantic Transform and 3-stage residual vector quantization to annotate documents into coarse-to-fine codes, with prefix length controlling granularity up to ~130k cells.

In practice

Topics

Best for: Research Scientist, AI Scientist, Machine Learning Engineer, NLP Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Artificial Intelligence.