OptiMind: Teaching small language models to think like optimization experts

Microsoft Research · Advanced ·🧠 Large Language Models ·4mo ago

Key Takeaways

OptiMind, a specialized language model, translates natural-language problem descriptions into solver-ready mathematical optimization formulations, making advanced optimization more accessible by removing expertise-intensive bottlenecks in optimization workflows.

Full Transcript

Optimization problems usually start in plain language. Notes, constraints, and ideas written by humans. Turning those into clean, solverready math is often the hardest part. I have the pleasure of working with closely our next speaker Shinshi, a research intern at MSR Redmond and a PhD student at the University of Washington. She will introduce Optim, a specialized language model designed to close that gap by translating natural language problem descriptions directly into formal optimization models. This work pushes the state-of-the-art in AI reasoning while also improving reliability in systems where correctness really matters. Let's dive into the details and new capabilities of Optim. Hi everyone, I'm Shinu, a research intern in the machine learning and optimization group here at Microsoft research and a PhD student at the University of Washington. Optimization is the engine behind the world's most critical systems from global supply chains to logistics planning and vehicle routing. Today I want to introduce Optim, which is our new 20 billion parameter reasoning model designed to translate natural language problems into a mixed integer linear programming formulations and a corresponding solver code. Essentially, it acts like an operations research expert to solve complex tasks in real life. In this project, which was a collaboration with the amazing MLO team here at Microsoft Research, we made two core contributions. First, we develop a way to clean up incredibly noisy optimization data using the expert knowledge. And second, we train a small model that matches the frontier level performance. The task of optim works as follows. A user describes in natural language a problem that involves some decisions that should be optimized. For example, please provide me an optimal production plan to maximize the profits across 6 months given the specific capacity constraints. And the role of the language model is to generate the mathematical formulation corresponding to the problem and in the form of an executable solver code so that the user could run and get an optimal solution. And when we inspect the existing data sets and benchmarks in this domain, we found severe data quality issues. This applies to both the training data set and the benchmarks used for testing. And in fact, we saw some training sets with up to 50% of the problematic instances which include missing constraints, ambiguous descriptions or wrong solutions. While we could manually clean the test benchmarks to ensure rigorous evaluations, fixing the massive training set is much more difficult. Training on the dirty data was like teaching a student with a textbook full of mistakes. So the first research question became with such noisy data, how can we still train a competitive and reliable model? To solve this, we started by analyzing how models fail when answering the training questions. We notice that within specific optimization classes, models make the same structural mistakes repeatedly. Take the traveling salesman problem as an example. Models consistently mishandle the subour elimination constraints. Specifically, they often incorrectly apply the constraints to the starting node and the result this generates infeasible and disconnected loops instead of one continuous route. However, we found that if we add specific hints that could explicitly instruct the model how to handle the starting node, it will fix the logic. The model will follow the hint and generate a correct and feasible formulation. And this gave us a key insight. We don't need to manually fix every data point and instead our experts can identify these failure modes and write a library of expert hints. And think of the hints as a guard rail. Simple instructions like enforcing flow conservation or setting the big M number as the maximum variable instead of a fixed number will warn the model about these specific pitfalls before even starts generating the solution. So we utilize the hints in two workflows. First for data cleaning. We first classify the noisy training data and pair it with the specific hint. We then feed this to a teacher model which uses the hint to reason correctly and regenerate a clean solution. And finally apply majority voting to ensure robustness. This use a rigorous and expert quality data set with minimum human intervention. We then use this clean data to supervise fine-tune our base model which is GPTOSS 20 billion. And crucially we repeat this pipeline at inference time. When the user query comes in, we first classify the problem type by identifying it for example as a traveling salesman problem. We then retrieve the specific expert hint and fit it with both the user's question and the hint um into our model to solve the problem. And if the compute budget allows, we go a step further. We utilize the error messages from the solver to perform the multi-turn selfcorrection, ensuring the final code is executable and valid. So our results are very compelling on the clean benchmarks industry o memo complex and ops mass optim consistently outperform the other open source reasoning models under 32 billion parameters by at least 10%. And when we compare against frontier models like GPT5 and 04 mini, we see that with just five tons of cell correction, we match their performance and sometimes even outperform them. And remember, we achieving this frontier level performance with only 20 billion parameters. The small scale of a model is also critical for local deployments. It allows organizations to keep sensitive supply chain data privately on their own GPUs and it makes the research reproducible and accessible for the community. So to summarize, we prove that you can train a competitive domain specific model starting from the noisy data by first distilling expert knowledge into reusable hints. And we believe that applying optimization in industrial practice should be a community effort. So we have open source our model the clean benchmarks and our examples of expert hints so the others can built on top of optim and looking ahead we're also working on fully automated pipelines using frontier models so this approach can easily adapt to new areas such as cloud efficiency calendar scheduling urban planning and more. While we focus on standard optimization families, we hope the community will use our methods to explore new and less standard optimization domains. So, I would like to thank all of you for tuning into this talk. Here are some resources if you're interested to learn more about this project and start using the models.

Original Description

OptiMind is a specialized language model that translates natural-language problem descriptions directly into solver-ready mathematical optimization formulations. This removes one of the most expertise-intensive bottlenecks in optimization workflows and makes advanced optimization more accessible. Technical report: https://aka.ms/OptiMindReport Microsoft Blog: https://aka.ms/OptiMindBlog Microsoft Foundry Catalog: https://aka.ms/OptiMindCatalog Hugging Face: https://aka.ms/OptiMindHF GitHub: https://aka.ms/OptiGuideGithub This session aired on March 3, 2026, at Microsoft Research Forum, Season 2 Episode 3. Register for the series to learn about future episodes: https://events.microsoft.com/flow/ms/researchforum/register/page/microsoftresearchforumreg/?OCID=msr_researchforum_YTDescription Explore all previous episodes: https://aka.ms/researchforumYTplaylist
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from Microsoft Research · Microsoft Research · 0 of 60

← Previous Next →
1 Frontiers in ML: Learning from Limited Labeled Data: Challenges and Opportunities for NLP
Frontiers in ML: Learning from Limited Labeled Data: Challenges and Opportunities for NLP
Microsoft Research
2 Frontiers in Machine Learning: Climate Impact of Machine Learning
Frontiers in Machine Learning: Climate Impact of Machine Learning
Microsoft Research
3 Frontiers in Machine Learning: Security and Machine Learning
Frontiers in Machine Learning: Security and Machine Learning
Microsoft Research
4 Hope Speech and Help Speech: Surfacing Positivity Amidst Hate
Hope Speech and Help Speech: Surfacing Positivity Amidst Hate
Microsoft Research
5 Early Indicators of the Effect of the Global Shift to Remote Work on People with Disabilities
Early Indicators of the Effect of the Global Shift to Remote Work on People with Disabilities
Microsoft Research
6 Remote Work and Well-Being
Remote Work and Well-Being
Microsoft Research
7 Challenges and Gratitude of Software Developers During COVID-19 Working From Home
Challenges and Gratitude of Software Developers During COVID-19 Working From Home
Microsoft Research
8 Towards a Practical Virtual Office for Mobile Knowledge Workers
Towards a Practical Virtual Office for Mobile Knowledge Workers
Microsoft Research
9 Impact of COVID-19 crisis on the future of work in India
Impact of COVID-19 crisis on the future of work in India
Microsoft Research
10 Empowering and Supporting Remote Software Development Team Members through a Culture of Allyship
Empowering and Supporting Remote Software Development Team Members through a Culture of Allyship
Microsoft Research
11 How Work From Home Affects Collaboration: Information Workers in a Natural Experiment During COVID19
How Work From Home Affects Collaboration: Information Workers in a Natural Experiment During COVID19
Microsoft Research
12 Phong Surface: Efficient 3D Model Fitting using Lifted Optimization
Phong Surface: Efficient 3D Model Fitting using Lifted Optimization
Microsoft Research
13 Managing Tasks Across the Work-Life Boundary: Opportunities, Challenges, and Directions
Managing Tasks Across the Work-Life Boundary: Opportunities, Challenges, and Directions
Microsoft Research
14 Microsoft Urban Futures Summer Workshop | Data Driven Urban Transformation [Day 1]
Microsoft Urban Futures Summer Workshop | Data Driven Urban Transformation [Day 1]
Microsoft Research
15 Microsoft Urban Futures Summer Workshop | Sensors and Data [Day 2]
Microsoft Urban Futures Summer Workshop | Sensors and Data [Day 2]
Microsoft Research
16 Microsoft Urban Futures Summer Workshop | Policy and Social Impact [Day 3]
Microsoft Urban Futures Summer Workshop | Policy and Social Impact [Day 3]
Microsoft Research
17 Directions in ML: Algorithmic foundations of neural architecture search
Directions in ML: Algorithmic foundations of neural architecture search
Microsoft Research
18 MineRL Competition 2020
MineRL Competition 2020
Microsoft Research
19 Can we make better software by using ML and AI techniques? With Chandra Maddila and Chetan Bansal
Can we make better software by using ML and AI techniques? With Chandra Maddila and Chetan Bansal
Microsoft Research
20 From Paper to Product
From Paper to Product
Microsoft Research
21 SkinnerDB: Regret Bounded Query Evaluation using RL
SkinnerDB: Regret Bounded Query Evaluation using RL
Microsoft Research
22 From SqueezeNet to SqueezeBERT: Developing Efficient Deep Neural Networks
From SqueezeNet to SqueezeBERT: Developing Efficient Deep Neural Networks
Microsoft Research
23 Programming with Proofs for High-assurance Software
Programming with Proofs for High-assurance Software
Microsoft Research
24 Platform for Situated Intelligence Overview
Platform for Situated Intelligence Overview
Microsoft Research
25 Directional Sources & Listeners in Interactive Sound Propagation using Reciprocal Wave Field Coding
Directional Sources & Listeners in Interactive Sound Propagation using Reciprocal Wave Field Coding
Microsoft Research
26 Galactic Bell Star Music Demo
Galactic Bell Star Music Demo
Microsoft Research
27 Importing Animations in Microsoft Expressive Pixels (9 of 9)
Importing Animations in Microsoft Expressive Pixels (9 of 9)
Microsoft Research
28 Welcome to Microsoft Expressive Pixels (1 of 9)
Welcome to Microsoft Expressive Pixels (1 of 9)
Microsoft Research
29 Getting Started with Microsoft Expressive Pixels (2 of 9)
Getting Started with Microsoft Expressive Pixels (2 of 9)
Microsoft Research
30 Creating an Image in Microsoft Expressive Pixels (3 of 9)
Creating an Image in Microsoft Expressive Pixels (3 of 9)
Microsoft Research
31 Creating Animations in Microsoft Expressive Pixels (4 of 9)
Creating Animations in Microsoft Expressive Pixels (4 of 9)
Microsoft Research
32 Managing Animation Galleries in Microsoft Expressive Pixels (5 of 9)
Managing Animation Galleries in Microsoft Expressive Pixels (5 of 9)
Microsoft Research
33 Creating Fragments in Microsoft Expressive Pixels (6 of 9)
Creating Fragments in Microsoft Expressive Pixels (6 of 9)
Microsoft Research
34 Using Layers in Microsoft Expressive Pixels (7 of 9)
Using Layers in Microsoft Expressive Pixels (7 of 9)
Microsoft Research
35 Exporting Animations with Microsoft Expressive Pixels (8 of 9)
Exporting Animations with Microsoft Expressive Pixels (8 of 9)
Microsoft Research
36 What Kind of Computation is Human Cognition? A Brief History of Thought (Episode 2/2)
What Kind of Computation is Human Cognition? A Brief History of Thought (Episode 2/2)
Microsoft Research
37 What Kind of Computation is Human Cognition? A Brief History of Thought (Episode 1/2)
What Kind of Computation is Human Cognition? A Brief History of Thought (Episode 1/2)
Microsoft Research
38 Planeverb: Interactive sound propagation for dynamic scenes using 2D wave simulation
Planeverb: Interactive sound propagation for dynamic scenes using 2D wave simulation
Microsoft Research
39 Making cryptography accessible, efficient, and scalable with Dr. Divya Gupta and Dr. Rahul Sharma
Making cryptography accessible, efficient, and scalable with Dr. Divya Gupta and Dr. Rahul Sharma
Microsoft Research
40 Beyond the mega-data center: networking multi-data center regions (SIGCOMM 2020 Talk)
Beyond the mega-data center: networking multi-data center regions (SIGCOMM 2020 Talk)
Microsoft Research
41 Optics for the cloud – Light at the end of the tunnel? (SIGCOMM 2020 Workshop)
Optics for the cloud – Light at the end of the tunnel? (SIGCOMM 2020 Workshop)
Microsoft Research
42 Beyond the mega-data center: networking multi-data center regions (SIGCOMM 2020 short talk)
Beyond the mega-data center: networking multi-data center regions (SIGCOMM 2020 short talk)
Microsoft Research
43 Sirius: A Flat Datacenter Network with Nanosecond Optical Switching (SIGCOMM 2020 short talk)
Sirius: A Flat Datacenter Network with Nanosecond Optical Switching (SIGCOMM 2020 short talk)
Microsoft Research
44 Novel Image Captioning
Novel Image Captioning
Microsoft Research
45 Forest Sound Scene Simulation and Bird Localization with Distributed Microphone Arrays
Forest Sound Scene Simulation and Bird Localization with Distributed Microphone Arrays
Microsoft Research
46 Decoding Music Attention from “EEG headphones”: a User-friendly Auditory Brain-computer Interface
Decoding Music Attention from “EEG headphones”: a User-friendly Auditory Brain-computer Interface
Microsoft Research
47 How does holographic storage work?
How does holographic storage work?
Microsoft Research
48 The physics of hologram formation in iron doped lithium niobate
The physics of hologram formation in iron doped lithium niobate
Microsoft Research
49 Introduction to coax: A Modular RL Package
Introduction to coax: A Modular RL Package
Microsoft Research
50 Directions in ML: "Neural architecture search: Coming of age"
Directions in ML: "Neural architecture search: Coming of age"
Microsoft Research
51 Microsoft Research AI Breakthroughs 2020: 20 minute research talks + Q&A panel
Microsoft Research AI Breakthroughs 2020: 20 minute research talks + Q&A panel
Microsoft Research
52 Fireside Chat with Johannes Gehrke during Microsoft Research AI Breakthroughs 2020
Fireside Chat with Johannes Gehrke during Microsoft Research AI Breakthroughs 2020
Microsoft Research
53 Fireside Chat with Susan Dumais during Microsoft Research AI Breakthroughs 2020
Fireside Chat with Susan Dumais during Microsoft Research AI Breakthroughs 2020
Microsoft Research
54 Microsoft Research AI Breakthroughs 2020: 20 minute research talks, Q&A panel, and event wrap-up
Microsoft Research AI Breakthroughs 2020: 20 minute research talks, Q&A panel, and event wrap-up
Microsoft Research
55 Clinical Research with FHIR
Clinical Research with FHIR
Microsoft Research
56 Soundscape Street Preview
Soundscape Street Preview
Microsoft Research
57 Tilt-Responsive Techniques for Digital Drawing Boards
Tilt-Responsive Techniques for Digital Drawing Boards
Microsoft Research
58 SurfaceFleet: Exploring Distributed Interactions Unbounded from Device, Application, User, and Time
SurfaceFleet: Exploring Distributed Interactions Unbounded from Device, Application, User, and Time
Microsoft Research
59 Haptic PIVOT: On-Demand Handhelds in VR
Haptic PIVOT: On-Demand Handhelds in VR
Microsoft Research
60 SurfaceFleet Supplemental Video Demonstration (UIST 2020)
SurfaceFleet Supplemental Video Demonstration (UIST 2020)
Microsoft Research

OptiMind is a specialized language model that translates natural-language problem descriptions into solver-ready mathematical optimization formulations, making advanced optimization more accessible. This session explores the capabilities and applications of OptiMind. By watching this video, viewers can learn how to apply LLMs to optimization problems and design solver-ready formulations.

Key Takeaways
  1. Identify natural-language problem descriptions
  2. Translate descriptions into mathematical optimization formulations
  3. Integrate formulations with optimization workflows
  4. Apply LLMs to optimization problems
  5. Evaluate the effectiveness of OptiMind
💡 OptiMind removes expertise-intensive bottlenecks in optimization workflows, making advanced optimization more accessible.

Related Reads

📰
Build an AI Slack Member Research Agent with OpenAI, LangChain & PostgreSQL
Learn to build an AI Slack member research agent using OpenAI, LangChain, and PostgreSQL to streamline community management
Medium · AI
📰
Beyond Syntax: How Postcheck is closing the AI Code execution gap
Learn how Postcheck closes the AI code execution gap by providing environmental context beyond syntax, enabling LLMs to produce working code
Medium · LLM
📰
Your LLM can't actually watch video. Here's the smallest fix (MIT)
Learn to convert videos into formats LLMs can read, enabling true multimodal understanding
Dev.to AI
📰
Open-Weight LLM API Integration: A Developer's Guide to Building with Accessible AI
Learn to integrate Open-Weight LLM APIs for accessible AI development, enabling developers to build innovative applications with ease
Dev.to · NovaStack
Up next
5 Levels of AI Agents - From Simple LLM Calls to Multi-Agent Systems
Dave Ebbelaar (LLM Eng)
Watch →