﻿# OpenWebText: account for link-based collection bias

Understand OpenWebText’s Reddit-link selection, text-only schema and missing held-out split before using it as a web-pretraining baseline.

Author: Retrivium editorial team
Updated: 2026-11-03
Canonical URL: https://retrivium.ai/journal/data-guide-openwebtext-link-selection/
Language: en

## Select the intended OpenWebText distribution

The Gokaslan and Cohen OpenWebText distribution is an open reproduction effort inspired by WebText. Its [project release page](https://skylion007.github.io/OpenWebTextCorpus/) identifies the authors and collection process. It is useful as an English web-language-modeling baseline, but should not be described as the original private WebText or as OpenWebText2. These names refer to different artifacts, and combining their counts or processing rules would obscure what a model actually consumed.

## Follow the link-selection funnel

The release starts from URLs in Reddit submissions, excludes unsuitable link types, extracts webpage text, identifies English and removes near duplicates and short documents. Each stage narrows the available material. Reddit linking reflects communities and interests; successful historical retrieval and text extraction introduce further selection. In a proposed domain-coverage review, inspect the final text distribution rather than assuming that social link discovery represents the whole English web or a random sample of its publishers.

## Read the released schema honestly

The [author-linked dataset card](https://huggingface.co/datasets/Skylion007/openwebtext) exposes a text string under the plain_text configuration and one train split. It does not provide a complete URL, timestamp or subreddit envelope for each row. Keep the revision and row inventory, but do not invent missing provenance by matching a phrase against today's search results. The [document provenance guide](/journal/document-markdown-json-provenance/) explains what can be preserved during conversion and what cannot be recovered reliably after metadata has been omitted.

## Build a held-out policy before training

The released training inventory is not an independent test. A proposed experiment can reserve document groups before tokenization, then freeze that split before tuning preprocessing. Use the [split leakage guide](/journal/document-level-data-split-leakage/) to consider near copies and related pages. Report held-out language-model loss separately from external downstream tests. Do not treat randomly chosen token windows from training rows as independent validation merely because the windows begin at different positions.

## Distinguish scraper variants and source rights

The separate [Peterson scraper implementation](https://github.com/jcpeterson/openwebtext) documents a related URL-mining and extraction effort with its own collection details. It helps explain the broader reproduction effort, but its inventory should not replace the Gokaslan distribution's specification. Likewise, the release page distinguishes packaging rights from ownership of extracted text. A software license on scraper code does not establish permission over every captured page. Preserve the exact chosen distribution and any local exclusions in an experiment report.
