Datasets:
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
task_categories:
|
| 4 |
+
- reinforcement-learning
|
| 5 |
+
tags:
|
| 6 |
+
- sokoban
|
| 7 |
+
- trajectory
|
| 8 |
+
- teacher-student
|
| 9 |
+
- llm-agent
|
| 10 |
+
configs:
|
| 11 |
+
- config_name: default
|
| 12 |
+
data_files:
|
| 13 |
+
- split: teacher
|
| 14 |
+
path: data/teacher.parquet
|
| 15 |
+
- split: student
|
| 16 |
+
path: data/student.parquet
|
| 17 |
+
- split: student_prefix
|
| 18 |
+
path: data/student_prefix.parquet
|
| 19 |
+
- split: teacher_prefix
|
| 20 |
+
path: data/teacher_prefix.parquet
|
| 21 |
+
---
|
| 22 |
+
|
| 23 |
+
# Sokoban-Trajectories
|
| 24 |
+
|
| 25 |
+
Rollout trajectories for the **Sokoban** (推箱子) environment generated using the
|
| 26 |
+
[RAGEN](https://github.com/RAGEN-AI/RAGEN) framework.
|
| 27 |
+
|
| 28 |
+
## Models
|
| 29 |
+
|
| 30 |
+
| Role | Model |
|
| 31 |
+
|------|-------|
|
| 32 |
+
| Teacher | Qwen/Qwen2.5-14B-Instruct |
|
| 33 |
+
| Student | Qwen/Qwen2.5-3B-Instruct |
|
| 34 |
+
|
| 35 |
+
## Environment Settings
|
| 36 |
+
|
| 37 |
+
| Setting | Value |
|
| 38 |
+
|---------|-------|
|
| 39 |
+
| Room size | 6×6 |
|
| 40 |
+
| Number of boxes | 1 |
|
| 41 |
+
| Max turns per episode | 10 |
|
| 42 |
+
| **Actions per turn** | **up to 2** (`max_actions_per_turn=2`) |
|
| 43 |
+
| Max actions per trajectory | 20 (10 turns × 2 actions) |
|
| 44 |
+
|
| 45 |
+
> **Note:** 1 turn = up to 2 actions. The LLM is called once per turn and may output
|
| 46 |
+
> 1 or 2 actions. All turn-based statistics below count LLM calls, not individual actions.
|
| 47 |
+
|
| 48 |
+
## Data Scale
|
| 49 |
+
|
| 50 |
+
- 500 problems × 4 trajectories each = **2000 trajectories per split**
|
| 51 |
+
- Seeds: val base seed 123 (problems 123–622)
|
| 52 |
+
|
| 53 |
+
## Cutoff
|
| 54 |
+
|
| 55 |
+
Teacher average turns = **4.21** → cutoff = `floor(4.21 / 2)` = **2 turns** (≤4 actions)
|
| 56 |
+
|
| 57 |
+
## Splits
|
| 58 |
+
|
| 59 |
+
| Split | Description |
|
| 60 |
+
|-------|-------------|
|
| 61 |
+
| `teacher` | Full rollouts by teacher (14B) from start to finish |
|
| 62 |
+
| `student` | Full rollouts by student (3B) from start to finish |
|
| 63 |
+
| `student_prefix` | **Step 4**: Student runs first **2 turns**, teacher completes the rest |
|
| 64 |
+
| `teacher_prefix` | **Step 5**: Teacher runs first **2 turns**, student completes the rest |
|
| 65 |
+
|
| 66 |
+
## Results
|
| 67 |
+
|
| 68 |
+
| Setting | success | pass@4 | avg turns |
|
| 69 |
+
|---------|---------|--------|-----------|
|
| 70 |
+
| Student only | 0.066 | 0.160 | 9.31 |
|
| 71 |
+
| Step 4: student→teacher | 0.487 | 0.682 | 7.47 |
|
| 72 |
+
| Step 5: teacher→student | 0.223 | 0.402 | 8.30 |
|
| 73 |
+
| Teacher only | 0.655 | 0.844 | 4.21 |
|
| 74 |
+
|
| 75 |
+
Key finding: teacher completion after student prefix (Step 4) substantially
|
| 76 |
+
improves over student-only, but the student struggles to finish after a teacher
|
| 77 |
+
prefix (Step 5), indicating the student's ability to complete partially-solved
|
| 78 |
+
puzzles is the bottleneck.
|
| 79 |
+
|
| 80 |
+
## Schema
|
| 81 |
+
|
| 82 |
+
Each row is one trajectory:
|
| 83 |
+
|
| 84 |
+
| Column | Type | Description |
|
| 85 |
+
|--------|------|-------------|
|
| 86 |
+
| `env_id` | int | Unique environment index (0–1999) |
|
| 87 |
+
| `group_id` | int | Problem group index (0–499); 4 trajectories share the same problem |
|
| 88 |
+
| `turn_count` | int | Number of LLM turns taken (1 turn = up to 2 actions) |
|
| 89 |
+
| `messages` | list[dict] | Full conversation: `[{role, content}, ...]` |
|
| 90 |
+
|
| 91 |
+
## Usage
|
| 92 |
+
|
| 93 |
+
```python
|
| 94 |
+
from datasets import load_dataset
|
| 95 |
+
|
| 96 |
+
ds = load_dataset("CL-From-Nothing/Sokoban-Trajectories")
|
| 97 |
+
|
| 98 |
+
# Full teacher rollouts
|
| 99 |
+
teacher = ds["teacher"]
|
| 100 |
+
|
| 101 |
+
# Step 4: student prefix (2 turns) + teacher completion
|
| 102 |
+
step4 = ds["student_prefix"]
|
| 103 |
+
|
| 104 |
+
# Access messages for first trajectory
|
| 105 |
+
print(step4[0]["messages"])
|
| 106 |
+
```
|