English

Man-Made Heuristics Are Dead. Long Live Code Generators!

Operating Systems 2025-10-13 v1 Distributed, Parallel, and Cluster Computing Machine Learning Neural and Evolutionary Computing

Abstract

Policy design for various systems controllers has conventionally been a manual process, with domain experts carefully tailoring heuristics for the specific instance in which the policy will be deployed. In this paper, we re-imagine policy design via a novel automated search technique fueled by recent advances in generative models, specifically Large Language Model (LLM)-driven code generation. We outline the design and implementation of PolicySmith, a framework that applies LLMs to synthesize instance-optimal heuristics. We apply PolicySmith to two long-standing systems policies - web caching and congestion control, highlighting the opportunities unraveled by this LLM-driven heuristic search. For caching, PolicySmith discovers heuristics that outperform established baselines on standard open-source traces. For congestion control, we show that PolicySmith can generate safe policies that integrate directly into the Linux kernel.

Keywords

Cite

@article{arxiv.2510.08803,
  title  = {Man-Made Heuristics Are Dead. Long Live Code Generators!},
  author = {Rohit Dwivedula and Divyanshu Saxena and Aditya Akella and Swarat Chaudhuri and Daehyeok Kim},
  journal= {arXiv preprint arXiv:2510.08803},
  year   = {2025}
}

Comments

10 pages, 2 figures, 2 tables. To be presented at HotNets 2025

R2 v1 2026-07-01T06:28:11.850Z