NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A CURATEd CATalog: Rethinking the Extraction of Pretraining Corpora for Mid-Resourced Languages

Jorge Palomar-Giner, José Javier Saiz, Ferran Espuña, Mario Mina, Severino Da Dalt, Joan Llop, Malte Ostendorff, Pedro Ortiz Suarez, Georg Rehm, Aitor Gonzalez-Agirre, Marta VillegasCOLING 2024

Abstract

Training Large Language Models (LLMs) requires vast amounts of data. While high-resource languages like English can afford aggressive binary filtering, mid-resourced languages like Catalan face a scarcity problem where every document is valuable. This paper introduces CATalog 1.0, a 17.45-billion-word Catalan corpus, and CURATE, a modular pipeline that replaces rigid binary filters with continuous quality scores, allowing for a more nuanced balance between data quantity and quality.

Introduction

The development of LLMs for mid-resourced languages—such as Catalan, Galician, or Basque—is often hindered by the limitations of standard data filtering pipelines. Traditional "binary" filters often discard "borderline" text that might still contain valuable linguistic information. Furthermore, existing pipelines are often monolithic and difficult to scale in High-Performance Computing (HPC) environments. This work addresses these challenges by proposing a continuous scoring model and a scalable, modular architecture.

The CURATE Pipeline

The core contribution is the CURATE (Corpus Utility for RAting TExt) pipeline. Unlike standard tools that use a series of "if/then" rules to delete documents, CURATE assigns every document a continuous score between 0 and 1.

Hierarchical scoring architecture of the CURATE pipeline.

As illustrated in the hierarchical architecture above, CURATE evaluates text at the sentence, paragraph, and document levels. It uses the geometric mean to aggregate these scores. This choice ensures that if a document performs very poorly in one metric (e.g., zero punctuation), the entire score is pulled toward zero, effectively acting as a probability of desirability. The pipeline is built as a set of independent, "hot-swappable" modules, allowing for parallel processing and easy updates to specific components like tokenizers or language identifiers.

CATalog 1.0: A Massive Catalan Corpus

The primary output of this pipeline is CATalog 1.0, which aggregates and cleans several major sources:

  • Web Crawls: mC4, OSCAR (22.01 and 23.01), caWaC, and MaCoCu.
  • Curated Sources: Wikipedia, news archives (ACN, Vilaweb), and the Gutenberg Project.
  • Administrative/Legal: Transcripts from the Parliament of Catalonia and the Valencian Parliament.
  • Social/Forum: Data from Racó Català.

CATalog 1.0 totals 17.45 billion words (approx. 23B tokens), making it significantly larger than previous Catalan datasets like the Catalan portion of mC4 (~7B words).

Evaluation and Results

A key advantage of the "soft" filtering approach is that researchers can decide the quality threshold a posteriori. To validate the scoring model, the authors conducted a comparative judgment experiment with 15 native speakers.

Human agreement accuracy vs. CURATE score difference.

The validation results show a strong correlation between automated scores and human preferences. As shown in the figure above, when the score difference between two documents exceeds 0.1, human agreement with the ranking reaches over 80%. Overall, the pipeline achieved a 70% agreement rate across all pairwise comparisons, demonstrating that the continuous score is a reliable proxy for human-perceived quality.

Limitations and Future Work

Despite its scale, CATalog 1.0 reflects a dialectal bias toward Central Catalan (Barcelona/Girona), with variants like Valencian and Balearic making up less than 1% of the total words. Future work will focus on balancing these dialects and integrating more sophisticated topic classifiers and toxicity filters. Additionally, scrubbing Personally Identifiable Information (PII) at this scale remains an ongoing challenge that the authors plan to address in future versions of CURATE.

Summary updated

BibTeX
@inproceedings{palomarginer2024curated,
  author = {Jorge Palomar-Giner and José Javier Saiz and Ferran Espuña and Mario Mina and Severino Da Dalt and Joan Llop and Malte Ostendorff and Pedro Ortiz Suarez and Georg Rehm and Aitor Gonzalez-Agirre and Marta Villegas},
  title = {{A CURATEd CATalog: Rethinking the Extraction of Pretraining Corpora for Mid-Resourced Languages}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2024},
}
Figure