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