Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed
Error code:   DatasetGenerationError
Exception:    CastError
Message:      Couldn't cast
instance_id: string
docker_image: string
messages: list<item: struct<content: string, role: string>>
  child 0, item: struct<content: string, role: string>
      child 0, content: string
      child 1, role: string
tools: string
to
{'messages': List({'content': Value('string'), 'role': Value('string')}), 'tools': Value('string')}
because column names don't match
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1827, in _prepare_split_single
                  for key, table in generator:
                                    ^^^^^^^^^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 613, in wrapped
                  for item in generator(*args, **kwargs):
                              ~~~~~~~~~^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 343, in _generate_tables
                  self._cast_table(pa_table, json_field_paths=json_field_paths),
                  ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 132, in _cast_table
                  pa_table = table_cast(pa_table, self.info.features.arrow_schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2378, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2306, in cast_table_to_schema
                  raise CastError(
                  ...<3 lines>...
                  )
              datasets.table.CastError: Couldn't cast
              instance_id: string
              docker_image: string
              messages: list<item: struct<content: string, role: string>>
                child 0, item: struct<content: string, role: string>
                    child 0, content: string
                    child 1, role: string
              tools: string
              to
              {'messages': List({'content': Value('string'), 'role': Value('string')}), 'tools': Value('string')}
              because column names don't match
              
              The above exception was the direct cause of the following exception:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1369, in compute_config_parquet_and_info_response
                  parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
                                                                        ~~~~~~~~~~~~~~~~~~~~~~~~~^
                      builder, max_dataset_size_bytes=max_dataset_size_bytes
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  )
                  ^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 948, in stream_convert_to_parquet
                  builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
                  ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1694, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~^
                      gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  ):
                  ^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1880, in _prepare_split_single
                  raise DatasetGenerationError("An error occurred while generating the dataset") from e
              datasets.exceptions.DatasetGenerationError: An error occurred while generating the dataset

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

messages
list
tools
string
[{"content":"You are a helpful assistant that can interact with a computer.\n\nThis is a reverse-eng(...TRUNCATED)
"[{\"type\": \"function\", \"function\": {\"name\": \"bash\", \"description\": \"Execute a bash comm(...TRUNCATED)
[{"content":"You are a helpful assistant that can interact with a computer.\n\nThis is a reverse-eng(...TRUNCATED)
"[{\"type\": \"function\", \"function\": {\"name\": \"bash\", \"description\": \"Execute a bash comm(...TRUNCATED)
[{"content":"You are a helpful assistant that can interact with a computer.\n\nThis is a reverse-eng(...TRUNCATED)
"[{\"type\": \"function\", \"function\": {\"name\": \"bash\", \"description\": \"Execute a bash comm(...TRUNCATED)
[{"content":"You are a helpful assistant that can interact with a computer.\n\nThis is a reverse-eng(...TRUNCATED)
"[{\"type\": \"function\", \"function\": {\"name\": \"bash\", \"description\": \"Execute a bash comm(...TRUNCATED)
[{"content":"You are a helpful assistant that can interact with a computer.\n\nThis is a reverse-eng(...TRUNCATED)
"[{\"type\": \"function\", \"function\": {\"name\": \"bash\", \"description\": \"Execute a bash comm(...TRUNCATED)
[{"content":"You are a helpful assistant that can interact with a computer.\n\nThis is a reverse-eng(...TRUNCATED)
"[{\"type\": \"function\", \"function\": {\"name\": \"bash\", \"description\": \"Execute a bash comm(...TRUNCATED)
[{"content":"You are a helpful assistant that can interact with a computer.\n\nThis is a reverse-eng(...TRUNCATED)
"[{\"type\": \"function\", \"function\": {\"name\": \"bash\", \"description\": \"Execute a bash comm(...TRUNCATED)
[{"content":"You are a helpful assistant that can interact with a computer.\n\nThis is a reverse-eng(...TRUNCATED)
"[{\"type\": \"function\", \"function\": {\"name\": \"bash\", \"description\": \"Execute a bash comm(...TRUNCATED)
[{"content":"You are a helpful assistant that can interact with a computer.\n\nThis is a reverse-eng(...TRUNCATED)
"[{\"type\": \"function\", \"function\": {\"name\": \"bash\", \"description\": \"Execute a bash comm(...TRUNCATED)
[{"content":"You are a helpful assistant that can interact with a computer.\n\nThis is a reverse-eng(...TRUNCATED)
"[{\"type\": \"function\", \"function\": {\"name\": \"bash\", \"description\": \"Execute a bash comm(...TRUNCATED)
End of preview.

MindForge: Whole-Life-Cycle Program Synthesis Trajectories

Data release for MindForge: Teaching Small Language Models Whole-Life-Cycle Software Engineering via Source-Free Program Synthesis (arXiv:2607.27146).

MindForge converts open-source command-line programs into source-free ("cleanroom") environments that expose only a compiled reference executable and its sanitized documentation. A teacher agent (GLM-5.2, driven by mini-swe-agent) must elicit the specification by probing the binary, design an architecture, implement it from scratch, and iterate to a passing build. The agent never sees the original source and doesn't have access to the internet.

Contents

File Description
frontier.surgical.messages_only.jsonl SFT training data: 1,001 complete program-synthesis trajectories
mindforge_instances.jsonl Index of all 1,124 cleanroom environment images (562 programs + 562 coverage counterparts)
recipe.sh Training recipe (ms-swift + Megatron backend)

Dataset format

One trajectory per line, in ms-swift message format:

{"messages": [{"role": "system", "content": "..."},
              {"role": "user", "content": "..."},
              {"role": "assistant", "content": "<think>...</think>\n\n..."},
              {"role": "tool_call", "content": "{\"name\": \"bash\", \"arguments\": {...}}"},
              {"role": "tool", "content": "..."}],
 "tools": "[{\"type\": \"function\", \"function\": {\"name\": \"bash\", ...}}]"}

Assistant reasoning is inlined in <think> tags. Only assistant reasoning, natural language, and tool-call tokens are trained on; system/user messages and tool outputs are masked. With --max_length 262144, 973 of the 1,001 trajectories fall inside the training length budget.

Trajectory statistics

Statistic Turns Tokens
Mean 181.6 177K
Median 176 182K
Min 39 37K
Max 477 272K

Software-engineering activity coverage across the 1,001 trajectories:

Software-engineering activity Coverage
Spec exploration 99.1%
Design 87.1%
Implementation 99.7%
Bug localization 59.4%
Bug fixing 62.6%
Verification 83.7%
Refinement 64.2%

Environments on Docker Hub

The 562 cleanroom images used to collect these trajectories are published as tags on superskyyy/mindforge-clis, one tag per program, named <owner>__<repo>.<commit> (e.g. 01mf02__jaq.9616019). Each image contains only the compiled reference executable and its sanitized public documentation.

Each of the 562 also has a coverage counterpart tag, suffixed -coverage (e.g. 01mf02__jaq.9616019-coverage), which rebuilds the same pinned commit with native coverage instrumentation (go build -cover for Go, -C instrument-coverage for Rust, gcov for C/C++) so that an agent's recorded ./executable invocations can be replayed to measure how much of the reference implementation it actually exercised.

docker pull superskyyy/mindforge-clis:01mf02__jaq.9616019
docker pull superskyyy/mindforge-clis:01mf02__jaq.9616019-coverage

Environment index (mindforge_instances.jsonl)

mindforge_instances.jsonl lists all 1,124 published tags (the 562 programs and their 562 -coverage counterparts), one JSON object per line, so environments can be enumerated and pulled programmatically without querying Docker Hub:

{"instance_id": "01mf02__jaq.9616019", "docker_image": "docker.io/superskyyy/mindforge-clis:01mf02__jaq.9616019"}
{"instance_id": "01mf02__jaq.9616019-coverage", "docker_image": "docker.io/superskyyy/mindforge-clis:01mf02__jaq.9616019-coverage"}

For example, to pull every non-coverage environment:

grep -v -- '-coverage"' mindforge_instances.jsonl \
  | python3 -c "import sys,json;[print(json.loads(l)['docker_image']) for l in sys.stdin]" \
  | xargs -P4 -n1 docker pull

The 562 programs span six compiled languages: Go (231, 41.1%), Rust (212, 37.7%), C (87, 15.5%), C++ (29, 5.2%), Swift (2, 0.4%), and TypeScript (1, 0.2%). They are drawn from repositories disjoint from ProgramBench.

SFT results

Fine-tuning Qwen/Qwen3.6-27B on this data (full-parameter SFT, 8 epochs, bf16) yields MindForge-27B.

ProgramBench (200 instances, average test pass rate)

Model PassRate (%)
GLM-5.2 (teacher) 64.60
GPT-5.5 56.50
Claude Opus 4.7 51.38
MindForge-27B 49.51
Sonnet 4.6 47.97
GPT-5.4 38.08
Qwen3.6-27B (base) 37.98

37.98% --> 49.51%, +11.53 points absolute, +30.4% relative, reaching frontier-model territory at 27B. The gain is broad, not driven by outliers: MindForge-27B scores strictly higher than the base model on 152 of 200 tasks, lower on 43, and ties on 5.

Generalization to unseen benchmarks

MindForge-27B improves over its base model on all seven out-of-distribution benchmarks (none used during training):

Benchmark Base MindForge-27B Gain
RepoZero-C2Rust 47.00 78.00 +31.00
DeepSWE 1.76 15.92 +14.16 (9.0×)
NL2Repo (w/ tests) 61.27 71.97 +10.70
SWE-bench Pro 45.41 51.34 +5.93
SWE-bench Multilingual 62.55 67.77 +5.22
SWE-bench Verified 68.80 73.84 +5.04
FeatBench 50.10 55.05 +4.94
NL2Repo (w/o tests) 18.92 23.48 +4.56

Behavioral changes

Fine-tuning increases the model's level of interaction with the environment: mean turns increase from 344.0 to 735.7, and tool calls from 174.4 to 373.0. At the same time, the command failure rate decreases from 10.98% to 9.35%. The model also more often follows its reasoning with a concrete code change, with editing after reasoning increasing from 27.8% to 50.1% and editing after failure recovery from 31.8% to 48.8%.

Replaying agent invocations against the -coverage images shows the fine-tuned model explores the reference binary more thoroughly before reimplementing it: 58.39% mean line coverage of the reference implementation vs. 49.34% for the base model (medians 66.47% vs. 52.14%), higher on 154 of 200 instances and lower on only 11.

Training

See recipe.sh. Key settings: full fine-tune of Qwen/Qwen3.6-27B (LLM weights trainable, vision tower frozen), ms-swift with Megatron backend, TP4 × CP4, sequence packing, max_length 262144, micro-batch 1, global batch 96, 8 epochs, AdamW (β = 0.9/0.98, weight decay 0.04), peak LR 4e-5 with 10% warmup and cosine decay to 4e-6, grad clip 1.0, seed 1105.

Citation

@misc{chen2026mindforgeteachingsmalllanguage,
      title={MindForge: Teaching Small Language Models Whole-Life-Cycle Software Engineering via Source-Free Program Synthesis},
      author={Yihao Chen and Shi Chang and Khaled Chawa and Feng Lin and Boyuan Chen and Shaowei Wang and Ahmed E. Hassan},
      year={2026},
      eprint={2607.27146},
      archivePrefix={arXiv},
      primaryClass={cs.SE},
      url={https://arxiv.org/abs/2607.27146},
}

License

Trajectories are released under the MIT license. The underlying programs remain under their own upstream licenses; each instance is pinned to a specific owner/repo@commit recoverable from its image tag.

Downloads last month
203

Paper for centre-for-swe/MindForge-27B-Training-Trajectories