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 orderPattern Analysis
This prompt encodes a structured reasoning workflow as explicit instructions:
| Step | Action | RLM Mechanism |
|---|---|---|
| 1 | Problem understanding | prompt.find(), prompt.split() exploration |
| 2 | Task decomposition | LLM identifies independent subproblems |
| 3 | Dependency graph construction | Build graph in Python variables (dict/list) |
| 4 | Recursive solving | sub_RLM() calls per subproblem |
| 5 | Result aggregation | Traverse 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):
| Model | Overall | MATH | CHEM | CS | LOGIC | CHESS |
|---|---|---|---|---|---|---|
| GPT-5.2 (base) | 38.7 | 26.0 | 37.0 | 40.4 | 53.6 | 36.6 |
| RLM (GPT-5.2, depth=1) | 50.6 | 5.6 | 50.0 | 11.0 | 86.7 | 93.0 |
| RLM + decomposition hints | 65.6 | 32.0 | 52.0 | 46.0 | 99.0 | 99.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.)?
Related Pages
- recursive-language-model-prompt — Base RLM system prompt this extends
- recursive-language-model — The paradigm concept
- summary-agent-baseline-prompt — Contrastive baseline
- task-state-machine — Pattern used (plan → execute)
- plan-before-implement-gate — Gate pattern (explicit planning before action)
- chain-of-thought-pattern — Related reasoning pattern
- tree-of-thoughts — Alternative reasoning structure
Sources
Footnotes
-
raw/prompts/articles/recursive-language-models-arxiv-2512-24601v3.md ↩