Problem Reductions at Scale: Agentic Integration of Computationally Hard Problems
AI 摘要
利用AI编码代理和Harness工程,大规模构建问题归约库,实现问题和求解器之间的灵活路由。
主要贡献
- 提出使用Harness工程和AI编码代理来构建大规模问题归约库
- 构建了一个包含100+问题类型和200+归约规则的工具
- 展示了这种方法可以显著提高软件构建的规模和速度
方法论
结合无代码贡献、多层验证和自动化流水线,设计Harness工程来引导AI编码代理生成问题归约代码。
原文摘要
Solving an NP-hard optimization problem often requires reformulating it for a specific solver -- quantum hardware, a commercial optimizer, or a domain heuristic. A tool for polynomial-time reductions between hard problems would let practitioners route any supported problem to any supported solver through a single interface. Building such a library at scale, however, has remained out of reach. We show that harness engineering, the practice of designing constraints, verification systems, and feedback loops that channel AI coding agents, can overcome this barrier. Our harness combines a no-code contribution route for domain experts, a multilayer verification stack ranging from type-level checks to agentic feature tests (AI agents role-playing as end users), and a fully automated implementation-review-integration pipeline. In about three months, we built a command-line tool backed by a library of 100+ problem types and 200+~reduction rules in over 170k lines of Rust. The result suggests that a well-engineered harness lets agents build well-tested software at a scale and pace beyond prior reduction-library efforts. Because the reduction graph composes transitively, a new solver registered for any single problem type instantly becomes available to every problem connected by a reduction path. The source code is available at https://github.com/CodingThrust/problem-reductions.