Deadweight Loss in AI

← Back
18 minutes to read

During spring of freshman year, I commuted twice every week from San Francisco to Berkeley so I could sit in on ECON 100A, Berkeley's microeconomics course. A friend had invited me to visit and left me in one of the halls for a while. I thought I wanted to do economics at the time, so I was glad to find out one of the lectures in that hall was 100A and decided to drop in while it was running1.

Ironically, the more I studied economics, the more skeptical I felt about it as a social science. I found its theories too constrained and limited by impractical assumptions.

Nevertheless, it was a fun subject to study. I have hundreds of notes I took on an oversized drawing tablet that must've looked the silliest set-up of anyone in the hall.

My favorite concept I took away from the class is deadweight loss, or DWL for brevity. Skip this section if you're already familiar (click here).

Imagine you have a seller - say, a business - and many buyers that want to buy a good from that seller. We assume the seller wants to earn the largest amount of money possible and there are many buyers that can each afford the product at a different price point.

How does that good get priced? Some buyers might be willing to pay more for it than others, so the seller could set prices high. This seems reasonable, but if 8 buyers were able to pay $12 each while 2 were able to pay $40, setting the price of the good to $40 is a net loss at $80, as pricing it at $12 would net $96, leaving a $16+ difference on the table. Not to mention the social effects making the good available to more people might have2.

Let's formalize this:

We can plot these curves against each other. This will be helpful for finding the optimal price a seller should sell their product at.

Supply and demand curves plotted as price against quantity.

All 10 people can afford a unit of the good when the price is zero. Yet the seller can't offer it for less than $10 (this may be their break-even price). Should they price it high or low?

The optimal price lies in the intersection of the two curves. Intuitively, it's the maximum number of units the seller can sell at the highest price. Five units at $50 each nets $250. Much higher than the $160 from selling two units at $80, and higher than selling a lot of units at $20, also totalling $160. We can visualize this.

Supply and demand curves with the equilibrium and two alternative price points marked.

This is the scenario with the most given for the most paid, and is called a state of equilibrium. We can now talk about DWL.

DWL is the profit the seller could've made had they priced their product closer to equilibrium when the product is too expensive or cheap.

We visualize it as the area between the corners of 1) the equilibrium point, 2) the point at the demand curve the good was priced at, and 3) the point on the supply curve parallel to the price on the demand curve, forming a triangle. Let's visualize it for when the good is sold at $80.

Deadweight loss triangle between the supply and demand curves when the good is sold at $80.

The area of the triangle represents goods the seller could've sold had they priced their product closer to equilibrium, letting them net a higher profit.

DWL on the right side of the graph is profit the seller is missing out on due to pricing the good too low. It's when consumers are benefiting at the cost of money the business could be making if the good was priced higher.

Deadweight loss triangle between the supply and demand curves when the good is sold at $20.

Congrats! You now know some undergraduate microeconomics. Try asking: "Why doesn't Apple price their old stock lower given it's worth less and some people might still buy it? Doesn't that minimize DWL?" and realize the real world isn't as simple and interpretable as this model3.

Ok, so why am I writing about DWL? (Skipped ahead? Go back.) I see some parallels between ideas in the study of DWL and the current paradigms of coding agents.

I work extensively with coding agents. Almost every day I'm prompting, reviewing code, etc4.

I've observed an inverse relationship between the skill needed by a human to accomplish a task and how good a model is.

When working with a frontier model, it's generally sufficient to ask for what you want. "Fix this bug", "Add X feature", etc. On the other hand, small models need long, hyper-specific prompts. Otherwise they are inaccurate, miss your intent, or lose track of the task after some time.

In other words: when a model is bad/limited at a task, humans supplement its deficiency with their own skills and steering.

This is currently true for any task that frontier models aren't good at or when using small models. It's part of why open-weight models aren't as big of a threat as they may seem in cybersecurity and biology. You still need knowledgeable humans to get the most out of them, at least for now.

This relationship also means unskilled workers can use powerful models to do work that previously required extensive training and experience.

This blog post by a developer laid off due to AI describes how their company chose to do layoffs because "AI assistance raised the capability of work for the less passionate, less experienced, and less costly workforce".

This isn't a new phenomenon. It's similar to how sewing machinery made jobs traditionally done by hand accessible to anyone anywhere who knew how to operate it, permitting offshoring in the '60s.

It's the reason why hiring for engineering jobs is shifting from being technically focused to highlighting traditionally undervalued skills, as I discuss toward the end of the post.

We can map this relationship onto the first graph if we swap the Demand curve with Human effort and the Supply curve with Model cost. I assume more capable models are more expensive5.

The x-axis represents how capable a model is relative to the task: at the left, the model is too weak for it and cheap. At the right, it's overkill and expensive. The y-axis represents what you pay. The height of the human effort line is how much steering effort the model needs from you, as the height of the model line is what the model costs. The more capable the model, the less steering it needs and the more it costs.

Human effort and model cost plotted against how capable the model is relative to the task.

A simple example to illustrate DWL in this graph is when frontier models are used for trivial work that a smaller model could do. E.g., changing the text on a page or running trivial git commands (when was the last time you prompted 'yes, push it'?).

Deadweight loss on the right side of the human effort and model cost graph, where a frontier model is used for a trivial task.

The economic argument against this is obvious: you're using frontier tokens for trivial tasks. Ideally, you'd want to save the cost.

The practical argument is that if token spend wasn't a concern, it would probably be faster if you used a smaller model. Like if Cursor's Composer did it in 6 seconds rather than have Astra think for 60.

Even if your smart model was ultra fast, that is very expensive right now, so the economic argument still holds: others could do the same thing just as fast for cheaper if we had the systems to transfer context efficiently and on the spot. You would be burning money unnecessarily.

I see right-sided DWL mattering in the short to medium term but not long term.

In the short to medium term, AI is expensive enough to warrant optimizing model choice. This will be especially salient for AI-native companies if the token subsidies stop6. Engineers might get token budgets on top of their salary, as Jensen Huang pointed out.

Long-term, I expect frontier intelligence to become too cheap to meter and very fast. I call this a 'terminal' class of models. Swiss Army knives that work well for 90% of tasks, are near free to run (likeliest because they would use your phone or computer) and fast. The remaining 10% won't be tasks the model can't do, but tasks we wouldn't let it do alone, like aligning itself or controlling nuclear weapons. These fields will still need humans.

Empirically, we've seen progress in this direction when labs release smaller versions of their frontier models (Fable from Mythos, GPT 6.1 Sol from Astra) that are similarly capable for cheaper7.

For now, frontier models will remain in use for simple tasks because they are generally more reliable and not priced to their true cost. There is no incentive to find equally good and cheaper (perhaps deterministic?) alternatives. We might not need to if the token subsidies last until we reach terminal models.

What about DWL on the left side of the graph?

I was recently experimenting with the Qwen family of models, running them locally on my computer with Ollama. It was disappointing. They know a lot and can pull off impressive tricks for a small model, but as soon as you throw a real task at them, they blow their context budgets overthinking unnecessary details.

Deadweight loss on the left side of the human effort and model cost graph, where a small model needs heavy human guidance.

I could only get it to do what I wanted by pointing out the exact lines of code it had to look at. I even had to change some code by hand because even though I'd tell it many times in a row to execute the change, it just thought, and thought, until its context overflowed.

It also took me considerably longer to finish my project with Qwen because it needed so much handholding. I knew frontier models would've done the task with a single prompt. My mental load was heavier too: it is so much simpler to prompt your way through with a frontier model. You don't really need to think8.

Though, in my case, I used a small model for the sake of experimentation. In the real world, DWL on the left is visible on tasks that the models aren't good at yet. Like the odd finance and ML research benchmarks, or some computer use tasks. You still need people reviewing the models' outputs and steering them.

If accuracy can be quantified and the task is economically valuable, it will be conquered eventually, likeliest first at the frontier, shifting to the right. This is true of tasks where labs and startups have an interest in introducing automation. It's part of the diffusion process.

The point of equilibrium is the model with the best price and right level of intelligence for a task. It obtains the same outcome a frontier model would because it's just as capable for that task, except it's cheaper and possibly faster.

You get to equilibrium by using a smaller model for the task that's known to be capable, making your own through custom datasets and evaluations, or having a frontier model do the task once and write instructions a smaller model can follow. This is a fixed but sometimes time-consuming and expensive cost. The human effort you save beyond the point of equilibrium is currently paid for by token subsidies and would otherwise be costly.

Whether the cost of frontier tokens is lower than the cost of finding an equilibrium model depends case by case, yet knowing the optimization is a fixed cost, it likely is a meaningful net saving for applications at scale.

Equilibrium between human effort and model cost, where the model is just right for the task.

Until we achieve terminal models, equilibrium-optimized model harnesses, model routers, and training environments will be useful as token usage grows across the economy. Or indefinitely if governments introduce regulation that stalls the development of a terminal model and we settle into a status quo.

They will make most tasks near free, fast, runnable on edge hardware9, and routable to the cloud when necessary, at the cost of human effort. I see three technical challenges in the way:

Budget-conscious, technically able organizations like Ramp are already trying their hand at these problems, making custom environments to RL small models on and building their own model router.

But to diffuse AI into the wider economy at its current price, much work needs to be done on simple-to-use optimizers that small and medium-sized organizations can use to save on their token spend, both for individuals within an organization and for specific tasks.

Jev might be very cheap but your average store clerk or non-profit worker isn't gonna get an API key and make an eval to see if it beats Astra at their classification task. They'd rather press a button or ask their agent and see results to choose from. Ideally they learn from their agent proactively that a better option is available.

I reckon model providers might be the first to arrive at a solution. It would be neat if Claude Code automatically switched models when my asks were simple (though in practice this isn't more efficient yet due to caching), like how automatic cars shift gears at the right time for you.

Altogether, the graph paints a familiar story: the frontier will lay the groundwork for the toughest challenges while diffusion makes them economically viable and accessible10.

Thinking through this made me conclude there are two paths for the future of work:

In either case, we'll be better off from it. It will provide healthcare and improved quality of life for millions of underprivileged people, enable massive social mobility - the works. That is, if we align it.

What about work that is not part of the graph? That is, work that doesn't have a "right" result, such as the arts, and work that is completely new and doesn't have a point of comparison to define right from, e.g., new products and media.

If the model can do anything you ask11, "right" in a creative pursuit is entirely up to you. Assuming the model is terminal, it will be perfectly matched to anything you want it to do, so only you will know where to stop.

To illustrate this: had French sculptor Auguste Rodin had access to a machine that could sculpt anything he wanted, he would've still spent a large amount of time tweaking his pieces and dialing in what they're meant to convey. Each is characterized by what the author was going through at the time, or the way he chose to portray other people.

Rodin's Monument to Balzac is a good example.

Detail of Auguste Rodin's Final Study for the Monument to Balzac: a bronze figure wrapped in a heavy cloak, head thrown back.

When Rodin set out to make a monument for Balzac, a prominent French writer, he stated "a man celebrated for his heart and mind should not be [represented by] his body" (see reference). We see this in the sculpture, it being far from idealized or beautified in its texture, contours, and the undefined shape of Balzac's face.

This makes the sculpture iconic. It makes one wonder why the author chose to portray him like that. Other sculptors might've chosen to highlight him heroically or in a more grandiose way, but that wasn't Rodin.

In other words: the process of making the piece and the choices taken by the author are the work. The end result is a reflection of that. Now that much of the process of creation of software and digital media has been commodified, intentional choices will differentiate works from each other.

For example, Wall-E is beautiful yet dystopic, dire yet hopeful, emotional yet solemn. You could prompt a terminal model, "make a movie that's beautiful yet dystopic, dire yet hopeful, and emotional yet solemn", and it will make many movies but not Wall-E exactly.

Making Wall-E - differentiated work broadly - can't be done descriptively. To make Wall-E without knowing about it, you would have to walk the same choices as its authors. But how? Your motivations, environment, and thoughts are different.

It's extremely unlikely you would. Works of art are unique because they stem from individuals with distinct life stories, preferences, and memories.

I believe a post-scarcity world will be defined by this individuality.

It's already here, partially. The code to display this blog as I envisioned it would have been considerably harder to make without LLMs.

None of this is to say AI isn't already making beautiful art and meaningful work. It is to say that post-scarcity humans will lean toward appreciating a piece of work more for the person behind it and their motives than the end result. If we anthropomorphize AI, e.g., by giving them bodies, identities, and the same treatment as humans, "person" might mean humanoid too.

Using AI to create also means it will indirectly dilute our creative choices, as with any tool that does some of the steps for you. Distinct motivations, inspiration, and goals will therefore be most important. Like me learning about DWL and seeing parallels to model capabilities and human effort.

I also don't think we'll optimize generative creative work against brain responses (e.g. using Meta's TRIBE v2, a model that predicts fMRI brain activity in response to media) because dopamine is most meaningful with struggle. I think we'd get bored. Like how eating too much ice cream makes you not want to eat it for a long time. Though, there are scenarios where we optimize the struggle-to-dopamine loop that could be catastrophic12.

Humanity's new struggle will be acquiring inspiration, living unique lives, and making ever-more creative works. Or so I hope.

As a closing note, I think more economists should be looking at AI and more computer scientists looking at economics. Economists may find that some concepts map well to AI, as I tried to map DWL. Computer scientists can use analogous thinking from economics to analyze the field better.

For example: the DWL triangle's area grows much faster the further you get from equilibrium. This means there is a small amount of loss if you over/undershoot the equilibrium by a bit, and a huge one if you're at either extreme.

Someone building a model router might choose to accept some error away from equilibrium because the loss nearby is small, and instead optimize for avoiding the worst offenders (like having Fable do git push). This is a helpful mental frame I myself didn't know - Claude told me when I asked it for some ways DWL is analyzed that could connect to the post.

You'd have needed an economist that's into AI or a computer scientist that reads up on economics to connect the dots. Also, I didn't talk about the complex calculus and algebra that go into minimizing DWL for complex supply and demand curves. Some might be transferable to compute allocation. Go read!

Footnotes

  1. The hall was usually half-empty, so I figured it would minimize deadweight loss (pun intended) to sit quietly and watch the lectures. ↩

  2. Ideally, each customer would be charged the maximum they can pay. This is referred to as first degree pricing. But often sellers don't know what that maximum price is, and instead offer many options at different tiers (e.g. 1st class, premium economy, economy) so the buyer chooses for themselves. This is referred to as second degree pricing. Third degree pricing forces customers to segment by making the quality gap between the options large or enforcing tiers (e.g. student discounts). They all aim to extract as much of what the customer can pay for a good from them, which is referred to as their surplus. ↩

  3. Though, it follows similar rules. If you study economics further, I encourage you to learn about the concept of the "invisible hand". TLDR: markets minimize DWL on their own because inefficient arrangements will get outcompeted or outpriced by a competitor. ↩

  4. 1 billion tokens a day keeps the doctor away. ↩

  5. When I write "cost," I'm talking about the compute needed to run an instance of a model. Bigger models are generally better and require more compute to run. I call it "cost" in the blog because it's what we ultimately deal with. Do note that compute and monetary cost will map one-to-one when the labs stop subsidizing tokens. The plots assume they map one-to-one. When the subsidies stop, I expect the rug pull to be similar to what happened when ridesharing apps stopped subsidizing rides and the true price was passed on to consumers. People will be more selective about when they choose to use the service and supplement it with their own skills and cheaper alternatives. ↩

  6. How many startups would be scrambling if the labs took away token subsidies today? Most are spending at least 5 figures in tokens (in API costs) every month per engineer. For a small startup this might be OK, but at the scale of large companies or AI-native organizations, this'd be a huge financing issue. Ajeya Cotra talked about this here. When the models don't need prompting anymore, money will be directed towards buying API credits or GPUs directly instead of paying humans. People who are still employed will likely spend most of their time writing design documents to be executed on by the models. ↩

  7. Though the scaling laws - especially test-time compute scaling - would suggest existing architectures won't suffice to reach my definition of a terminal model, because they trade off speed for intelligence. ↩

  8. As Naval said: 'waste tokens to save time'. ↩

  9. Some early glimpses of inference at the edge are starting to show, as Anthropic detailed in this recent report. I expect phones and laptops to do most inference within this decade. ↩

  10. This pattern actually repeats through much of history, like how facial reconstruction was invented to treat scarred soldiers during WWI or how Tesla began by selling a luxury car, then funneling down to average consumers. New good technologies are developed at great cost, often for a very small number of users, to later become mainstream. ↩

  11. This is already true in some domains, just not effortless yet. ↩

  12. Sports and video games already optimize the cycle of struggle then dopamine. They share in common that, usually, they're multiplayer experiences. I expect AI-enabled experiences will be too. What would be terribly detrimental is if they replace human connection with connection to AIs. I.e., if people can swap human interaction for machine interaction. To put it crudely, if fighting and making up with your AI girlfriend/boyfriend satisfies any emotional need you would have for fighting and making up with a real one, and there are ways to supplant physical needs too, the population of a culture where that's acceptable will crash. Countries where this is already happening have the worst replacement rates in the world. It threatens the fabric that made human society last. For the same reason, we might benefit as a species from having small clusters of people who do not use AI or technology. They would carry on if most humans become isolated and warn about the dangers of anthropomorphization. Though, I feel the thousands of years of biological wiring in our brains make this less likely to happen. ↩