TL;DR
k-server-bench is a novel, open-ended mathematical discovery benchmark that challenges AI agents to discover "potential functions" for the $k$-server conjecture—a premier open problem in online algorithms. By framing proof-search as a code-based optimization problem over graph-structured linear inequalities, the benchmark provides a rigorous environment where LLM agents successfully resolved the $k=3$ regime and surpassed the best human-designed solutions in the open $k=4$ regime.
What Problem Does This Paper Address?
In theoretical computer science, the $k$-server conjecture is often called the "holy grail of competitive analysis." It asks whether an online algorithm can manage $k$ mobile servers to handle a sequence of requests in a metric space while keeping its total cost within a factor of $k$ of an omniscient offline optimal algorithm.
While the Work Function Algorithm (WFA) is the leading candidate to solve this conjecture, proving its competitiveness requires finding a mathematical "potential function" that satisfies a massive system of linear inequalities. For highly structured spaces like a continuous circle, finding the right potential function has completely stalled human researchers. The authors address this bottleneck by automating the search, transforming an abstract mathematical proof problem into an executable code-generation challenge.
Methods
The authors operationalize potential function discovery by representing candidate functions as Python programs. They construct a work-function graph where nodes represent reachable states and directed edges represent requests. For a potential function to be valid, it must satisfy a specific inequality across every single edge in this graph; the optimization target is exactly zero violations.
To make this infinite continuous problem tractable for AI, the authors introduce two key techniques:
- Discretization & Augmentation: They evaluate candidates on increasingly fine discretizations of the circle metric, augmented with "$k$-taxi requests" to mimic the constraints of the infinite continuous case.
- Canonical Hypotheses: Unrestricted code generation fails to navigate the massive search space. The authors restrict the search to a "canonical potential" hypothesis class—parameterized by small integer matrices and coefficient vectors—which dramatically improves optimization efficiency.
They evaluated three automated search strategies: naive Best-of-$N$ sampling, and two LLM-driven evolutionary frameworks, ShinkaEvolve and LoongFlow. They also deployed a human-in-the-loop workflow with a coding agent (Codex, powered by gpt-5.2) utilizing a custom proxy evaluation routine that cached "hard" edges to fast-fail weak candidates.
Datasets
The paper introduces k-server-bench, a suite of pre-generated benchmark instances varying by the number of servers ($k$), discretization points ($m$), and whether $k$-taxi augmentations are enabled.
Unlike existing open-ended code benchmarks that suffer from early saturation or fail to beat random baselines, k-server-bench provides a clear, non-incremental metric: the rate of perfect (zero-violation) solutions.
Key Insights and Ideas
- Search vs. Construction: Iterative optimization of the search procedure (tuning how the LLM explores) consistently outperforms direct iterative refinement of a single potential function. LLMs are naturally better at describing and adapting exploration algorithms than fine-tuning raw mathematical structures.
- The Power of Constraints: Unrestricted code generation never found a valid potential function even for the smallest instances. Providing a structured mathematical hint (the canonical potential form) was absolutely essential to unlock agent performance.
- Mitigating Benchmark Saturation: By tracking the rate of perfect solutions rather than marginal decimal improvements in average scores,
k-server-benchcleanly differentiates naive random sampling from sophisticated agentic scaffolds.
Key Results
In the resolved $k=3$ testbed, advanced agentic methods successfully achieved perfect runs, finding potential functions with zero violations across combined test instances.
In the open $k=4$ regime with $k$-taxi augmentation (a space where no known potential function achieves zero violations), the human-guided Codex workflow discovered a new candidate that incurred only 3 violations out of roughly 7 million checked inequalities. This significantly outperformed the state-of-the-art human-designed baseline, which incurs 17 violations.
Limitations and Future Work
While the results are promising, the benchmark inherits fundamental computational constraints: the work-function graph grows exponentially with $k$ and $m$, making exhaustive evaluation prohibitively expensive at larger scales (the $k=4, m=8$ augmented graph contains billions of edges). Furthermore, the evaluation is sound but incomplete; finding a potential function with zero violations on a discretized graph provides massive empirical evidence but does not automatically constitute a full continuous proof. Future work will focus on expanding the toolset to generate fully formal, verifiable proofs and exploring alternative non-canonical potential representations.
Summary updated