SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2407.14414 · ICLR · 2025

SYSTEM-1.x: LEARNING TO BALANCE FAST AND SLOW PLANNING WITH LANGUAGE MODELS

Peter Hase, Mohit Bansal, Swarnadeep Saha, Elias Stengel-Eskin, Archiki Prasad, Yao Chen, Justin Chih

arXiv · PDF · Open in the Atlas

Code that ran

4 of 4 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 4 failures of our instrument; 0 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2407.14414.json · badge: /api/ran/2407.14414.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
swarnahub/system-1.x canonical (classifier label)
classifier basis: classifier_2025
2 ran · 0 no recorded run
swarnaHub/System-1.x marked official in Papers with Code
Papers with Code archive
2 ran · 0 no recorded run
FunctionStatusWhere it lives
convert_decomp_to_subgoals Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
swarnahub/system-1.x/src_blocksworld/decomp_hybrid.py
code served (permissive licence) · get_code("727641ce5801688d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned list. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# Analyzing the function:
# - best_decomp is iterated over with len() and indexed with [i] and [i+1]
# - Elements are compared with == 
# - Elements are stored in tuples
# - The function treats best_decomp as a sequence of states

# Create a simple decomposition path as a list of states
# States can be represented as tuples or arrays for comparison
best_decomp = [
    (0, 1, 2, 3),      # state 0
    (0, 1, 2, 3),      # state 1 (same as state 0, will be skipped)
    (1, 2, 3, 4),      # state 2 (different)
    (2, 3, 4, 5),      # state 3 (different)
    (2, 3, 4, 5),      # state 4 (same as state 3, will be skipped)
]

ARGS = {
    "best_decomp": best_decomp
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list — a list output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
generate_interleaved_meta_plan Ran
ran; our contract draft was wrong, not the code
swarnaHub/System-1.x/src_blocksworld/decomp_hybrid.py
code served (permissive licence) · get_code("afd0361425c8317a")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

# Analyze the function to understand what sub_goals should contain
# sub_goals is a list where each element is a tuple/list with:
# - [0]: start_state (a state representation)
# - [1]: end_state (a state representation)
# - [2]: system (1 or 2, indicating system 1 or system 2)

# Each state is passed to verbalize_state which:
# - iterates over state as a list of stacks
# - for each stack, removes the first element (stack[1:])
# - formats it as "Stack i: {stack}"

# So each state should be a list of stacks, where each stack is a list/tuple

# Create sample states - each state is a list of stacks
# Each stack is a list where we'll skip the first element
stack1_start = ['skip_me', 'A', 'B']
stack2_start = ['skip_me', 'C']
start_state = [stack1_start, stack2_start]

stack1_end = ['skip_me', 'B', 'A']
stack2_end = ['skip_me', 'C', 'D']
end_state = [stack1_end, stack2_end]

# Create sub_goals list with multiple sub-goals
sub_goal_1 = (start_state, end_state, 1)  # system 1 (easy)

# Create another sub-goal with different states
stack1_start_2 = ['skip_me', 'X', 'Y', 'Z']
stack2_start_2 = ['skip_me', 'W']
start_state_2 = [stack1_start_2, stack2_start_2]

stack1_end_2 = ['skip_me', 'Z', 'Y', 'X']
stack2_end_2 = ['skip_me', 'W', 'V']
end_state_2 = [stack1_end_2, stack2_end_2]

sub_goal_2 = (start_state_2, end_state_2, 2)  # system 2 (hard)

sub_goals = [sub_goal_1, sub_goal_2]

ARGS = {
    'sub_goals': sub_goals
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_planner_prompt Ran
ran; our contract draft was wrong, not the code
swarnahub/system-1.x/src_blocksworld/decomp_hybrid.py
code served (permissive licence) · get_code("5916a61d02ecd5c2")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

# Analyze the function to understand what arguments are needed
# get_planner_prompt(sample, start, goal)
# - sample: appears to be unused in the function body
# - start: iterable of stacks (lists of strings representing blocks)
# - goal: iterable of stacks (lists of strings representing blocks)

# The function iterates through stacks and accesses elements by index
# Each stack is a list of strings (block names)

ARGS = {
    'sample': None,  # unused parameter, can be None or any value
    'start': [
        ['block_a', 'block_b'],  # first stack with 2 blocks
        ['block_c']  # second stack with 1 block
    ],
    'goal': [
        ['block_c', 'block_a', 'block_b']  # goal stack with 3 blocks
    ]
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
verbalize_state Ran
ran; our contract draft was wrong, not the code
swarnaHub/System-1.x/src_blocksworld/decomp_hybrid.py
code served (permissive licence) · get_code("60f5d4368313ca9c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# The function iterates over `state` with enumerate and accesses each element
# as `stack`, then slices it with [1:], and converts it to string.
# `state` should be a list/sequence of stack-like objects (lists or similar).

state = [
    [0, 1, 2, 3],
    [0, 4, 5, 6],
    [0, 7, 8, 9]
]

ARGS = {
    'state': state
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block

Also present in other papers' code

Of 4 samples lifted from this paper's linked repositories, 4 carry a function identity and 0 do not. Of the 4 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 4 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Language models can be used to solve long-horizon planning problems in two distinct modes. In a fast 'System-1' mode, models directly generate plans without any explicit search or backtracking, and in a slow 'System-2' mode, they plan step-by-step by explicitly searching over possible actions. System-2 planning, while typically more effective, is also computationally more expensive and often infeasible for long plans or large action spaces. Moreover, isolated System-1 or System-2 planning ignores the user's end goals and constraints (e.g., token budget), failing to provide ways for the user to control the model's behavior. To this end, we propose the System-1.x Planner, a framework for controllable planning with language models that is capable of generating hybrid plans and balancing between the two planning modes based on the difficulty of the problem at hand. System-1.x consists of (i) a controller, (ii) a System-1 Planner, and (iii) a System-2 Planner. Based on a user-specified hybridization factor x governing the degree to which the system uses System-1 vs. System-2, the controller decomposes a planning problem into sub-goals, and classifies them as easy or hard to be solved by either System-1 or System-2, respectively. We fine-tune all three components on top of a single LLM, requiring only search traces as supervision. Experiments with two diverse planning tasks -Maze Navigation and Blocksworld -show that our System-1.x Planner outperforms a System-1 Planner, a System-2 Planner trained to approximate A * search, and also a symbolic planner (A * search), given a state exploration budget. We also demonstrate the following key properties of our planner: (1) controllability: by adjusting the hybridization factor x (e.g., System-1.75 vs. System-1.5) we can perform more (or less) search, improving performance, (2) flexibility: by building a neuro-symbolic variant composed of a neural System-1 planner and a symbolic System-2 planner, we can take advantage of existing symbolic methods, and (3) generalizability: by learning from different search algorithms (BFS, DFS, A * ), we show that our method is robust to the choice of search algorithm used for training. 1

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2407.14414")
get_code_for_paper("2407.14414")
have("2407.14414")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2407.14414.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2407.14414.svg)](https://syntology.ai/paper/2407.14414)

Connect an agent — have() is free.