AlphaMaze: Enhancing Large Language Models' Spatial Intelligence via GRPO
Paper • 2502.14669 • Published • 15
Prompt stringlengths 1.57k 1.62k | Cot_Response stringlengths 848 16.9k | Response stringlengths 6 161 | raw_token stringlengths 589 697 | conversations listlengths 2 2 |
|---|---|---|---|---|
You are a helpful assistant that solves mazes. You will be given a maze represented by a series of tokens.
The tokens represent:
- Coordinates: <|row-col|> (e.g., <|0-0|>, <|2-4|>)
- Walls: <|no_wall|>, <|up_wall|>, <|down_wall|>, <|left_wall|>, <|right_wall|>, <|up_down_wall|>, etc.
- Origin: <|ori... | Step 1: Go up
<|0-0|><|up_left_wall|><|blank|><|0-1|><|up_down_wall|><|blank|><|0-2|><|up_down_wall|><|blank|><|0-3|><|up_down_wall|><|blank|><|0-4|><|up_right_wall|><|blank|>
<|1-0|><|left_wall|><|blank|><|1-1|><|up_down_wall|><|blank|><|1-2|><|up_right_wall|><|blank|><|1-3|><|up_left_right_wall|><|blank|><|1-4|><|lef... | <|up|><|up|><|up|><|left|><|left|><|left|><|left|><|down|><|down|><|down|> | <ADJLIST_START> (2,2) <--> (1,2) ; (2,0) <--> (1,0) ; (4,3) <--> (3,3) ; (1,0) <--> (1,1) ; (2,4) <--> (3,4) ; (2,0) <--> (3,0) ; (0,0) <--> (1,0) ; (3,1) <--> (2,1) ; (4,0) <--> (4,1) ; (4,0) <--> (3,0) ; (4,3) <--> (4,4) ; (2,3) <--> (1,3) ; (0,3) <--> (0,4) ; (0,2) <--> (0,3) ; (3,1) <--> (3,2) ; (0,0) <--> (0,1) ; ... | [
{
"content": "You are a helpful assistant that solves mazes. You will be given a maze represented by a series of tokens. \n The tokens represent:\n - Coordinates: <|row-col|> (e.g., <|0-0|>, <|2-4|>)\n - Walls: <|no_wall|>, <|up_wall|>, <|down_wall|>, <|left_wall|>, <|right_wall|>, <|up_down_wall|>,... |
You are a helpful assistant that solves mazes. You will be given a maze represented by a series of tokens.
The tokens represent:
- Coordinates: <|row-col|> (e.g., <|0-0|>, <|2-4|>)
- Walls: <|no_wall|>, <|up_wall|>, <|down_wall|>, <|left_wall|>, <|right_wall|>, <|up_down_wall|>, etc.
- Origin: <|ori... | Step 1: Go down
<|0-0|><|up_left_wall|><|blank|><|0-1|><|up_right_wall|><|blank|><|0-2|><|up_left_wall|><|blank|><|0-3|><|up_right_wall|><|blank|><|0-4|><|up_left_right_wall|><|blank|>
<|1-0|><|left_right_wall|><|down|><|1-1|><|down_left_right_wall|><|blank|><|1-2|><|left_right_wall|><|blank|><|1-3|><|left_right_wall|>... | <|down|><|down|><|down|><|right|><|right|><|up|><|up|><|up|><|up|><|right|><|down|> | <ADJLIST_START> (1,0) <--> (0,0) ; (0,0) <--> (0,1) ; (3,1) <--> (2,1) ; (1,0) <--> (2,0) ; (1,1) <--> (0,1) ; (3,2) <--> (4,2) ; (3,2) <--> (2,2) ; (4,3) <--> (3,3) ; (4,0) <--> (4,1) ; (0,3) <--> (0,2) ; (4,4) <--> (4,3) ; (0,2) <--> (1,2) ; (2,3) <--> (2,4) ; (0,4) <--> (1,4) ; (3,4) <--> (4,4) ; (1,2) <--> (2,2) ; ... | [
{
"content": "You are a helpful assistant that solves mazes. You will be given a maze represented by a series of tokens. \n The tokens represent:\n - Coordinates: <|row-col|> (e.g., <|0-0|>, <|2-4|>)\n - Walls: <|no_wall|>, <|up_wall|>, <|down_wall|>, <|left_wall|>, <|right_wall|>, <|up_down_wall|>,... |
You are a helpful assistant that solves mazes. You will be given a maze represented by a series of tokens.
The tokens represent:
- Coordinates: <|row-col|> (e.g., <|0-0|>, <|2-4|>)
- Walls: <|no_wall|>, <|up_wall|>, <|down_wall|>, <|left_wall|>, <|right_wall|>, <|up_down_wall|>, etc.
- Origin: <|ori... | Step 1: Go down
<|0-0|><|up_left_wall|><|down|><|0-1|><|up_down_wall|><|blank|><|0-2|><|up_down_wall|><|blank|><|0-3|><|up_down_wall|><|blank|><|0-4|><|up_right_wall|><|blank|>
<|1-0|><|down_left_wall|><|blank|><|1-1|><|up_wall|><|blank|><|1-2|><|up_down_wall|><|blank|><|1-3|><|up_down_right_wall|><|blank|><|1-4|><|lef... | <|down|><|right|><|down|><|down|><|right|><|right|><|right|><|down|> | <ADJLIST_START> (4,3) <--> (4,2) ; (4,3) <--> (4,4) ; (2,4) <--> (2,3) ; (2,1) <--> (3,1) ; (1,1) <--> (2,1) ; (3,3) <--> (3,2) ; (3,0) <--> (2,0) ; (1,0) <--> (1,1) ; (4,0) <--> (4,1) ; (0,4) <--> (1,4) ; (0,2) <--> (0,3) ; (1,2) <--> (1,3) ; (1,4) <--> (2,4) ; (3,4) <--> (4,4) ; (3,0) <--> (4,0) ; (0,1) <--> (0,0) ; ... | [
{
"content": "You are a helpful assistant that solves mazes. You will be given a maze represented by a series of tokens. \n The tokens represent:\n - Coordinates: <|row-col|> (e.g., <|0-0|>, <|2-4|>)\n - Walls: <|no_wall|>, <|up_wall|>, <|down_wall|>, <|left_wall|>, <|right_wall|>, <|up_down_wall|>,... |
You are a helpful assistant that solves mazes. You will be given a maze represented by a series of tokens.
The tokens represent:
- Coordinates: <|row-col|> (e.g., <|0-0|>, <|2-4|>)
- Walls: <|no_wall|>, <|up_wall|>, <|down_wall|>, <|left_wall|>, <|right_wall|>, <|up_down_wall|>, etc.
- Origin: <|ori... | Step 1: Go down
<|0-0|><|up_left_right_wall|><|blank|><|0-1|><|up_down_left_wall|><|blank|><|0-2|><|up_down_wall|><|blank|><|0-3|><|up_wall|><|target|><|0-4|><|up_right_wall|><|blank|>
<|1-0|><|down_left_wall|><|blank|><|1-1|><|up_down_wall|><|blank|><|1-2|><|up_down_wall|><|blank|><|1-3|><|down_right_wall|><|blank|><|... | <|down|><|down|><|right|><|right|><|up|><|right|><|right|><|up|><|up|><|up|><|left|> | <ADJLIST_START> (0,4) <--> (1,4) ; (2,4) <--> (3,4) ; (4,0) <--> (4,1) ; (1,4) <--> (2,4) ; (2,2) <--> (2,1) ; (1,1) <--> (1,0) ; (4,2) <--> (4,1) ; (1,2) <--> (1,1) ; (2,1) <--> (2,0) ; (2,0) <--> (3,0) ; (4,2) <--> (3,2) ; (1,2) <--> (1,3) ; (4,0) <--> (3,0) ; (2,3) <--> (2,2) ; (4,3) <--> (4,4) ; (0,3) <--> (0,2) ; ... | [
{
"content": "You are a helpful assistant that solves mazes. You will be given a maze represented by a series of tokens. \n The tokens represent:\n - Coordinates: <|row-col|> (e.g., <|0-0|>, <|2-4|>)\n - Walls: <|no_wall|>, <|up_wall|>, <|down_wall|>, <|left_wall|>, <|right_wall|>, <|up_down_wall|>,... |
You are a helpful assistant that solves mazes. You will be given a maze represented by a series of tokens.
The tokens represent:
- Coordinates: <|row-col|> (e.g., <|0-0|>, <|2-4|>)
- Walls: <|no_wall|>, <|up_wall|>, <|down_wall|>, <|left_wall|>, <|right_wall|>, <|up_down_wall|>, etc.
- Origin: <|ori... | Step 1: Go right
<|0-0|><|up_left_right_wall|><|blank|><|0-1|><|up_down_left_wall|><|blank|><|0-2|><|up_right_wall|><|blank|><|0-3|><|up_down_left_wall|><|blank|><|0-4|><|up_right_wall|><|blank|>
<|1-0|><|left_right_wall|><|blank|><|1-1|><|up_left_wall|><|blank|><|1-2|><|down_right_wall|><|target|><|1-3|><|up_left_wall... | <|right|><|down|><|right|><|right|><|right|><|up|><|up|><|up|><|left|><|down|><|left|><|left|><|up|><|right|> | <ADJLIST_START> (3,2) <--> (3,1) ; (3,3) <--> (3,2) ; (0,4) <--> (0,3) ; (4,4) <--> (4,3) ; (1,4) <--> (0,4) ; (4,2) <--> (4,1) ; (0,0) <--> (1,0) ; (2,3) <--> (1,3) ; (4,3) <--> (4,2) ; (4,4) <--> (3,4) ; (2,2) <--> (2,3) ; (3,0) <--> (4,0) ; (2,1) <--> (1,1) ; (1,2) <--> (0,2) ; (1,2) <--> (1,1) ; (0,1) <--> (0,2) ; ... | [
{
"content": "You are a helpful assistant that solves mazes. You will be given a maze represented by a series of tokens. \n The tokens represent:\n - Coordinates: <|row-col|> (e.g., <|0-0|>, <|2-4|>)\n - Walls: <|no_wall|>, <|up_wall|>, <|down_wall|>, <|left_wall|>, <|right_wall|>, <|up_down_wall|>,... |
You are a helpful assistant that solves mazes. You will be given a maze represented by a series of tokens.
The tokens represent:
- Coordinates: <|row-col|> (e.g., <|0-0|>, <|2-4|>)
- Walls: <|no_wall|>, <|up_wall|>, <|down_wall|>, <|left_wall|>, <|right_wall|>, <|up_down_wall|>, etc.
- Origin: <|ori... | Step 1: Go left
<|0-0|><|up_left_wall|><|blank|><|0-1|><|up_down_wall|><|blank|><|0-2|><|up_down_wall|><|target|><|0-3|><|up_down_wall|><|blank|><|0-4|><|up_right_wall|><|blank|>
<|1-0|><|down_left_right_wall|><|blank|><|1-1|><|up_left_wall|><|blank|><|1-2|><|up_down_wall|><|left|><|1-3|><|up_right_wall|><|blank|><|1-4... | <|left|><|down|><|left|><|down|><|down|><|right|><|up|><|right|><|down|><|right|><|right|><|up|><|up|><|up|><|up|><|left|><|left|> | <ADJLIST_START> (2,1) <--> (1,1) ; (0,3) <--> (0,4) ; (0,4) <--> (1,4) ; (1,1) <--> (1,2) ; (4,0) <--> (4,1) ; (4,2) <--> (4,3) ; (0,0) <--> (1,0) ; (4,4) <--> (3,4) ; (3,4) <--> (2,4) ; (4,2) <--> (3,2) ; (2,3) <--> (1,3) ; (1,3) <--> (1,2) ; (2,1) <--> (2,0) ; (4,0) <--> (3,0) ; (3,1) <--> (3,2) ; (3,3) <--> (3,4) ; ... | [
{
"content": "You are a helpful assistant that solves mazes. You will be given a maze represented by a series of tokens. \n The tokens represent:\n - Coordinates: <|row-col|> (e.g., <|0-0|>, <|2-4|>)\n - Walls: <|no_wall|>, <|up_wall|>, <|down_wall|>, <|left_wall|>, <|right_wall|>, <|up_down_wall|>,... |
You are a helpful assistant that solves mazes. You will be given a maze represented by a series of tokens.
The tokens represent:
- Coordinates: <|row-col|> (e.g., <|0-0|>, <|2-4|>)
- Walls: <|no_wall|>, <|up_wall|>, <|down_wall|>, <|left_wall|>, <|right_wall|>, <|up_down_wall|>, etc.
- Origin: <|ori... | Step 1: Go right
<|0-0|><|up_left_right_wall|><|blank|><|0-1|><|up_left_wall|><|blank|><|0-2|><|up_wall|><|blank|><|0-3|><|up_down_wall|><|blank|><|0-4|><|up_right_wall|><|blank|>
<|1-0|><|down_left_wall|><|blank|><|1-1|><|down_right_wall|><|blank|><|1-2|><|left_right_wall|><|blank|><|1-3|><|up_left_wall|><|blank|><|1-... | <|right|><|right|><|up|><|up|><|up|><|up|><|right|><|right|><|down|><|left|><|down|><|right|><|down|> | <ADJLIST_START> (1,1) <--> (0,1) ; (3,4) <--> (2,4) ; (1,4) <--> (0,4) ; (2,3) <--> (2,4) ; (2,3) <--> (1,3) ; (4,2) <--> (4,1) ; (0,2) <--> (0,3) ; (1,0) <--> (1,1) ; (0,0) <--> (1,0) ; (2,0) <--> (2,1) ; (2,2) <--> (3,2) ; (0,4) <--> (0,3) ; (1,3) <--> (1,4) ; (4,0) <--> (4,1) ; (0,2) <--> (1,2) ; (0,2) <--> (0,1) ; ... | [
{
"content": "You are a helpful assistant that solves mazes. You will be given a maze represented by a series of tokens. \n The tokens represent:\n - Coordinates: <|row-col|> (e.g., <|0-0|>, <|2-4|>)\n - Walls: <|no_wall|>, <|up_wall|>, <|down_wall|>, <|left_wall|>, <|right_wall|>, <|up_down_wall|>,... |
"You are a helpful assistant that solves mazes. You will be given a maze represented by a series of(...TRUNCATED) | "Step 1: Go left\n<|0-0|><|up_down_left_wall|><|blank|><|0-1|><|up_right_wall|><|target|><|0-2|><|up(...TRUNCATED) | "<|left|><|down|><|right|><|right|><|right|><|down|><|left|><|left|><|left|><|left|><|up|><|up|><|up(...TRUNCATED) | "<ADJLIST_START> (4,1) <--> (4,0) ; (1,4) <--> (2,4) ; (0,0) <--> (0,1) ; (2,3) <--> (1,3) ; (1,0) <(...TRUNCATED) | [{"content":"You are a helpful assistant that solves mazes. You will be given a maze represented by(...TRUNCATED) |
"You are a helpful assistant that solves mazes. You will be given a maze represented by a series of(...TRUNCATED) | "Step 1: Go right\n<|0-0|><|up_down_left_wall|><|blank|><|0-1|><|up_wall|><|target|><|0-2|><|up_down(...TRUNCATED) | <|right|><|right|><|right|><|up|><|up|><|up|><|left|><|up|><|left|><|left|> | "<ADJLIST_START> (1,1) <--> (0,1) ; (1,4) <--> (2,4) ; (1,4) <--> (1,3) ; (0,1) <--> (0,2) ; (0,3) <(...TRUNCATED) | [{"content":"You are a helpful assistant that solves mazes. You will be given a maze represented by(...TRUNCATED) |
"You are a helpful assistant that solves mazes. You will be given a maze represented by a series of(...TRUNCATED) | "Step 1: Go right\n<|0-0|><|up_down_left_wall|><|blank|><|0-1|><|up_down_wall|><|blank|><|0-2|><|up_(...TRUNCATED) | <|right|><|down|><|down|><|left|><|left|><|left|><|up|><|left|><|down|><|down|> | "<ADJLIST_START> (2,1) <--> (1,1) ; (0,3) <--> (1,3) ; (4,1) <--> (3,1) ; (1,4) <--> (2,4) ; (3,2) <(...TRUNCATED) | [{"content":"You are a helpful assistant that solves mazes. You will be given a maze represented by(...TRUNCATED) |
arxiv.org/abs/2502.14669