                                      LLMs Can Reason Faster Only If We Let Them

All models were trained on 8x NVIDIA H100 GPUs with 80GB memory. For multi-GPU training, we utilized DeepSpeed
(Rasley et al., 2020) with a suitable gradient accumulation step of to maintain effective batch sizes while managing memory
constraints for the various models we trained.

B.2. Dataset Construction
For each benchmark, we constructed datasets following these specifications:

Game of X

  • Training set: 64,000 examples
  • Test set: 100 examples
  • Numbers sampled uniformly from [1, 100]
  • Target values sampled uniformly from [1, 100]
  • Filtered to ensure each problem has at least one valid solution

N-Puzzle

  • Training set: 64,000 examples
  • Test set: 100 examples
  • Initial states generated with 80-120 random moves from goal state
  • Manhattan distance from initial to goal state ranging from 15 to 30

Word Ladder

  • Training set: 32,000 examples
  • Test set: 100 examples
  • Word length range: 4-10 characters
  • Solution path length range: 4-10 steps
  • Dictionary: NLTK Words Corpus (filtered for common English words)

B.3. Training Protocol
Our training process consisted of two phases: Supervised Fine-tuning (SFT) and Reinforcement Learning (RL). Here we
detail the specific parameters and protocols for each phase.

B.3.1. S UPERVISED F INE - TUNING P HASE
Optimization Parameters

  • Optimizer: AdamW
  • Base learning rate: 1e-5
  • Weight decay: 0.01
  • Gradient clipping: 0.1 (max norm)
  • Batch size: 128 (effective, after gradient accumulation)

                                                            15
