Makrrr commited on
Commit
54472e9
·
verified ·
1 Parent(s): a907eee

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +108 -0
README.md ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ task_categories:
4
+ - reinforcement-learning
5
+ tags:
6
+ - frozen-lake
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
+ # FrozenLake-Hard-Trajectories
24
+
25
+ Rollout trajectories for a **hard variant of FrozenLake** 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
+ | Grid size | 8×8 (vs 4×4 in standard FrozenLake) |
40
+ | Frozen tile probability `p` | 0.8 (~13 holes per map) |
41
+ | Movement success rate | 0.8 (80% intended, 20% random slip) |
42
+ | Coordinate range | (0, 0) to (7, 7) (zero-indexed) |
43
+ | Max turns per episode | 10 |
44
+ | **Actions per turn** | **up to 2** (`max_actions_per_turn=2`) |
45
+
46
+ > **Note:** 1 turn = up to 2 actions. All turn-based statistics count LLM calls.
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 = **3.08** → cutoff = **2 turns** (≤4 actions)
56
+
57
+ > Note: floor(3.08 / 2) = 1, but cutoff was set to 2 to give a more meaningful
58
+ > prefix length given the harder environment.
59
+
60
+ ## Splits
61
+
62
+ | Split | Description |
63
+ |-------|-------------|
64
+ | `teacher` | Full rollouts by teacher (14B) from start to finish |
65
+ | `student` | Full rollouts by student (3B) from start to finish |
66
+ | `student_prefix` | **Step 4**: Student runs first **2 turns**, teacher completes the rest |
67
+ | `teacher_prefix` | **Step 5**: Teacher runs first **2 turns**, student completes the rest |
68
+
69
+ ## Results
70
+
71
+ | Setting | success | pass@4 | avg turns |
72
+ |---------|---------|--------|-----------|
73
+ | Student only | 0.068 | 0.150 | 4.42 |
74
+ | Step 4: student→teacher | 0.158 | 0.330 | 3.78 |
75
+ | Step 5: teacher→student | 0.167 | 0.316 | 3.37 |
76
+ | Teacher only | 0.268 | 0.466 | 3.08 |
77
+
78
+ The hard environment compresses the gap between all settings — even the teacher
79
+ only achieves 26.8% success, leaving limited room for the continuation methods
80
+ to recover. Both Step 4 and Step 5 roughly double the student baseline (6.8% → ~16%).
81
+
82
+ ## Schema
83
+
84
+ Each row is one trajectory:
85
+
86
+ | Column | Type | Description |
87
+ |--------|------|-------------|
88
+ | `env_id` | int | Unique environment index (0–1999) |
89
+ | `group_id` | int | Problem group index (0–499); 4 trajectories share the same problem |
90
+ | `turn_count` | int | Number of LLM turns taken (1 turn = up to 2 actions) |
91
+ | `messages` | list[dict] | Full conversation: `[{role, content}, ...]` |
92
+
93
+ ## Usage
94
+
95
+ ```python
96
+ from datasets import load_dataset
97
+
98
+ ds = load_dataset("CL-From-Nothing/FrozenLake-Hard-Trajectories")
99
+
100
+ # Full teacher rollouts
101
+ teacher = ds["teacher"]
102
+
103
+ # Step 4: student prefix (2 turns) + teacher completion
104
+ step4 = ds["student_prefix"]
105
+
106
+ # Access messages for first trajectory
107
+ print(step4[0]["messages"])
108
+ ```