TL;DR
DIMWIT proposes a radical shift in system resource management: instead of developing complex, task-specific policies, just ask a pretrained model what to do. By directly invoking language models with system state and goals, the authors achieve performance competitive with specialized heuristics across autoscaling, memory sizing, and video encoding—often using models as small as 421M parameters.
What Problem Does This Paper Address?
Managing system resources—like deciding how many replicas of a microservice to run or how much DRAM to allocate—traditionally requires a "policy." This might be a hand-tuned heuristic, a complex optimization algorithm, or a model trained via reinforcement learning. The problem is that these policies are hard to build, require deep domain expertise, and often break when workloads shift.
The authors of DIMWIT (Directly Invoking Models Without Intensive Tuning) challenge the assumption that we need a general policy at all. They argue that while designing a strategy for every possible scenario is hard, making a single decision for the current scenario is often quite simple. They ask: can we skip the policy development phase and just let a pretrained model act as the "human in the loop"?
Methods
The core idea is direct invocation. Instead of using an LLM to generate code for a policy, DIMWIT uses the model as the controller itself. At each decision interval, the system describes its current state (e.g., "CPU is at 80%, latency is 250ms, target is 300ms") and available actions (e.g., "add 1 replica, remove 1, or stay same") in a prompt.
The authors evaluated three types of models:
- Claude Opus 5.5: A massive, general-purpose frontier LLM.
- Jev: A proprietary "decision model" designed for system tasks.
- Laya: A lightweight, 421M-parameter open-weight decision model.
They integrated these models into three distinct systems:
- Horizontal Autoscaling: Replacing Kubernetes' default scaling logic (Figure 1).
- Dynamic DRAM Sizing: Managing memory allocation in tiered systems (DRAM + CXL).
- Video Compression: Tuning x264 encoder parameters segment-by-segment.
Datasets
The approach was tested on several industry-standard benchmarks:
- Microservices: TeaStore, Online Boutique, and Social Network, driven by workloads derived from Alibaba production traces.
- DRAM Sizing: Eight diverse workloads including Liblinear (ML), GapBS (graph processing), and Silo (databases).
- Video: High-quality source clips from the Xiph.org collection (Big Buck Bunny, Elephants Dream, Sintel).
Key Insights and Ideas
- Decisions are easier than Strategies: It is much simpler to look at a dashboard and say "we need more memory now" than it is to write an algorithm that knows exactly when to add memory for every possible future workload.
- Intelligence vs. Cleverness: Many resource management problems don't actually require "clever" algorithms; they require "common sense." Pretrained models bring this baseline reasoning to the table for free.
- Small Models Punch Up: Surprisingly, the tiny 421M-parameter Laya model often performed as well as or better than the massive Claude Opus. This suggests that for many system tasks, "frontier" levels of reasoning aren't necessary.
- Natural Language Tweaking: Instead of rewriting a controller's code, developers can steer DIMWIT by adding instructions like "err on the side of lower memory usage" to the prompt.
Key Results
DIMWIT proved that "zero-shot" resource management is not just possible, but practical:
- Autoscaling: On microservice benchmarks, small models like Jev and Laya met latency targets while using replica counts within 10% of specialized, hand-tuned autoscalers.
- DRAM Sizing: Laya reduced DRAM usage by up to 27.5% compared to static provisioning while maintaining at least 95% of baseline performance.
- Video Encoding: Laya achieved encoding speeds up to 4.3x faster than Claude Opus 5.5. It maintained video quality (VMAF) nearly identical to standard presets while significantly reducing the human effort required to find optimal settings.
Limitations and Future Work
The primary hurdle is inference overhead. While decision models are fast (0.1–0.2s), they still add latency compared to a simple "if-then" rule. This makes DIMWIT best suited for "coarse-grained" decisions (seconds to minutes) rather than microsecond-scale packet switching.
The authors also note that model outputs can be stochastic (unpredictable). They suggest that future systems could use formal "model checking" to wrap the LLM's decisions in a safety layer, ensuring that even if the model makes a weird suggestion, it can't crash the system. Finally, they point toward "composing" models—using small models for simple tasks and escalating to frontier LLMs only when deep reasoning is required.
Summary updated