Ultralytics YOLO27: Join the waitlist.
License YOLO
Back to Ultralytics Glossary

Reasoning Models

Reasoning models are LLMs trained with reinforcement learning to write a long chain of thought before answering. Covers o1, DeepSeek-R1, and limits.

A reasoning model is a large language model (LLM) trained to generate a long internal chain of thought before its final answer, so it can spend more computation on harder problems. OpenAI introduced the category with o1 on September 12, 2024: on the 2024 AIME math competition, GPT-4o solved 12% of problems on average, while o1 solved 74% with one sample per problem, 83% with a consensus vote over 64 samples, and 93% when a learned scoring function reranked 1,000 samples. o1 also surpassed the accuracy of human PhD experts on the GPQA science benchmark. DeepSeek-R1, Google's Gemini thinking models, Anthropic's Claude with extended thinking, and Alibaba's Qwen3 followed, and many current models are hybrids that answer quickly or think at length depending on a setting.

How Reasoning Models Are Trained#

Chain-of-thought prompting showed in 2022 that asking a model to write intermediate steps improves its answers. Reasoning models learn that behavior through reinforcement learning (RL) on problems whose answers can be checked automatically, an approach called reinforcement learning with verifiable rewards (RLVR). DeepSeek described the recipe in its DeepSeek-R1 paper in January 2025. Its R1-Zero model started from the DeepSeek-V3 base model and trained with Group Relative Policy Optimization (GRPO), rewarded only for a correct final answer and for the right output format:

No step-by-step examples were provided, yet R1-Zero's pass@1 accuracy on AIME 2024 rose from 15.6% to 71.0%, and to 86.7% with majority voting. Its responses grew longer during training, and the model began to re-check and revise its own steps, a moment the authors called an "aha moment." The released DeepSeek-R1 first trained on a few thousand curated long reasoning examples for readability and reached 79.8% on AIME 2024, and DeepSeek distilled its reasoning traces into smaller Qwen and Llama models. A process reward model (PRM) that scores each step is the main alternative to these outcome rewards, though DeepSeek reported that PRMs and Monte Carlo tree search did not pay off in its large-scale training.

Test-Time Compute#

A reasoning model's accuracy rises with the number of tokens it spends thinking, a second axis of scaling laws beside model size and training data. APIs expose this as a reasoning effort or thinking budget, and accuracy can rise further by sampling several answers in parallel and voting or by searching over partial solutions with a verifier. The cost is latency and tokens: a hard problem can consume thousands of hidden reasoning tokens before the first word of the answer. The Ultralytics LLM interface forwards request arguments unchanged to the OpenAI SDK, so a YOLO26 pipeline can pass reasoning={"effort": "high"} to a reasoning model through the Responses API when a detected scene needs a deliberate answer.

OpenAI's o3 and o4-mini, released in April 2025, extended the chain of thought to images, cropping, zooming, and rotating a photo while reasoning about it. This visual reasoning helps with visual question answering (VQA) on small text, charts, and cluttered scenes.

Limits#

Reasoning models overthink simple questions, spending tokens where a direct answer would do, and they still fail unpredictably on some easy tasks, a pattern known as jagged intelligence. RL on checkable answers rewards outcomes, so a model can learn shortcuts that pass the checker, a form of reward hacking. The written chain of thought is also an imperfect record of the computation: in an Anthropic study published in April 2025, models given a hint that changed their answer mentioned the hint only 25% of the time for Claude 3.7 Sonnet and 39% of the time for DeepSeek-R1.

  • Chain-of-thought prompting: Prompts any LLM to write out its steps at inference time, the behavior reasoning models are trained to produce unprompted.
  • System 2 thinking: The psychology term for slow, deliberate reasoning that the field borrows to describe what reasoning models do.
  • Latent reasoning: Reasoning carried out in hidden-state vectors instead of written tokens, which leaves no readable trace.
  • Tree of thoughts: An explicit search over branching chains of thought, guided by the model's own evaluation of each branch.

Explore solutions

Computer vision in sports

Computer vision in sports

Discover how Ultralytics YOLO powers sports vision with player and ball tracking, performance analytics, coaching insights, and athlete rehabilitation.
Learn more
Computer vision for aerial imagery

Computer vision for aerial imagery

Turn drone and aerial imagery into real-time insights for agriculture, aquaculture, conservation, and geospatial analysis with Ultralytics YOLO.
Learn more
Computer vision in aerospace

Computer vision in aerospace

Apply computer vision in aerospace with Ultralytics YOLO for aircraft inspection, runway FOD detection, airport ground operations, and composite defect detection.
Learn more
Computer vision in security

Computer vision in security

Protect every site with Ultralytics YOLO models. Vision AI powers perimeter monitoring, threat detection, license-plate recognition, and workplace safety.
Learn more
Computer vision in robotics

Computer vision in robotics

Power smarter machines with Ultralytics YOLO models. Vision AI in robotics drives autonomous navigation, perception, object tracking, and real-time control.
Learn more
Computer vision in logistics

Computer vision in logistics

Streamline logistics with Ultralytics YOLO models. Vision AI enables package inspection, sorting, vehicle tracking, and real-time warehouse safety monitoring.
Learn more
Computer vision in retail

Computer vision in retail

Reimagine retail with Ultralytics YOLO models. Vision AI powers inventory tracking, shelf monitoring, queue management, and smarter customer insights.
Learn more
Computer vision in healthcare

Computer vision in healthcare

Build healthcare solutions with Ultralytics YOLO models. Vision AI in healthcare powers faster medical imaging, smarter diagnostics, and patient monitoring.
Learn more
Computer vision in manufacturing

Computer vision in manufacturing

Optimize manufacturing with Ultralytics YOLO models. Vision AI drives quality control, defect detection, PPE compliance, and assembly line automation.
Learn more
Computer vision in automotive

Computer vision in automotive

Apply computer vision in automotive with Ultralytics YOLO models. Vision AI elevates road safety, driver assistance, and vehicle automation for smarter roads.
Learn more
Computer vision in agriculture

Computer vision in agriculture

Bring vision AI to smart agriculture with Ultralytics YOLO models. Power crop monitoring, livestock tracking, and precision farming for higher, smarter yields.
Learn more

Let's build the future of AI together!

Begin your journey with the future of machine learning