Theafricatechguy groundhogLLM commited on
Commit
6c33527
·
0 Parent(s):

Duplicate from groundhogLLM/ACC-dataset

Browse files

Co-authored-by: SII-sqs <groundhogLLM@users.noreply.huggingface.co>

.gitattributes ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.avro filter=lfs diff=lfs merge=lfs -text
4
+ *.bin filter=lfs diff=lfs merge=lfs -text
5
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
6
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
7
+ *.ftz filter=lfs diff=lfs merge=lfs -text
8
+ *.gz filter=lfs diff=lfs merge=lfs -text
9
+ *.h5 filter=lfs diff=lfs merge=lfs -text
10
+ *.joblib filter=lfs diff=lfs merge=lfs -text
11
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
12
+ *.lz4 filter=lfs diff=lfs merge=lfs -text
13
+ *.mds filter=lfs diff=lfs merge=lfs -text
14
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
15
+ *.model filter=lfs diff=lfs merge=lfs -text
16
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
17
+ *.npy filter=lfs diff=lfs merge=lfs -text
18
+ *.npz filter=lfs diff=lfs merge=lfs -text
19
+ *.onnx filter=lfs diff=lfs merge=lfs -text
20
+ *.ot filter=lfs diff=lfs merge=lfs -text
21
+ *.parquet filter=lfs diff=lfs merge=lfs -text
22
+ *.pb filter=lfs diff=lfs merge=lfs -text
23
+ *.pickle filter=lfs diff=lfs merge=lfs -text
24
+ *.pkl filter=lfs diff=lfs merge=lfs -text
25
+ *.pt filter=lfs diff=lfs merge=lfs -text
26
+ *.pth filter=lfs diff=lfs merge=lfs -text
27
+ *.rar filter=lfs diff=lfs merge=lfs -text
28
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
29
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
30
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
31
+ *.tar filter=lfs diff=lfs merge=lfs -text
32
+ *.tflite filter=lfs diff=lfs merge=lfs -text
33
+ *.tgz filter=lfs diff=lfs merge=lfs -text
34
+ *.wasm filter=lfs diff=lfs merge=lfs -text
35
+ *.xz filter=lfs diff=lfs merge=lfs -text
36
+ *.zip filter=lfs diff=lfs merge=lfs -text
37
+ *.zst filter=lfs diff=lfs merge=lfs -text
38
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
39
+ # Audio files - uncompressed
40
+ *.pcm filter=lfs diff=lfs merge=lfs -text
41
+ *.sam filter=lfs diff=lfs merge=lfs -text
42
+ *.raw filter=lfs diff=lfs merge=lfs -text
43
+ # Audio files - compressed
44
+ *.aac filter=lfs diff=lfs merge=lfs -text
45
+ *.flac filter=lfs diff=lfs merge=lfs -text
46
+ *.mp3 filter=lfs diff=lfs merge=lfs -text
47
+ *.ogg filter=lfs diff=lfs merge=lfs -text
48
+ *.wav filter=lfs diff=lfs merge=lfs -text
49
+ # Image files - uncompressed
50
+ *.bmp filter=lfs diff=lfs merge=lfs -text
51
+ *.gif filter=lfs diff=lfs merge=lfs -text
52
+ *.png filter=lfs diff=lfs merge=lfs -text
53
+ *.tiff filter=lfs diff=lfs merge=lfs -text
54
+ # Image files - compressed
55
+ *.jpg filter=lfs diff=lfs merge=lfs -text
56
+ *.jpeg filter=lfs diff=lfs merge=lfs -text
57
+ *.webp filter=lfs diff=lfs merge=lfs -text
58
+ # Video files - compressed
59
+ *.mp4 filter=lfs diff=lfs merge=lfs -text
60
+ *.webm filter=lfs diff=lfs merge=lfs -text
61
+ search_agent_data.jsonl filter=lfs diff=lfs merge=lfs -text
62
+ swe_agent_data.jsonl filter=lfs diff=lfs merge=lfs -text
63
+ sql_agent_data.jsonl filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,127 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ license: apache-2.0
5
+ size_categories:
6
+ - 10K<n<100K
7
+ task_categories:
8
+ - question-answering
9
+ - text-generation
10
+ pretty_name: ACC Agent Context Compilation Dataset
11
+ tags:
12
+ - agent
13
+ - long-context
14
+ - question-answering
15
+ - text-generation
16
+ - software-engineering
17
+ - sql
18
+ configs:
19
+ - config_name: search_agent
20
+ data_files:
21
+ - split: train
22
+ path: search_agent_data.jsonl
23
+ - config_name: swe_agent
24
+ data_files:
25
+ - split: train
26
+ path: swe_agent_data.jsonl
27
+ - config_name: sql_agent
28
+ data_files:
29
+ - split: train
30
+ path: sql_agent_data.jsonl
31
+ ---
32
+
33
+ # ACC: Agent Context Compilation Dataset
34
+
35
+ ## Overview
36
+
37
+ This dataset contains **10,802 compiled long-context QA pairs** derived from multi-turn agent trajectories, introduced in the paper [ACC: Compiling Agent Trajectories for Long-Context Training](https://huggingface.co/papers/2605.21850).
38
+
39
+ Standard agent SFT masks tool responses and only supervises turn-level tool selection, leaving scattered evidence signals unused. **Agent Context Compilation (ACC)** converts trajectories from Search, Software Engineering (SWE), and SQL agents into long-context QA pairs by assembling the original question with tool responses and environment observations gathered across multiple turns. This makes dependencies between the question and distant evidence explicit, enabling direct supervision of long-context reasoning without additional human annotation.
40
+
41
+ ## Dataset Composition
42
+
43
+ | Config | Examples | Description |
44
+ |--------|----------|-------------|
45
+ | `search_agent` | 3,369 | Web search trajectories compiled into long-context document QA |
46
+ | `swe_agent` | 4,368 | Software engineering trajectories compiled into codebase context QA |
47
+ | `sql_agent` | 3,065 | SQL agent trajectories compiled into table-context relational QA |
48
+ | **Total** | **10,802** | |
49
+
50
+ Each config is stored as a separate JSONL file and exposed as an independent Hugging Face dataset configuration.
51
+
52
+ ## Data Fields
53
+
54
+ ### `search_agent`
55
+
56
+ | Field | Type | Description |
57
+ |-------|------|-------------|
58
+ | `dialogs` | `list` | Two-turn conversation with `role` (`user` / `assistant`) and `content` |
59
+ | `ground_truth_answer` | `string` | Reference answer extracted from the compiled trajectory |
60
+ | `context_length` | `string` | Target long-context scale for the compiled example (e.g. `100k`) |
61
+
62
+ ### `swe_agent`
63
+
64
+ | Field | Type | Description |
65
+ |-------|------|-------------|
66
+ | `dialogs` | `list` | Two-turn conversation with `role` (`user` / `assistant`) and `content` |
67
+ | `instance_id` | `string` | SWE-bench-style instance identifier |
68
+ | `repo` | `string` | Source repository in `owner/repo` format |
69
+ | `base_commit` | `string` | Git commit hash for the codebase context |
70
+
71
+ ### `sql_agent`
72
+
73
+ | Field | Type | Description |
74
+ |-------|------|-------------|
75
+ | `id` | `string` | Unique example identifier |
76
+ | `dialogs` | `list` | Two-turn conversation with `role` (`user` / `assistant`) and `content` |
77
+ | `ground_truth_answer` | `string` | Reference answer, typically wrapped in `<answer></answer>` tags |
78
+ | `task_type` | `string` | SQL task category |
79
+ | `metadata` | `object` | Additional fields such as `sql`, `scale`, `complexity`, and `task_type` |
80
+
81
+ Each example follows a user-assistant dialog format suitable for supervised fine-tuning on long-context reasoning.
82
+
83
+ ## Usage
84
+
85
+ ```python
86
+ from datasets import load_dataset
87
+
88
+ # Load one configuration
89
+ search_ds = load_dataset("groundhogLLM/acc-agent-context-compilation", "search_agent", split="train")
90
+ swe_ds = load_dataset("groundhogLLM/acc-agent-context-compilation", "swe_agent", split="train")
91
+ sql_ds = load_dataset("groundhogLLM/acc-agent-context-compilation", "sql_agent", split="train")
92
+
93
+ # Inspect one example
94
+ print(search_ds[0]["dialogs"])
95
+ print(search_ds[0]["ground_truth_answer"])
96
+ ```
97
+
98
+
99
+ ## Dataset Viewer Notes
100
+
101
+ Some examples contain very long `content` fields because they are compiled long-context QA pairs. If the Hugging Face Dataset Viewer shows a preview error such as `TooBigContentError`, the dataset can still be downloaded and loaded locally with the `datasets` library.
102
+
103
+ ## Citation
104
+
105
+ If you use this dataset, please cite:
106
+
107
+ ```bibtex
108
+ @misc{su2026acccompilingagenttrajectories,
109
+ title={ACC: Compiling Agent Trajectories for Long-Context Training},
110
+ author={Qisheng Su and Zhen Fang and Shiting Huang and Yu Zeng and Yiming Zhao and Kou Shi and Ziao Zhang and Lin Chen and Zehui Chen and Lijun Wu and Feng Zhao},
111
+ year={2026},
112
+ eprint={2605.21850},
113
+ archivePrefix={arXiv},
114
+ primaryClass={cs.CL},
115
+ url={https://arxiv.org/abs/2605.21850},
116
+ }
117
+ ```
118
+
119
+ ## License
120
+
121
+ This dataset is released under the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0).
122
+
123
+ ## Limitations
124
+
125
+ - The three configs have different schemas and should be loaded separately.
126
+ - Examples are compiled from agent trajectories and may inherit biases or errors from the source environments and tools.
127
+ - Long-context samples may be too large for default online preview in the Hugging Face Dataset Viewer.
search_agent_data.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:59c276d230c61dc7d98eb111b3b964b42bf8c8c5401d8a300b231f4fcda96984
3
+ size 1203288509
sql_agent_data.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9acc6fe3e71ead3d58fcbf94daea7a6b9fde42de438f26a13b57d09b272afadd
3
+ size 517936951
swe_agent_data.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:998d652b718f1c0811ecf3126b023dbde025e48d1602380b7c09b7cc1e3d3bd6
3
+ size 970664404