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

Rohit Dwivedula, Divyanshu Saxena, Aditya Akella, Swarat Chaudhuri, Daehyeok Kim
10/9/2025
cs.OScs.DCcs.LG

No official code found. Best implementation: ldos-project/policysmith (6 stars, last commit 2025-12-30).

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.

View on arXivView PDF

Code Implementations(1)

PolicySmith: Man-made heuristics are dead. Long live code generators! (HotNets 2025)

61C, C++Oct 5, 20259 months ago
cachingml-for-systems

Similar Papers

Cite this paper

@article{dwivedula2025manmade,
  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},
  year   = {2025},
  eprint = {2510.08803},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.08803v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2510.08803.svg)](https://codeofpaper.com/paper/2510.08803)

Discussion