LongBlocks pairs questions with long documents in 31 languages
In short
- A Lisbon research group put LongBlocks, a training set for teaching language models to work with very long texts, on Hugging Face on 11 May 2026. It sits under utter-project, the account that also hosts the EuroLLM models. The authors are Miguel Moura Ramos, Duarte M. Alves and André F. T. Martins, of Instituto Superior Técnico, Instituto de Telecomunicações, TransPerfect and the ELLIS Unit Lisbon.
- The dataset card counts 193,219 question-and-answer examples, each tied to a long source document: books, web pages, Wikipedia, arXiv papers, code and Q&A threads. It covers 31 natural languages and 15 programming and markup languages.
- It is under CC BY-SA 4.0. But 107,817 examples, 56% of the total, come without their document. Those are library books that cannot be passed on, and users have to rebuild them from a gated dataset.
- A companion preprint, not peer reviewed, uses the data to train a small model. The gains it reports are the authors' own measurements.
193,219 : examples in the current release (dataset card, August 2026 upload); 31 + 15 : natural languages, plus programming and markup languages; 107,817 : examples whose book text is not included; 128K : tokens, the longest input the paper trains for
What "long context" means
A language model reads its input in tokens, words or pieces of words. Its context window is how many it can take in at once. Many models now accept 128,000 tokens or more, enough for a whole book or a large codebase. But a model that can find one buried fact may still fail when the answer needs three passages, hundreds of pages apart.
Training for that needs a long document, a question no single paragraph answers, and a correct answer. The paper's introduction says public sets of this kind are "typically small and focused on relatively simple retrieval and summarization tasks".
How the examples were made
The questions are synthetic: a model wrote them, not people. According to the paper, the team picked long, self-contained documents and asked Qwen3-Next-80B-A3B-Thinking to write question-answer pairs "requiring evidence integration across extended contexts". Each document was given one of five task types, in equal numbers: summary, multi-part information retrieval, multi-hop reasoning (chaining facts from different places), comprehensive question answering, and classification. The questions are written in the document's own language.
The paper describes the filtering. Starting from about 275,000 generated examples, deduplication removed 21,978. A model acting as judge then removed 57,301 more that were malformed, poorly grounded in the document, or answerable from a single passage. About 2,500 more went because their documents overlapped with the RULER, OneRULER, LongBench and ∞Bench test sets, the benchmarks the paper later uses. That leaves 193,219.
Each row holds the document, its source and language, the question and a reference answer. It also holds answers from three other models: Qwen3-Next-80B-A3B, Qwen3.5-27B and Nemotron-3-Nano-30B-A3B. The card names fine-tuning, distillation (a small model imitating a larger one) and reinforcement learning as uses.
The card warns that coverage "does not imply uniform quality across languages". Wikipedia is what reaches most of the 31 languages, Maltese and Irish among them. The books and web text cover a handful of large ones.
Does the dataset include all of its documents?
The biggest source, Institutional Books, is not redistributed "due to licensing restrictions", the card says. For those 107,817 rows the document field is empty, and only an ID is kept. The card gives a script that downloads the Institutional Books dataset and puts the text back. That dataset is gated on Hugging Face: you must request access and accept its terms, which we could not read without an account. Anyone who rebuilds the full set, the card adds, "is responsible for complying with the terms of all underlying data sources".
The size figures need the same caution. The card's metadata gives about 18.4 GB of data and a 9.6 GB download, and both are for the release without the book text.
The licence in plain words
CC BY-SA 4.0 lets you copy, change and use the data, also commercially, if you credit the source and release anything you build from it under the same licence ("share-alike"). Whether a model trained on the data counts as such a derived work is a question the licence leaves open. Some parts keep their own terms: the web, book, code and forum sources each have theirs, and the three response columns were written by Qwen and Nemotron models. We did not check those terms.
What the paper did with it
The preprint is mainly about a training recipe, not the data. The team started from Qwen3-1.7B, a small open model, extended it to 128K tokens, and trained it in two stages. First came ordinary fine-tuning on the answers, then reinforcement learning in which a larger model, Qwen3-32B, guided each step. Both stages used a fixed mix: 10% short-context data from an NVIDIA dataset and 90% LongBlocks, so that the model would not lose its everyday skills. Training ran on four NVIDIA H200 GPUs.
The authors report that the model's average score on the RULER long-context test rose from 64.5 to 74.8. At the full 128K length it went from 11.0 to 44.5. On LongBench's multi-document questions it rose from 23.4 to 43.1, and the short-context scores held steady on average. These are the authors' own runs, on one small model, and they measure the recipe and the data together, so they do not show what LongBlocks alone is worth. The paper also notes that the hardest categories, such as running code and calculating over long inputs, "remain an important frontier". We found no LongBlocks-trained model published under utter-project.
The paper sets the dataset beside two older public sets:
The record changed after release
11 May 2026: : LongBlocks appears on Hugging Face, copied from the account M1keR. 12 May 2026: : the preprint's first version is posted on arXiv. 13 May 2026: : the card speaks of "approximately 194K" examples. 27 August 2026: : the data is uploaded again. The card's count changes from 193,894 to 193,219, and the per-source counts and the "31 natural languages" line are added. 10 September 2026: : the third version of the preprint is posted, with per-source counts that match the new card.
Both paper versions total 193,219, with different per-source counts. Neither source explains the re-upload.
Check before you train. The answers, questions and model responses were all written by models and filtered by a model. The card warns they "may contain errors" and should not be used "as a source of factual truth without additional verification". More than half the documents have to be rebuilt from a gated source under its own terms.
Sources
- LongBlocks, dataset card, file metadata and commit history, Hugging Face (utter-project), versions of 13 May, 25 August and 27 August 2026
- A Recipe for Long-Context Reasoning in Large Language Models via On-Policy Optimization and Distillation, Moura Ramos, Alves and Martins, arXiv 2605.12227, v1 12 May 2026, v3 10 September 2026 (preprint)
- Institutional Books 1.0, Hugging Face (gated)
- CC BY-SA 4.0 licence, Creative Commons
Sources
- LongBlocks dataset card
- A Recipe for Long-Context Reasoning in Large Language Models via On-Policy Optimization and Distillation
- https://arxiv.org/pdf/2605.12227
- https://huggingface.co/datasets/institutional/institutional-books-1.0
- https://creativecommons.org/licenses/by-sa/4.0/
Related stories
- MiniMax releases M4, a 2.74T-parameter model; weights to follow
- Subquadratic says its SubQ Savant AI takes up to 4 million tokens
- Bound on solving degree-n polynomials drops to about n − √n
- EuroLLM releases a 22B model and a small mixture-of-experts model
- Pi0 gamma data need excited rho and omega states, authors say
- Chip keeps photons entangled over 28 km of fibre, authors say
More from AI in Europe
- Tilde's open TildeOpen model now reads eight times more text
- Poolside explains how it trained its Laguna coding models
- Poolside releases Laguna XS.2, its first open-weight coding model
- Pleias releases CommonLingua, a tool that names 334 languages
- DeepL launches Voice-to-Voice, live spoken translation tools