AlphaMaze: Enhancing Large Language Models' Spatial Intelligence via GRPO
Paper • 2502.14669 • Published • 15
Prompt stringlengths 1.57k 1.62k | Cot_Response stringlengths 2.62k 21.2k | Response stringlengths 6 153 | 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 left
<|0-0|><|up_down_left_wall|><|blank|><|0-1|><|up_down_wall|><|blank|><|0-2|><|up_wall|><|blank|><|0-3|><|up_right_wall|><|blank|><|0-4|><|up_left_right_wall|><|target|>
<|1-0|><|up_left_wall|><|blank|><|1-1|><|up_down_wall|><|blank|><|1-2|><|down_right_wall|><|blank|><|1-3|><|down_left_wall|><|blank|><|... | <|up|> | <ADJLIST_START> (3,1) <--> (3,2) ; (2,1) <--> (3,1) ; (4,3) <--> (4,2) ; (4,1) <--> (4,0) ; (0,1) <--> (0,0) ; (4,1) <--> (3,1) ; (2,0) <--> (1,0) ; (3,3) <--> (3,4) ; (4,4) <--> (4,3) ; (1,4) <--> (0,4) ; (1,2) <--> (1,1) ; (1,3) <--> (0,3) ; (1,0) <--> (1,1) ; (0,3) <--> (0,2) ; (2,2) <--> (2,1) ; (2,4) <--> (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 down
<|0-0|><|up_down_left_wall|><|blank|><|0-1|><|up_wall|><|down|><|0-2|><|up_right_wall|><|blank|><|0-3|><|up_left_wall|><|blank|><|0-4|><|up_right_wall|><|blank|>
<|1-0|><|up_left_wall|><|blank|><|1-1|><|down_right_wall|><|blank|><|1-2|><|down_left_wall|><|blank|><|1-3|><|down_right_wall|><|blank|><|1-4|... | <|right|><|down|><|right|><|up|><|right|><|down|><|down|><|left|><|down|><|down|><|right|><|up|> | <ADJLIST_START> (1,0) <--> (1,1) ; (2,1) <--> (2,2) ; (4,3) <--> (3,3) ; (2,3) <--> (2,4) ; (4,4) <--> (4,3) ; (4,4) <--> (3,4) ; (3,2) <--> (2,2) ; (4,1) <--> (4,0) ; (0,3) <--> (0,4) ; (2,3) <--> (3,3) ; (0,2) <--> (0,1) ; (4,2) <--> (4,3) ; (3,0) <--> (2,0) ; (1,0) <--> (2,0) ; (1,3) <--> (1,2) ; (1,3) <--> (0,3) ; ... | [
{
"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_down_left_wall|><|blank|><|0-1|><|up_down_wall|><|blank|><|0-2|><|up_down_wall|><|blank|><|0-3|><|up_wall|><|right|><|0-4|><|up_right_wall|><|blank|>
<|1-0|><|up_left_wall|><|blank|><|1-1|><|up_down_wall|><|blank|><|1-2|><|up_right_wall|><|blank|><|1-3|><|left_right_wall|><|blank|><|1-4|><|... | <|down|><|down|><|right|><|down|><|down|><|left|><|left|><|up|><|left|><|left|><|up|><|up|><|right|><|right|><|down|> | <ADJLIST_START> (0,3) <--> (1,3) ; (3,4) <--> (4,4) ; (4,0) <--> (4,1) ; (3,4) <--> (2,4) ; (2,4) <--> (2,3) ; (0,0) <--> (0,1) ; (1,1) <--> (1,2) ; (2,2) <--> (2,1) ; (2,3) <--> (3,3) ; (4,3) <--> (4,2) ; (3,0) <--> (3,1) ; (1,0) <--> (1,1) ; (4,2) <--> (4,1) ; (4,3) <--> (4,4) ; (0,1) <--> (0,2) ; (0,3) <--> (0,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 down
<|0-0|><|up_left_wall|><|blank|><|0-1|><|up_down_wall|><|blank|><|0-2|><|up_down_wall|><|blank|><|0-3|><|up_wall|><|blank|><|0-4|><|up_right_wall|><|blank|>
<|1-0|><|down_left_wall|><|blank|><|1-1|><|up_down_right_wall|><|blank|><|1-2|><|up_left_wall|><|target|><|1-3|><|down_right_wall|><|blank|><|1-4|>... | <|right|><|up|><|up|><|up|><|left|><|down|><|left|> | <ADJLIST_START> (0,4) <--> (1,4) ; (2,0) <--> (3,0) ; (1,1) <--> (1,0) ; (3,4) <--> (3,3) ; (2,4) <--> (3,4) ; (2,2) <--> (1,2) ; (1,2) <--> (1,3) ; (0,2) <--> (0,3) ; (2,0) <--> (2,1) ; (4,2) <--> (3,2) ; (0,3) <--> (1,3) ; (4,3) <--> (4,4) ; (2,4) <--> (1,4) ; (2,1) <--> (3,1) ; (3,3) <--> (4,3) ; (4,0) <--> (4,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 right
<|0-0|><|up_left_right_wall|><|blank|><|0-1|><|up_left_wall|><|blank|><|0-2|><|up_down_wall|><|blank|><|0-3|><|up_down_wall|><|blank|><|0-4|><|up_right_wall|><|blank|>
<|1-0|><|left_right_wall|><|blank|><|1-1|><|left_right_wall|><|blank|><|1-2|><|up_left_wall|><|blank|><|1-3|><|up_down_wall|><|blank|><... | <|up|> | <ADJLIST_START> (1,1) <--> (2,1) ; (2,2) <--> (2,3) ; (1,2) <--> (1,3) ; (3,0) <--> (2,0) ; (0,0) <--> (1,0) ; (0,3) <--> (0,4) ; (3,1) <--> (2,1) ; (4,3) <--> (4,4) ; (4,2) <--> (4,1) ; (0,3) <--> (0,2) ; (1,0) <--> (2,0) ; (1,2) <--> (2,2) ; (3,2) <--> (3,1) ; (3,4) <--> (2,4) ; (3,2) <--> (3,3) ; (1,3) <--> (1,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 left
<|0-0|><|up_left_wall|><|target|><|0-1|><|up_down_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_right_wall|><|blank|><|1-2|><|left_right_wall|><|blank|><|1-3|><|up_left_wall|><|bl... | <|down|><|left|><|left|><|up|><|up|><|up|><|up|> | <ADJLIST_START> (3,1) <--> (2,1) ; (1,0) <--> (2,0) ; (0,2) <--> (1,2) ; (1,0) <--> (0,0) ; (2,1) <--> (1,1) ; (3,2) <--> (3,1) ; (1,3) <--> (1,4) ; (4,2) <--> (3,2) ; (0,1) <--> (0,0) ; (3,4) <--> (2,4) ; (0,2) <--> (0,1) ; (4,4) <--> (4,3) ; (2,2) <--> (1,2) ; (3,4) <--> (3,3) ; (3,0) <--> (4,0) ; (3,4) <--> (4,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 down
<|0-0|><|up_left_wall|><|blank|><|0-1|><|up_down_right_wall|><|blank|><|0-2|><|up_left_right_wall|><|blank|><|0-3|><|up_down_left_wall|><|blank|><|0-4|><|up_right_wall|><|blank|>
<|1-0|><|left_wall|><|down|><|1-1|><|up_right_wall|><|blank|><|1-2|><|down_left_wall|><|blank|><|1-3|><|up_down_wall|><|blank... | <|right|><|down|><|down|><|left|><|down|><|right|> | <ADJLIST_START> (1,4) <--> (2,4) ; (4,3) <--> (4,4) ; (1,0) <--> (1,1) ; (1,0) <--> (2,0) ; (1,0) <--> (0,0) ; (3,0) <--> (4,0) ; (1,2) <--> (1,3) ; (0,3) <--> (0,4) ; (4,1) <--> (4,0) ; (3,3) <--> (2,3) ; (3,3) <--> (3,4) ; (0,0) <--> (0,1) ; (2,3) <--> (2,2) ; (2,1) <--> (1,1) ; (3,4) <--> (2,4) ; (4,3) <--> (4,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(...TRUNCATED) | "Step 1: Go left\n<|0-0|><|up_left_wall|><|blank|><|0-1|><|up_down_wall|><|blank|><|0-2|><|up_down_w(...TRUNCATED) | <|down|><|down|><|left|><|down|><|left|><|up|> | "<ADJLIST_START> (4,0) <--> (4,1) ; (0,0) <--> (1,0) ; (4,3) <--> (3,3) ; (0,0) <--> (0,1) ; (0,2) <(...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 down\n<|0-0|><|up_left_wall|><|blank|><|0-1|><|up_right_wall|><|blank|><|0-2|><|up_left_(...TRUNCATED) | <|right|><|down|><|right|><|down|><|right|> | "<ADJLIST_START> (4,0) <--> (3,0) ; (3,3) <--> (3,4) ; (0,4) <--> (1,4) ; (0,2) <--> (1,2) ; (2,4) <(...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 left\n<|0-0|><|up_left_wall|><|blank|><|0-1|><|up_down_wall|><|blank|><|0-2|><|up_down_w(...TRUNCATED) | <|down|><|down|><|left|><|up|><|left|> | "<ADJLIST_START> (0,4) <--> (1,4) ; (0,0) <--> (0,1) ; (0,2) <--> (0,3) ; (2,2) <--> (2,1) ; (2,0) <(...TRUNCATED) | [{"content":"You are a helpful assistant that solves mazes. You will be given a maze represented by(...TRUNCATED) |
arxiv.org/abs/2502.14669