﻿# DCLM: compare data filters under a controlled recipe

Distinguish the DCLM experiment framework from its baseline corpus, and compare data filters while holding training and evaluation fixed.

Author: Retrivium editorial team
Updated: 2026-11-03
Canonical URL: https://retrivium.ai/journal/data-guide-dclm-filter-controlled-comparison/
Language: en

## Separate the benchmark from its baseline

DCLM is a framework for investigating training-data choices, while dclm-baseline-1.0 is a particular released English web corpus. The [paper](https://arxiv.org/abs/2406.11794) supplies a Common Crawl candidate pool, training recipes and downstream evaluations. A model trained on the baseline is an outcome of that recipe; substituting its score for the quality of every future filtered subset would erase the experimental question.

## Read a baseline record before packing

The [baseline owner card](https://huggingface.co/datasets/mlfoundations/dclm-baseline-1.0) exposes a train split with text and url alongside nested metadata, warcinfo, a language-identification result, a previous word count and filtering-related signals. The long classifier-probability field identifies a specific filter, rather than human-verified correctness. Preserve its original name and numeric type during conversion. Dropping metadata early makes it harder to explain why an unusual domain or extraction artifact survived a later selection.

## Fix the downstream protocol

The [official repository](https://github.com/mlfoundations/dclm) separates source selection, processing, tokenization and shuffling, training, and evaluation. Its benchmark requires the provided scripts for the downstream stages. In a proposed filter comparison, hold the model scale, tokenizer, token budget, shuffling procedure and evaluation configuration constant. Report retained documents and tokens separately: a filter that favors long pages can change the available token pool even when the document retention rate looks similar.

## Follow the reference records

The repository uses reference JSON records for untokenized datasets, tokenized datasets, models and evaluations. Their pointers form a chain from an evaluated model back to processed text. Keep that chain with the filter implementation and configuration. A path to a directory is weaker evidence if files inside it can be replaced. The [provenance guide](/journal/document-markdown-json-provenance/) provides a complementary way to preserve individual document transformations without confusing them with model-level experiment records.

## Test the filter outside its preferred genre

Model-based filtering is a central result of the DCLM research, but its positive examples and evaluation suite shape what it rewards. A proposed local review should compare retained technical prose, dialogue, informal writing and task-specific material before extending a threshold to a new domain. Reserve evaluation families before selection, following the [split leakage guide](/journal/document-level-data-split-leakage/). A training split is a supply of pretraining examples, not a promise that public benchmarks or sensitive content have been exhaustively excluded.
