Introduction
Reinforcement learning (RL) shows massive promise for optimizing complex computer systems, from database query routing to device placement and job scheduling. However, unlike standard RL benchmarks like Atari games, systems problems require highly customized state-action representations and often lack standardized evaluation protocols. Researchers frequently evaluate models on fixed workloads and rarely report the impact of random initialization or minor workload variations. This leads to fragmented research and models that overfit to specific scenarios, making their real-world utility questionable.
This paper introduces Wield, a system that decouples RL task design from system specifics, and progressive randomization, a novel evaluation protocol to systematically test RL models against increasing levels of non-determinism and generalization.
The Wield Framework
To standardize RL task design in systems, the authors propose Wield, a set of software primitives that decouple the RL algorithm from the underlying system's implementation details. Wield consists of three core components:
- Schemas: These define the physical layouts of states and actions, such as how a computation graph is represented as a numerical array.
- Converters: These act as adapters, translating raw system metrics and commands into the representations expected by the RL agent.
- Task Graphs: These organize complex problems into hierarchical or independent sub-tasks, allowing different agents to learn at different time scales.
Progressive Randomization
Complementing the software architecture is a classification scheme ($C_0$ to $C_6$) designed to explicitly separate sources of non-determinism during evaluation. This framework ranges from $C_0$ (fixed optimization seed, fixed workload) to $C_6$ (randomized seed, randomized out-of-distribution generalization). By adopting this protocol, researchers can explicitly state whether a model has merely memorized a single task or can actually generalize to unseen workloads.
Experimental Evaluation
The paper evaluates these contributions using the Device Placement problem—assigning operations of a neural network to specific hardware devices to minimize runtime. The workload used is Google's Neural Machine Translation (NMT) architecture, evaluated against the open-source TensorFlow device placer, "Grappler."
Key Insights
- Fixed workloads hide fragility: Models that perform well on a fixed workload with a fixed random seed often diverge or fail when minor parameters, such as batch size or the random seed, are changed.
- Poor Generalization: Models trained for a specific computation graph struggle with even slightly varied graphs, often defaulting to suboptimal strategies like placing all operations on a single CPU when faced with new inputs.
- High Evaluation Costs: Rigorous evaluation across randomization levels is expensive. The authors spent approximately $5,000 just to assess the baseline placer, highlighting the need for better simulators.
Results
The authors successfully reproduced the Grappler baseline on a fixed NMT graph ($C_0$), achieving a mean runtime improvement of 52%. However, 10% of runs failed to improve, demonstrating inherent divergence even in static environments. When moving to randomized workloads ($C_2$), failure rates increased significantly.
In generalization tests ($C_4$), models trained on one graph performed 20% to 50% worse on unseen graphs compared to models trained specifically for those test cases. Using Wield, the authors implemented a novel hierarchical graph neural network placer that achieved competitive performance (39.1% mean improvement) while utilizing standardized, reusable components.
Conclusion
While Wield and progressive randomization provide a path toward more rigorous systems-RL research, challenges remain. RL in systems is highly sensitive to hyperparameters, often requiring precise tuning to prevent divergence. Future work must focus on adopting shared standards for randomization and developing synthetic workload generators to reduce the financial and temporal costs of evaluation on live hardware.
Summary updated