Think Before You Grid-Search: Floor-First Triage for LLM Serving
This paper proposes "Floor-First Triage," a compositional, estimation-driven workflow that models LLM decoding as a five-dimensional resource vector to analytically determine performance bounds and identify binding constraints before resorting to heavy profiling or grid search, thereby enabling computable layout decisions for diverse operating points.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
The Big Problem: Guessing vs. Knowing
Imagine you are running a massive, high-speed restaurant (a Large Language Model, or LLM) that serves millions of customers. You want to serve food as fast as possible without the kitchen exploding.
Currently, when the kitchen gets slow, most teams panic and try everything. They change the number of chefs, the size of the tables, the type of ovens, and the recipe. They run hundreds of tests, measure the results, and hope one combination works. This is called "grid-searching." It's expensive, wastes time, and often misses the real problem.
This paper argues: Stop guessing. Start calculating.
The Core Idea: Build the "Floor" First
The authors propose a new workflow called "Floor First."
Imagine the restaurant has a concrete floor. No matter how you arrange the furniture, the floor is the absolute lowest point the furniture can go. In the world of computer chips, this "floor" is the theoretical minimum time it takes to do a task based on physics (how fast electricity moves, how much data fits in memory, etc.).
The Workflow:
- Calculate the Floor: Before you touch a single knob or run a test, you do a simple math calculation to find the "speed limit" of your hardware.
- Measure the Reality: You run your system and see how fast it actually is.
- Check the Gap:
- Small Gap: If your actual speed is very close to the theoretical floor, you are doing great. Stop. Don't waste time profiling. The hardware is already working as hard as it physically can.
- Big Gap: If your actual speed is much slower than the floor, then you open the "profiler" (the fancy diagnostic tool) to find out why. Is the chef dropping ingredients? Is the door stuck?
The Analogy:
Think of it like a car. If your car is doing 60 mph on a road with a 60 mph speed limit, you don't need a mechanic to tell you the engine is fine. You just know you're at the limit. But if you're doing 20 mph, then you need to check the engine. This paper gives you the speed limit sign so you know when to stop checking.
The "Five-Dimensional" Scorecard
To calculate this floor, the authors break the problem down into five simple buckets of resources, like a shopping list for a trip:
- Memory Traffic: How much data has to move? (Like how many suitcases you need to carry).
- Computing Power: How much math needs to be done? (Like how many miles you need to drive).
- Network Traffic: How much data is sent between computers? (Like how many phone calls you make).
- Network Messages: How many times do you have to say "Hello"? (Like the time it takes to start a call).
- Storage Capacity: How much space do you have for the "memory" of the conversation? (Like the size of your trunk).
By adding up the time it takes to fill these buckets, you get a "Floor." The paper introduces a clever trick: it calculates an Optimistic Floor (assuming everything happens perfectly at the same time) and a Pessimistic Floor (assuming everything happens one by one). If your real-world speed falls between these two numbers, you know exactly how well your system is overlapping tasks.
The Case Study: The "H20" Chip
The paper tests this idea on a specific, tricky computer chip called the NVIDIA H20.
- The Situation: This chip is like a truck with a huge cargo hold (memory) but a weak engine (computing power).
- The Conflict: Two different teams built restaurants using these trucks.
- Team A arranged the kitchen so the chefs (processors) worked together in one big group.
- Team B arranged it so the chefs worked in smaller, separate groups.
- They argued about which was better, relying on "folklore" and trial-and-error.
The Paper's Verdict:
Using the "Floor First" math, the authors showed that the answer depends entirely on how many customers are waiting.
- Few Customers: Team A's layout is faster.
- Many Customers: Team B's layout is faster because it handles the "trunk space" (memory capacity) better, even if the engine is slightly slower.
The math proved that both teams were right for their specific situation. You don't need to guess; you just calculate the "wall" (the limit) where your specific number of customers hits the ceiling.
The "Agent" Skill
The paper also mentions that this logic can be taught to AI coding agents. Instead of an AI agent blindly running tests and wasting money, it can be programmed to:
- Do the Math First: Calculate the floor.
- Ask Permission: "My math says this test is a waste of time. Can I skip it?"
- Only Profiling When Needed: "My math says there's a huge gap. I need to open the diagnostic tool now."
Summary
This paper is a call to stop "brute-forcing" optimization.
- Old Way: Try everything, measure everything, hope for the best.
- New Way (Floor First): Do the math to find the speed limit. If you are near the limit, stop. If you are far from it, find the leak.
It turns a chaotic, expensive guessing game into a clean, logical process where you know exactly when to stop working and when to dig deeper.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.