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

      Sunshine And March Vibes (2025 Wallpapers Edition)

      May 16, 2025

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

      May 16, 2025

      How To Fix Largest Contentful Paint Issues With Subpart Analysis

      May 16, 2025

      How To Prevent WordPress SQL Injection Attacks

      May 16, 2025

      Microsoft has closed its “Experience Center” store in Sydney, Australia — as it ramps up a continued digital growth campaign

      May 16, 2025

      Bing Search APIs to be “decommissioned completely” as Microsoft urges developers to use its Azure agentic AI alternative

      May 16, 2025

      Microsoft might kill the Surface Laptop Studio as production is quietly halted

      May 16, 2025

      Minecraft licensing robbed us of this controversial NFL schedule release video

      May 16, 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

      The power of generators

      May 16, 2025
      Recent

      The power of generators

      May 16, 2025

      Simplify Factory Associations with Laravel’s UseFactory Attribute

      May 16, 2025

      This Week in Laravel: React Native, PhpStorm Junie, and more

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

      Microsoft has closed its “Experience Center” store in Sydney, Australia — as it ramps up a continued digital growth campaign

      May 16, 2025
      Recent

      Microsoft has closed its “Experience Center” store in Sydney, Australia — as it ramps up a continued digital growth campaign

      May 16, 2025

      Bing Search APIs to be “decommissioned completely” as Microsoft urges developers to use its Azure agentic AI alternative

      May 16, 2025

      Microsoft might kill the Surface Laptop Studio as production is quietly halted

      May 16, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Development»Microsoft and Stanford University Researchers Introduce Trace: A Groundbreaking Python Framework Poised to Revolutionize the Automatic Optimization of AI Systems

    Microsoft and Stanford University Researchers Introduce Trace: A Groundbreaking Python Framework Poised to Revolutionize the Automatic Optimization of AI Systems

    July 28, 2024

    Designing computational workflows for AI applications, such as chatbots and coding assistants, is complex due to the need to manage numerous heterogeneous parameters, such as prompts and ML hyper-parameters. Post-deployment errors require manual updates, adding to the challenge. The study explores optimization problems aimed at automating the design and updating of these workflows. Given their intricate nature, involving interdependent steps and semi-black-box operations, traditional optimization techniques like Bayesian Optimization and Reinforcement Learning often need to be more efficient. LLM-based optimizers have been proposed to enhance efficiency, but most still rely on scalar feedback and handle workflows with only a single component.

    Microsoft Research and Stanford University researchers propose a framework called Trace to automate the design and updating of AI systems like coding assistants and robots. Trace treats the computational workflow as a graph, similar to neural networks, and optimizes heterogeneous parameters using Optimization with Trace Oracle (OPTO). Trace efficiently converts workflows into OPTO instances, allowing a general-purpose optimizer, OptoPrime, to update parameters based on execution traces and feedback iteratively. This approach enhances optimization efficiency across various domains, outperforming specialized optimizers in tasks like prompt optimization, hyper-parameter tuning, and robot controller design.

    Existing frameworks like LangChain, Semantic Kernels, AutoGen, and DSPy allow for composing and optimizing computational workflows, mainly using scalar feedback and black-box search techniques. Unlike these, Trace uses execution tracing for automatic optimization, generalizing the computational graph to suit various workflows. Trace’s OPTO framework supports joint optimization of prompts, hyperparameters, and codes with rich feedback and adapts dynamically to changes in the workflow structure. It extends AutoDiff principles to non-differentiable workflows, enabling efficient self-adapting agents and general-purpose optimization across diverse applications, outperforming specialized optimizers in several tasks.

    OPTO forms the basis of Trace, defining a graph-based abstraction for iterative optimization. A computational graph is a DAG where nodes represent objects and edges denote input-output relationships. In OPTO, an optimizer selects parameters, and the Trace Oracle returns trace feedback consisting of a computational graph and input on the output. This feedback can include scores, gradients, or natural language hints. The optimizer uses this feedback to update parameters iteratively. Unlike black-box setups, the execution trace provides a clear path to the output, enabling efficient parameter updates. Trace leverages OPTO to optimize various workflows by abstracting design and domain-specific components.

    The LLM-based optimization algorithm OptoPrime is designed for the OPTO problem. It leverages the LLMs’ coding and debugging capabilities to handle execution trace subgraphs. Trace feedback is a pseudo-algorithm, allowing the LLM to suggest parameter updates. OptoPrime includes a memory module for tracking past parameter-feedback pairs, enhancing robustness. Experiments show OptoPrime’s efficacy in numerical optimization, traffic control, prompt optimization, and long-horizon robot control tasks. OptoPrime demonstrates superior performance compared to other optimizers, particularly when leveraging execution trace information and memory.

    Trace converts computational workflow optimization problems into OPTO problems, which is demonstrated effectively with the OPTO optimizer, OptoPrime. This marks an initial step towards a new optimization paradigm with various future directions. Enhancements in LLM reasoning, such as Chain-of-Thought, Few-Shot Prompting, Tool Use, and Multi-Agent Workflows, could improve or inspire new OPTO optimizers. A hybrid workflow combining LLM and search algorithms with specialized tools could lead to a general-purpose OPTO optimizer. Specializing the propagator for specific computations, particularly large graphs, and developing optimizers capable of counterfactual reasoning could improve efficiency. Non-textual contexts and feedback could also extend Trace’s applicability.

    Check out the Details, Project, and GitHub. 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. If you like our work, you will love our newsletter..

    Don’t Forget to join our 47k+ ML SubReddit

    Find Upcoming AI Webinars here

    The post Microsoft and Stanford University Researchers Introduce Trace: A Groundbreaking Python Framework Poised to Revolutionize the Automatic Optimization of AI Systems appeared first on MarkTechPost.

    Source: Read More 

    Facebook Twitter Reddit Email Copy Link
    Previous ArticleOpenAI Announces SearchGPT Prototype: An AI-Powered Search Engine Transforming Web Searches with Real-time Information and Enhanced Conversational AI Capabilities
    Next Article This AI Paper from China Introduces KV-Cache Optimization Techniques for Efficient Large Language Model Inference

    Related Posts

    Machine Learning

    Salesforce AI Releases BLIP3-o: A Fully Open-Source Unified Multimodal Model Built with CLIP Embeddings and Flow Matching for Image Understanding and Generation

    May 16, 2025
    Security

    Nmap 7.96 Launches with Lightning-Fast DNS and 612 Scripts

    May 16, 2025
    Leave A Reply Cancel Reply

    Continue Reading

    Microsoft’s Very Bad Day: Congress Members Express ‘Shock’ at Lax Security

    Development

    CVE-2025-3759 – Netgear IGD Unauthenticated Configuration Change Vulnerability

    Common Vulnerabilities and Exposures (CVEs)

    The best earbuds under $50: Expert tested and reviewed

    Development

    Disney hacked? NullBulge claims to have stolen 1.1 TB of data from internal Slack channels

    Development

    Highlights

    Microsoft Makes It Easier to Find That One Setting You Can Never Remember

    April 14, 2025

    With the upcoming update, users can search for any Windows settings easily on the Copilot+…

    Western Sydney University Data Breach: Impact on 7,500 Individuals

    May 21, 2024

    You can now play as Squid Game’s pink soldiers in Call of Duty: Black Ops 6 & Warzone

    January 3, 2025

    This AI Paper from NVIDIA Introduces Cosmos-Reason1: A Multimodal Model for Physical Common Sense and Embodied Reasoning

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

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