Introduction
As Large Language Models (LLMs) transition into production environments for real-time applications such as interactive chat and live translation, user experience (UX) becomes the primary performance criterion. Traditional metrics like Time To First Token (TTFT) and Time Per Output Token (TPOT) are increasingly insufficient. They often rely on averages that mask intermittent stalls and "jitters" caused by system scheduling. Metron addresses this gap by shifting the focus from raw throughput to "fluidity"—the consistency and smoothness of token generation from a human perspective.
The Fluidity-Index
The core contribution of Metron is the fluidity-index, a metric designed to capture the temporal, streaming nature of LLM outputs. Inspired by real-time periodic tasks, the framework establishes a "deadline" for each token based on a target playback rate (e.g., 10 tokens per second).
- Slack and Buffering: Tokens generated ahead of schedule create "slack," acting as a buffer against future delays.
- Deadline Misses: If a token arrives after its deadline and exhausts all available slack, it is recorded as a "miss."
- Fluid Token Generation Rate: This represents the maximum sustainable throughput a system can maintain while ensuring the fluidity-index remains above a critical threshold (e.g., 0.99).
Analysis of System Stalls
A significant limitation of current metrics is their tendency to obfuscate scheduling delays. For instance, a system might maintain a low average TPOT but pause for several seconds to process a new incoming request (prefill). To a user, this manifests as a frustrating "glitch" in the stream.
As shown in the Time Between Tokens (TBT) distribution, systems like vLLM can experience massive generation stalls when onboarding new prefills. Metron’s fluidity-index successfully penalizes these spikes, providing a more accurate reflection of the user experience than average-based metrics.
Comparative Performance Results
Metron was evaluated using diverse workloads, including Arxiv-Summarization for long-context scenarios and LMSys-Chat-1M for typical chat distributions. The results highlight a stark contrast between raw throughput and fluid throughput.
While systems like vLLM may show competitive raw throughput, their "fluid" throughput is often significantly lower due to jitters. In contrast, systems like Sarathi-Serve, which utilize chunked prefills, maintain much higher fluidity under load. Metron allows operators to define Service Level Objectives (SLOs) based on fluidity, offering a more realistic measure of cluster capacity.
Conclusion and Future Work
Metron provides a nuanced framework for evaluating LLM inference systems by prioritizing the streaming nature of the output. Future work includes refining the determination of prefill deadlines for "black-box" proprietary systems and developing auto-tuning mechanisms to optimize system parameters for maximum fluidity.
Summary updated