arXiv:2610.31636cs.CLOct 2026

Manuscript Offprint

arXiv:2610.31636

Can an Agent Debug a Web Corpus? Agentic Auditing of Slovak FineWeb2

Marek Šuppa, Ivan Vykopal, Jaroslav Kopčan

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Multilingual pipelines such as FineWeb2 apply one recipe across a thousand languages, leaving the failure modes of individual languages unanticipated. We use an LLM once, as a corpus debugger rather than a classifier: a tool-using agent explores the corpus through a read-only, budgeted API and compiles each finding into an executable test, which a native speaker then validates. On the 26.5M-document Slovak portion of FineWeb2, three runs costing 2.21–2.21–2.84 each found seven findings over four phenomena. The largest is a machine-generated content farm of 1,408,437 documents (5.32%) that passed the pipeline's filters, 86.6% of it passing even stricter thresholds. Blinded labels support 6 of the 7 findings (defect rates .53–1.00 against .08 in a random control) and do not support one. The compiled suite scans the full corpus in 0.7 s of wall-clock time without a GPU, against 12k–12k–90k per LLM classification pass. The best static sampling baseline validates more selectors than any agent run, at under half the cost. The agent contributes exact prevalence, a precision estimate checked against sampled documents, an account of why the pipeline missed each slice, and a reusable test. We release the framework, Slovak test suite, validation data and agent trajectories.

1 Introduction

Pretraining corpora are now built by pipelines rather than by hand. FineWeb2 (Penedo et al., 2025) derives more than a thousand language-specific corpora from Common Crawl with one configurable recipe. That uniformity is what makes such resources feasible at all. One pipeline, engineered once, yields data for languages whose communities could never afford a bespoke crawl. It is also a structural blind spot, as the FineWeb2 authors say themselves. Their language identifier confuses closely related languages, and they could not test each language individually, so they ask users to review the filtering for the languages they care about. Their one mechanism against cousin-language contamination, a high-affinity wordlist filter, is applied only to languages whose measured contamination exceeded 10%, and not to a mid-resource language like Slovak with a large, closely related neighbour.

Reviewing a pipeline for one language is exactly the work that does not scale. Its established form is the manual audit (Kreutzer et al., 2022; Caswell et al., 2020), which is invaluable, and recent single-language audits still pay off (Signoroni and Rychly, 2026; Tatariya et al., 2026). But an audit is a one-shot artefact. It describes a corpus at one point in time, does not compose into machinery that can be re-run on the next crawl, and consumes expert attention linearly. The alternative, running an LLM over the data as a classifier, turns a curation problem into an inference bill and still explains nothing.

We explore a third option and use the LLM once, as a debugger. Our auditor is a tool-using agent that sees the corpus only through a small read-only API for aggregate SQL, conditional sampling, text search, sentence-level language identification, and defining and evaluating candidate detectors. It is asked, in deliberately generic terms, to find systematic defects and substantiate them. Its prompt contains no taxonomy of expected problems, names no defect or neighbouring language, and describes the pipeline only by its steps (language identification, quality heuristics, deduplication). Each output is a finding with a description, a cheap executable selector, a prevalence measured on the whole corpus, and a precision for human validation to establish. The result is pytest for web corpora: a community contributes tests, and any future crawl or pipeline revision is checked against them for the cost of a scan over metadata the pipeline already computed. We instantiate it on Slovak 1^{1}, which has five million

1^{1}The framework, the adapter, the Slovak test suite, the vali-speakers and a large closely related neighbour, and whose 26.5M-document FineWeb2 slice is neither high-resource enough to have received a dedicated audit nor small enough to read.

We frame an LLM, used once, as a corpus debugger whose output is a test rather than a label or a data-selection policy. We build a reusable audit environment (DuckDB over Parquet, eleven read-only budgeted tools, a finding schema) with a FineWeb2 adapter, and an agentic auditor that runs inside it under a fixed inspection budget and a prompt that names neither a defect nor a neighbouring language. Around it sits a three-stage workflow (discovery by the agent, validation by a native speaker, deployment by a test runner with no model) in which validation can fail a finding. It failed one of our seven findings, which comes out at a .07 defect rate and ships flagged. Our audit of Slovak FineWeb2 yields seven findings over four phenomena with exact corpus-wide prevalences and blinded human precision (Table 2), among them a 5.32% content farm that the pipeline's own language, duplication and auxiliary-LID signals do not filter, and a language_score invariant that fails in 11 of 12 FineWeb2 configurations. A per-run budget-matched comparison against four static selection strategies shows what the agent does and does not buy. It validates 2–3 selectors per run against 2–4 for the baselines, so the best baseline finds more than any agent run, and each phenomenon it validated also lies within reach of a static strategy, although for the adult spam we analysed that strategy's sample without running the model on it (§5). Its contribution is the measurement, the characterisation and the test. Finally, we release the Slovak regression-test suite, the patcher that turns it into a drop list, and the agent trajectories (Table 1). Every defect we report is a residual of an already heavily filtered corpus, and several are visible only because FineWeb2 publishes rich metadata.

We ask four research questions.

RQ1 Can an LLM agent with read-only tools discover systematic defects that a native speaker confirms?

RQ2 Can these defects be compiled into cheap executable tests?

RQ3 Do the agent’s findings lie outside the slices that static audit strategies select?

RQ4 At a matched per-run inspection bud-

get, does the agent surface more human-

validated defects than the same model read-

ing a statically selected sample?