Introduction
Modern computer systems rely heavily on heuristics—"rules of thumb"—to manage resources in real-time. Whether deciding which data to evict from a cache or when to move memory between tiers, these policies are critical for performance. However, the diversity of modern workloads and hardware means that no single heuristic is universally optimal. Traditionally, researchers have spent months manually tuning these policies, a process that is increasingly unable to keep pace with rapid technological evolution.
VULCAN is a framework designed to automate this process by using Large Language Models (LLMs) to "evolve" specialized system heuristics tailored to specific workloads. By narrowing the LLM's scope to generating small, stateless scoring functions, VULCAN enables even inexpensive models to outperform state-of-the-art, human-designed algorithms.
The VULCAN Framework
The core innovation of VULCAN lies in the separation of policy from mechanism. Instead of requiring an LLM to build a complex system from scratch, VULCAN utilizes a structured three-phase pipeline to synthesize and deploy optimized heuristics.
- Problem Specification: Humans define a narrow interface (typically VALUE for scalar decisions or RANK for ordering objects) and provide the "scaffolding"—the robust C++ or eBPF code that handles data structures and executes decisions.
- Offline Policy Search: VULCAN enters an evolutionary loop. An LLM (such as GPT-4o-mini) generates candidate scoring functions. These are plugged into a simulator or testbed, and their performance is measured. The best-performing functions are then used as seeds for the next generation of candidates.
- Deployment: Once an optimal policy is found, it is injected into the production system. An instance classifier monitors the workload at runtime; if the workload drifts significantly, the system can trigger a new search or select a better-fit policy from a pre-existing database.
Key Insights: The "One-Size-Fits-All" Fallacy
A primary motivation for VULCAN is the observation that traditional algorithms often fail to generalize across diverse environments. Analysis of production traces shows that different algorithms dominate depending on the specific workload cluster and cache size.
VULCAN addresses this by generating a unique, optimal policy for every specific instance. Furthermore, by forcing the LLM to write stateless scoring functions, the framework ensures safety and eliminates common bugs like null-pointer dereferences. The human-written scaffolding maintains the system state, while the LLM provides the creative logic.
Evaluation and Results
The authors evaluated VULCAN across several domains, including cache eviction (using CloudPhysics production traces), memory tiering, and database management.
- Cache Eviction: VULCAN-generated policies reduced miss rates by up to 69% compared to state-of-the-art human-designed algorithms like S3-FIFO.
- Memory Tiering: In systems moving data between DRAM and CXL memory, VULCAN improved performance by 2.5% to 7.9% over the current leading ARMS policy.
- Efficiency: Because the search space is constrained by human-defined scaffolding, the optimization process is remarkably cost-effective, with a full run costing approximately $37 using small LLMs.
Conclusion and Future Work
VULCAN demonstrates that LLMs can effectively out-think human experts in specialized system design when provided with the right constraints. While the framework still requires humans to identify relevant input signals and build evaluation harnesses, it significantly reduces the manual effort required to achieve instance-optimal performance. Future work will focus on further automating signal selection and improving the speed of the evaluation bottleneck to handle more complex network and system simulations.
Summary updated