研究者提出按ZSTD压缩后输出字节数计费AI推理,而非按token
来源标题:AI inference needs its kilowatt-hour: bill by ZSTD-compressed output, not tokens
一篇观点文章主张AI推理应按ZSTD压缩后的输出字节计费,而非按token。作者认为token计费是方便卖方的单位,输入计费相当于为燃烧的燃料而非交付的能量付费,因此将输入从定价中剔除;生成成本随上下文增长,但缓存与稀疏、线性注意力正使旧代理指标失效。
以下正文同步自 Hacker News 最新,版权归原站所有,已转换为易读排版。
Output bytes survived. There is precedent for this kind of search: units of trade are chosen to keep measurement cheap, not to match physical value (Barzel, 1982). Coal sold by the cart until the calorimeter made heat content cheap to verify. Only then did the Btu market appear. Token billing is Barzel's world - a unit chosen for the seller's convenience. We set out to choose one for the buyer's.
Then the key insight: charging for input is charging for fuel burned, heat losses included, instead of energy delivered. The buyer does not care how the model works under the hood. A recurrent network and a transformer should bill identically for identical output. So we dropped input from pricing - and reasoning with it. Generation losses belong to the generator.
This has to survive contact with the seller's cost sheet. Generation is the cost: each output token attends over everything before it, so cost grows with context. Input billing was a defensible proxy for that deepening attention bill - but the proxy is dissolving under prompt caching and sparse and linear attention. Ours is a bet on where the cost structure settles, not where it stands today.
Flat pricing has been tried and abandoned. OpenAI's GPT-3 models each billed a single token rate from the 2020 API launch. The split came with GPT-4 in 2023. Mistral did the same. But flat pricing failed because a blended rate hides more than a split does. Output-only hides nothing: it charges only for what has value to the buyer. It is the most legible tariff, not the least.
The edge cases are real. A hundred-thousand-token prompt that yields one word is expensive to serve and undercharged. The gap closes from three directions.
First, engineering. Prompt caching serves repeated context at a fraction of face cost - and under output-only billing the seller keeps the entire saving. If the seller is an expert too, context compaction narrows the gap further: methods like LLMLingua-2 (Pan et al., 2024) strip a bloated prompt before it ever reaches the model. Published results leave wide headroom - headroom worth an expert's research budget.
Second, the buyer's own incentive. Models perform worse when long context is padded with irrelevant material, so a buyer who trims a prompt buys a better answer. Where quality already punishes bloat, the meter need not.
Third, price. Today input is billed above the cost it incurs. Output-only billing deletes the explicit input charge, and the market prices what remains: providers fold the true cost of input into the rate they quote for output. If the rate fails to cover costs, the rate rises, and the market adapts. The seller prices the portfolio, not the prompt. An expert that buys input, output, and reasoning tokens and sells kilobytes of delivered output is an insurer - and no insurer prices the individual claim. It prices the pool. A rate that clears in aggregate is a rate that holds. (Adversarial behavior is the expert's to take up.)
Cost accounting tells the seller what it needs. The meter tells the buyer what it gets. These have always been different numbers - a power plant's coal ledger and a customer's meter never agreed either.
Output-only pricing also hands the frontier labs a gift. Under token billing, an efficiency gain that halves reasoning cost shrinks the billing base - the replacement effect (Arrow, 1962), the reason incumbents have little incentive to fund inventions that cannibalize their own revenue. Under our meter, reasoning is unmetered: the lab delivers the same kilobytes at the same price and keeps the entire saving as margin. With quality held at a certified standard, a rival cannot undercut without first matching the efficiency. The meter does not just price fairly - it funds the next architecture.
One attack remained: padding. A seller can grow measured volume with verbosity the buyer never wanted, and a meter that rewards dilution measures the seller's incentive, not the buyer's. That left exactly one move: make padding discount itself.
Charge per kilobyte of zstd-compressed output. Input and reasoning unmetered.
One command reproduces any measurement: divide the printed byte count by 1,000, then multiply by the price posted at the start of the request.
zstd -c your_response.txt | wc -c
Default options, pinned to version 1.5.7, chosen over gzip for its ratio-speed balance. (Disconnections are a non-issue: the zstd frame header means even a truncated stream bills nonzero.) The public standard is a necessity, not a courtesy. A proprietary yardstick unravels no one. A verifiable one forces the whole market to follow, because once one seller discloses credibly, non-disclosure becomes informative (Milgrom, 1981). A verifiable meter doesn't just let buyers check invoices - it makes every competitor's opacity read as concealment.
Can the seller game it? Raising entropy - quietly running temperature 1.2 against a requested 1.0 - fattens output only enough to be noticed. Inference is not entirely a credence good, and artifacts show. At the other extreme, repetitive garbage compresses to near zero and doesn't pay. A model built from scratch to inject plausible high-entropy filler faces the same bind: if the filler is relevant it compresses, and if it is not, the buyer notices. Whatever slips past the buyer is precisely what the expert exists to catch, by watching the distribution of compressed output.
The division of labor has precedent. A taxi meter measures distance, not driving skill. The passenger screens the driver separately. A watt-hour meter measures volume. The grid guarantees voltage separately. Ours is the same architecture: the meter prices volume, the expert gates quality.
The sharpest objection deserves its answer: electricity is fungible and inference is not. A kilowatt-hour is a kilowatt-hour. A compressed kilobyte may be insight or confident nonsense. True - and that is the point, not a flaw. The watt-hour worked with thin quality institutions because electricity itself needed none: every electron performs. Because the kilobyte is not fungible, inference needs a thick one. The non-fungibility of text is the reason the expert must exist, and the two-layer structure keeps each half honest.
The meter counts volume. It cannot judge quality, and we have argued it should never try. But a market that prices volume without measuring quality rewards dilution. Something must stand between the buyer and the question: is this answer any good?
That something is the expert. Electricity itself never needed one - every electron performs. The devices built around it were another matter. The safety of wiring inside walls was a credence good: no homeowner could tell a safe installation from a fire hazard by looking, and insurers refused to underwrite buildings full of untested ones. The underwriters' answer, in 1894, was a laboratory of their own - Underwriters Laboratories - whose mark made a credence good purchasable. Our expert is that laboratory, with one difference of scope: a toaster's design, once certified, stayed certified. A model's grade is true only until the model retrains. The expert must grade models as products, sellers as operators, and live traffic as it flows - continuously, in a market that renews itself every few months. No single method suffices. The expert is an architecture of methods, each covering the failure modes of the others.
Static grading. Public benchmarks saturate on a treadmill for one reason: models train on them, often unintentionally, as they circulate. A public benchmark is a test whose answer key leaks the moment it is published. The fix is procedural generation: task environments - invented mini-languages, synthetic APIs, novel rule systems - where each instance is produced from a private seed at evaluation time. Contamination becomes structurally impossible. There is no dataset to leak, because the dataset does not exist until the moment of the test.
The generator yields a second instrument for free. For each task, produce a canonical variant a model may have memorized and a novel variant that is equally hard for a human. The score is the delta. A model at 85% canonical and 82% novel has real skill. One at 90% canonical and 40% novel is contaminated. The novel variant measures what a model can do with what it hasn't seen. How procedurally generated worlds map onto real expertise is the hard, proprietary core of the institution, and a strategic expert keeps it to itself.
One property shapes the economics of everything that follows: a diamond's grade is true forever. A model's grade is true until the model trains on the grader. When a measure becomes a target, it ceases to measure (Goodhart, 1975) - and here the gaming is adversarial (Manheim & Garrabrant, 2018), because the measured are machines that re-arm with every training run. Certification is a Red Queen expense (Dawkins & Krebs, 1979): you keep paying to stay in place. Grossman and Stiglitz (1980) showed that information must earn at least what it costs to gather, or no one gathers it. Our variant is harsher: the signal is destroyed not by nature but by suppliers training against the ruler.
The expert's costs therefore split into two ledgers. A pass-through ledger: upstream prices times realized dispatch. A measurement ledger: evaluation compute, held-out regeneration, adversarial re-grading. The ledgers diverge. Producing answers gets cheap. Distinguishing them does not. The closer two models are, the more testing it takes to tell them apart. As the frontier converges, the gaps that matter shrink, and the expert's bill grows. The bottleneck migrates from compute to research, and insight into where machines fail rides no cost curve. National metrology institutes have never shrunk for this reason. The expert's rent persists, indexed to the capability it measures.
Live grading. Static grades go stale the moment a model ships. Sellers quantize under cost pressure, hotfix mid-week, and inherit upstream changes - none of it visible to any pre-release benchmark. So the expert audits the stream itself. Passively: compression ratios from the meter, linguistic features of inputs, similarity matching against known responses - cheap, continuous, weak in isolation. Actively: probes - a strategically chosen fraction of requests drawn from the procedural generators, whose ground truths are known in advance, so the answers grade themselves. Baseline probing can run at 0.05% of traffic, escalating only on suspicion. With enough volume, oversight is a rounding error.
Probes inherit the generators' structural immunity: the seller cannot learn to recognize them. A seller could attack the expert by leaking probes to weaken its authority - but only anonymously, and a strategic expert watermarks probes with seller-identifying information. The leak evaporates the seller's reputation, not the expert's. And drift requires no bad faith: probes catch it whether it originates in a decision or a dependency, and they exonerate the honest provider whose numbers were fine all along. The honest seller has as much stake in the audit as the buyer. Alongside quality, the expert grades latency, throughput, and disconnect rates, builds each seller a reputational profile - and acts on it: reward the top, exclude the bottom.
The judgment layer. Procedural generation can supply correct answers only for tasks with definite solutions, such as certain problems in mathematics or programming. A legal memo and a business recommendation have no single right answer. The usual fallback is to use one or more off-the-shelf frontier models as judges. But adding judges does not eliminate bias: LLM judges can favor their own outputs and those of related models, while familiarity and rubric design can distort their scores (Panickssery, Bowman, & Feng, 2024; Wataoka et al., 2025).
A number of methods can reduce these biases. The strongest is a judge the expert builds itself: a purpose-built model trained on a la
正文由 探How 从来源站点 RSS 同步,内容未经改写;遇到排版缺失或需要图片、视频时请以原文为准。
