                                      LLMs Can Reason Faster Only If We Let Them

  • Training steps: 500
  • Warm-up steps: 50
  • Learning rate scheduler: Cosine annealing

Implementation Details

  • Mixed precision training (BF16)
  • Gradient checkpointing enabled
  • Token sequence length: 2048
  • Padding: Dynamic batching with attention masking

B.3.2. R EINFORCEMENT L EARNING P HASE
We utilized trl library from huggingface, however, we needed to have a custom RLOO trainer implementation with minor
but crucial differences to the original library due to it being designed for LLM reward models.

RLOO Implementation

  • Algorithm: REINFORCE leave-one-out
  • Base learning rate: 1e-6
  • Batch size: 32
  • Samples per problem: 4
  • KL penalty coefficient: 0.1
  • Value loss coefficient: 0.5

Reward Model Parameters

  • Step penalty factor (α): 0.02
  • Minimum reward cutoff (β): -0.5
  • Solution path bonus (κ): 0.2

Training Schedule

  • Total steps: 50
  • Warm-up steps: 50
  • Learning rate schedule: Cosine annealing

B.4. Evaluation Protocol
During evaluation, we used the following settings:

Inference Parameters

  • Temperature: 0.0
  • Top-p (nucleus sampling): 0.0
  • Maximum new tokens: 1024
  • Repetition penalty: No

                                                         16
