LongCoT-mini Decomposition Prompt

Decomposition hints from MIT CSAIL’s Recursive Language Models paper (arXiv:2512.24601v3, Appendix C.3). Used to guide RLMs on the LongCoT-mini benchmark for complex multi-domain reasoning.

Prompt Definition

Provided as additional guidance to the RLM system prompt for the LongCoT-mini experiment (Table 2 in paper):

To solve this problem, you should:
1. First, understand the problem by reading the prompt carefully
2. Decompose the problem into independent subproblems
3. Create a graph of subproblems and their dependencies
4. Solve each subproblem using sub_RLM calls
5. Combine the results to form the final answer
 
You can use the following approach:
- Use prompt.find() or prompt.split() to locate relevant sections
- Call sub_RLM on each subproblem
- Build a dependency graph in Python variables
- Traverse the graph to solve in order

Pattern Analysis

This prompt encodes a structured reasoning workflow as explicit instructions:

StepActionRLM Mechanism
1Problem understandingprompt.find(), prompt.split() exploration
2Task decompositionLLM identifies independent subproblems
3Dependency graph constructionBuild graph in Python variables (dict/list)
4Recursive solvingsub_RLM() calls per subproblem
5Result aggregationTraverse graph, combine in Final

This is a plan-gate + task-state-machine pattern: the LLM must explicitly plan (build graph) before executing (traverse + sub-call).

Performance Impact (from paper)

On LongCoT-mini benchmark (GPT-5.2 base model):

ModelOverallMATHCHEMCSLOGICCHESS
GPT-5.2 (base)38.726.037.040.453.636.6
RLM (GPT-5.2, depth=1)50.65.650.011.086.793.0
RLM + decomposition hints65.632.052.046.099.099.0

+69.5% overall improvement over base model with decomposition hints. The hints particularly help on structured domains (LOGIC, CHESS) where dependency graphs are natural.

Implications

Explicit decomposition guidance matters. The base RLM prompt (Appendix C.1) says “Think step by step. Start by exploring” but leaves decomposition strategy implicit. The LongCoT-mini hints make the strategy explicit: build a dependency graph, then traverse it.

This suggests a prompt engineering principle: for complex reasoning tasks, provide the decomposition meta-strategy in the prompt, not just the task instructions.

The graph-building instruction is key. “Create a graph of subproblems and their dependencies” + “Build a dependency graph in Python variables” forces the LLM to use the REPL for structured planning before execution. This separates the “what to do” from “how to do it.”

Open Questions:

  • Would this decomposition prompt work with non-RLM agents (e.g., standard ReAct, CodeAct)?
  • How sensitive is performance to the exact graph-building instructions?
  • Can this pattern be generalized to other complex reasoning benchmarks (GPQA, MMLU-Pro, etc.)?

Sources

1

Footnotes

  1. raw/prompts/articles/recursive-language-models-arxiv-2512-24601v3.md ↩