Manuscript Offprint

arXiv:2610.17189

Soft Teacher Forcing

Mohammad Fahes, Cordelia Schmid, Anurag Arnab

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Soft tokens have so far been used to replace discrete chain-of-thought in latent reasoning methods. These approaches typically require multi-stage training and, in some cases, auxiliary modules, yet they still underperform supervised fine-tuning (SFT) on ⟨\langleinput, chain-of-thought, output ⟩\rangle triples. In this paper, we ask whether soft tokens can be used to improve SFT itself, instead of as an avenue for latent reasoning. We introduce Soft Teacher Forcing (Soft-TF), a simple training algorithm that combines teacher-forced embeddings with soft tokens through random convex combinations. The soft tokens are computed in a single parallel forward pass over the ground-truth sequence. Soft-TF adds no parameters, no external model and no curriculum, and leaves inference unchanged. Experiments show that Soft-TF improves over SFT on GSM8K, MATH, MathQA and AQuA, by +2.1 to +4.1 points on GSM8K across seven Gemma, Llama and Mistral models.

1 INTRODUCTION

Large Language Models (LLMs) have demonstrated remarkable capabilities on complex reasoning tasks through Chain-of-Thought (CoT) (Wei et al., 2022; Wang et al., 2023), in which the model autoregressively generates intermediate tokens that explicitly trace the steps toward a final answer. Building on this, supervised fine-tuning (SFT) on ⟨input,CoT,output⟩\langle input, CoT, output \rangle triples has become a standard approach for training LLMs for reasoning (Mukherjee et al., 2023; Yue et al., 2024; Chung et al., 2024; Shao et al., 2024), before further Reinforcement Learning (RL) (Lightman et al., 2024; Liu et al., 2024; Team et al., 2025b). SFT uses teacher forcing (TF) (Jordan, 1986; Williams & Zipser, 1989), which conditions each prediction on the preceding ground-truth tokens rather than on the model's own outputs. This allows training to be fully parallelized and aligns naturally with the next-token prediction objective that underlies modern LLMs.

A separate line of work has explored soft tokens, which are continuous inputs such as convex combinations of vocabulary embeddings or last-layer hidden states. The motivation is that a continuous space may be more expressive than a discrete one (Hao et al., 2025; Zhang et al., 2025), and soft tokens have primarily been used to replace discrete CoT (Deng et al., 2024; Hao et al., 2025; Shen et al., 2025; Xu et al., 2025). However, these latent reasoning methods still underperform the SFT models they use as initialization on real-world mathematical reasoning benchmarks (Cobbe et al., 2021). Being recursive by nature, they deviate from TF and are also computationally expensive: generating n latent tokens requires n+1n + 1 sequential forward passes, and backpropagating through them requires storing every intermediate activation in memory.

While these difficulties are often interpreted as evidence that soft tokens are not yet ready to replace discrete CoT, we view them as an opportunity to ask a different question: rather than attempting to replace discrete reasoning, can soft tokens be used to improve standard SFT? We answer this positively by introducing Soft Teacher Forcing (Soft-TF), an algorithm that trains on random convex combinations of teacher-forced (i.e., ground-truth) embeddings and soft tokens. Given a training sequence, a single forward pass with causal masking over the ground truth yields the model's own next-token distribution at every position. Mapping these distributions back through the embedding matrix produces a soft token per position, in parallel and without any unrolled computation graph. Each input embedding is then replaced by a convex combination of its ground-truth embedding and the corresponding soft token. Soft-TF introduces no additional parameters, requires no external models or complex training curricula, and leaves both the loss and the inference procedure unchanged.

∗^{*}Work done as student researcher at Google Deepmind.

We observe consistent improvements across 4 mathematical reasoning benchmarks and 7 open-source models spanning the Gemma (Team et al., 2024a;b; 2025a), Llama (Grattafiori et al., 2024) and Mistral (Jiang et al., 2023) families. Moreover, we also outperform latent reasoning methods without the need for external models or multi-stage training. Our results establish soft tokens as a highly practical ingredient for supervised post-training, independent of their viability for latent reasoning.

References (55)

  • Mathqa: Towards interpretable math word problem solving with operation-based formalisms
  • Scheduled sampling for sequence prediction with recurrent neural networks
  • Soft tokens, hard truths
  • Journal of Machine Learning Research, 25(70):1–53, 2024
  • Training Verifiers to Solve Math Word Problems
  • From explicit cot to implicit cot: Learning to internalize cot step by step (opens arXiv in a new tab)
  • The Llama 3 Herd of Models
  • Training large language models to reason in a continuous latent space
  • Measuring mathematical problem solving with the MATH dataset
  • LoRA: Low-rank adaptation of large language models
  • Noisy embeddings improve instruction finetuning
  • Mistral 7B
  • Let's verify step by step
  • Program induction by rationale generation: Learning to solve and explain algebraic word problems
  • DeepSeek-V3 Technical Report
  • Decoupled weight decay regularization
  • Scheduled sampling for transformers (opens arXiv in a new tab)
  • Orca: Progressive learning from complex explanation traces of gpt-4 (opens arXiv in a new tab)
  • Regularizing neural networks by penalizing confident output distributions (opens arXiv in a new tab)
  • DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models
  • Adafactor: Adaptive learning rates with sublinear memory cost
  • Codi: Compressing chain-of-thought into continuous space via self-distillation
  • Token assorted: Mixing latent and text tokens for improved language model reasoning
  • Mixup-transformer: Dynamic data augmentation for nlp tasks
  • Rethinking the inception architecture for computer vision
  • Gemma: Open Models Based on Gemini Research and Technology
  • Gemma 2: Improving Open Language Models at a Practical Size
  • Gemma 3 Technical Report
  • 5: Scaling reinforcement learning with llms (opens arXiv in a new tab)
  • Attention is all you need
  • Self-consistency improves chain of thought reasoning in language models
  • Advances in neural information processing systems, 35:24824–24837, 2022
  • SIM-cot: Supervised implicit chain-of-thought
  • A learning algorithm for continually running fully recurrent neural networks
  • LLMs are single-threaded reasoners: Demystifying the working mechanism of soft thinking
  • Softcot: Soft chain-of-thought for efficient reasoning with llms
  • MAmmoTH: Building math generalist models through hybrid instruction tuning
  • mixup: Beyond empirical risk minimization
  • Soft thinking: Unlocking the reasoning potential of LLMs in continuous concept space
  • Domain generalization with mixstyle
  • The purpose of our comparison is to determine whether Soft-TF yields a real improvement over standard SFT, rather than an improvement that results from a particular training configuration
  • Each candidate is a separate run with its own cosine learning-rate schedule, whose warmup and decay are scaled to the total number of iterations
  • We use 5,000 iterations for GSM8K and MATH, 30,000 for MathQA, 50,000 for AQuA, and 10,000 iterations on Llama3.2-1B/GSM8K
  • How many clips did Natalia sell altogether in April and May? Answer: <end_of_turn> <start_of_turn>model Natalia sold 48/2 = <<48/2=24>>24 clips in May
  • what is the ratio of girls to boys ? a) 1 / 2 , b) 1 / 3 , c) 1 / 5 , d) 10 / 30 , e) 2 / 5 <end_of_turn> <start_of_turn>model if girls is 10 and boys is 20 , then 10 / 20
  • If Friend P's rate is 15% faster than Friend Q's, how many kilometers will Friend P have walked when they pass each other? Choices: A) 21 B) 21.5 C) 22 D) 22.5 E) 23 Answer:<end_of_turn> <start_of_turn>model If Q complete x kilometers, then P completes 1.15x kilometers
  • semantic homogenization
  • Find her mean score.<end_of_turn> <start_of_turn>model Text from latent: The #### #### #### #### #### Prediction: #### 72<end_of_turn> Ground truth: #### 70<end_of_turn>
  • The jar has a square base and is 6 inches by 6 inches and 15 inches tall
  • The coal is delivered in 50 kg bags, costing $18 per unit
  • Here, we report in Table 10 the results of this variant for each sampling strategy described in Section 2.4
  • Mixed and soft decoding yield identical results on all four datasets
  • Hidden states are used to construct the teacher-forced soft sequence, which is then used for training without resorting to the original sequence
  • The teacher-forced soft sequence is used for training without resorting to the original sequence
  • CoCoNut $^{\dagger}$ and SoftThinking $^{\dagger}$ are variants of CoCoNut (Hao et al., 2025) and SoftThinking (Zhang et al., 2025), respectively