Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      Sunshine And March Vibes (2025 Wallpapers Edition)

      May 30, 2025

      The Case For Minimal WordPress Setups: A Contrarian View On Theme Frameworks

      May 30, 2025

      How To Fix Largest Contentful Paint Issues With Subpart Analysis

      May 30, 2025

      How To Prevent WordPress SQL Injection Attacks

      May 30, 2025

      Does Elden Ring Nightreign have crossplay or cross-platform play?

      May 30, 2025

      Cyberpunk 2077 sequel enters pre-production as Phantom Liberty crosses 10 million copies sold

      May 30, 2025

      EA has canceled yet another game, shuttered its developer, and started more layoffs

      May 30, 2025

      The Witcher 3: Wild Hunt reaches 60 million copies sold as work continues on The Witcher 4

      May 30, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      How Remix is shaking things up

      May 30, 2025
      Recent

      How Remix is shaking things up

      May 30, 2025

      Perficient at Kscope25: Let’s Meet in Texas!

      May 30, 2025

      Salesforce + Informatica: What It Means for Data Cloud and Our Customers

      May 30, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      Does Elden Ring Nightreign have crossplay or cross-platform play?

      May 30, 2025
      Recent

      Does Elden Ring Nightreign have crossplay or cross-platform play?

      May 30, 2025

      Cyberpunk 2077 sequel enters pre-production as Phantom Liberty crosses 10 million copies sold

      May 30, 2025

      EA has canceled yet another game, shuttered its developer, and started more layoffs

      May 30, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Development»Machine Learning»O1-Pruner: Streamlining Long-Thought Reasoning in Language Models

    O1-Pruner: Streamlining Long-Thought Reasoning in Language Models

    January 24, 2025

    Large language models (LLMs) have introduced impressive capabilities, particularly in reasoning tasks. Models like OpenAI’s O1 utilize “long-thought reasoning,” where complex problems are broken into manageable steps and solutions are refined iteratively. While this approach enhances problem-solving, it comes at a cost: extended output sequences lead to increased computational time and energy use. These inefficiencies raise concerns about scalability and the practical usability of such models in real-world applications. Addressing this issue is essential for making LLMs more efficient and broadly applicable.

    Researchers from Sun Yat-sen University, China Agriculture University, Tsinghua University, the University of Oxford, Didichuxing, and NTU propose Length-Harmonizing Fine-Tuning (O1-Pruner). This technique seeks to reduce the inefficiencies in reasoning models while maintaining accuracy. The primary focus is on optimizing token usage, which is a significant bottleneck in current models. O1-Pruner uses reinforcement learning (RL) techniques to encourage the generation of shorter reasoning paths without sacrificing precision.

    The process begins with evaluating baseline performance through pre-sampling. A customized RL-style loss function then fine-tunes the model’s reasoning length, ensuring that the generated solutions are proportional to the complexity of the problem. By aligning reasoning length with task difficulty, O1-Pruner reduces computational costs without compromising on quality.

    Technical Details and Benefits of O1-Pruner

    At the heart of O1-Pruner is the Length-Harmonizing Fine-Tuning approach, which balances reasoning length and accuracy. The key steps include:

    1. Reference Model Sampling: A reference model evaluates reasoning quality and length by generating multiple solutions for each problem, creating a performance benchmark.
    2. Reward Function Design: This involves two components:
      • Length Reward: Shorter solutions relative to the reference model are encouraged.
      • Accuracy Reward: Ensures that shorter reasoning paths do not compromise correctness.
    3. Reinforcement Learning Framework: Proximal Policy Optimization (PPO) is used to train the model efficiently. Off-policy training further simplifies the workflow and reduces training complexity.

    The benefits of O1-Pruner include:

    • Improved Efficiency: Reduces redundant computations, leading to faster inference.
    • Accuracy Preservation: Ensures that shorter solutions maintain or even enhance accuracy.
    • Task Adaptability: Dynamically adjusts reasoning depth based on problem complexity, making it applicable to a variety of tasks.

    Results and Insights

    Experiments on mathematical reasoning benchmarks such as MATH, GSM8K, and GaoKao showcase O1-Pruner’s effectiveness. For example:

    • The Marco-o1-7B model, fine-tuned with O1-Pruner, achieved a 40.5% reduction in solution length while improving accuracy to 76.8%.
    • The QwQ-32B-Preview model demonstrated a 34.7% reduction in solution length alongside a slight accuracy increase to 89.3%.

    Inference time also improved significantly. On the MATH dataset:

    Hostinger
    • Marco-o1-7B reduced its inference time from 2 minutes to just over 1 minute.
    • QwQ-32B-Preview decreased from 6 minutes to approximately 4 minutes.

    These results highlight O1-Pruner’s ability to balance accuracy and efficiency. Its superior performance, as measured by the Accuracy-Efficiency Score (AES), establishes it as a better alternative to other methods like Supervised Fine-Tuning (SFT) and Direct Preference Optimization (DPO).

    Conclusion

    O1-Pruner demonstrates that efficient reasoning in LLMs is achievable without compromising accuracy. By harmonizing reasoning length with problem complexity, it addresses the computational inefficiencies inherent in long-thought reasoning. This work lays the groundwork for further advancements in optimizing reasoning models, enabling their application in diverse, real-world scenarios where efficiency and accuracy are equally critical.


    Check out the Paper and GitHub Page. All credit for this research goes to the researchers of this project. Also, don’t forget to follow us on Twitter and join our Telegram Channel and LinkedIn Group. Don’t Forget to join our 70k+ ML SubReddit.

    🚨 [Recommended Read] Nebius AI Studio expands with vision models, new language models, embeddings and LoRA (Promoted)

    The post O1-Pruner: Streamlining Long-Thought Reasoning in Language Models appeared first on MarkTechPost.

    Source: Read More 

    Facebook Twitter Reddit Email Copy Link
    Previous ArticleMicrosoft AI Introduces Sigma: An Efficient Large Language Model Tailored for AI Infrastructure Optimization
    Next Article Mobile-Agent-E: A Hierarchical Multi-Agent Framework Combining Cognitive Science and AI to Redefine Complex Task Handling on Smartphones

    Related Posts

    Machine Learning

    How to Evaluate Jailbreak Methods: A Case Study with the StrongREJECT Benchmark

    May 30, 2025
    Machine Learning

    World-Consistent Video Diffusion With Explicit 3D Modeling

    May 30, 2025
    Leave A Reply Cancel Reply

    Continue Reading

    Microsoft Build: GitHub Copilot coding agent, Azure AI Foundry updates, support for MCP, and more

    Tech & Work

    I tested the AI voice recorder that’s got the work industry buzzing – and it did not disappoint

    News & Updates

    Vuedeux: The Vuex to Redux Binding

    Development

    I’m an audiophile, and these $150 wireless earbuds for gaming had me fooled

    News & Updates
    Hostinger

    Highlights

    Sony cuts PS Plus prices for select Asian countries during Lunar New Year promo

    January 22, 2025

    Sony is offering yet another discount for its PS Plus subscription prices. This time, it’s…

    Russian Hackers Target Europe with HeadLace Malware and Credential Harvesting

    May 31, 2024

    Uno Platform 5.3 adds full support for JetBrains Rider

    July 27, 2024

    Why Continuous Compliance Monitoring Is Essential For IT Managed Service Providers

    March 20, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.