Datasets:
n_nodes int64 50 3.83k | graph_id int64 0 9 | edges listlengths 76 6.86k | task stringclasses 2
values | question stringlengths 174 203 | answer stringclasses 4
values | relevant_nodes listlengths 5 5 | relevant_ts unknown | meta unknown | quality dict |
|---|---|---|---|---|---|---|---|---|---|
1,000 | 0 | [
[
0,
919,
0.9,
1
],
[
1,
163,
0.83,
3
],
[
2,
55,
0.41,
2
],
[
3,
541,
0.48,
1
],
[
4,
138,
0.58,
2
],
[
5,
284,
0.89,
1
],
[
6,
615,
0.37,
2
],
[
7,
553,
0.79,
... | t1_etiological | Node 562 shows an unusual disturbance around time step 12-19. Which node is the most plausible origin of this disturbance? Options: A. Node 63; B. Node 39; C. Node 839; D. Node 650 | A | [
562,
63,
39,
839,
650
] | {
"39": [
13.57,
14.73,
15.99,
17.26,
18.46,
19.5,
20.31,
20.84,
21.04,
20.92,
20.47,
19.72,
18.73,
17.57,
16.31,
15.03,
13.84,
12.8,
11.99,
11.46,
11.25,
11.38,
11.83,
12.58,
13.57,
14.73,
15.99,
17.26,
... | {
"spike": {
"node": 63,
"t": 12,
"dur": 3
},
"target": 562
} | {
"weakly_connected": true,
"sources_have_out": true,
"props_have_in": true,
"baseline_consistency": true,
"avg_degree": 3.51
} |
1,000 | 0 | [
[
0,
919,
0.9,
1
],
[
1,
163,
0.83,
3
],
[
2,
55,
0.41,
2
],
[
3,
541,
0.48,
1
],
[
4,
138,
0.58,
2
],
[
5,
284,
0.89,
1
],
[
6,
615,
0.37,
2
],
[
7,
553,
0.79,
... | t3_correlation | A disturbance was injected at Node 51 around time step 18. Which of the following nodes would you expect this disturbance to propagate to? Options: A. Node 896; B. Node 888; C. Node 917; D. Node 502 | D | [
51,
896,
888,
917,
502
] | {
"51": [
26.03,
24.73,
23.42,
22.2,
21.14,
20.34,
19.82,
19.64,
19.81,
20.31,
21.1,
22.15,
23.36,
24.67,
25.98,
27.2,
28.25,
29.06,
37.69,
51.82,
51.65,
29.09,
28.29,
27.25,
26.03,
24.73,
23.42,
22.2,
... | {
"spike": {
"node": 51,
"t": 18,
"dur": 3
},
"affected": 502
} | {
"weakly_connected": true,
"sources_have_out": true,
"props_have_in": true,
"baseline_consistency": true,
"avg_degree": 3.51
} |
1,000 | 0 | [
[
0,
919,
0.9,
1
],
[
1,
163,
0.83,
3
],
[
2,
55,
0.41,
2
],
[
3,
541,
0.48,
1
],
[
4,
138,
0.58,
2
],
[
5,
284,
0.89,
1
],
[
6,
615,
0.37,
2
],
[
7,
553,
0.79,
... | t1_etiological | Node 687 shows an unusual disturbance around time step 12-19. Which node is the most plausible origin of this disturbance? Options: A. Node 70; B. Node 63; C. Node 157; D. Node 112 | B | [
687,
70,
63,
157,
112
] | {
"63": [
20.27,
18.92,
17.63,
16.49,
15.58,
14.95,
14.66,
14.71,
15.12,
15.84,
16.84,
18.04,
27.47,
42.77,
44.06,
23.14,
24.05,
24.68,
24.97,
24.92,
24.51,
23.79,
22.79,
21.59,
20.27,
18.92,
17.63,
16.49,
... | {
"spike": {
"node": 63,
"t": 12,
"dur": 3
},
"target": 687
} | {
"weakly_connected": true,
"sources_have_out": true,
"props_have_in": true,
"baseline_consistency": true,
"avg_degree": 3.51
} |
1,000 | 0 | [
[
0,
919,
0.9,
1
],
[
1,
163,
0.83,
3
],
[
2,
55,
0.41,
2
],
[
3,
541,
0.48,
1
],
[
4,
138,
0.58,
2
],
[
5,
284,
0.89,
1
],
[
6,
615,
0.37,
2
],
[
7,
553,
0.79,
... | t3_correlation | A disturbance was injected at Node 51 around time step 18. Which of the following nodes would you expect this disturbance to propagate to? Options: A. Node 679; B. Node 18; C. Node 358; D. Node 469 | D | [
51,
679,
18,
358,
469
] | {
"18": [
20.86,
19.7,
18.51,
17.35,
16.32,
15.48,
14.89,
14.59,
14.61,
14.93,
15.53,
16.39,
17.43,
18.59,
19.78,
20.94,
21.97,
22.81,
23.39,
23.69,
23.68,
23.36,
22.76,
21.9,
20.86,
19.7,
18.51,
17.35,
... | {
"spike": {
"node": 51,
"t": 18,
"dur": 3
},
"affected": 469
} | {
"weakly_connected": true,
"sources_have_out": true,
"props_have_in": true,
"baseline_consistency": true,
"avg_degree": 3.51
} |
1,000 | 0 | [[0.0,919.0,0.9,1.0],[1.0,163.0,0.83,3.0],[2.0,55.0,0.41,2.0],[3.0,541.0,0.48,1.0],[4.0,138.0,0.58,2(...TRUNCATED) | t1_etiological | "Node 170 shows an unusual disturbance around time step 14-21. Which node is the most plausible orig(...TRUNCATED) | C | [
170,
338,
835,
15,
220
] | {"170":[0.49,0.04,-0.71,11.7,12.64,11.19,16.07,15.0,15.57,14.6,13.55,14.87,14.32,15.2,14.62,14.07,14(...TRUNCATED) | {
"spike": {
"node": 15,
"t": 14,
"dur": 3
},
"target": 170
} | {"weakly_connected":true,"sources_have_out":true,"props_have_in":true,"baseline_consistency":true,"a(...TRUNCATED) |
1,000 | 0 | [[0.0,919.0,0.9,1.0],[1.0,163.0,0.83,3.0],[2.0,55.0,0.41,2.0],[3.0,541.0,0.48,1.0],[4.0,138.0,0.58,2(...TRUNCATED) | t3_correlation | "A disturbance was injected at Node 63 around time step 12. Which of the following nodes would you e(...TRUNCATED) | D | [
63,
324,
418,
90,
694
] | {"63":[20.27,18.92,17.63,16.49,15.58,14.95,14.66,14.71,15.12,15.84,16.84,18.04,27.47,42.77,44.06,23.(...TRUNCATED) | {
"spike": {
"node": 63,
"t": 12,
"dur": 3
},
"affected": 694
} | {"weakly_connected":true,"sources_have_out":true,"props_have_in":true,"baseline_consistency":true,"a(...TRUNCATED) |
1,000 | 0 | [[0.0,919.0,0.9,1.0],[1.0,163.0,0.83,3.0],[2.0,55.0,0.41,2.0],[3.0,541.0,0.48,1.0],[4.0,138.0,0.58,2(...TRUNCATED) | t1_etiological | "Node 255 shows an unusual disturbance around time step 17-24. Which node is the most plausible orig(...TRUNCATED) | B | [
255,
277,
105,
907,
429
] | {"255":[0.2,-1.12,0.6000000000000001,-0.07,0.13,2.01,7.39,7.26,7.62,7.25,10.9,14.11,14.96,16.79,17.0(...TRUNCATED) | {
"spike": {
"node": 105,
"t": 17,
"dur": 3
},
"target": 255
} | {"weakly_connected":true,"sources_have_out":true,"props_have_in":true,"baseline_consistency":true,"a(...TRUNCATED) |
1,000 | 0 | [[0.0,919.0,0.9,1.0],[1.0,163.0,0.83,3.0],[2.0,55.0,0.41,2.0],[3.0,541.0,0.48,1.0],[4.0,138.0,0.58,2(...TRUNCATED) | t3_correlation | "A disturbance was injected at Node 100 around time step 15. Which of the following nodes would you (...TRUNCATED) | A | [
100,
219,
987,
138,
500
] | {"100":[23.37,23.23,22.76,22.0,21.0,19.83,18.57,17.29,16.1,15.07,14.27,13.76,13.57,13.71,14.18,16.03(...TRUNCATED) | {
"spike": {
"node": 100,
"t": 15,
"dur": 5
},
"affected": 219
} | {"weakly_connected":true,"sources_have_out":true,"props_have_in":true,"baseline_consistency":true,"a(...TRUNCATED) |
1,000 | 0 | [[0.0,919.0,0.9,1.0],[1.0,163.0,0.83,3.0],[2.0,55.0,0.41,2.0],[3.0,541.0,0.48,1.0],[4.0,138.0,0.58,2(...TRUNCATED) | t1_etiological | "Node 544 shows an unusual disturbance around time step 18-25. Which node is the most plausible orig(...TRUNCATED) | D | [
544,
39,
961,
737,
51
] | {"544":[0.28,0.59,0.05,0.02,0.5,-0.08,0.8,0.59,1.01,1.1400000000000001,0.98,1.73,0.81,2.05,2.21,3.59(...TRUNCATED) | {
"spike": {
"node": 51,
"t": 18,
"dur": 3
},
"target": 544
} | {"weakly_connected":true,"sources_have_out":true,"props_have_in":true,"baseline_consistency":true,"a(...TRUNCATED) |
1,000 | 0 | [[0.0,919.0,0.9,1.0],[1.0,163.0,0.83,3.0],[2.0,55.0,0.41,2.0],[3.0,541.0,0.48,1.0],[4.0,138.0,0.58,2(...TRUNCATED) | t3_correlation | "A disturbance was injected at Node 63 around time step 12. Which of the following nodes would you e(...TRUNCATED) | B | [
63,
578,
562,
787,
770
] | {"63":[20.27,18.92,17.63,16.49,15.58,14.95,14.66,14.71,15.12,15.84,16.84,18.04,27.47,42.77,44.06,23.(...TRUNCATED) | {
"spike": {
"node": 63,
"t": 12,
"dur": 3
},
"affected": 562
} | {"weakly_connected":true,"sources_have_out":true,"props_have_in":true,"baseline_consistency":true,"a(...TRUNCATED) |
TopoTool: training data for tool-mediated spatio-temporal reasoning
Training and evaluation data for TopoTool, a spatio-temporal (ST) reasoning
agent that accesses graph topology through callable tools instead of receiving
the graph serialized into its prompt. The agent queries exact graph algorithms
(get_neighbors, get_path, get_degree, get_spectral_embedding) inside a
ReAct loop under a six-call budget.
Companion code: https://github.com/hiepnh137/spatio-temporal-agent
Contents
| Folder | Rows | What it is |
|---|---|---|
stage2_v1/ |
7,602 | Stage-2 reasoning-SFT mix (v1). Rejection-sampled tool trajectories from a Qwen3-8B self-teacher (k=4, keep-if-correct and tool-using on topology tasks) + 2,400 programmatic gold trajectories. |
stage2_v2/ |
9,781 | Stage-2 mix (v2), built with a style-stratified sampler that fixes a coverage pathology in v1 (below). parts/ holds the four regeneration shards and the verified forecasting gold. |
rl_prompts/ |
6,593 | Stage-3 RL prompts: ST-Bench's RL split reshaped so the serialized graph is removed from input and preserved in raw_input (the rollout worker rebuilds the graph from it for tool execution). |
scale_test/ |
800 | Scaling stress-test suite: 100 questions × 2 task types × 4 graph sizes (N ∈ {50, 200, 1000, 3834}), generated by a rule-based simulator with ground-truth reachability. |
Format
Trajectory files are ShareGPT-style JSONL with tool turns:
{
"conversations": [
{"from": "human", "value": "...Node 0 time series ...: <ts><ts/>; ... Options: A. ... "},
{"from": "function_call", "value": "{\"name\": \"get_path\", \"arguments\": {\"source_id\": \"2\", \"target_id\": \"0\"}}"},
{"from": "observation", "value": "{\"exists\": true, \"path\": [\"2\",\"1\",\"0\"], \"total_lag\": 3}"},
{"from": "gpt", "value": "...<answer>B</answer>"}
],
"system": "...", "tools": "[...]",
"timeseries": [[...], [...]]
}
<ts><ts/> are placeholders consumed by a patch-based time-series encoder; the
timeseries field holds one array per placeholder, in order. Every tool
observation in these files is a real executor output computed on the actual
graph — no observations were generated by a language model.
Why v2 exists (a reusable finding)
v1's rejection sampler used the standard keep-if-correct rule. Measuring the result exposed what we call hardness self-censorship: questions whose options are terse and semantic (e.g. "Industrial pollution peak"), which require reading the time series rather than the graph, are 41% of the source pool but only 11% of retained trajectories — the filter discards exactly the questions the teacher fails, so the hard style eliminates itself from training. The model then fails at test time on the style it never saw.
v2 fixes this with (i) style-stratified adaptive sampling — terse questions get 8 attempts instead of 4 — and (ii) self-consistency gating — a question is kept only if ≥2 samples are correct, which removes lucky passes. Retention on the previously starved style rises from ~11% to ~75% of questions. This is a property of rejection-sampled self-distillation in general, not of this domain.
Provenance and honest notes
- Teacher: the base backbone itself (Qwen3-8B, thinking mode), not a frontier model. The comparable baseline distills from a frontier model at k=5, so every margin reported with this data was obtained with a strictly weaker pipeline.
- Programmatic subsets (Stage-1 data, the 2,400 gold trajectories, the forecasting gold, and the entire scale-test suite) involve no LLM: calls, observations and answers are computed by the real executor or the simulator.
- Scale-test scoping: the stress-test graphs come from the same generator family as part of the Stage-2 gold trajectories, with disjoint seeds. It measures scale-robustness of a learned querying policy, not out-of-family generalization.
- Source questions derive from ST-Bench (released by the STReasoner authors); this repository redistributes only derived trajectories and reshaped prompts.
Citation
@misc{topotool2026,
title = {Don't Serialize the Graph: Tool-Mediated Topology Access for
Spatio-Temporal Reasoning at Scale},
year = {2026},
note = {Data: https://huggingface.co/datasets/hiepnh137/i1-topotool-data}
}
- Downloads last month
- -