PapersSelected

Sakana AI 用 ShinkaEvolve 自动发现更快的最小二乘算法,粒子物理回归任务提速 2 倍

Why we picked it

Sakana AI 把 ShinkaEvolve 用在数值算法搜索上,LLM 改写最小二乘代码,比 SciPy 默认求解器快很多,还附带可证明的停止规则。做科学计算或机器学习回归的人可以直接拿开源代码跑一轮,一夜成本换长期提速。

Sakana AI 发布论文《From Worst Case to Practical Case: Automated Discovery of Faster Algorithms for Least Squares》,提出用 LLM 驱动的演化搜索 ShinkaEvolve 为特定问题族自动发现更快的最小二乘算法。在来自粒子物理的百万行回归问题上,发现的算法比最强基线快最多 2 倍,相对 SciPy、PyTorch 的默认求解器提升更大。

Body

技术机制上,ShinkaEvolve 让 LLM 反复改写算法代码,每个候选先通过精度校验,再以真实机器上的实际运行速度评分,评估流程专门设计为奖励真正更快的算法而非偶然的计时波动。发现的算法都是可读的短 Python 程序,其中一个实验发现的迭代求解器包含新的停止规则,团队后来证明该规则能在所有输入上保证目标精度。

最小二乘自 1795 年高斯用于预测天体轨道以来被广泛用于粒子物理和经济学等领域,传统算法针对最坏情况输入设计,而实际用户往往反复求解同类问题且只需足够精度。开发者只需提供问题样本和所需精度,搜索在单台工作站上一夜跑完一次,之后每次求解都更快。

Original · Sakana AI

Excited to share "From Worst Case to Practical Case: Automated Discovery of Faster Algorithms for Least Squares"

Blog: https://pub.sakana.ai/auto-disco-ls/

Classical algorithms are designed for worst case inputs, which rarely show up in practice. We use LLMs to find faster ones tailored to the problems you have.

Least squares, the math behind fitting a model to data, goes back to Gauss, who used it in 1795 to predict the orbits of celestial bodies. Today it is used everywhere from particle physics to economics, and decades of work have gone into designing algorithms and software that reach high accuracy on every possible input. Yet most people solve the same kind of problem again and again, and only need an answer that is accurate enough.

In our work, we instead search for the fastest algorithm for a given family of problems at a given accuracy. Using ShinkaEvolve, LLMs repeatedly rewrite an algorithm's code, and each candidate that passes an accuracy check is scored by how fast it actually runs. Timings on a real machine are noisy, so the evaluation is designed to reward faster algorithms, not lucky measurements.

The discovered algorithms match or beat strong baselines on every task we tried, with both synthetic matrices and real data. On a million-row regression problem from particle physics, they are up to 2x faster than the best baseline, with an even greater improvement against the default solvers in scientific computing libraries (e.g. SciPy, PyTorch). None of them is a black box: each is a short Python program that can be analyzed to gain further insights. For example, the algorithm discovered in one of our experiments even contains a new stopping rule for its iterative solver, which we later proved guarantees the target accuracy on every input.

Our method is designed to be easy to use for practitioners in any field. You don't need to be an expert in numerical linear algebra: you provide examples of your problems and the accuracy you need, and the search does the rest. It runs once, typically overnight on a single workstation, and every solve after that is faster.

Paper: https://arxiv.org/abs/2611.40024 Code: https://github.com/SakanaAI/AutoDiscoLS 🐟

Industry Coordinates & Source Verification

This report is categorized under AITOP's "Papers" desk. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include Sakana AI, ShinkaEvolve, open-source models.

Source attribution: curated from Sakana AI (@SakanaAILabs).

Spotted an error in the summary or translation? Tell us