Dataset Viewer
Auto-converted to Parquet Duplicate
data_source
large_stringclasses
2 values
prompt
listlengths
1
46
ability
large_stringclasses
2 values
reward_model
dict
extra_info
dict
custom_mrcr_custom_mrcr_8needle_16k
[ { "content": "Here are some examples of conversations succeeded by a follow-up question answered correctly:\n\n======EXAMPLE======\nUser: write a diary entry about sections\nAssistant: **October 26, 2023** \n*Rain tapping against the window, the kind that makes the whole world feel quiet and small.* \n\nI’ve ...
mrcr
{ "ground_truth": [ "iDaufUPMxu## The Foundation of Order: Understanding States\n\nAt their core, **states** are the enduring, organized entities that form the bedrock of modern human societies. They are political communities possessing a defined territory, a permanent population, and the capacity to govern thems...
{ "answer": "iDaufUPMxu## The Foundation of Order: Understanding States\n\nAt their core, **states** are the enduring, organized entities that form the bedrock of modern human societies. They are political communities possessing a defined territory, a permanent population, and the capacity to govern themselves throug...
custom_mrcr_custom_mrcr_8needle_16k
[ { "content": "Here are some examples of conversations succeeded by a follow-up question answered correctly:\n\n======EXAMPLE======\nUser: write a formal letter about experiences\nAssistant: Here is a **professional, customizable formal letter template** focused on *work or academic experiences* (e.g., internshi...
mrcr
{ "ground_truth": [ "o9sWJ7BmiQHere's a clear, accurate, and engaging riddle about **ionizing radiation** (the scientific term for harmful radiation like alpha, beta, gamma rays—*not* radio waves or non-harmful types like radiofrequency):\n\n---\n\n**I have no eyes, yet I can be seen by a counter. \nI travel fas...
{ "answer": "o9sWJ7BmiQHere's a clear, accurate, and engaging riddle about **ionizing radiation** (the scientific term for harmful radiation like alpha, beta, gamma rays—*not* radio waves or non-harmful types like radiofrequency):\n\n---\n\n**I have no eyes, yet I can be seen by a counter. \nI travel faster than sou...
custom_mrcr_custom_mrcr_8needle_16k
[ { "content": "Here are some examples of conversations succeeded by a follow-up question answered correctly:\n\n======EXAMPLE======\nUser: write a short scene in a play about children\nAssistant: ## The Dinosaur Incident\n\n**Setting:** A sun-dappled classroom after school. Empty desks, scattered art supplies. L...
mrcr
{ "ground_truth": [ "Naje6orW5a**May 3rd** \n*Sunlight feels like liquid gold today—not hot, but warm, gentle, like it’s trying to whisper* **something**. I sat on the porch step, knees tucked under my chin, and watched the world wake up. \n\nThe air smells different. Not the sharp bite of winter, but this… *so...
{ "answer": "Naje6orW5a**May 3rd** \n*Sunlight feels like liquid gold today—not hot, but warm, gentle, like it’s trying to whisper* **something**. I sat on the porch step, knees tucked under my chin, and watched the world wake up. \n\nThe air smells different. Not the sharp bite of winter, but this… *soft* smell. L...
custom_mrcr_custom_mrcr_8needle_16k
[{"content":"Here are some examples of conversations succeeded by a follow-up question answered corr(...TRUNCATED)
mrcr
{"ground_truth":["njhDLs7Zk2Here's a thoughtful riddle about judgment that highlights its common pit(...TRUNCATED)
{"answer":"njhDLs7Zk2Here's a thoughtful riddle about judgment that highlights its common pitfalls(...TRUNCATED)
custom_longcontextqa_synthesized
[{"content":"Answer the question based on the given passages.\n\nReason step by step, making sure ev(...TRUNCATED)
longcontext_qa
{ "ground_truth": [ "Svetlana-1" ], "style": "rule" }
{"answer":"Svetlana-1","desired_needle_index":null,"index":955,"n_needles":null,"n_tokens":null,"nee(...TRUNCATED)
custom_longcontextqa_synthesized
[{"content":"Answer the question based on the given passages.\n\nReason step by step, making sure ev(...TRUNCATED)
longcontext_qa
{ "ground_truth": [ "Ahmet Yılmaz" ], "style": "rule" }
{"answer":"Ahmet Yılmaz","desired_needle_index":null,"index":668,"n_needles":null,"n_tokens":null,"(...TRUNCATED)
custom_longcontextqa_synthesized
[{"content":"Answer the question based on the given passages.\n\nReason step by step, making sure ev(...TRUNCATED)
longcontext_qa
{ "ground_truth": [ "Mehmet Yıldırım", "Mehmet" ], "style": "rule" }
{"answer":"Mehmet Yıldırım","desired_needle_index":null,"index":999,"n_needles":null,"n_tokens":n(...TRUNCATED)
custom_mrcr_custom_mrcr_8needle_16k
[{"content":"Here are some examples of conversations succeeded by a follow-up question answered corr(...TRUNCATED)
mrcr
{"ground_truth":["qFwIaLvhHZHere's a **flexible, platform-optimized social media post template** you(...TRUNCATED)
{"answer":"qFwIaLvhHZHere's a **flexible, platform-optimized social media post template** you can cu(...TRUNCATED)
custom_longcontextqa_synthesized
[{"content":"Answer the question based on the given passages.\n\nReason step by step, making sure ev(...TRUNCATED)
longcontext_qa
{ "ground_truth": [ "Aodh O'Sullivan" ], "style": "rule" }
{"answer":"Aodh O'Sullivan","desired_needle_index":null,"index":311,"n_needles":null,"n_tokens":null(...TRUNCATED)
custom_longcontextqa_synthesized
[{"content":"Answer the question based on the given passages.\n\nReason step by step, making sure ev(...TRUNCATED)
longcontext_qa
{ "ground_truth": [ "Mustafa Uzun" ], "style": "rule" }
{"answer":"Mustafa Uzun","desired_needle_index":null,"index":548,"n_needles":null,"n_tokens":null,"n(...TRUNCATED)
End of preview. Expand in Data Studio

LongZero

🌐 Github | 📖 Paper | 🤗 Data

Introduction

LongZero lets an LLM improve its own long-context reasoning without any external data. The model first writes the question, its supporting evidence and the answer in a compact structured form, and only then expands the evidence into a long multi-document context. These self-written multi-hop reasoning tasks are combined with self-written multi-round retrieval tasks in the style of MRCR, and the model is trained on them with GRPO.

This dataset contains the complete training and validation data used in the paper. Each base model synthesizes and filters its own data: Qwen3-4B-Thinking-2507 and Qwen3-8B. The code is in the Github repository.

Data

You can download the data into the root of the Github repository:

hf download zhennan1/LongZero --repo-type dataset --local-dir . --include "data/*"

The data is organized as follows:

./
└── data/
    ├── qwen3_4b/
    │   ├── train.parquet  # 2,304 reasoning + 1,152 retrieval samples
    │   ├── val.parquet    # 256 reasoning + 128 retrieval samples
    │   └── examples.txt   # one readable validation example of each task
    └── qwen3_8b/
        └── ...

Each row follows the verl schema:

  • data_source: custom_longcontextqa_synthesized for reasoning data, custom_mrcr_* for retrieval data.
  • prompt: Chat messages given to the model. A reasoning prompt contains eight shuffled documents of one fictional world and a multi-hop question; a retrieval prompt is a long conversation of the model's own responses followed by a request for the k-th response to one request.
  • ability, reward_model: Reward rule and ground truth. Reasoning ground truth is the answer and its accepted aliases; retrieval ground truth is the random prefix followed by the requested response.
  • extra_info: Metadata. For reasoning data: question id, domain, number of hops, evidence documents, context length, and the number of correct answers during difficulty filtering (k_passes of k_total). For retrieval data: needle positions, requested index and random prefix.

The median context length is 19.4K tokens (Qwen3-4B-Thinking-2507) and 14.6K tokens (Qwen3-8B) for reasoning data, and 11.4K and 11.1K tokens for retrieval data, counted with each model's tokenizer.

All entities, facts, documents and conversations are fictional and written by the models. Names may coincidentally match real people or organizations, so the documents must not be treated as factual information. The retrieval requests use the formats and nouns of OpenAI MRCR; all responses are written by the base models.

Citation

If you find this project helpful, please cite it as follows:

@article{wan2026longzero,
  title={LongZero: Enhancing Long-Context Reasoning in LLMs from Zero Data},
  author={Zhennan Wan and Jianfei Chen},
  year={2026}
}
Downloads last month
-