The cycle that closes the series: measure, decide, verify and know when to stop
You now hold eleven articles of techniques and tools and a problem that none of them solves alone: in what order do you use them, how do you tell whether they worked, and when do you stop. A one-off optimization brings spend down once and then lets it climb back, because nobody measured the result, nobody corrected the next estimates and the easy levers have run out. This article lines up the cycle with four executed listings: a unit cost that separates saving from growth, a ranking of hypotheses with the rule for composing savings, a ledger that compares expected and realized, and a simulation of successive cycles with a stopping criterion. All the numbers are invented and declared as such.
The cycle, and who says so
The FinOps Foundation describes the work as a cycle of three phases, Inform, Optimize and Operate, run through iteratively and quickly; in its scheme the elastic environment and the complex pricing of AI force you to return often to the Inform phase, to verify the effect of the optimization actions and to be sure that decisions rest on correct data. The cycle of this article is the same idea with operational names: measure a baseline, choose the hypotheses to try, verify the result against the estimate and against quality, repeat with the corrected estimates. Each phase already has an article in the series, and I point to them where needed instead of repeating them.
Measuring: the unit cost separates saving from growth
The first mistake of the cycle is to look at total spend. If your product grows, spend goes up even after a successful optimization, and the finance lead sees an increase where you achieved a reduction. The FinOps Foundation page on unit economics asks you to define unit metrics tied to the organization's goals and to distinguish resource-efficiency metrics from business metrics: the cost per thousand requests is a unit efficiency metric. The listing compares two months and computes what the new volume would have cost at the previous costs: the difference from the actual spend is the saving to be attributed to the intervention.
# INVENTED data: two months of a feature, before and after an intervention.
prima = {"requests": 100_000, "euro": 4_000.0}
dopo = {"requests": 140_000, "euro": 4_800.0}
costo_unitario_prima = prima["euro"] / prima["requests"]
costo_unitario_dopo = dopo["euro"] / dopo["requests"]
# What the new volume would have cost at the previous unit costs.
atteso_a_parita = costo_unitario_prima * dopo["requests"]
risparmio_reale = atteso_a_parita - dopo["euro"]
print(f"total spend: {prima['euro']:.0f} -> {dopo['euro']:.0f} euro ({dopo['euro'] / prima['euro'] - 1:+.0%})")
print(f"cost per 1000 requests: {costo_unitario_prima * 1000:.2f} -> {costo_unitario_dopo * 1000:.2f} euro "
f"({costo_unitario_dopo / costo_unitario_prima - 1:+.1%})")
print(f"expected cost at the new volume and the previous costs: {atteso_a_parita:.0f} euro")
print(f"saving to attribute to the intervention: {risparmio_reale:.0f} euro ({risparmio_reale / atteso_a_parita:.1%} of the expected cost)")
# Output:
# total spend: 4000 -> 4800 euro (+20%)
# cost per 1000 requests: 40.00 -> 34.29 euro (-14.3%)
# expected cost at the new volume and the previous costs: 5600 euro
# saving to attribute to the intervention: 800 euro (14.3% of the expected cost)
Spend rose by 20%, the unit cost fell by 14.3% and the attributable saving is 800 euro. The two readings do not contradict each other: they are two different questions, and only the second tells you whether the intervention worked. The comparison holds if the two months have the same mix of requests; if the composition changes (more long requests, a different model) the unit cost shifts for reasons that have nothing to do with the intervention, and you need the decomposition by volume, tokens, mix and price that you find in the article on FinOps for AI.
Two precautions make the comparison defensible. The first is to fix the baseline before touching anything: the period, the metric and the reference volume are written in the intervention's ledger, not chosen afterwards among the months that look best. The second is to compare comparable periods: a month with a campaign and one without do not measure the intervention. If you cannot guarantee either, write in the ledger that the saving is an estimate, not a measurement, and what would need to change in order to measure it.
Choosing: a ranking that does not add up the savings
Once the base is measured, you have more hypotheses than you can try. The FinOps Foundation document on workload optimization asks you to set value and risk thresholds for each workload, to prioritize interventions, and to decide the trade-offs between cost, quality and performance consciously. The listing turns this guidance into a ranking: each hypothesis has the share of spend it acts on, the reduction it achieves on that share, the confidence in the estimate and the days of work, and the score is saving times confidence divided by days. Then it computes the combined effect in two ways.
# INVENTED optimization candidates. Share = part of the spend they act on;
# reduction = how much they cut that share; confidence = how much you believe the estimate; days = work.
SPESA_MENSILE = 12_000.0
IPOTESI = [
# name, share of spend, reduction on the share, confidence, days of work
("deferrable jobs in batch", 0.20, 0.50, 0.9, 3),
("smaller model on triage", 0.30, 0.60, 0.5, 8),
("prompt prefix reuse", 0.40, 0.35, 0.7, 4),
("cap on output tokens", 0.15, 0.20, 0.8, 1),
]
def punteggio(ip):
nome, quota, rid, fid, giorni = ip
risparmio = SPESA_MENSILE * quota * rid
return risparmio * fid / giorni, risparmio
ordine = sorted(IPOTESI, key=lambda ip: punteggio(ip)[0], reverse=True)
print("order by (saving x confidence) / days:")
for ip in ordine:
p, r = punteggio(ip)
print(f" {ip[0]:<34} expected saving {r:>7.0f} score {p:>6.0f}")
# The naive sum counts twice the part of the spend that is already reduced; the factors do not.
somma_ingenua = sum(punteggio(ip)[1] for ip in IPOTESI)
resto = 1.0
for _, quota, rid, _, _ in IPOTESI:
resto *= 1 - quota * rid # assumption: the shares are independent
print(f"sum of the expected savings: {somma_ingenua:.0f} euro/month")
print(f"combined effect as a product of factors: {SPESA_MENSILE * (1 - resto):.0f} euro/month")
# Output:
# order by (saving x confidence) / days:
# deferrable jobs in batch expected saving 1200 score 360
# prompt prefix reuse expected saving 1680 score 294
# cap on output tokens expected saving 360 score 288
# smaller model on triage expected saving 2160 score 135
# sum of the expected savings: 5400 euro/month
# combined effect as a product of factors: 4612 euro/month
The ranking rewards the cheap and certain intervention (the batch jobs) over the biggest but uncertain one (the smaller model, which yields 2,160 euro a month on paper and ends up last). The naive sum promises 5,400 euro a month, the product of the factors 4,612: the difference is the part of spend that two hypotheses both claim to reduce, the same rule by which the percentages per layer do not add up, explained in the article on techniques by layer. The product is also optimistic: it assumes independent shares, and prompt caching and batching are not entirely independent. The score, moreover, is a rule of mine, not a standard: confidence is a subjective number, and should be revised with the data from the ledger.
Verifying: against the estimate and against quality
Verifying means two distinct things. The first is to ask whether the cost fell as much as predicted, and the ledger below does that. The second is to ask whether quality stayed acceptable, and that is not settled by cost: an intervention that cuts spend by degrading the answers has moved the cost onto the people who correct them. For quality you need the non-inferiority test of the article on techniques and the cost of an error from the article on the trade-off between cost and quality: a saving that does not pass those checks is not a saving.
The ledger compares expected and realized for each closed intervention and corrects the estimate of the next hypothesis with the historical rate. It is a calibration tool: if your estimates are systematically optimistic, the rate shows it and the ranking shifts accordingly.
# INVENTED ledger of closed interventions: expected and realized in euro per month.
CHIUSI = [
("cap on output tokens", 270, 310),
("batch of deferrable jobs", 1200, 980),
("prefix reuse", 1680, 700),
("smaller model", 2160, 2300),
]
for nome, atteso, reale in CHIUSI:
tasso = reale / atteso
verdetto = "to review" if tasso < 0.5 else "ok"
print(f"{nome:<26} expected {atteso:>5} realized {reale:>5} rate {tasso:>5.0%} {verdetto}")
tot_atteso = sum(a for _, a, _ in CHIUSI)
tot_reale = sum(r for _, _, r in CHIUSI)
tasso = tot_reale / tot_atteso
print(f"overall realization rate: {tasso:.0%}")
# The estimate of the next hypothesis is corrected with the historical rate.
prossima = 1500
print(f"next hypothesis: estimate {prossima} euro/month, corrected with the historical rate {prossima * tasso:.0f} euro/month")
# Output:
# cap on output tokens expected 270 realized 310 rate 115% ok
# batch of deferrable jobs expected 1200 realized 980 rate 82% ok
# prefix reuse expected 1680 realized 700 rate 42% to review
# smaller model expected 2160 realized 2300 rate 106% ok
# overall realization rate: 81%
# next hypothesis: estimate 1500 euro/month, corrected with the historical rate 1212 euro/month
Two interventions out of four are around 100% (115% and 106%), one is at 82%, and one at 42% is marked for review. The overall rate is 81%, and the estimate of the next hypothesis, 1,500 euro, falls to 1,212. The prefix reuse at 42% is the row to investigate: it may overlap with the batch (which has already reduced the part of spend it acts on), or depend on prefixes that change with every request, or on a price different from the one assumed. The ledger does not explain the cause, it makes it searchable. Limit: few interventions produce an unstable rate, and four rows are not enough to trust a correction of 81%.
Repeating, and stopping when it no longer pays
The cycle has diminishing returns: the first levers are the biggest and the cheapest, the last ones remove little and cost work. The stopping criterion is the return: the annual saving of the hypothesis divided by the cost of the work it requires. The listing simulates four cycles with invented hypotheses, each with its own reduction on current spend and the days it needs, and launches only those with an annual return above 1.
# Four successive cycles with diminishing returns. All numbers are INVENTED.
SPESA = 12_000.0
COSTO_GIORNO = 400.0 # cost of a day of work, euro
CANDIDATE = [ # (name, reduction of current spend, days)
[("batch", 0.10, 3), ("token cap", 0.02, 1)],
[("prefix reuse", 0.08, 4), ("smaller model", 0.12, 8)],
[("context pruning", 0.03, 6)],
[("prompt rewrite", 0.01, 7)],
]
spesa = SPESA
for ciclo, interventi in enumerate(CANDIDATE, start=1):
for nome, rid, giorni in interventi:
risparmio = spesa * rid # on what remains of the spend
ritorno = risparmio * 12 / (giorni * COSTO_GIORNO) # annual saving / cost of the work
decisione = "done" if ritorno > 1 else "deferred"
print(f"cycle {ciclo}: {nome:<22} -{risparmio:>6.0f}/month annual return {ritorno:>5.1f}x {decisione}")
if decisione == "done":
spesa -= risparmio
print(f" spend at the end of cycle {ciclo}: {spesa:.0f} euro/month ({spesa / SPESA - 1:+.0%} from the start)")
# Output:
# cycle 1: batch - 1200/month annual return 12.0x done
# cycle 1: token cap - 216/month annual return 6.5x done
# spend at the end of cycle 1: 10584 euro/month (-12% from the start)
# cycle 2: prefix reuse - 847/month annual return 6.4x done
# cycle 2: smaller model - 1168/month annual return 4.4x done
# spend at the end of cycle 2: 8569 euro/month (-29% from the start)
# cycle 3: context pruning - 257/month annual return 1.3x done
# spend at the end of cycle 3: 8312 euro/month (-31% from the start)
# cycle 4: prompt rewrite - 83/month annual return 0.4x deferred
# spend at the end of cycle 4: 8312 euro/month (-31% from the start)
Spend falls by 12% in the first cycle, by 29% in total after the second and by 31% after the third; the prompt rewrite of the fourth, with an annual return of 0.4, does not start. Note how each hypothesis reduces the current spend, not the initial one: that is why percentage reductions do not add up, and why the smaller model (12%) yields 1,168 euro and not 1,440. The 31% is a number from the example, not a target: it depends on the invented hypotheses, on the cost of a day of work and on the return threshold of 1, which is another organizational choice (an organization with little development capacity might demand 3).
Where each piece lives
The series has a piece for each step of the cycle, and it is worth reopening it when that step jams.
- Understanding where the spend goes: the cost map and the piece on caching, compression and routing.
- Deciding where to run the load: your own server or an API and GPU planning.
- Forecasting and controlling: the twelve-month forecast, FinOps for AI and control within the month.
- Attributing and making accountable: the tracking architecture and accountability per team.
- Optimizing with measured quality: the techniques by layer and the trade-off between cost and quality.
The groups do not follow the reading order but the points where the cycle gets stuck: if spend cannot be attributed, start again from tracking; if the estimates do not materialize, from the ledger and the forecast; if a saving degrades the answers, from the trade-off between cost and quality. Moving the groups around does not change the meaning, which is why they are a list and not a sequence.
Frequently asked questions
How often should I repeat the cycle?
At the cadence at which your data changes: monthly for the measurement and the ledger, quarterly for new hypotheses. The FinOps Foundation stresses that the phases are run through iteratively and that the Inform phase should be revisited often.
How do I attribute a saving when traffic grows?
With the unit cost: you compute what the new volume would have cost at the previous costs and subtract the actual spend. If the mix changes, decompose by volume, tokens, mix and price.
When do I stop optimizing?
When the annual return of the remaining hypotheses falls below the threshold you chose, for example 1: the work costs more than it saves. Start again when something external changes, such as prices or volume.
What you can do now
You can measure a saving net of growth, rank hypotheses by return, and you know why their effects do not add up. You can keep a ledger that compares expected and realized and corrects the estimates, and you can set a stopping criterion in euros. The cycle does not give you a saving target: it gives you a method to find out how much you can achieve with your own data. If you are starting from zero, begin with the cost map and with the cost ledger; team accountability is in the previous article.
One lever sits outside the numbering and is not covered here: the semantic cache of responses, in the article Optimizing LLM costs in production.
Sources
- FinOps Framework: Phases (FinOps Foundation) - Inform, Optimize, Operate phases run through iteratively, frequent return to the Inform phase to validate the effect of optimizations; accessed 2026-11-13
- Unit Economics (FinOps Framework) - unit metrics tied to goals, distinction between resource-efficiency and business metrics; accessed 2026-11-13
- Workload Optimization (FinOps Framework) - value and risk thresholds for prioritizing, conscious trade-offs between cost, quality and performance; accessed 2026-11-13
- Runs executed locally:
python3 -Ion the four listings (standard library, Python 3.14.4), each twice with identical output; volumes, costs, shares, confidence and realization rates invented for the example. The score of the ranking and the stopping criterion are my own choices, not standards

Commenti
Caricamento commenti...
Sign in to comment