I want to understand how Reasoning works in LLM models, like thinking models, how are they trained

Shared on August 13, 2025 by Manas Jain
Searching academic papers for reasoning in LLMs neural network mechanisms, found 168 papers

Large Language Models (LLMs) exhibit a variety of sophisticated reasoning behaviors that have been the subject of substantial recent research. Here’s an overview, broken down into two main aspects: how reasoning works ("thinking models") and how models are trained to develop reasoning abilities.


How Reasoning Works in LLMs ("Thinking Models")

LLMs perform reasoning by generating "chains of thought"—stepwise, interpretable sequences of internal thought or intermediate steps—which can be prompted directly or emerge naturally during problem-solving. Techniques such as Chain-of-Thought (CoT) prompting guide the model to break down complex tasks into logical substeps, simulating a human-like "think-aloud" process and enhancing both problem-solving performance and explainability[1] .

Recent advancements in "thinking models" have shown that LLMs can be engineered to internally generate and iterate multiple reasoning paths, reflect on their work, and even self-correct errors during the process[2] . Research has introduced frameworks that analyze and manipulate these thinking steps—such as steering vectors, which control specific reasoning behaviors (e.g., uncertainty, hypothesis generation) within the model’s hidden activations, making the reasoning more interpretable and steerable[3] . Some models now use meta-cognitive strategies, like "inner monologue" or "self-refinement," wherein the model critiques and refines its own answers, closely mimicking elements of human thought[4] .

Various architectures and approaches—including dual-process models, graph-based reasoning, and visual reasoning frameworks—have been implemented to further improve diverse types of reasoning, from logical planning and social inference to analogical and multi-modal reasoning[5] , [6] , [7] , [8] .


How Are LLMs Trained for Reasoning?

LLM reasoning capabilities are rooted both in their architectural features and in specific training strategies:

  1. Pretraining on Large Text Corpora
    LLMs initially learn by predicting the next word in vast and diverse text datasets—acquiring associative, linguistic, and sometimes factual knowledge from the data[9] . However, this alone isn’t sufficient for robust and transparent reasoning[10] .

  2. Supervised Fine-Tuning with Reasoning Data
    Additional supervised fine-tuning involves providing explicit "reasoning traces" or CoT examples as demonstrations. This helps the model to practice and internalize structured, multi-step thought patterns[11] , [1] . Specialized datasets, particularly in mathematics, science, and logic, are increasingly used for this purpose[12] , [13] .

  3. Reinforcement Learning (RL) Approaches
    Reinforcement Learning with Human Feedback (RLHF) and related approaches are employed to teach models to produce better, more logical, and user-aligned outputs by receiving rewards for correct or interpretable reasoning chains[14] , [15] . More recent RL extensions, like group relative policy optimization and multi-agent setups, foster more robust and introspective reasoning by emulating meta-cognitive debate among multiple model "agents"[15] .

  4. Retrieval-Augmented Reasoning
    LLMs' built-in knowledge is static. Retrieval-augmented generation (RAG) approaches allow models to query external sources during reasoning, pulling in current or domain-specific facts that enhance multi-step logical inference, particularly in open-domain or knowledge-intensive settings[16] , [17] , [18] .

  5. Specialized Training Techniques
    Advanced methods include adaptive curriculum learning (gradually increasing problem complexity), dynamic resource allocation for "hard" reasoning, guided exploration for stepwise solving, preference optimization to balance accuracy with reasoning length, and novel architectures designed to explicitly separate and refine "thinking" phases[1] , [19] .

  6. Multi-Modal and Graph-based Reasoning
    For tasks that require grounding in images, graphs, or sensor data, multimodal models combine language with other representations and employ logical planning or graph neural modules for structured reasoning[20] , [21] , [6] .

  7. Self-Improvement and Latent Reasoning
    Models are increasingly trained to improve their own reasoning by generating, critiquing, and revising internal thought steps—not just at inference but during training, unlocking latent reasoning abilities and reducing errors from memorization or overfitting[22] , [23] .


Key Findings and Open Problems

  • Fine-tuned and RL-trained LLMs with specialized reasoning traces or chain-of-thought data generally outperform models trained purely for language[1] , [24] .
  • Longer, explicit reasoning chains often help, but excessive "overthinking" can reduce accuracy or clarity, leading to innovations like ReCUT for optimizing reasoning length[1] .
  • Meta-reasoning (thinking about one's own reasoning) and the integration of external reasoning tools (graphs, solvers) are frontiers for achieving more general, reliable reasoning[15] , [7] .
  • Robustness to "hallucinations" and domain adaptation remain challenges, with retrieval-augmentation and human-in-the-loop tuning as promising solutions[16] , [25] .

Example Table: Reasoning Training Techniques

Training TechniqueDescriptionExample Use
Chain-of-thought (CoT)Explicit step-by-step reasoning tracesMath problems, logic puzzles
RL with human feedback (RLHF)Reward-based refinement of outputsSafer, aligned dialogue
Retrieval-Augmented GenerationLooks up external facts while reasoningOpen-domain QA, current events
Self-refinement/ReflectionModel critiques and revises own stepsComplex multi-hop tasks
Graph-based learningInternal graph or GNN module assists stepsKnowledge graphs, structured planning
Curriculum/adaptive learningGradual increase in reasoning difficultyMathematical benchmarks

Would you like deeper details on any of these techniques (e.g., reinforcement learning, graph-based reasoning, multi-modal approaches), or a visual diagram of common LLM reasoning architectures? If you have a particular reasoning domain (like medical or mathematical problem solving) you’re interested in, I can provide further tailored insights and recent research exemplars. Let me know how you’d like to explore next!

Comments & Discussion