atlas

Research map / Large language models / Reasoning and chain of thought

Dualformer: Controllable Fast and Slow Thinking by Learning with Randomized Reasoning Traces

ICLR 2025 · Large language models › Reasoning and chain of thought · approach: Long CoT dynamics and efficiency · 2 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Dualformer trains a single Transformer on randomly trace-dropped A* search traces so it can run in fast (solution-only), slow (full trace), or auto mode on maze/Sokoban, and extends the idea to math LLM fine-tuning.

Problem

Transformers for planning either answer quickly without reasoning (fast mode, less accurate) or reason at length (slow mode, costly); prior systems need separate models or controllers to switch between these modes.

Approach

Train one encoder-decoder Transformer on A* search traces where structured parts of the trace (close clauses, cost tokens, create clauses, or the entire trace) are randomly dropped per example; a control token (plan or create) or no token selects fast, slow, or auto mode at inference.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Train with randomized structured trace dropping rather than solution-only trainingDualformer fast mode · Maze 30x301-Optimal-64: 30.0 -> 80.0Helped
Train with randomized structured trace dropping rather than complete-trace trainingDualformer slow mode · Maze 30x301-Optimal-64: 93.3 -> 97.6Helped
Train with randomized structured trace dropping rather than complete-trace trainingDualformer slow mode · Maze 30x30Avg Trace Length: 1538 -> 854Helped
Use auto mode instead of Complete-TraceDualformer · Maze 30x301-Optimal-64: 93.3 -> 96.6Helped
Randomly drop reasoning steps during fine-tuning with p=0.1Mistral-7B · MATH (augmath)Greedy@1 slow (%): 16.9 -> 18.6Helped
Randomly drop reasoning steps during fine-tuning with p=0.4Mistral-7B · MATH (augmath)Pass@20 slow (%): 59.6 -> 56.4Hurt
Randomly drop reasoning steps during fine-tuning with p=0.2Llama-3-8B · MATH (augmath)Greedy@1 slow (%): 19.7 -> 20.5Helped
Add Level 2 dropping to Level 1 dropping (ablation)Dualformer · Maze 30x301-Optimal-64: 97.5 -> 98.1Helped
Add Level 3 dropping to Levels 1 and 2 (ablation)Dualformer · Maze 30x30Avg Trace Length: 966 -> 759Helped
Add Level 3 dropping to Levels 1 and 2 (ablation)Dualformer · Maze 30x301-Optimal-64: 98.1 -> 96.8Hurt
Add Level 4 dropping (drop the entire trace) to Levels 1, 2, and 3 (ablation)Dualformer · Maze 30x30Avg Trace Length: 759 -> 854Mixed
Replace structured trace dropping with a 10% solution-only/complete-trace mixture (ablation)Dualformer slow mode · Maze 30x301-Optimal-64: 97.7 -> 97.6Helped

Surprising findings

Limitations

Experimental setup

Datasets: Maze and Sokoban A* search traces (Searchformer dataset) MATH AugMath (rewritten by Llama-3.1-70B-Instruct)

Benchmarks: 30x30 maze (and 15x15, 20x20, 25x25) Sokoban 7x7 MATH test set

Metrics: 1-Optimal-64 3-Optimal-64 1-Solved-64 3-Solved-64 SWC diversity (unique correct plans) average trace length Greedy@1 Pass@20

Baselines: Solution-Only Complete-Trace (Searchformer) Searchformer bootstrapped steps 1-3 Mix-p models Mistral-7B and Llama-3-8B fine-tuned on MATH-derived AugMath

Builds on: Searchformer dropout BERT masking T5

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy