A Faster Way to Solve One of AI's Hardest Maths Problems
Researchers from Apple ML Research have found a shortcut through a calculation that slows down high-dimensional AI comparisons, making a useful technique practical for the first time at scale.

Key points
- Kernel-based optimal transport estimators are more statistically accurate than standard alternatives for comparing data in high dimensions, but have been too slow to use at scale.
- The bottleneck is a solving method called the short-step interior-point method, which requires a large number of calculation rounds in practice.
- Apple ML Research researchers developed a specialised Newton method that cuts the number of rounds required and makes these estimators usable on realistic datasets.
- The improvement matters for AI tasks that need to measure how similar two sets of data are, including generative models and distribution shift detection.
What is optimal transport, and why does it matter?
Optimal transport is a way of measuring how different two collections of data are from each other. Imagine you run a chain of bakeries and want to move flour from your warehouses to your shops as cheaply as possible. Optimal transport calculates the cheapest plan. In AI, the "flour" and "shops" are replaced by data points, and the question becomes: how do you mathematically describe the gap between, say, real photos and AI-generated ones?
Researchers use it constantly. It sits inside generative models, quality checks, and tools that detect when an AI has started seeing data very different from what it was trained on.
So what was the problem?
Two main approaches exist. The simpler one, called a plug-in or linear programming estimator, is fast but increasingly inaccurate as the number of dimensions in the data grows. Think of dimensions as the number of measurements you record per item: a photo has millions.
Kernel-based estimators, the more statistically sound alternative, fix that accuracy problem. But they pay a steep price for it. Their calculation depends on a technique called the short-step interior-point method, which in plain terms means the computer must repeat the same solving loop hundreds or thousands of times before arriving at an answer. On large datasets, that becomes impractically slow.
What did the researchers actually do?
The team, whose work draws on earlier findings by Vacher et al. (2021) on the statistical advantages of kernel-based estimators, designed a specialised semismooth Newton method, a different style of solver that takes much longer strides through the maths on each step.
Where the old method shuffles forward in small, careful increments, the new one reasons about the shape of the problem and jumps. Fewer steps means less computation, which means answers arrive in a fraction of the previous time.
What happens next?
This is a research paper, not a product launch. Ordinary users will not download an app tomorrow. The practical effect lands on engineers and data scientists building AI systems that need to compare data distributions, the underlying patterns in a dataset.
For those builders, kernel-based optimal transport goes from a textbook option to a real one. Generative AI tools that need to check whether their output matches reality, medical AI systems comparing patient populations, and fraud detection models watching for shifts in transaction patterns could all benefit.
Common questions
Does this affect any AI tool I already use?
Not directly and not yet. The improvement is at the research level, and it would need to be adopted by engineers building specific systems before end users notice anything.
Why does high-dimensional data make the old approach so inaccurate?
As the number of measurements per data point grows, the space those points inhabit becomes enormous. The simpler linear programming method loses its grip on that space and produces noisier estimates. Kernel-based methods are designed to handle that expansion more gracefully, which is why getting them to run faster matters.



