--- license: cc-by-sa-4.0 language: [ar, bg, bs, ca, cs, da, et, fi, ga, he, hr, hu, is, it, ka, ko, lb, lt, lv, no, ro, sk, sl, sq, sr, sv, tr, uk, zh] task_categories: [text-generation] tags: [multilingual, wikipedia, synthetic, active-reading, pretraining, annealing] pretty_name: Wikipedia Active Reading (29 languages) size_categories: [10M (language, id) ``` ## Models used | Role | Model | Settings | |---|---|---| | Strategy generation (stage 1) and artifact writing (stage 2) | [`RedHatAI/gemma-4-26B-A4B-it-FP8-dynamic`](https://huggingface.co/RedHatAI/gemma-4-26B-A4B-it-FP8-dynamic) (FP8 quantization of [`google/gemma-4-26B-A4B-it`](https://huggingface.co/google/gemma-4-26B-A4B-it)) | temperature 0.8, ≤ 2048 generated tokens per artifact, served with vLLM | | Token estimates (`token_count_est`) | Qwen2.5 tokenizer ([`Qwen/Qwen2.5-7B-Instruct`](https://huggingface.co/Qwen/Qwen2.5-7B-Instruct)) | per-language tokens-per-character ratios, see Known limitations | ## How it was built A two-stage vLLM pipeline. Generator: **`RedHatAI/gemma-4-26B-A4B-it-FP8-Dynamic`** — the MoE (4 B active) model was chosen over the 31 B dense one after it proved ~2.5× faster at equal quality on low-resource languages, which is what made 29 languages affordable. **Stage 1 — strategy generation.** Each article is shown to the model twice, once per *flavour*, and it proposes 3 article-specific study strategies: - **`agnostic`** — general "study this article" strategies: internalise the content, recall named entities and dates, place facts in context, connect to neighbouring topics. - **`factual`** — the paper's SimpleWikiQA recipe. The model first *imagines* the downstream trivia/QA questions the article could answer, then designs strategies that target exactly that material: tail facts, dates, named entities. The two prompts are byte-identical up to a flavour-specific tail, so vLLM's prefix cache shares the article's KV blocks across both stage-1 calls. **Stage 2 — strategy application.** Each (article, strategy) pair is executed independently into one markdown artifact (≤ 2048 generated tokens). The prompts are in English but carry an explicit `Write the artifact in {language}.` instruction, so output stays in the source language. Article filter: 200 ≤ `token_count` ≤ 6000 — drops stubs and articles too long for one call. That is why the augmented count is ~70–85 % of each language's article count. ## Per-language breakdown | Code | Language | Articles in corpus | Articles augmented | Artifacts | Tokens (B) | |---|---|---:|---:|---:|---:| | `ar` | Arabic | 618,326 | 471,528 | 2,829,143 | 1.99 | | `bg` | Bulgarian | 217,342 | 179,184 | 1,075,099 | 1.05 | | `bs` | Bosnian | 80,550 | 73,146 | 438,878 | 0.34 | | `ca` | Catalan | 494,112 | 431,495 | 2,588,967 | 1.89 | | `cs` | Czech | 451,039 | 418,569 | 2,511,410 | 2.15 | | `da` | Danish | 199,299 | 154,419 | 926,512 | 0.62 | | `et` | Estonian | 115,747 | 97,864 | 587,180 | 0.46 | | `fi` | Finnish | 317,224 | 289,769 | 1,738,607 | 1.32 | | `ga` | Irish | 19,984 | 14,354 | 86,124 | 0.06 | | `he` | Hebrew | 310,756 | 296,361 | 1,778,137 | 1.27 | | `hr` | Croatian | 132,250 | 115,658 | 693,948 | 0.57 | | `hu` | Hungarian | 481,730 | 411,322 | 2,467,931 | 2.14 | | `is` | Icelandic | 27,001 | 23,238 | 139,427 | 0.11 | | `it` | Italian | 1,590,635 | 1,207,473 | 7,244,827 | 4.00 | | `ka` | Georgian | 89,644 | 79,956 | 479,723 | 0.72 | | `ko` | Korean | 481,466 | 398,411 | 2,390,450 | 1.90 | | `lb` | Luxembourgish | 34,817 | 25,840 | 155,039 | 0.10 | | `lt` | Lithuanian | 153,978 | 150,164 | 900,983 | 0.73 | | `lv` | Latvian | 69,990 | 64,592 | 387,550 | 0.34 | | `no` | Norwegian | 341,039 | 291,578 | 1,749,469 | 1.12 | | `ro` | Romanian | 298,351 | 281,520 | 1,689,110 | 1.22 | | `sk` | Slovak | 149,443 | 93,396 | 560,384 | 0.48 | | `sl` | Slovenian | 126,415 | 106,293 | 637,759 | 0.49 | | `sq` | Albanian | 72,907 | 50,603 | 303,618 | 0.22 | | `sr` | Serbian | 612,348 | 501,581 | 3,009,448 | 2.26 | | `sv` | Swedish | 740,431 | 547,156 | 3,282,935 | 2.03 | | `tr` | Turkish | 304,861 | 255,745 | 1,534,468 | 1.11 | | `uk` | Ukrainian | 1,087,947 | 978,480 | 5,870,811 | 5.64 | | `zh` | Chinese | 1,288,568 | 983,869 | 5,903,014 | 3.94 | | | **Total** | **10,908,200** | **8,993,564** | **53,960,951** | **40.27** | ## Schemas ### `active_reading` | Field | Type | Notes | |---|---|---| | `id` | string | `ar-{lang}-{src_id}-{flavour}-{strategy-slug}` | | `language` | string | ISO-639-1 | | `src_id` | string | Wikipedia page id — joins onto `wikipedia.id` within the same language | | `title` | string | source article title | | `flavour` | string | `agnostic` or `factual` (an exact 50/50 split) | | `strategy_name` | string | model-invented, article-specific | | `text` | string | **the study artifact** — the training text, in the source language | | `n_chars` | int32 | | | `token_count_est` | int32 | see the caveat below | ### `wikipedia` | Field | Type | Notes | |---|---|---| | `id` | string | Wikipedia page id | | `language` | string | ISO-639-1 | | `title`, `url` | string | | | `text` | string | article body rendered to markdown | | `infobox` | string | markdown table, `""` when the article has none | | `categories` | list<string> | | | `entity` | string | Wikidata QID | | `revdate` | string | last revision timestamp; the snapshot runs to 2025-02-20 | | `token_count` | int32 | Qwen2.5 tokens, from the dump | | `used_for_active_reading` | bool | true for the 8,993,564 articles that passed the filter and were augmented | ## Known limitations - **`token_count_est` is an estimate, not a tokenization.** It is `len(text) × r_lang`, where `r_lang` is a per-language Qwen2.5 tokens-per-character ratio measured on a 30-artifact sample per language. This was done deliberately: the HF `tokenizers` Rust extension panics and kills worker subprocesses under both `fork` and `spawn` at this scale. Budget accuracy is within ~5 %; do not use it for anything requiring exact counts. `wikipedia.token_count` **is** a true count, taken from the dump. - **Artifacts are model-generated and not fact-checked.** They can restate errors from the source article, hallucinate details, or garble entity names — most likely in the low-resource languages (`ga`, `lb`, `is`, `sq`), where the generator is weakest and where, awkwardly, this kind of data is most needed. - **Quality is not uniform across languages.** The same recipe and the same generator were used for Italian and for Irish; no per-language prompt tuning or quality gate was applied. - **No English, and no high-resource languages** (`de`, `es`, `fr`, `ja`, `ru`, `pl`, `pt`, `nl`, `el`). Those had enough natural pretraining data and were deliberately left out of the AR run. - **The `factual` flavour optimises for recall of tail facts**, per the SimpleWikiQA recipe. It produces a lot of dense date/entity tables. That is the intent, not a defect, but it does make the flavour stylistically narrow — filter on `flavour` if you want the more discursive half. - Articles are deduplicated by page id within a language, but no cross-language entity dedup was applied: the same subject appears independently in many languages. ## Licensing - All source text is from Wikipedia, **[CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/)**. The whole dataset is released under the same licence. - The `active_reading` artifacts are outputs of a Gemma model and are additionally subject to the [Gemma Terms of Use](https://ai.google.dev/gemma/terms) and Prohibited Use Policy. ## Citation ```bibtex @article{activereading2025, title = {Learning Facts at Scale with Active Reading}, journal = {arXiv preprint arXiv:2508.09494}, year = {2025}, url = {https://arxiv.org/abs/2508.09494} } ``` Please also credit Wikipedia as the source corpus.