The Denominator (aka The Meter Was Always Running In Joules)

“Information is not a disembodied abstract entity; it is always tied to a physical representation.”

Rolf Landauer, The Physical Nature of Information, Physics Letters A 217 (1996), 188–193

First, i trust everyone is safe.

Second, this one starts with a pricing page, which is an unpromising place to begin an essay about physics. Stay with me. What looks like a billing decision turns out to be a physics argument wearing a costume.

The company is Flexcompute3. They sell simulation computational fluid dynamics, and finite-difference time-domain electromagnetics, two workloads that have been eating supercomputers alive for as long as there have been supercomputers to eat. And they do not charge you for the computer.

They charge you for the problem.

The Word Itself

i always start with the word, Dear Reader, because the word usually knows more than the pitch deck.

Credit, from the Latin credere. To believe. To entrust. A credit is a belief about value held between two parties, and it is worth exactly what the issuing party says it is worth, right up until the moment they say otherwise. Every loyalty point, every arcade token, every airline mile, every cloud dollar. A belief.

Joule, from James Prescott Joule, who spent years measuring the mechanical equivalent of heat by churning water with a paddle wheel and watching the temperature rise. A joule is not a belief. Nobody can reprice it. It is a kilogram-meter-squared per second-squared and it will be that in Charleston, in Reston, on the moon, and after every company in this essay is a footnote.

Denominator, from denominare. To name. The thing that does the naming.

Hold those three. The whole essay is in there.

What They Actually Did

Here is the legacy model, which is the model essentially every cloud has used since the day cloud became a word:

    \[\text{Cost} \;=\; \text{Hardware Rate} \times \text{Wall-Clock Time}\]

Innocent-looking. It is not innocent. Sit with it for a second and you will see the problem, and once you see it you cannot unsee it anywhere in this industry.

If i bill you by the hour, i get paid more when my software is worse.

That is not a cynical reading. That is the arithmetic. A badly optimized solver running on a stalled node behind a queue is, to the provider, indistinguishable from a good quarter. The incentive gradient points directly away from the thing the customer wants. Everyone in the chain knows this and everyone has agreed not to mention it, the way you do not mention that the bar is pouring doubles.

Flexcompute changed the denominator. Their currency, the FlexCredit, is computed like this:

    \[\text{FlexCredits} \;\propto\; N_{\text{grid}} \times N_{\text{steps}}\]

Spatial resolution times temporal resolution. The Tidy3D documentation says it plainly: a FlexCredit reflects the size of a simulation, in both grid points and timesteps, and it explicitly does not reflect the compute time required to run it4. (i am scoping that to Tidy3D on purpose, because that is the FAQ i read. Confirm the Flow360 terms separately before quoting them5 a company can run different billing models on different solvers, and i am not going to assume one from the other.) When you upload a job the system prints the maximum cost before a single cycle burns. If the physics converge early and the solver shuts off, the bill is prorated down6.

Read what that does to the incentive.

Now if their solver is slow, they tie up their own silicon longer and earn exactly the same number of credits. The risk moved across the table. They are now structurally obligated to write the fastest code on earth, because every hour they shave is an hour of their own hardware they get back. Their own documentation offers a rough benchmark: one FlexCredit is somewhere around fifty hours of traditional CPU core time for FDTD7. Their job is to make that number keep falling, and the pricing model is what makes it their job.

Plenty of companies write mission statements about customer alignment. This is one of the few that put it in the arithmetic instead, where it cannot be walked back by a new VP.

#TCTRules: The denominator is the strategy. Everything above it is marketing.

And Now On With The Show

Because grid points times time steps is a good denominator. It is not the last one.

It is a model of the work. A very good model – it is the literal mathematical definition of the problem, which is why it feels so clean. But it is still a human-chosen proxy that a company issues and a company could, in principle, reprice. It is a credit. It is a belief.

Go one level down and you hit the thing nobody issues.

    \[\eta \;=\; \frac{\text{useful work}}{\text{joule}}\]

Normalized compute per unit of power. FLOPS per watt, tokens per joule, useful answers per kilowatt-hour. The Green500 has ranked supercomputers this way for years8, which tells you the people closest to the metal worked this out a long time ago while the people writing the invoices did not.

And here is why it is a different kind of number than everything above it.

Hours drift. A 2015 hour and a 2026 hour buy wildly different amounts of computation, which means every contract denominated in hours is silently repriced by Moore’s law and nobody renegotiates. Instance types drift the same label buys different silicon in different regions in different years. Seats drift. Credits drift, because the issuer can change the conversion.

A joule is defined by physics, not by a vendor. It is the one quantity in the entire stack anchored to the universe instead of to a price list.

Be careful with that sentence, though, because a joule drifts too just not where you expect. It drifts in two places, and neither of them is the definition.

It drifts in price. Electricity costs wildly different amounts in different places and at different hours several fold, routinely, between a Virginia afternoon and an Icelandic midnight.

It drifts in what it buys. The number of computations a joule pays for has roughly doubled every year and a half for most of the field’s history, slowing to about every two and a half years since 20008. A 2015 joule and a 2026 joule buy wildly different amounts of computation, exactly as the hours do. That is the eight or nine orders of headroom from the next section, being spent in real time.

So the joule is not immune to drift. What it does is put the drift where you can see it. An hour folds efficiency, silicon, and margin into one opaque rate, and the vendor’s internal business stays internal. A joule splits the same drift into two public numbers: a price you can index and hedge, and an efficiency – useful work per joule – you can measure. The thing that does not drift is the problem itself: a converged simulation, a retained token, a validated answer. Price that against a reference joule count that is revised on a published schedule, and the drift stops being hidden and starts being shared. That is the whole proposal, and i will get to it.

The Floor

Now go all the way down, because this is where it stops being an economics essay and becomes a physics one.

There is a hard thermodynamic bottom to computation and we have known about it since 19619. Landauer’s principle: erasing one bit of information dissipates at least k_{B}T\ln 2 of energy as heat. Run the numbers at room temperature, 300 kelvin:

    \[E_{\min} \;=\; k_{B}T\ln 2 \;\approx\; 2.87 \times 10^{-21}\ \text{J}\quad (T = 300\ \text{K})\]

Two point eight seven zeptojoules10. Which means one joule, spent perfectly, with no waste whatsoever, buys you about 3.5 \times 10^{20} bit erasures. That is the floor. Not an engineering target – a floor, the way the speed of light is a floor.

The honest footnote, because the physics in this blog is not allowed to be knowingly false: the bound is on erasure, not on computation as such. Reversible computation can in principle dodge it11, which is a genuinely open and genuinely interesting corner of the field. But every machine any of us has ever shipped erases constantly, and every one of them is running something like eight or nine orders of magnitude above that floor.

Eight or nine orders of magnitude. Sit with that. We are not near the wall. We are not even in the same county as the wall. Everything between here and there is headroom, and headroom is where value lives.

And Shannon got there before Landauer did, from the other direction. The Shannon limit says there is a minimum energy per bit for reliable communication: E_b/N_0 cannot go below \ln 2, which is -1.59 dB12. Information theory and thermodynamics, walking into the same bar from opposite doors, and both of them ordering in joules.

The price was always in energy. We have simply been billing in a proxy currency and calling the proxy the thing.

The Token Is Not A Layer

“The choice of a logarithmic base corresponds to the choice of a unit for measuring information.”

Claude E. Shannon, A Mathematical Theory of Communication, Bell System Technical Journal 27 (1948), 379–423

Dirt To First Token through the energy layer.

Owning a layer and choosing a denominator are two different moves. The layer is the thing you own, and other people stand on. The denominator is the unit you meter it in. You can own a layer and meter it stupidly. You can pick a brilliant denominator for a layer you don’t own; that is called being a reseller.

Which brings me to the token, and i want to say this plainly because a lot of money is currently confused about it:

A token is not a layer. A token is a unit of account.13

Nobody owns tokens. They are the metering unit for a layer that somebody else owns: silicon, memory bandwidth, and a power purchase agreement. Confusing the two is how a company ends up believing its moat is a billing unit.

And here is the part that should make every person reading this sit up, because the token denominator has the same bug the hour has, just rotated.

Per-token pricing is linear. The physics is not.

i wrote about this in SnakeByte[21]14, about the long-context arms race: standard self-attention has computational complexity that scales quadratically with the sequence length \bigl(\mathcal{O}(n^{2})\bigr)15. So a hundred thousand token prompt is not a hundred times a one thousand token prompt at the attention step. It is far worse than that. The invoice says linear. The silicon says quadratic.

Any time the price curve and the cost curve have different exponents, somebody is eating the difference, and the pressure that creates does not point at making long context genuinely cheap. It points at quietly capping the window, degrading retrieval, truncating the middle, and hoping nobody runs the experiment. Same adversarial gradient as the hour. Different rotation.

It gets worse, and better, when you look at what is physically happening. Prefill processing the prompt is compute-bound. Decoding, generating the next token, is memory-bound. i surveyed this at length in the disaggregation piece16 and the whole reason the field is splitting those phases onto separate clusters is that they are two different machines pretending to be one.

Two different machines means two different energy profiles. Moving a byte out of high-bandwidth memory costs substantially more energy than doing arithmetic on it once it has arrived17.

Providers do not charge one flat rate per token. They already tier. Output tokens run roughly three to six times the price of input tokens the median across the market sits near four and cached input is routinely discounted to something like a tenth of a fresh input token. Some models have started charging a long-context surcharge above a couple of hundred thousand tokens18.

Look at what that tiering actually is. Input is prefill, which is compute-bound. Output is decode, which is memory-bound. Cached input is prefill you already paid for and do not have to redo. The pricing sheet has been quietly converging on the physics for two years and nobody has said so out loud. It is the same move Flexcompute made, arrived at by trial and error instead of by design.

Which makes the remaining gap the interesting part, and it is still a gap. Three buckets is not a measurement. Input, output and cached is a coarse quantization of a continuous cost surface, set by what the market will bear and revised when margins hurt – and inside every one of those buckets the exponent mismatch is still running, because attention is quadratic and the bucket is priced per token. The surcharge above two hundred thousand tokens is the tell. That is not a pricing strategy. That is a quadratic poking through a linear schedule hard enough that somebody had to patch it.

i already proposed a better denominator without quite noticing i had. In that same piece i suggested metered billing based on tokens stored and tokens retrieved – which separates the memory term from the compute term, and is therefore closer to the physics than a flat per-token rate. That is exactly the move Flexcompute made. Split the proxy into the parts that actually cost different amounts.

And one level below mine is the one i did not write, which is this whole essay:

    \[\frac{\text{joules}}{\text{retained token}}\]

i ended that post with the architectural arms race is becoming a memory computation problem, and then i signed off with Got More Ram? i meant it as a joke about capacity.

It is not a capacity question. Memory movement is where the energy goes. Got more ram is an energy question wearing a capacity costume, and i did not see it until i went looking for the denominator underneath my own denominator.

Atoms, Bits, Atoms

Here is why physics-based simulation is the right place to have found this argument, and not an accident that it showed up there first.

Simulation is a round trip. It starts in atoms and it ends in atoms, and everything in between is a detour through representation.

    \[\text{atoms} \;\rightarrow\; \text{representation} \;\rightarrow\; \text{arithmetic} \;\rightarrow\; \text{representation} \;\rightarrow\; \text{atoms}\]

A wing exists. Air exists. Neither of them is doing math. The air is simply obeying Navier-Stokes because it has no choice, in continuous time, at no computational cost to itself, everywhere at once. We cannot watch that directly at the resolution we need, so we chop the wing into a mesh, chop time into steps, quantize every continuous quantity into a finite number of bits, and then ask a machine to imitate what the air was already doing for free.

Then we convert back. We cut metal. We etch a photonic circuit. Atoms again.

Every one of those arrows is a conversion, and every conversion is a tax paid in energy and fidelity. This is the same border i wrote about in the analog essay19, with the stakes raised: life is not band-limited, and neither is a wing in turbulent flow. We sample it anyway because countability is a magnificent trade. But we should at least know what we are being charged.

And look at what the arithmetic in the middle actually is. Strip away the frameworks and the schedulers and the driver stack and you reach the same irreducible operation in almost every workload that matters right now:

The Almighty Dot Product.

Multiply a row by a column and accumulate. That is a CFD (computational fluid dynamics) solver doing a sparse matrix-vector product inside a Krylov iteration. That is a finite element code applying a stiffness matrix. That is attention computing how much one token cares about another. That is a convolution. The GPU won the last decade not because it is a graphics device but because it is a dot product device, and the whole industry quietly reorganized itself around the one primitive the hardware does well.

For anybody who has not spent a career inside a solver: CFD is simulating how a fluid moves. Air over a wing. Water through a pump. Blood through an artery. FEA is finite element analysis, simulating how a solid deforms and where it fails. The load on a bracket, the stress in a bridge, a phone chassis meeting a sidewalk. Even acoustical rendering. All work the same way: chop the thing into millions of small pieces, write down how each piece affects the pieces touching it, and solve. That stiffness matrix K is exactly that bookkeeping for a structure – how every piece pushes back on every other piece.

For those that remember it, here is the math. One operation:

    \[\mathbf{a}\cdot\mathbf{b} \;=\; \sum_{i=1}^{n} a_{i}\,b_{i}\]

And here is that same operation wearing four different hats:

    \[\begin{aligned} \text{CFD / linear solve:}\qquad (A\mathbf{x})_{i} &= \sum_{j} A_{ij}\,x_{j} \\ \text{FEA / stiffness:}\qquad \mathbf{f} &= K\mathbf{u} \\ \text{Attention:}\qquad \bigl(QK^{\top}\bigr)_{ij} &= \mathbf{q}_{i}\cdot\mathbf{k}_{j} \\ \text{Convolution:}\qquad (f * g)[n] &= \sum_{m} f[m]\,g[n-m] \end{aligned}\]

Four fields, four vocabularies, four sets of conferences that do not talk to each other. One sum of products.

And i want to make the strong version of that claim, because it is the point and not a footnote. These are not four analogous operations. They are the same operation. Each one is a bilinear form – a sum of products – and every one of them can be written as

    \[\mathbf{y} \;=\; M\mathbf{x}\]

for some matrix M. The only thing that changes between the four is what M looks like. Sparse for CFD and FEA, because a cell or an element only touches the ones next to it. Toeplitz for convolution, because the same kernel slides along the signal and every row is the row above it shifted by one. Dense for attention – and this is the genuinely new thing in the list – with the matrix produced by the data at runtime rather than fixed in advance by the geometry of a wing or a bracket.

What belongs to this family is the QK^{\top} kernel and the final multiplication by V. The softmax sitting between them is not a bilinear form and is not the same operation at all. Attention is a sandwich of two dot-product layers with a nonlinearity in the middle. The bread is the same. The filling is not.

Same function. Different structure. And here is why that matters for an essay about energy: the structure is where the joules hide. A sparse matrix, a sliding kernel, and a dense data-dependent matrix have wildly different memory access patterns, and memory movement is what costs. The arithmetic is identical across all four. The energy is not even close. Which is exactly the gap a denominator ought to be measuring and the hour never could.

Underneath all of it is the single instruction the silicon actually executes – multiply, add it to what you already had, keep going:

    \[c \;\leftarrow\; c + a\,b\]

That is the whole machine. Everything else is scheduling.

Which means the leverage point is not the model and it is not the framework. Change what a dot product costs and you change everything stacked on top of it, all the way up to the invoice.

Now the part that made me want to write this section.

In a digital machine, a multiply-accumulate is hundreds to thousands of transistors switching, each one dragging charge across a capacitance and dumping it into the heat sink. In an analog crossbar, you apply voltages along the rows, store the weights as conductances at the crosspoints, and let Ohm’s law do the multiply and Kirchhoff’s current law do the sum. The answer arrives on the wire as a current. One step. No clock. No instruction fetch20.

    \[I_{j} \;=\; \sum_{i} G_{ij}\,V_{i}\]

Look at that sum, then look back at the dot product. Same equation. Conductance standing in for one operand, voltage for the other, and Kirchhoff performing the accumulation for free, because current arriving at a node has nowhere else to go.

Read the symbols slowly, because each one is doing something a digital machine has to work for.

G_{ij} is conductance – the reciprocal of resistance, measured in siemens, which is a unit named after a man and not a committee. V_i is the voltage you put on row i. And Ohm’s law, written in the conductance form, says the current through that crosspoint is G_{ij}V_i.

The multiplication happens because the device exists. Nobody issued an instruction. There is no opcode for it. Apply a voltage to a resistor and the multiplication has already occurred by the time you finish reading this sentence, because the electrons are not waiting for a clock edge.

Then the sum. Every crosspoint on column j dumps its current onto the same wire, and charge is conserved, so the wire carries the total whether anybody wanted it to or not. Kirchhoff’s current law is the accumulator. It costs nothing because it is not a step. It is a consequence.

Now the part that matters for this essay. In a digital machine, the weight is a number. It lives in memory, and to use it you fetch it, move it across a bus into a compute unit, multiply, and move the result back and every one of those moves is where the joules actually go. In the crossbar, the weight is the device. Storage and arithmetic are the same physical object. There is no bus, because there is nothing to move.

That is not a faster von Neumann machine. That is a machine with the von Neumann bottleneck removed by construction. (there is another blog here on the aspects of Von Neumann moving ahead, but i digress)

And the cost changes shape though not the way the brochures say. A digital matrix-vector product on an N \times N matrix costs on the order of N^{2} operations, executed one after another in time. The crossbar does every one of them at once and reads the answer in a single settling time. The clock says constant.

The physics does not. The array is still N^{2} devices, every one of them dissipating, so the energy still scales as N^{2}. The settling time grows with the resistance and capacitance of the wires, and the voltage drop along a long row caps a practical array at a few hundred lines, so a large matrix gets tiled across many arrays and the partial sums get added back up digitally. You did not escape the N^{2}. You moved it from time into space and paid for it in joules.

Which is the most useful thing in this whole section, because it is the cleanest demonstration of the argument i am making. The clock says one step. The instruction count says nothing at all. The joules still say N^{2}. Only one of those three gauges is telling you the truth about the work.

Analog is noisy. Device-to-device variability, drift over time, temperature dependence, and an effective precision that is realistically a handful of bits rather than thirty-two. Writing the conductances is slow and wears the devices out, which makes this a good inference machine and a poor training one.

And here is the part that should make you laugh, given where this section started: you still need converters at the edges. Digital in, analog across the array, digital out and in a great many designs the analog-to-digital converters on the output side dominate the energy and the silicon area21. The conversion tax does not vanish. It gets pushed to the boundary, where it sits waiting for you, exactly as it did in the wing and the mesh.

But notice what has happened to the denominator while we were looking at physics.

There is no instruction count in that equation. No clock. No opcode stream to add up, because nothing is executing in the sense the word usually means. You can still count the multiply-accumulates on paper – there are N^{2} of them – but nothing on the machine counts them for you, and the meter that every invoice is built on has nothing to read. The hour means nothing. The instruction means nothing.

One quantity survives the trip: the energy it took to settle.

The machine is not simulating the dot product. The machine is the dot product.

And once you say that out loud, the next question asks itself: how far does that go?

A human brain runs on roughly twenty watts22. Two dim light bulbs. It is a chemical, analog, massively parallel machine that computes by being the physics – ions crossing membranes, gradients relaxing, concentrations doing the arithmetic directly. No mesh. No time steps. No clock. Neurons do fire in all-or-none spikes, so it is a hybrid machine rather than a purely analog one – but almost nothing in a brain converts the world into a number and back.

We are currently spending megawatts to approximate a fraction of what twenty watts does natively, and we are doing it by first converting the world into integers. That gap is not a scandal and it is not a mystery. It is a conversion tax, and it is the single largest line item in computing that nobody prices.

Neuromorphic silicon, in-memory compute, photonic matrix units, and the genuinely strange work in molecular and chemical computation are all, whatever their marketing says, one bet: that the way out is to stop converting. To get the atoms to do the arithmetic.

And the only unit that lets you compare any of them is the joule.

That is the argument underneath this entire essay. You cannot compare a GPU-hour to a neuron. You cannot compare a FlexCredit to a chemical reaction network. The unit does not survive the trip across substrates – it is defined in terms of the machine. But joules per converged solution, joules per retained token, joules per useful answer: those are quotable by silicon, by an analog crossbar, by a vat, and by a skull.

Energy is the only denominator that is substrate-independent. Which makes it the only one you can run a market in when the substrates stop being the same.

The Pendulum Knows The Way Home

i wrote an essay a while back about returning to the analog, and i made a claim in it i want to come back to. i said we will have analog computing devices again physics doing the mathematics directly, in proportion, instead of counting its way toward an answer.

i made it then as an aesthetic claim. The crossbar above is the argument i did not have at the time, and it is an energy argument.

Nobody is going back to analog because it is charming. It is coming back because when the binding constraint becomes joules per useful answer, a machine that computes by being the equation holds a thermodynamic advantage that no process node will close.

Analog degrades. Digital detonates. And on the right problem, analog is cheaper in the only unit that cannot be redefined by the company sending the invoice.

A Proposal: The Joule Standard

So let me invent the economic model rather, because if you do not set a standard, someone else will set it for you.

First, the metric. Call it the Landauer Ratio:

    \[L \;=\; \frac{E_{\text{actual}}}{E_{\min}} \;=\; \frac{E_{\text{actual}}}{k_{B}T\ln 2}\]

The problem is that a metric you cannot compute is a slogan.

No real workload tells you how many bits it erased. Nobody instruments that, the compiler does not know, and for anything above a toy circuit the number is not recoverable even in principle without a model of every intermediate the machine threw away. The pure form of that ratio is a thought experiment. It is good for establishing that a floor exists and useless for writing a contract.

The version you can actually bill against is per useful unit:

    \[L_{\text{unit}} \;=\; \frac{\text{joules per useful unit, measured}}{\text{joules per useful unit, reference}}\]

where the reference is a published best-known implementation of the same transformation at a stated level of the stack – not a thermodynamic ideal. That turns an absolute physics claim into a relative efficiency measure, which is weaker, less romantic, and the only one that can be audited. Say plainly which of the two you are quoting. Mixing them is how a number becomes marketing.

Landauer still sets the floor underneath both: about 2.87 zeptojoules per bit erased at room temperature. You have to say at which level of the stack you are measuring, because the number moves enormously depending on where you put the probe. A single CMOS gate switching is something like three to four orders of magnitude above k_{B}T\ln 2. A whole system doing useful work picojoules per bit, counting data movement, the memory hierarchy, the interconnect, and the cooling, lands nearer eight or nine23. The gap between those two numbers is not measurement noise. It is the transport. Which is the thing this entire essay is about.

That ratio, how far above the floor you are, measured at a stated level, is the single most honest quality metric available for a computer, and almost nobody publishes it.

Now the business model, and the design constraint, is the thing that killed the hour: you cannot simply bill per joule. If you do, the provider earns more by burning more and we have rebuilt the exact adversarial gradient we just spent this essay diagnosing. Charging for energy consumed is the hour wearing a lab coat.

So invert it, the way Flexcompute inverted the clock:

    \[\begin{aligned} \text{Customer pays} \;&=\; U \times J_{\text{ref}} \times p \\ \text{Efficiency carry} \;&=\; U \times \bigl(J_{\text{ref}} - J_{\text{actual}}\bigr) \times p \end{aligned}\]

where U is useful units delivered, J_{\text{ref}} the reference joules per unit, J_{\text{actual}} what the provider actually spent per unit, and p the contracted price per joule.

i am calling the second line the efficiency carry rather than the provider’s margin on purpose. They are not the same number, and the difference comes up in a moment.

Three moving parts, and one of them nearly sank the whole proposal, so let me take it head on.

p cannot be the grid price. i wrote it that way first and it is wrong. Energy is a minority of what a fleet of accelerators actually costs – the silicon, the building, the cooling plant, the network and the people dwarf the electricity bill. Price joules at what the utility charges and the revenue never recovers the capital. The model collapses on contact with a balance sheet.

So p is a contracted compute-joule price: the cost of one delivered joule of useful computation with the capital amortized inside it, indexed to a published grid reference so the energy component moves transparently instead of silently.

Which also means the efficiency carry is not profit. Once the capital lives inside p, what one delivered joule actually costs the provider depends on how busy the hardware is – a fleet running at forty percent utilization carries more than twice the capital per joule of one running at ninety. Cutting joules turns into margin only two ways: more useful units out of the same assets, or an energy bill large enough that the saving shows up directly. A provider that gets efficient and leaves its silicon idle has improved its Landauer Ratio and lost money doing it. The carry is the incentive. Utilization is still the business.

A contracted price is a negotiated number. There is a credere living inside p. i spent the first half of this piece separating beliefs from measurements, and here is a belief sitting in the middle of my own mechanism. The difference – and it is the whole difference – is that it sits in exactly one place, it is named, and it is indexed to something public. The hour hides a belief in every term and indexes none of them.

The useful unit is domain-defined and public: a converged simulation at a stated residual, a retained token, a resolved design candidate, a validated inference. It is the thing the customer actually came to buy.

The reference joules per unit is a published, periodically revised benchmark – the way the Green500 or SPEC work24, and with all of the same politics, which i will come back to. It is the industry’s current honest estimate of what this transformation costs in energy.

The price per joule is the contracted number from above the one place a belief is allowed to live – with its energy component indexed to a grid, so the part of it that moves is set by someone other than the vendor.

As written, the provider keeps the entire carry until the reference is revised, and that is not how performance contracting works anywhere it has survived. Energy service companies split measured savings with the customer25, because a contract where one party captures everything gets renegotiated in bad faith the moment it starts to bite. So put a share in it:

    \[\text{Provider's carry} \;=\; \alpha \, U \, \bigl(J_{\text{ref}} - J_{\text{actual}}\bigr)\, p\]

with the customer taking the rest. And here is the trade nobody gets around: you can have a bill that is predictable before launch, or you can have per-transaction savings sharing. Not both in the same term. The moment the customer’s share flows back per job, the invoice depends on J_{\text{actual}} and the up-front certainty is gone.

My own preference is \alpha = 1 per transaction – full predictability, provider keeps the carry – with the sharing happening intertemporally, through the ratchet. Revise J_{\text{ref}} down on a published schedule and the customer collects every efficiency gain on a known cadence instead of a noisy one. Buyers who would rather have the upside than the certainty take an \alpha below one and accept a variable bill. Write both contracts. Let the counterparty pick which uncertainty they would rather hold.

What that produces is the FlexCredit property one level down – a bill fixed before launch and tied to the customer’s own problem, and a provider whose every improvement to the solver, the memory hierarchy, the interconnect, the cooling or the substrate lands in its carry without a pricing committee. A performance contract, applied to computation itself.

And the reference ratchets. When the benchmark is revised down, yesterday’s carry becomes today’s table stakes – which is precisely what Moore’s law should have done to pricing for forty years and never did, because the unit of account was a machine-hour and machine-hours silently got cheaper while the invoice did not.

Why it matters for the chemistry. Under this model, a neuromorphic chip, a photonic unit, an analog crossbar, and a reaction network can all bid for the same job, because they quote in the same unit and get paid for the same thing. A substrate that is ten thousand times more efficient on a narrow class of problems does not need to win a general-purpose benchmark or displace an ecosystem. It just needs to show up with a better Landauer Ratio on one workload and collect the carry. That is how you get a market in exotic computation instead of a research program.

Where It Measured

Metering. Attributing energy to a single job across shared, virtualized, multi-tenant infrastructure at fine grain is genuinely hard and partly unsolved. Rack-level telemetry exists; honest per-job attribution including memory movement, network, and cooling overhead does not, at the fidelity a contract would need. This is the real engineering problem and it is where i would start if i were building the company.

Benchmark capture. Whoever writes the reference wins, and incumbents will try to write it. Any version of this governed by the largest providers converges on a baseline generous enough to guarantee their own margin.

Naming a risk is not a design, so here is the design. J_{\text{ref}} is not negotiated. It is set at a stated percentile of measured results on a published, versioned benchmark suite, administered by a body in which buyers hold at least as many seats as sellers, with the methodology public and every revision carrying an announced effective date so nobody can reprice retroactively. And there is a challenge procedure: any party – a competitor, a customer, an academic with a cluster – can submit a measured workload that beats or misses the published reference by more than a stated threshold and force a review inside a fixed window.

And the percentile cannot be drawn only from what sellers choose to report. Any target set from last period’s results teaches the people being measured to hide their best results – the ratchet effect, which economists documented in Soviet production quotas long before anyone built a data center26. So the percentile is computed over every valid run: challengers’ and buyers’ measurements included, and every run on a contracted fleet reported, not a curated few. A provider that sandbags the benchmark to keep the reference fat should find a customer’s audit run sitting in the same distribution.

None of that is novel. It is how every serious measurement regime ends up working, from fuel economy to electrical safety, and every one of them was captured at least once on the way there. Assume this one will be too, and build the challenge path first rather than bolting it on after the first scandal.

The cheapest adequate answer. A provider paid on the efficiency gap has an incentive to find the least expensive result that passes. In simulation that means coarser meshes and looser convergence; in inference it means quiet quantization and shorter effective context. Any contract like this needs a correctness floor with teeth, independently verified, or the efficiency carry becomes a quality tax paid by the customer who cannot audit.

Not every domain has a useful unit. Simulation does. Retrieval does. Batch inference does. Open-ended conversation does not, at least not yet, and pretending otherwise is how you get a metric that measures the wrong thing extremely precisely.

What This Means For Everybody Building Right Now

The entire industry is currently in the largest capital buildout of my lifetime, and almost all of it is denominated in hours. GPU-hours, instance-hours, reserved capacity, committed spend.

Meanwhile go read what is actually holding projects up. It is not chips. It is interconnect queues. Substation capacity. Transformer lead times measured in years. Power purchase agreements. Siting next to a river or a reactor.

The constraint has been quietly turning into the watt, and the invoices have not caught up.

The numbers are public and they are not subtle. Berkeley Lab counted about 2,061 GW actively waiting in US interconnection queues at the end of 2025: approximately 1,312 GW of generation and 749 GW of storage, and in the regions that report it, the median wait from interconnection request to commercial operation ran over five years for projects that actually came online in 2025. The IEA puts data centers at roughly 415 TWh in 2024, about 1.5 percent of world electricity, headed for about 945 TWh by 2030, and estimates that around 20 percent of planned data center projects are at risk of delay unless grid constraints are addressed.27 New transmission takes four to eight years in advanced economies. Nobody is waiting four to eight years for a GPU.

That gap – between the unit everyone is contracting in and the unit the physics is actually charging in is where the next decade of margin is going to be won and lost. It is the same shape as every call i have gotten right in thirty years, and now that i have split the sentence in two i can state it properly: own the layer everyone else treats as free, and meter it in the unit the physics is already using. In 2009, the layer meant underneath keywords. In 2026 it is the silicon and the power underneath the tokens – the tokens themselves being the meter, not the layer. And the unit the physics is already using, all the way at the bottom, holding up every other number in this essay, is a joule.

Flexcompute did not go all the way down. They went one level, from the clock to the problem, and that one level was enough to flip their incentive gradient from adversarial to aligned. That is the lesson, and it is available to anybody reading this:

Look at what you charge for. Then ask what behavior that denominator rewards when nobody is watching. That is what your company actually does for a living, regardless of what is on the wall.

The Stance

Find your denominator and say it out loud. Not your revenue – your unit. The thing you multiply by to get paid.

Then run the honesty test: if your product got twice as good tomorrow, would you make more money or less? If the answer is less, you do not have a pricing problem. You have an architecture that is quietly betting against your own engineers, and they can feel it even if they cannot name it.

And if you are building anything that will still be running in 2030, start carrying a second set of books in joules. Not because finance will ask. Because physics already is, and physics does not send invoices – it just stops giving you more.

Publish your Landauer Ratio before somebody else computes it for you. It is going to be an embarrassing number. It is an embarrassing number for everybody, which is exactly why the first few people to say it out loud will own the conversation.

The meter was always running in joules, Dear Reader. We have simply been reading the wrong gauge.

MUZAK TO BLOG BY: Kraftwerk, Radio-Activity. Men who understood that the signal and the power bill are the same conversation. On a pair of really good cans, at a volume that costs real watts. Check the track listing for the metaphor. The bass function for the rap beats we hear today.

Until then,

#iwishyouwater <- 2026 Small Mavericks in Half Moon Bay (i truly miss HMB)

#EverForward,

𝕋𝕖𝕕 ℂ. 𝕋𝕒𝕟𝕟𝕖𝕣 𝕁𝕣. (@tctjr) / X

Notes and References

Everything below was checked against the primary source. Where i could not verify something, the note says so instead of dressing it up. Prices and benchmark figures move; the dates are there so you know how stale a number is when you find it.

  1. Epigraph. Rolf Landauer, “The physical nature of information,” Physics Letters A 217 (1996), 188-193. ↩
  2. Epigraph. Claude E. Shannon, “A Mathematical Theory of Communication,” Bell System Technical Journal 27 (1948), 379-423 and 623-656. The line quoted is from the opening section, where Shannon is choosing his unit – which is the whole subject of this essay. ↩
  3. Flexcompute. Company and product pages: flexcompute.com for Flow360, the CFD solver, and the Tidy3D FDTD electromagnetics solver. i have no relationship with the company and no position in it. i read their documentation because the pricing model is interesting. ↩
  4. What a FlexCredit actually is. From Flexcompute’s own Tidy3D FAQ: “A FlexCredit reflects the size of a simulation, in both grid points and timesteps. It does NOT reflect the compute time required to run the simulation,” and “The cost of a simulation is primarily affected by the number of grid points and time steps.” Tidy3D learning-center FAQ, re-checked 30 October 2026. The billing page says the same thing in its own words: “FlexCredits are based on the size of the simulation (in spatial size and physical simulation duration),” with the printed maximum “determined by the cost associated with simulating the entire time stepping specified.” How is using Tidy3D billed? ↩
  5. Flow360, scoped on purpose. The claim above is Tidy3D’s and i am not extending it to the CFD solver without a source. What is public: the Flow360 technical brief bills in “FlexUnits” – a different word from Tidy3D’s FlexCredit – and prices them at “$3.5/FlexUnit” against a NASA reference solver at “$0.04/CPU-hour,” so the unit is plainly not a CPU-hour. But the public materials i can find do not state what determines a FlexUnit. Flow360 Technical Brief (PDF). If you need the Flow360 terms, get them from the company in writing rather than from this essay. ↩
  6. Priced before it runs, prorated if it stops early. “When a task is uploaded to our servers, we will print the maximum incurred cost in FlexCredit… This cost will be pro-rated if early shutoff is detected and the simulation is completed before the time stepping period.” How is using Tidy3D billed? ↩
  7. One FlexCredit, roughly fifty CPU core-hours. Flexcompute’s own rough comparison for traditional FDTD – about two days of one core running continuously, with sixty FlexCredits put at roughly a four-core machine running flat out for a month. They qualify it “at the time of writing,” which is the right way to quote a moving number. How many CPU hours is one FlexCredit comparable to? ↩
  8. Green500, and how fast a joule drifts. The Green500 ranks supercomputers by performance per watt, published twice a year alongside the TOP500. top500.org/lists/green500. For the long-run trend in computations per joule – the drift i say the joule is not immune to – see Jonathan Koomey, Stephen Berard, Marla Sanchez and Henry Wong, “Implications of Historical Trends in the Electrical Efficiency of Computing,” IEEE Annals of the History of Computing 33:3 (2011), 46-54, which found computations per kilowatt-hour doubling about every 1.57 years from the 1940s on; and Jonathan Koomey and Samuel Naffziger, “Moore’s Law Might Be Slowing Down, But Not Energy Efficiency,” IEEE Spectrum (2015), which puts the doubling time since 2000 nearer 2.6 years. ↩
  9. Landauer’s principle. Rolf Landauer, “Irreversibility and Heat Generation in the Computing Process,” IBM Journal of Research and Development 5:3 (1961), 183-191. Full text (PDF), IEEE ↩
  10. The number itself. k_{B}T\ln 2 at T = 300 K works out to 2.87 \times 10^{-21} J. The 3.5 \times 10^{20} erasures per joule is just the reciprocal of that – do it on a napkin, you do not need a source. For the experiment showing the bound is physically real and not an accounting identity: Antoine Bérut, Artak Arakelyan, Artyom Petrosyan, Sergio Ciliberto, Raoul Dillenschneider and Eric Lutz, “Experimental verification of Landauer’s principle linking information and thermodynamics,” Nature 483 (2012), 187-189. PubMed, PDF ↩
  11. Reversible computation. Charles H. Bennett, “Logical Reversibility of Computation,” IBM Journal of Research and Development 17:6 (1973), 525-532 – the result that a computation carrying no erasure has no Landauer floor underneath it. Full text. This is the honest escape hatch under the whole section, and it is why the bound in note 9 is on erasure and not on computation. ↩
  12. The Shannon limit on energy per bit. The E_b/N_0 \ge \ln 2 \approx -1.59 dB floor for reliable communication falls out of the Shannon-Hartley capacity as bandwidth goes to infinity. Standard treatment: MIT OCW 6.451, Principles of Digital Communication II, ch. 4 (PDF), and the E_b/N_0 summary for the one-line version. ↩
  13. The token as a unit of account. My own earlier piece on this: The Token Is The New Constraint (25 April 2026), where i argued that “every token is billable, forecastable, and optimizable” and that tokens “define bounded buffers of context.” That essay treats the token as a constraint. This one argues it is a meter, which is the correction. ↩
  14. SnakeByte[21]. SnakeByte[21]: The Token Arms Race – Architectures Behind Long-Context Foundation Models (9 July 2025). The two lines i quote myself on are there verbatim: “Metered billing based on tokens stored and tokens retrieved,” and the sign-off, “the architectural arms race is becoming a memory computation problem,” followed by “Got More Ram?” i meant the last one as a joke. It was not a joke. ↩
  15. Quadratic attention. The complexity claim in SnakeByte[21] – “a computational complexity that scales quadratically with the sequence length” – traces to the original formulation: Ashish Vaswani et al., “Attention Is All You Need,” NeurIPS 2017, arXiv:1706.03762. Every long-context architecture since has been an attempt to get out from under that exponent. ↩
  16. Prefill and decode are two different machines. My survey: A Survey Of Architectures And Methodologies For Distributed LLM Disaggregation (August 2025). The primary literature: Yinmin Zhong et al., “DistServe: Disaggregating Prefill and Decoding for Goodput-optimized Large Language Model Serving,” OSDI 2024, arXiv:2401.09670 / USENIX; and Pratyush Patel et al., “Splitwise: Efficient Generative LLM Inference Using Phase Splitting,” arXiv:2311.18677. Prefill is parallel and compute-bound; decode is sequential and bound by memory bandwidth. That is the whole reason the field started pulling them onto separate clusters. ↩
  17. Moving the operand costs more than the arithmetic. Mark Horowitz, “Computing’s Energy Problem (and what we can do about it),” ISSCC 2014 plenary, doi:10.1109/ISSCC.2014.6757323 – slides/paper (PDF). This is the paper everyone cites for the gap between the energy of an operation and the energy of fetching its operands, and it is the quantitative backbone of the argument that the denominator belongs on data movement rather than on FLOPs. ↩
  18. Token price tiering. Checked against providers’ published pricing in October 2026. The pattern is consistent across the market: output priced several times above input, cached input discounted steeply, and at least one flagship model carrying a higher rate above roughly a 200,000-token prompt. These change often enough that you should read the current page rather than trust this one – Gemini API pricing, Claude pricing, and the equivalent page from whichever provider you are actually billed by. The argument in the essay does not depend on the exact multiples; it depends on the fact that the tiers exist and map onto prefill, decode and cache reuse. ↩
  19. The analog essay. Return To The Analog (aka Life Is Not Band-Limited). That piece made the case on aesthetic and information-theoretic grounds. The crossbar section above is the energy argument i did not have at the time. ↩
  20. Analog in-memory computing. The crossbar primitive – conductances as weights, Ohm’s law as the multiply, Kirchhoff’s current law as the accumulate – is the organizing idea behind a large body of work on in-memory and compute-in-memory accelerators. Reasonable entry points: “Analog or Digital In-memory Computing? Benchmarking through Quantitative Modeling,” arXiv:2405.14978, and “Memory Is All You Need: An Overview of Compute-in-Memory Architectures for Accelerating Large Language Model Inference,” arXiv:2406.08413. ↩
  21. The converters eat the win. That data conversion at the array boundary dominates energy and area in many crossbar designs is a well-documented result, not a rhetorical flourish: see Anirban Nag et al., “Newton: Gravitating Towards the Physical Limits of Crossbar Acceleration,” arXiv:1803.06913, and the benchmarking paper in note 20. This is the same conversion tax as the mesh and the wing, relocated to the edge of the chip. ↩
  22. Twenty watts. The brain runs about 20 percent of human resting metabolism on roughly 2 percent of body mass; against a resting budget near 100 W that lands at about 20 W. Source for the 20 percent figure: D. F. S. Rolfe and G. C. Brown, “Cellular energy utilization and molecular origin of standard metabolic rate in mammals,” Physiological Reviews 77:3 (1997), 731-758. For where the brain’s energy actually goes – mostly signaling – David Attwell and Simon B. Laughlin, “An energy budget for signaling in the grey matter of the brain,” Journal of Cerebral Blood Flow and Metabolism 21:10 (2001), 1133-1145 (PubMed 11598490); both are summarized with their antecedents at Harvard BioNumbers. Two dim light bulbs is a figure of speech, not a measurement – but it is the right order. ↩
  23. Where the probe goes. The “three to four orders of magnitude” for a single CMOS gate versus “eight or nine” for a whole system doing useful work is a level-of-abstraction statement, not a single published number, and i want to be exact about why. A gate’s switching energy sits a few thousand times above k_{B}T\ln 2. A system-level figure – picojoules per bit, counting the memory hierarchy, the interconnect, the cooling and the idle – lands several orders further out, which follows directly from the energy breakdowns in note 17. The spread between them is transport, and it is the only reason this essay has anything to propose. If you quote a Landauer Ratio, name your level or the number means nothing. ↩
  24. Benchmark governance. Green500 and SPEC are the working models for a versioned, periodically revised public benchmark, including the politics. Both have been gamed. Both survived it by publishing methodology and run rules. That is the design to copy, challenge procedure and all. ↩
  25. Performance contracting. The shared-savings and guaranteed-savings structures the Joule Standard is cribbing from have been in use for decades in energy services. See the IEA’s survey of energy performance contract models and, on the US federal side, Energy Savings Performance Contracts. The relevant lesson is not the arithmetic – it is that measurement and verification, not the contract language, is where these deals live or die. ↩
  26. The ratchet effect. Martin L. Weitzman, “The ‘Ratchet Principle’ and Performance Incentives,” Bell Journal of Economics 11:1 (1980), 302-308 – the formal treatment of what happens when next period’s target is set from this period’s performance: the agent learns to under-report. Joseph Berliner’s fieldwork on Soviet factory managers documented the behavior decades earlier. Any benchmark that sets J_{\text{ref}} from self-reported results inherits it, which is why the percentile has to be drawn from runs the sellers do not get to curate. ↩
  27. The grid is the actual constraint. Joseph Rand, Anna Cheyette, Chris Talley, Steven Zhang, Will Gorman, Ryan H. Wiser, Joachim Seel, Seongeun Jeong and Fredrich Kahrl, Queued Up: 2026 Edition – Characteristics of Power Plants Seeking Transmission Interconnection As of the End of 2025, Lawrence Berkeley National Laboratory, May 2026: about 2,061 GW actively seeking interconnection – 1,312 GW of generation and ~749 GW of storage – with a median of 61 months from interconnection request to commercial operation for projects built in 2025, among the projects with a valid in-service date (about 73 percent of them). i have quoted capacity rather than a project count because capacity is the figure i could confirm. Berkeley Lab. And International Energy Agency, Energy and AI (2025): data centers at “around 1.5% of the world’s electricity consumption in 2024, or 415 terawatt-hours,” projected to “more than double to around 945 TWh by 2030,” with roughly 20 percent of planned data center projects at risk of delay absent grid fixes, and new transmission taking four to eight years in advanced economies. IEA Executive Summary. ↩

A note on what is not cited. The economic model in A Proposal: The Joule Standard is mine and it is new, which means it has no reference because nobody has built it. The Landauer Ratio as defined here – measured joules per useful unit over a published best-known implementation at a stated level of the stack – is also mine, and it is deliberately weaker than the thermodynamic version so that it can actually be audited. Treat both as proposals, not findings. The physics in this essay is checkable and i have given you the receipts. The economics is an argument, and arguments are supposed to be attacked.

SnakeByte[23]: Maynard-Cross Learning (MCL): Hive Minds as a Single RL Agent

First i trust everyone is safe.

Second, i have been sitting on a draft SnakeByte for a while about a paper that does what i wish more swarm literature would do. It stops waving its hands at “emergence” and writes the update rule down. Instead of picking a library or method i decided to randomly pick cool papers. i just haven’t had a chance to sit with this one long enough for prime time. This paper caught my eye on the Keywords: Swarm Intelligence, Reinforcement Learning, Evolutionary Game Theory,
Evolutionary Biology.

A population of agents following a simple, local, purely imitative weighted-voter rule is mathematically equivalent to a single abstract reinforcement learning agent that updates its policy with Maynard-Cross Learning.

~ the actual claim

i guess this is where i am supposed to say, “A banger of a paper just dropped, and it shows how you can spin up 1-Billion Agents to make you 1-Billion Dollars In A Month.” i digress.

The paper is The Hive Mind is a Single Reinforcement Learning Agent (Soma, Bouteiller, Hamann, Beltrame, arXiv:2410.17517). Honey bees. Nest sites. Waggle dances. The usual natural-history furniture. Underneath that furniture is a bandit. Quantum spooky distance of the hive mind.

Can a single RL Agent perform as The Hive?

What the bees are actually doing

A scout finds a cavity. She grades it the way any field engineer grades a site: volume, exposure, how hard it is to get home. She comes back and dances. Duration and vigor scale with the reward she thinks she sampled. Another bee does not run a comparison. She copies the first dancer she runs into inside a small neighborhood. Blind imitation. Local. Cheap.

Do that with a few hundred scouts and the fraction of the swarm committed to each site starts to behave like a policy (\pi). Not a metaphor. A probability vector. The hive is not a mind hovering over the individuals. The hive is the update those individuals implement when you add them up.

MCL is that update. It sits in the same family as Cross Learning, which sits downstream of the replicator story Maynard Smith opened and Taylor, Jonker, Schuster, and Sigmund actually wrote as dynamics. Maynard Smith gave us the equilibrium. Other people wrote the motion. MCL is motion with a normalization the bees accidentally invented.

The discrete rule

One bee, one sample. She is committed to site (k) and comes home with a noisy reward (r_k). The population policy moves like this:

    \[\forall a,\quad\pi_a \leftarrow \pi_a + \alpha \frac{r_k}{v}\begin{cases}1 - \pi_a & \text{if } a = k, \-\pi_a & \text{otherwise.}\end{cases}\]


    \[where (\alpha = 1/N)\]

The swarm size is the learning rate. Bigger swarm, smaller step. The organism learns more slowly because there are more of them. That is not a bug. That is averaging. Pretty much the same physics as a learning rate.

You do not know the true mean rewards (q). So (v) in the denominator is not an oracle. In any implementation that can actually run, (v) is an online estimate. A moving average of rewards already seen. The normalization is “how good was this sample relative to what we have been getting.”

Skip the update when the estimate is sitting on zero. Do not divide by faith.

The continuous limit, and why the extra factor matters

Take the population large and the step small and you land on the Maynard-Smith replicator dynamic:

    \[\dot{\pi}_a = \frac{\pi_a}{v^{\pi}}\bigl(q_a^{\pi} - v^{\pi}\bigr),\qquad q_a^{\pi} = \mathbb{E}[r_a].\]

Classic Cross Learning, pushed to the same limit, gives you the Taylor replicator:

    \[\dot{\pi}_a = \pi_a \bigl(q_a^{\pi} - v^{\pi}\bigr).\]

The only new object is (1/v^{\pi}). Absolute rewards wander. Noise wanders with them. Dividing by the current average value keeps the step from blowing up when every site is paying well and from stalling when every site is paying poorly. It is a baseline. Bees did not call it a baseline. The algebra does.

The paper’s conditions for reliable convergence include a neighborhood that is not tiny. Something like (M \ge 5) before the quorum story gets trustworthy. Local does not mean “talk to one neighbor and call it wisdom.” Local means “small relative to (N), large enough to estimate a vote.” Hold that sentence. The plots below will test your patience.

One agent, N environments

Read the micro-rule from the macro side and the RL picture snaps into focus.

  • Each bee samples an action from (\pi). That is her current preference.
  • She receives a noisy reward from her own site visit. That is one environment.
  • Imitation averages those samples into the next (\pi).

That is a single online bandit agent aggregating action-value samples from (N) parallel environments. The individuals are not learners in the gradient sense. They are samplers with a copy rule. The learner is the distribution.

i want to be careful about the evolutionary sentence, because it is the one people will over-claim( omg lets anthropormoisize yet another algorithm). The equivalence supplies a plausible selective pressure for the imitation rule: a group that copies this way is doing group-level reinforcement learning whether or not any bee could tell you that. The paper does not prove that kin selection “favors group-level RL” as a primary result. It shows you a mechanism that would be worth keeping if selection ever got its hands on it. Mechanism first. Story second.

Why i care, and why you might

Most “swarm intelligence” (papers, decks, napkins) still hand you a metaphor and a video of drones in a pretty formation. This hands you a pseudo-compiler. If you know which bandit update you want at the macro scale, you can ask what local imitation rule realizes it. If you already have a local rule, you can ask which RL agent you accidentally built.

That is a design tool. Drone search. Sensor tasking and orchestration. Any flock of cheap agents that should not each be running a policy network. You do not put a sophisticated learner in every airframe. You put a sampler and a dance in every airframe, and you let the population be the learner.

Same mathematics, opposite direction of work. Derive the local rule from the update you want. Or read the update off the rule you already shipped.

The notebook:

# Maynard-Cross Learning: one abstract agent, and the bees it claims to be.
# Soma, Bouteiller, Hamann, Beltrame — arXiv:2410.17517
#
# Macro: streaming MCL. One sample per step. Learning rate alpha = 1/N.
#        v is NOT the true mean reward. It is an exponential moving average
#        of rewards actually observed. That is the version you can ship.
#
# Hive:  N agents. Each holds a discrete site preference.
#        Each step, every agent hears M neighbors and copies with
#        probability proportional to the rewards those neighbors just drew.
#        Nobody stores pi. The histogram of preferences is pi.

import numpy as np
import matplotlib.pyplot as plt

# --- bandit and swarm ---
K = 5            # sites / arms
N = 200          # bees; also sets alpha = 1/N on the macro side
T = 2500         # steps. clocks differ; see the post
delta = 0.15     # uniform noise half-width around each q_a
beta = 0.02      # EMA rate for the online baseline v
M = 8            # neighborhood size for the healthy hive
num_runs = 4     # macro seeds for the mean/std band
SEED = 42

q = np.linspace(0.25, 0.85, K)   # 0.25, 0.40, 0.55, 0.70, 0.85
optimal = int(np.argmax(q))      # arm 4


def run_mcl_macro(T=T, seed=0, q=q):
    """Serial MCL. One environment sample per tick."""
    local = np.random.default_rng(seed)
    alpha = 1.0 / N
    pi = np.ones(K) / K
    v_est = 0.0
    history = np.zeros((T, K))
    arms = np.arange(K)

    for t in range(T):
        history[t] = pi
        k = local.choice(K, p=pi)
        r = np.clip(local.uniform(q[k] - delta, q[k] + delta), 0.0, 1.0)

        # online baseline. first reward seeds it; after that, EMA.
        v_est = r if t == 0 else (1.0 - beta) * v_est + beta * r
        if v_est < 1e-8:
            continue

        # MCL: reinforce k by (1 - pi_k), decay every other arm by pi_a,
        # then scale by alpha * (r / v).
        update = alpha * (r / v_est) * np.where(arms == k, 1.0 - pi, -pi)
        pi = np.clip(pi + update, 0.0, None)
        total = pi.sum()
        pi = pi / total if total > 0.0 else np.ones(K) / K

    return history


def run_hive(T=T, seed=0, M=M, q=q):
    """Explicit bees. No policy vector. Histogram only."""
    local = np.random.default_rng(seed)
    prefs = local.integers(0, K, size=N)   # each bee's current site
    history = np.zeros((T, K))

    for t in range(T):
        counts = np.bincount(prefs, minlength=K).astype(float)
        history[t] = counts / N

        # every bee samples a noisy reward for the site she currently likes
        rewards = np.clip(
            local.uniform(q[prefs] - delta, q[prefs] + delta), 0.0, 1.0
        )

        # one neighborhood draw per bee, then a weighted copy
        new_prefs = prefs.copy()
        neigh = local.integers(0, N, size=(N, M))
        for i in range(N):
            js = neigh[i]
            votes = np.bincount(prefs[js], weights=rewards[js], minlength=K)
            total = votes.sum()
            if total > 0.0:
                new_prefs[i] = local.choice(K, p=votes / total)
        prefs = new_prefs

    return history


pi_macro = run_mcl_macro(seed=SEED)
pi_hive = run_hive(seed=SEED, M=8)
pi_hive_small = run_hive(seed=SEED, M=2)   # thin vote; easy bandit still locks

percent_opt = np.vstack([
    run_mcl_macro(seed=SEED + r)[:, optimal] * 100.0
    for r in range(num_runs)
])
mean_opt = percent_opt.mean(axis=0)
std_opt = percent_opt.std(axis=0)

# Figure 1 — full policy, both ontologies
fig, axes = plt.subplots(1, 2, figsize=(12, 5), sharey=True)
for a in range(K):
    axes[0].plot(pi_macro[:, a], label=f"arm {a}  q={q[a]:.2f}")
    axes[1].plot(pi_hive[:, a], label=f"arm {a}  q={q[a]:.2f}")
axes[0].set_title("Macro MCL (one abstract agent)")
axes[1].set_title(f"Hive (N={N} bees, neighborhood M={M})")
for ax in axes:
    ax.set_xlabel("step")
    ax.set_ylabel(r"policy mass \pi_a")
    ax.set_ylim(0, 1.02)
    ax.grid(True, alpha=0.3)
    ax.legend(fontsize=8, loc="center right")
fig.tight_layout()
fig.savefig("mcl_policy_evolution.png", dpi=140)

# Figure 2 — mass on the best arm, plus a too-easy small neighborhood
fig, ax = plt.subplots(figsize=(12, 5.5))
ax.plot(pi_macro[:, optimal] * 100.0, color="C0", lw=2.0, label="Macro MCL (this seed)")
ax.plot(pi_hive[:, optimal] * 100.0, color="C1", lw=2.0, label="Hive, M=8")
ax.plot(pi_hive_small[:, optimal] * 100.0, color="C3", lw=1.6, label="Hive, M=2 (too local)")
ax.plot(mean_opt, color="black", lw=1.4, ls="--", label=f"Macro mean over {num_runs} seeds")
ax.fill_between(
    np.arange(T), mean_opt - std_opt, mean_opt + std_opt,
    color="0.2", alpha=0.15, label="macro +/- 1 std",
)
ax.set_xlabel("step")
ax.set_ylabel("percent of mass on the best arm")
ax.set_title("Same bandit, three stories: abstract update, healthy hive, thin vote")
ax.set_ylim(0, 105)
ax.grid(True, alpha=0.3)
ax.legend(loc="center right", fontsize=9)
fig.tight_layout()
fig.savefig("mcl_optimal_convergence.png", dpi=140)
plt.show()

print(f"final macro   {pi_macro[-1, optimal]:.3f}")
print(f"final hive M8 {pi_hive[-1, optimal]:.3f}")
print(f"final hive M2 {pi_hive_small[-1, optimal]:.3f}")

Ok what is all of this doing?

On this seed the final mass on the best arm is 0.952 for the abstract MCL agent, 1.000 for the hive with (M=8), and 1.000 for the hive with (M=2).

That is exactly what the plots show. The abstract agent converges steadily. The hive converges “violently”. (Ya know you have to have some human adjective for code or a storm).

If your hive runs slower, change the problem before you change the theory. Shrink the reward gap. Increase the noise. Make the vote harder. That is the next experiment. If the macro agent converges toward the best arm and the hive does not under the same reward structure, then look at the voting implementation first. The equivalence is not rescued or refuted by a bad bincount.

A batch macro update would give you the fairer clock: draw (B=N) actions from (\pi), collect (N) rewards, average the MCL increments, and apply the aggregate update once. At that point the blue macro curve should stop looking quite so lazy.

Note your probably wondering why not use DEAP? It is the wrong first tool. Nothing here is evolving a genome or code base. This is a probability distribution concentrating under reinforcement. If, later, you want to evolve the dance itself so that a local swarm rule realizes some other desired macro-level bandit update, then put run_hive inside a fitness function and evolve the microscopic rule. Different experiment. Different blog. Maybe sometime in the future.

This one is the equivalence, watched with the lights on cause i’d rather see bees than hear them.

What the run actually did

Five arms. Mean rewards:

    \[q = (0.25,\ 0.40,\ 0.55,\ 0.70,\ 0.85).\]

Uniform reward noise has half-width

    \[\delta = 0.15,\]

with samples clipped to ([0,1]).

Arm 4 is optimal with expected reward (q_4=0.85).

The swarm contains

    \[N=200\]

bees, which also sets the serial macro learning rate to

    \[\alpha = \frac{1}{N}=\frac{1}{200}.\]

The online value baseline uses an exponential moving average with

    \[\beta = 0.02.\]

The run lasts (T=2500) steps. The healthy hive uses a neighborhood size (M=8). A second hive uses (M=2). We repeat the macro comparison across four seeds.

Same bandit. Same reward noise. Same initial ignorance. Very different clocks.

Figure 1 — Macro MCL policy evolution

The abstract MCL agent begins uniformly:

    \[\pi_a = 0.2\]

for all five arms.

From there, arm 4 starts accumulating mass while the weaker alternatives are progressively starved.

The movement is not monotonic because the agent is sampling noisy rewards one observation at a time. Arm 3, with (q=0.70), survives longest because it is the nearest competitor. The lower-reward arms disappear much earlier.

For the seed shown:

  • around step 100, arm 4 holds (0.213) of the policy;
  • around step 500, it holds (0.518);
  • around step 1000, it holds (0.725);
  • at step 2499, it holds (0.952).

Across the four macro seeds, the final mass on arm 4 ranges from approximately (91.5%) to (97.9%), with a final mean of (95.2%) and a standard deviation of about (2.37) percentage points.

The walk is noisy. The destination is not (which is usually always the case in life).

Figure 2 — Hive policy evolution, (M=8)

The hive is doing something operationally very different. This is a test of the public bee broadcasting system this is only a test.

There is no global (\pi) stored anywhere. Will we converge? The suspense is killing me i hope it lasts!

Each bee carries only a discrete site preference. Each bee samples a noisy reward from that site. Each bee then looks at (M=8) randomly selected neighbors and copies a site according to the neighbors’ reward-weighted votes. The policy exists only as the histogram of those preferences. And that histogram locks fast.

With (N=200) and (M=8), the optimal arm exceeds (95%) of the population by about step 22, exceeds (99%) by about step 24, and reaches complete fixation by about step 33.

The other four traces collapse onto the floor. That does not mean the hive discovered a better learning rule. It means the hive is consuming much more information per tick (i’m not sure if that is the correct wording; you can’t consume information?). The serial macro loop samples one action and one reward per step.

The hive samples roughly (N=200) rewards and performs roughly (N=200) local imitation decisions per step. Same family of mathematics. Very different amount of work per tick.

That distinction matters.

Figure 3 — Best-arm convergence

The convergence plot makes the clock mismatch explicit.

  • Blue is the serial Macro MCL run for seed 42.
  • Orange is the hive with (M=8).
  • Green is the hive with (M=2).
  • The dashed red line is the mean of the four macro runs.
  • The shaded band is (\pm 1) standard deviation across those macro runs.

Both hive variants race to the ceiling while the macro agent climbs gradually toward the same winner.

The (M=8) hive reaches complete fixation at roughly step 33.

The (M=2) hive takes longer, but only slightly: it exceeds (95%) around step 37 and reaches complete fixation around step 58.

So on this particular bandit, (M=2) does not fail.

That is important.

The reward means are spaced by (0.15), and the noise half-width is also (0.15). Arm 4 is sufficiently better than the alternatives that even a very thin neighborhood vote usually discovers the correct direction.

The paper’s warning about very small neighborhoods concerns reliability when the alternatives are harder to distinguish: smaller reward gaps, heavier noise, or situations where a lucky local sample can pull a tiny neighborhood into premature consensus. That is the experiment to run next. Let’s Shrink the gap.

Now let us increase (\delta).

Then see whether (M=2) starts believing the first charismatic (tiny) dancer it meets. Hold me close. Get the lyric?

Figure 4 — Early-time convergence

The early-time zoom is probably the clearest picture in the set because it removes the long flat tail after the hive has already converged. Within the first 250 steps, the distinction is obvious.

The (M=8) hive climbs from roughly (20%) initial representation to complete fixation in only a few dozen collective updates.

The (M=2) hive is somewhat noisier and slower, but still reaches fixation before step 60.

Over the same interval, the serial macro agent is still wandering between roughly (20%) and (30%) policy mass on the optimal arm.

Again: do not read that as intelligence. Read the clock. One side is processing one reward sample per tick. The other side is processing a population-sized batch. The comparison is deliberately unfair in wall-clock information because that unfairness exposes the architecture.

If you want schedule equivalence, batch the macro learner with (B=N), or slow the hive down to one imitation event per tick. What the plots show cleanly is something narrower and more interesting: the abstract update and the swarm of local copiers select the same arm. They agree on the destination. They do not agree on the schedule. The destination is the mathematical equivalence. The schedule is an implementation choice.

Confusing those two is like looking at the orange line, looking at the blue line, and deciding the theorem must be wrong because one of them has a faster clock.

The early-convergence zoom is particularly useful because it makes the clock mismatch visually obvious: the hive gets essentially to 100% within tens of collective updates while serial MCL is still around 20–30%. That directly illustrates the explanation that the “macro loop” consumes one reward per tick while the hive is consuming roughly (N) fresh observations per collective tick

Broader Implications For Maynard Learning


A swarm of cheap physical agents does not need a genius in every airframe. The paper’s equivalence says the opposite: if each body only samples and imitates locally, the population itself is already one online learner, aggregating noisy rewards across many parallel environments. In defense tech and physical AI that is a design rule, not a metaphor. A flock of scouts, buoys, or small unmanned vehicles can search, sense, and commit to a site, a route, or a task by a weighted-voter dance whose macro-update is Maynard-Cross Learning, with learning rate set by how many bodies you field and with no central policy server in the loop. Individuals stay simple, sometimes even “irrational” if you grade them one at a time. The group still converges. You get scale, you lose the single radio that everyone is waiting on, and you design the local copy rule so the hive you actually built is the bandit agent you meant to field.

It challenges traditional views of “intelligence” (the stochastic parrots will tell you they are) as individual-centric, showing how distributed systems can rival advanced RL agents through emergence.

Until Then,

#iwishyouwater <- the swarm does not have a leader. West Palm Beach Doing THE THANG.

#EverForward, stay local and still converge.

𝕋𝕖𝕕 ℂ. 𝕋𝕒𝕟𝕟𝕖𝕣 𝕁𝕣. (@tctjr) / X

MUZAK TO BLOG BY: Madman Across The Water, Tiny Dancer. Of course, Bernie Taupin was a lyrical genius, and well, you go play and sing like the madman – hold me closer, Tiny Dancer. Then i thought maybe Choo Choo Cha Choo? I am he, As you are he, As you are me, And we are all together, convergence if you will. The Oingo Boingo version is fire. Then again there is no one like the original.

Footnotes

[1] John Maynard Smith founded the ESS idea. The continuous replicator equation came later (Taylor & Jonker; Schuster & Sigmund). ESS is what the dynamics often sit down on. Do not hand him the differential equation. He already has enough credit. John Maynard Smith is also recognized as the founder of evolutionary game theory, providing the essential framework and the ESS concept that underpins the field, which later researchers, including those who formulated replicator dynamics, built upon. While Maynard Smith’s initial work focused on the static equilibrium concept of ESS, the replicator dynamics is a related concept developed later by other researchers (notably Taylor and Jonker, and Schuster and Sigmund) to describe the process of how strategies change in a population over time. The replicator equation is a set of differential equations that models how the frequency of a given strategy increases if its payoff (fitness) is higher than the average payoff of the population. The ESS is the stable, stationary point that the replicator dynamics often converge to. 

[2] Cross Learning is the “imitation of success” aggregate. MCL is the weighted-voter aggregate. Same family, different micro-rule, different (1/v) in the limit. If you implement CL by deleting the division, you can watch the robustness claim instead of taking my word for it.

[3] IS IT still ok to use jupyter notebooks? Is it like bell bottoms that might come back into vogue one day?

[4] Is it straight edge or punk to write your own LATEX?

[5] Hat tip to Fiona Cashin, keep those bees healthy. Great talking to you.

 

Return To The Analog (aka Life Is Not Band-Limited)

Steering The AI Home

If a function contains no frequencies higher than W cps [cycles per second], it is completely determined by giving its ordinates at a series of points spaced 1/(2W) seconds apart.

~ Claude Shannon

There is a trend in motion, Oh Dear Reader, and you have probably seen the listicle version of it by now: vinyl records coming back, paper books refusing to disappear, film cameras suddenly desirable again, kids buying cassette decks and wired headphones, journals and fountain pens and board games and phone-free dinners. The lifestyle press calls it digital fatigue, or a desire for authenticity, or a return to ownership, prescribes a screen-time budget, and moves on. All true, as far as it goes.

It just does not go very far.

Because i do not think this is really about vinyl, or books, or film, or the sudden romance of an object you can hold in your hand. i think something deeper is moving underneath it, and the best place to begin is with the word itself, because the word usually knows more than the trend piece does.

Analog comes from the Greek analogos — ana, meaning according to, and logos, meaning ratio, proportion, word, or the ordering principle. An analog signal is one that remains in proportion to the thing it represents. The groove moves as the air pressure moved. The voltage rises as the string vibrated. The speaker cone moves air in response. There is a continuous correspondence with the source.

Digital comes from the Latin digitus. Your Fingers. Counting on fingers.

Sit with that for a moment. Analog literally points toward proportion, toward correspondence with the underlying thing. Digital points toward counting. One is continuous relationship. The other is enumeration.

When we digitized the world we traded correspondence for countability, and that was an extraordinary trade. We gained perfect copies, search, recall, distribution, editing, storage, simulation, communication, computation at scales that would have looked like sorcery not very long ago. i am not interested in pretending that was a mistake.

But nobody should pretend nothing was surrendered at the border.

The quote at the top of the blog is essentially a law in signal processing that says if you sample something frequently enough, you can recreate it accurately. Take enough snapshots closely enough together and eventually those discrete measurements begin to look continuous. That idea sits underneath digital audio, digital video, telecommunications, imaging, and much of the world we now inhabit.

The important phrase, though, is frequently enough.

If you do not capture enough of the original signal, the missing information can fold back into what you do hear or see as distortion. Engineers call it aliasing. The interesting thing about aliasing is that the artifact can look perfectly legitimate even though it was created by what you failed to capture.

And life, Dear Reader, is not band-limited.

A conversation is not merely the words that were spoken. Friendship is not the messages exchanged. A concert is not the clips somebody uploaded afterward. A vacation is not the photographs. A human being is certainly not the profile. Yet we increasingly experience the world as samples of the world: the notification that was almost a conversation, the video call that was almost a visit, the playlist that was almost sitting down with the record, the highlight reel that was almost a life.

Perhaps some of what we call digital fatigue is simply the exhaustion of living through samples.

We keep increasing the resolution of the simulation while wondering why we still miss the source.

i helped create this digital wave.

There is another distinction here that matters. Analog systems tend to fail gradually (and really cool failiures). Push old tape too hard and it compresses and distorts before it completely gives up. A photograph fades. A book wears. A record acquires noise. Wood changes color. Leather cracks. The degradation becomes part of the history of the object.

Digital systems are different. They tend to remain exact until some boundary is crossed, and then the file is corrupted, the account disappears, the format becomes unreadable, the service goes away, or somebody changes the terms.

Analog tends to age.

Digital tends to work until it does not.

That difference may explain some of the attraction to physical things now. A worn book tells you where it has been. A record collection occupies actual space and survives independently of a subscription. Handwriting records the movement of a hand instead of merely preserving the letters that were chosen. These things participate in time rather than simply storing information about it.

And this is where the discussion becomes more interesting than nostalgia, because the analog is not really about old equipment. It is about continuous interaction.

Consider a fader on an old mixing console. You do not choose from a list of predetermined values. You put your fingers on it and move it while you listen. The sound changes, your hand responds, the sound changes again, and the loop closes almost below conscious thought. You are not configuring the machine so much as playing it. There may be thousands of tiny corrections inside a good mix that nobody could meaningfully write down because the performance exists in the continuous relationship between the hand, the ear, and the sound.

The wave is the same instrument at a much larger scale. A swell can travel hundreds or thousands of miles before arriving beneath you, and the face is changing while you are reading it. There are no frames. There is no menu. You commit before you possess all the information and then continuously adjust to something that is continuously adjusting to you. When you ride a wave on a board the rail of the board is continuous with you and the wave. You are either in proportion with the thing or you are not, and the feedback loop closes faster than language.

The breath hold is the third version of the same idea. Put a human body in water, hold the breath, descend, and the body begins responding continuously to pressure, oxygen, carbon dioxide, temperature, depth, and effort. Nothing is polling every few seconds to ask what state you are in. The system changes as the environment changes. The ocean changes the body and the body responds to the ocean in real time.

There is no interface between the two.

There is no undo.

There is simply the system and your place inside it.

The fader, the wave, and the breath hold appear to have very little to do with one another, but to me they are the same instrument. A continuous human coupled to a continuous system with immediate feedback and consequence. That may be why these kinds of experiences feel so different from most of the digital systems around us. The digital world increasingly asks us to select. The analog world requires us to participate.

And that brings us strangely enough to first-principles thinking.

Everybody now wants to talk about going back to first principles: strip away precedent, stop copying the accepted pattern, reduce the problem until you find what is actually true, and then build upward again. i have written my version of this elsewhere with Reduce, Refactor, Reuse and loops within loops, but notice what first-principles reasoning actually requires.

Precedent is somebody else’s sample of somebody else’s problem.

It has already been compressed, categorized, normalized, and turned into a lookup table before you arrived.

First-principles thinking means going underneath the samples and returning to the underlying thing itself. You stop asking, “How has this traditionally been done?” and start asking, “What is actually happening here?” In that sense, first principles is analog thinking. It is refusing the pre-quantized answer and going back to the source.

Which means the engineer questioning inherited assumptions and the 16-year-old buying a turntable may not be doing entirely different things. Both may be reacting to a world that has become increasingly mediated, summarized, recommended, optimized, compressed, ranked, and preselected.

Both are saying, in their own way:

Give me the thing itself.

The larger problem is that digital systems were originally interfaces to reality and somewhere along the way the interface began becoming reality. We do not merely use maps anymore; we follow the blue line. We do not simply listen to music; an algorithm chooses what comes next. We do not browse; systems predict what we should want before we know we want it. We do not need to remember very much because software remembers for us. We do not even become bored very often anymore because nearly every empty moment can be filled immediately.

Every silence can be interrupted. Every uncertainty can be searched. Every experience can be photographed before it has finished being experienced.

This is extraordinarily convenient.

It may also be why sitting with an actual book now feels vaguely rebellious.

The book does nothing.

It does not measure your engagement, recommend another paragraph, notify you of an update, or optimize itself around the likelihood that you might leave. It simply sits there until you provide the attention.

That is the distinction worth protecting. Returning to the analog does not mean rejecting the digital. That would be ridiculous. Digital technology is one of the greatest amplifiers humanity has ever created. The problem starts when amplification becomes substitution.

A photograph can amplify memory, but it cannot replace being there. A text can maintain a friendship, but it cannot become the friendship. A health metric can reveal something useful about the body, but it is not the body. A model can describe reality with extraordinary precision, but it is still not reality.

The map remains useful. Just do not confuse it with the territory.

So i am not going to give you seven habits for rediscovering analog life. i will give you the stance. Own some things. Touch some things. Write something by hand occasionally, and do not worry if the handwriting is terrible. Play the instrument badly because the wrong notes are proof that a human being is actually in the loop. Listen to an entire side of a record without touching anything. Sit in front of speakers that move enough air that you can feel the music rather than merely hear it. Put your body in actual water. Sit across from another human being without placing a glowing rectangle between you.

The point is not nostalgia. The point is proportion.

The analog never disappeared. We simply moved farther away from it, and maybe what looks like a cultural fascination with records, books, film, handwriting, craft, first principles, waves, breath, and physical experience is not a retreat into the past at all.

Maybe it is a correction.

A reminder that human beings are not databases, feeds, profiles, metrics, or collections of samples. We are continuous systems living inside a continuous world, and perhaps the reason a perfectly optimized digital existence occasionally feels strangely incomplete is simpler than we have made it:

Life is not band-limited.

You, Dear Reader, are a loud continuous signal.

Render yourself accordingly.

Until then,

#iwishyouwater <- folks gettin the memo in the deep blue.

#EverForward,stay non-linear and curious.

𝕋𝕖𝕕 ℂ. 𝕋𝕒𝕟𝕟𝕖𝕣 𝕁𝕣. (@tctjr) / X

MUZAK TO BLOG BY: Ozzy Osbourne — Diary of a Madman. Preferably played from beginning to end. On something that moves air meaning really big speakers and amps!

Blood Red Vinyl. Picture courtesy of TKT[2].

Note: i despised the first CD Masters of this album. Horrendous.

No Coach at Depth: The Autodidactic Universe

FreeDiving The Cosmos

“There is no one to correct your form at forty meters. The water is the only teacher, and it grades in a single pass.” ~ a free diving coach

First i trust everyone is safe. Second, this is a very different installment and not for the faint of heart oh dear reader. This literally was written for me and hopefully in the long future my progeny.

Preamble — a note on a word. Autodidactic means self-taught and not in the soft sense of “went to a good school and paid attention.” The opposite of that. It means you build the curriculum while walking the path: no instructor cueing the next lesson, no syllabus, no answer key, nothing to catch the error but the consequence itself. Most people never learn this way. They are supervised learners end to end a teacher, a manager, a rubric, a labeled example and there is no shame in it; supervision is efficient, and civilization runs on it. But it is a mechanically different thing from teaching yourself, and that difference is the entire subject of this paper.

i write as one of the other kind. i did not arrive here down a marked road i mostly taught myself across audio DSP, operating systems, distributed ledgers, clinical data, machine inference, and mission systems, each time by walking in without a map and letting the work grade me. The same way the water does. For reference one of my hobbies is freediving. You can go here for a rundown of said sport:

¿Por qué haces apnea? (Why Do You Freedive?) and 9/11

In the same way, that this paper that i am blogging about argues, the cosmos does as well.

So when seven serious people propose that the Universe learns its laws with no supervisor in the room, i do not read it as an exotic abstraction; i read it as a familiar mechanism described at an unfamiliar scale. i know what it feels like from the inside which is precisely the bias i have to watch, because recognizing yourself in a theory is the oldest way in the world to be wrong about it.

There is a moment on a deep dive, past the point where the lungs have given up arguing, where you stop doing the dive and the dive starts doing you. No coach in the water. No feedback loop but the one your own physiology is running against the pressure gradient. You are, in the most literal sense the word allows, an autodidact: self-taught, self-graded, self-consequenced. Nobody hands you the answer. You either learn the lesson on the way down or you learn it on the way up, and one of those is way more expensive than the other.

i kept thinking about that while re-reading “The Autodidactic Universe” (arXiv:2104.03902v2). It is a paper about a cosmos with no coach in the water a universe that is not handed its laws but has to teach them to itself. The proposed theory suggests the universe functions as a self-teaching neural network that evolves its own physical laws over time, rather than relying on fixed, pre-existing rules. This concept posits that the cosmos organizes itself from within, developing matter, space, and laws through a process akin to machine learning.

And it is written by a cast of people i can’t dismiss: Stephon Alexander and Lee Smolin on the physics, Jaron Lanier and Dave Wecker carrying the machine-learning and quantum weight, with William J. Cunningham, Stefan Stanojevic, and Micheal W. Toomey doing the high end formalism. When Smolin who has spent forty years insisting that time is real and law can evolve co-signs a paper with the man who built modern VR and one of Microsoft’s quantum architects, you read it twice before you have opinions.

i had to read it four times.

Here are my opinions.

The universe is a great organism, controlled by a dynamism of the psychical order. Mind gleams through its every atom. There is mind in everything, not only in human and animal life, but in plants, in minerals, in space.

~ Flammarion

The claim, stripped of ceremony

Most of physics asks what are the laws? This paper asks the older, more dangerous question: why these laws and not others? and then refuses to answer it with an anthropic shrug or a landscape lottery ticket. Instead it proposes that the Universe learns its laws by moving through a space of possible laws, the way a learning algorithm descends a loss surface it was never shown a labeled example.

The technical spine is deceptively clean. Express the space of possible laws as a class of matrix models cubic ones, in particular because the cubic term is where the interesting nonlinearity lives.1 Then build two bridges out of that same matrix formalism:

  • Bridge one lands you in gauge and gravity theories Chern-Simons, BF theory, the Plebanski formulation of general relativity, Yang-Mills. The geometry of the world.
  • Bridge two lands you in learning machines deep recurrent and cyclic neural networks, restricted Boltzmann machines (my favorites). The geometry of a mind that is training.

Because both bridges leave from the same dock, you get a correspondence: a solution of the physical theory sits opposite a run of the neural network. Evolve the physics, and you are — under the map training a net. Train the net, and you are under the map evolving physical law. The Universe’s dynamics are a learning dynamics, if you believe the dictionary.

And here is where i respect the authors, because they do not oversell the dictionary. The correspondence is not a strict equivalence. For example think of the (gauge/gravity) correspondence like a highly detailed blueprint of a building, and the actual 3D building itself. They describe the exact same physical reality, but they are not the same thing. They describe the same system, but their core mathematical structures look completely different.

This is at its cleanest for finite matrix size and gets structurally honest-to-a-fault in the N → ∞ limit, where the gauge theories emerge crisply but the neural-network side goes soft and under-defined. That asymmetry is the whole tell, and i’ll come back to it, because it is exactly the seam where Perception separates from Illusion.

One side describes quantum particles (like gluons) moving in a flat world with no gravity.

The other side describes gravity and curved space in a world with an extra dimension.

The biology rail: precedence, or nature copying its own homework

You cannot understand this paper without understanding that Smolin has been building toward it for thirty years. His cosmological natural selection universes reproducing through black holes, the constants of nature drifting under a selection pressure for fecundity was the first serious attempt to put Darwin underneath Einstein rather than beside him. “The Autodidactic Universe” is the same instinct, upgraded from selection to learning, which is the faster and more expensive of the two verbs.

“The universe is not static, it is a-perpetual-becoming, a-process of continuous evolution.”

~ Huston Smith

The mechanism that carries the biological weight here is precedence: the principle that nature does again what it has already done, that a system’s future is sampled from its own past behavior rather than dictated by an eternal rule sitting outside of time. Think about that and read it again. That is not a metaphor bolted on for flavor. It is a learning rule. Precedence is the universe’s version of a replay buffer reinforcement of paths already taken, heterogeneity of the interaction graph maximized so the system keeps enough variety to keep exploring. Geometric self-assembly guided by reinforcement learning, in the paper’s own framing, is morphogenesis wearing a physicist’s coat (thanks turing). A body plan is a law that a cell learned. A law is a body plan the cosmos grew into.

i have spent a career in systems where the schema is the constraint healthcare records, cryptographic attestation, the places where “what is true” and “what the system will permit” are the same sentence. So i feel the vertigo of this move in my hands: the authors are proposing a substrate where the schema is not enforced from outside but precipitated from behavior. It is attestation with no root of trust the chain validating itself by having always validated itself. Beautiful. Also the kind of thing that keeps a security architect awake, because a system that authors its own invariants is a system that can, in principle, learn a bad one.

The AI rail: substrate independence, and the word “learning”

The load-bearing philosophical claim is small enough to miss and large enough to break your neck: if the neural-network side can be said to learn without supervision, then the physical side can too. The Restricted Boltzmann Machines and recurrent nets are not an illustration. They are the argument. The whole essay leans on learning being substrate-independent that “learning” names a structure of dynamics, not a fact about brains or GPUs, and that if the structure is present in a matrix model evolving toward gauge-invariance, then the honest word for what it is doing is learning.

This is where a practitioner has to hold two things at once without flinching. First: I build these systems, and i know that an RBM minimizing a free energy is not “learning” in any sense that would survive contact with a sentient being it is relaxing. Gradient descent is not ambition. Second: that is exactly the objection the paper is trying to dissolve. If you insist learning requires an experiencer, you have smuggled Consciousness into a claim that was only ever about Machine. The authors are careful (well mostly) to keep the claim at the Machine level: the dynamics are learning-shaped. Whether anything is home is not on the table.

“ RBMs are network of symmetrically connected, neuron-like units that make stochastic decisions about whether to be on or off,constrained by having no connections within layers.”

~ Geoffrey Hinton

The N → ∞ asymmetry i flagged earlier is the AI rail’s honesty showing through. In the continuum, the physics is pristine and the “network” barely survives as a concept. Which means the correspondence is strongest precisely where the systems are small and finite where “learning” is a discrete, countable, near-combinatorial thing and dissolves exactly where we would want to point and say the cosmos itself. The map is real. The map is also a coastline, and the coastline gets vaguer the further out you swim.

The quantum rail: why Wecker is on the byline

Dave Wecker does not co-author a speculative cosmology paper for the vibes. His presence is the paper quietly admitting what it is: a proposal about computation as physics, and cubic matrix models are as quantum-native a substrate as exists. They are what you reach for when you want a Hamiltonian a quantum computer can actually hold the natural language of a machine whose registers are the amplitudes and whose gates are the interactions.

“Everything we call real is made of things that cannot be regarded as real.”

~ Neils Bohr

The deeper point, and the one i think is under-argued in the paper but most alive, is this: if the Universe’s law-finding dynamics are a learning process running on a matrix substrate, then the question “is the cosmos efficiently simulable?” stops being idle. A universe that learns is a universe that is doing work irreversible work, entropy-producing work to find its own laws and thus ever forging forward or looping. And the single hardest problem the paper sets for itself is right there: can irreversible learning arise from reversible microlaws?2 That is the arrow-of-time problem re-asked as a training problem. You cannot descend a loss surface reversibly. Learning has a direction the way a dive has a bottom. If the microphysics is unitary and time-symmetric, where does the gradient’s downhill come from? The paper gestures at renormalization-group flow as the source of the arrow coarse-graining as the ratchet and it is the right neighborhood, but it is a gesture, not a closed proof. I do not hold that against it. The people who claimed to have closed that problem have all been wrong so far.

One stage, many laws: getting Minkowski right first

Before any mapping, a piece of hygiene, because Perception vs. Illusion is the whole spine of my taxonomy and the illusion here is a word.

There is no such thing as a “Minkowski multiverse.” Many people have called it that in reference. i thought about that when reading the paper. Minkowski spacetime introduced by Hermann Minkowski in his 1908 Cologne address Raum und Zeit, three years after Einstein’s 1905 kinematics gave him the physics but not the geometry — is a single, unified, four-dimensional continuum: three dimensions of space and one of time, welded into one manifold whose invariant is the interval,3 not the clock and the ruler taken separately. It is emphatically not a collection of universes. It is one arena. One stage. The causal structure — the light cones, the ordering of before and after inside which any law must be expressed. Conflating that single continuum with a “multiverse” is a category error, and naming it correctly is exactly what lets the real structure stand up.

Because once you fix that, the multiplicity you actually want — the “multi” — sorts onto a different axis, and it comes in levels:

  • The arena (Minkowski). One continuum. The geometry law lives in. Not plural. This is the floor.
  • A landscape of possible laws — different constants, different effective dynamics, the space the paper’s matrix models roam. This is the multiverse the autodidactic universe is about. This is where the learning happens.
  • A branching of outcomes under one fixed law — Everett’s Many-Worlds. Same Schrödinger equation everywhere, splitting into non-communicating branches. This is a multiverse of histories, not of laws.

Keep those straight and the paper snaps into focus: it multiplies laws; Everett multiplies outcomes; Minkowski multiplies nothing — it is the one stage they all play on.

The anti-eternalist move and where Everett secretly shakes its hand

Here is the sharp thing. Both the arena and Everett’s branches share a hidden commitment the paper is built to reject: eternalism. Minkowski’s continuum, read the usual way, is a completed block all events co-existing tenselessly, the script already written. And Many-Worlds is the purest block object in physics: a single universal wavefunction evolving unitarily,4 deterministically, locally, with no collapse every outcome that can happen already does, weighted by measure, filmed on every reel at once. You cannot put a learner in either one. A block has nothing left to learn. Everett has nothing left to choose.

“The Autodidactic Universe” is the anti-eternalist counterstroke Smolin’s Time Reborn (great book) dressed in cubic matrix models. It keeps Minkowski’s stage and fires Minkowski’s script-is-already-written. Law is not selected from a pre-existing menu; it is grown, in time, by a process with a direction, a memory, and a cost. Precedence only means something if the past is real and the future is open. The multiverse here is not a shelf of finished universes. It is the set of dives the ocean has not taken yet.

And yet this is the part worth the whole detour the very interpretation that is most eternalist in ontology turns out to be the paper’s best friend in mechanism. Everett needs to manufacture apparent irreversibility out of strictly reversible unitary dynamics, and the machine that does it is decoherence: the subjective appearance of collapse produced without ever adding a collapse. That is precisely the paper’s hardest open problem can irreversible learning arise from reversible microlaws? already solved, in miniature, next door. Decoherence is a ratchet built from reversible parts; the paper reaches for renormalization-group coarse-graining as its ratchet, and coarse-graining and decoherence are the same instinct in two dialects. Three handshakes, all real physics:

  • Decoherence as the arrow. Reversible substrate, irreversible-looking history. The template for the whole autodidactic wager.
  • Self-location as self-sampling. The Everettian program to recover the Born rule from self-locating uncertainty — where am I in the ensemble, with no observer outside it — is the same creature as the paper’s “self-sampling.” Both are unsupervised in the strict sense: the measure is intrinsic, nobody hands it in.
  • Quantum Darwinism as precedence. Zurek’s einselection only the pointer states survive the environment’s endless monitoring; the rest decohere away is literally a selection process. The environment trains which states persist. Precedence ≈ einselection: what gets reinforced, survives. The paper’s biology rail is already sitting inside decoherence theory, wearing a lab coat instead of a wetsuit.

(And the bonus that pays for Wecker’s seat: Deutsch’s oldest argument for Many-Worlds is that its parallelism is exactly what a universal quantum computer exploits. The substrate that makes the branches real is the substrate that makes the computation fast. If the cosmos is running a learning dynamics, the question of what hardware it is running on stops being rhetorical.)

Minkowski’s continuum is the arena one stage, correctly named. The block was only ever the eternalist reading of it, and the training run is what fills it.

Through the taxonomy

Run it through the three-part lens Machine – Sentience – Consciousness and the paper resolves cleanly. (Em-Dashes are mine…)

At the level of Machine, this is not speculation it is the most defensible interdisciplinary work I have read in the genre. The maps are explicit. The matrix models are real objects. The correspondence to gauge theory is checkable, and checked. If the paper only claimed “the mathematics of learning systems and the mathematics of fundamental physics share a cubic backbone,” it would be a strong, unglamorous, correct result. i would put my name near that part.

At the level of Sentience a system with goals, with something at stake, with a preference for one outcome over another the paper is reaching, and it knows it. “Consequencers,” precedence, reinforcement: these import teleology through the side door. A loss surface is not a stake. Reinforcement is not desire. The autodidactic universe is a machine that is shaped like something that wants, and shape is not appetite.

At the level of Consciousness, the paper is wise enough to say almost nothing, and that silence is the most credible thing in it.

Which lands the whole enterprise squarely on the Perception / Illusion boundary — my favorite fault line, the one i keep mining. Is the Universe learning, or have we built a formalism so expressive that everything, viewed through it, looks like learning? When your only tool is a network, every dynamics is a training run. The N → ∞ softness is the illusion showing its seam: the “learning” is vivid at finite, countable scale and evaporates exactly at the scale that would justify the cosmic claim. I do not think the authors are fooling themselves. I think they have found a genuine and beautiful correspondence and are being appropriately, almost painfully, careful not to inflate it into an identity. The reader is the one at risk of the inflation. As always, the illusion is not in the object. It is in the perceiver’s hunger for the object to mean more than it does.

The Infinite Do-Loop

Here is what i keep: the Universe as an Infinite Do-Loop that is not just iterating but training each pass adjusting the very rule that governs the next pass, the condition of the loop rewritten by the body of the loop, forever, with no terminating case and no external test suite. That is the most honest picture in the paper, and it is the one that will outlive the specific matrix models it arrived in. Laws are not the axioms of the cosmos. They are its accumulated skill.

In freediving you do not get handed your form at depth. You descend, the water grades you, and if you are still moving you carry the correction into the next dive. The paper’s wager is that the cosmos is doing the same thing on a timescale that makes our whole species a single held breath teaching itself the physics by the only method that has ever actually worked on anything, which is to try, to be consequenced, and to remember.

No coach in the water. Never was. That was always the point.

Verdict: Not a theory of everything. A grammar for asking why there is a theory of anything rigorous where it can be, honest where it can’t, and pointed at the one question physics keeps flinching from. Read it as an architecture proposal, not a proof. The best ones always are.

Until Then,

#iwishyouwater <- THE GOAT Kelly Slater with Gabriel Medina (another surfing giant) at Tahiti Pro 2026. Kelly is 54. If this is a simulation, then i don’t want to know.

#EverForward,stay non-linear and curious.

𝕋𝕖𝕕 ℂ. 𝕋𝕒𝕟𝕟𝕖𝕣 𝕁𝕣. (@tctjr) / X

MUZAK To BLOG BY: album “FireDove” by Anna Lapwood, organist extraordinaire. Truly amazing music. My favorite type.

Appendix — The Cover, Decoded

The AI generated image at the top is not decoration; every element is load-bearing. If you scrolled past it, here is what you were looking at.

The double cone is a Minkowski light cone the causal structure of the single spacetime continuum, its apex resting on the ocean surface because the apex is the now. One stage, not many. The faint horizontal ellipses stepping down through it are successive nows, the foliation of time and, read the other way, the strata of the law-landscape the matrix models roam.

The freediver on the central axis is the autodidact: descending real, directed time with no coach in the water. The sparse graph of nodes threading the cone is accumulated learning — precedence, the replay buffer growing denser toward the depths, because the past is what the future gets sampled from.

The gold ring at the apex is the Infinite Do-Loop: the pass that rewrites the rule that governs the next pass, closing on the present moment.

The four equations are real a deliberate rebuke to the decorative gibberish that usually floats behind a “physics AI RAG” illustration. Each names one load-bearing idea (full glosses below):

  1. ds² = −c²dt² + dx² + dy² + dz² — the Minkowski interval. The one stage.
  2. iℏ ∂ₜΨ = ĤΨ — unitary evolution. The reversible substrate.
  3. S = Tr(½Φ² + ⅓Φ³) — the cubic matrix action. The cubic learning system.
  4. ΔS ≥ 0 — the entropy arrow. The direction learning has to manufacture.

Put them in one sentence and you have the whole essay: on one stage (1), a reversible substrate (2) runs a cubic learning system (3) that must somehow grow an arrow (4) — and whether it can is the entire question.

NOTE: It took a long time to get the image correct the way i envisioned it.

On Perception vs Illusion. Sometimes i say Perception vs Perspective but in the case of the paper i remapped to Perception vs Illusion to frame the true – not true mechanics.

Full glosses on the four equations, for the reader who wants the mechanism:

  1. The cubic matrix action — S = Tr(½Φ² + ⅓Φ³). Schematic, but honest about where the action lives: Φ is a matrix — the raw degrees of freedom — and Tr merely sums its diagonal. The quadratic term is inert bookkeeping; the cubic term Φ³ is where the nonlinearity, and therefore all the interesting behavior, hides. This is the single class of object the paper maps at once onto gauge/gravity theories and onto learning machines. When i say “cubic backbone,” this is the vertebra. (The paper’s actual actions carry more structure; the cube is the load-bearing bone.) 
  2. The entropy arrow — ΔS ≥ 0. The second law: the entropy of a closed system never decreases. It is the only fundamental law with a built-in direction, and it is the paper’s deepest problem compressed into three symbols — because learning, like entropy, has an arrow, and you cannot get either one out of the reversible microlaws two notes down without a ratchet (coarse-graining, decoherence). Note the notational collision: S is the action one note up and entropy here. Physicists live with it; context disambiguates — and the collision is itself a tidy Perception/Illusion specimen. 
  3. The Minkowski interval — ds² = −c²dt² + dx² + dy² + dz². The single invariant of the 1908 continuum: the one quantity every observer agrees on, however differently they carve space from time. The whole story sits in the minus sign on the time term — it is what makes time unlike the three spatial directions, what cuts the light cones, and what makes the arena one manifold rather than space parked next to a clock. This is “the one stage.” 
  4. Unitary evolution — iℏ ∂ₜΨ = ĤΨ. The Schrödinger equation: the wavefunction evolves smoothly, deterministically, and reversibly under the Hamiltonian Ĥ. No collapse, no arrow, nothing lost run it backward and the past returns exactly looping onto itself. This is the “reversible substrate” Everett takes at its word, and the substrate on which the paper still has to manufacture an irreversible arrow. The tension between this note and the entropy note is the entire drama. 

Reduce. Refactor. Reuse. Loops within loops, or why reuse is not the goal.

Obvious superfluous usage of the models

First, as always, i trust everyone is safe.

Second, i have been saying something for a while that keeps coming back to me in different rooms, different codebases, different product reviews, different program reviews, and different executive conversations: Reduce. Refactor. Reuse.

That is it. Three words. No laminated framework. No twelve-box consulting bingo card. No maturity model with a gradient that looks suspiciously like it was designed by someone avoiding accountability. It sounds like an engineering mantra, which it is, but the longer i sit with it, the more convinced i am that it is not just about software. It is an operating principle for complexity. It applies to code, hardware, organizations, platforms, business processes, AI systems, manufacturing flows, partnerships, and strategy.

Most organizations get the order wrong. They start with reuse because reuse feels productive. “We already have something.” “Can we leverage the existing asset?” “Let’s standardize on the thing we built three years ago for a different customer, under different constraints, with different assumptions, and a different team that has since scattered to the wind.” That is not reuse. That is archaeology with a purchase order.

Reuse is powerful only after the thing being reused has earned the right to survive. If you reuse before you reduce, you scale clutter. If you reuse before you refactor, you scale coupling. If you reuse because a thing exists, you are not building leverage. You are distributing technical debt with better branding.

So i asked three models to react to the mantra. Not because models are authorities. They are not. Models are mirrors with a token budget. But sometimes the reflection is useful, especially when the same phrase gets interpreted through different priors. The exercise was simple: how would different thinkers react to Reduce. Refactor. Reuse. The useful part was not whether the models were “right.” The useful part was where each model placed the weight.

And yes, before somebody starts screenshotting: the Musk, Luckey, and Jobs lines below are model-generated archetypes, not real quotes. Words have meanings. So do quotation marks.

Grok: The Bar Fight Version

Grok came back with the theatrical version, imagining the mantra through Elon Musk, Palmer Luckey, and Steve Jobs. The Musk-shaped response put the weight on deletion. Not tidying. Not optimizing. Delete the part. Delete the process. Delete the line of code. Delete the meeting. Delete the requirement if the requirement is dumb. In that frame, most systems are overweight because the organization confused accumulation with progress.

“The goal isn’t elegant code. The goal is the fewest lines that still get the rocket to orbit. Everything else is cargo cult.”

That line works because it refuses to romanticize architecture. Elegant code that preserves the wrong thing is not elegance. It is embalming. Musk’s version of reduce is not “simplify the slide.” It is “prove the thing deserves to exist.” Most enterprise complexity survives because nobody wants to be the person who removes it. The system gets heavier, and then the same people wonder why it cannot move.

The Luckey-shaped response put more pressure on shipping. Reduce is the part everyone skips because writing clever abstraction feels more productive than deleting actual complexity. Refactor is where you stop lying to yourself about the design. Reuse only matters once the thing is good enough to be reused without catching fire. In hardware, this gets very real very fast. Weight, heat, power, manufacturability, maintainability, field repair, supply chain, and deployment do not care how smart the abstraction looked in the review.

“The lightest, simplest system that still works is almost always the one that ships and doesn’t catch fire.”

That is the defense-hardware version of the mantra. Reuse is not primarily about saving engineering hours. It is about reducing operational risk. A proven module, cleanly reduced and refactored, can become leverage across products, programs, and missions. But if the reusable core is dirty, then reuse becomes a force multiplier for pain.

The Jobs-shaped response treated the whole thing as product taste. Reduce until the result feels inevitable. Refactor until the cleverness disappears. Reuse only when it makes the product more human, not merely when it makes the engineer’s life easier. This is the discipline a lot of platform teams miss. The user should not be forced to admire your architecture. The experience should feel like the obvious thing that was hiding under the mess.

“The best systems disappear. If the user can feel the architecture, you failed.”

That was Grok’s useful contribution: three archetypes fighting over the same three verbs. Musk pulls toward deletion. Luckey pulls toward fielded reuse. Jobs pulls toward taste. That tension is real. It shows up in every platform conversation worth having.

ChatGPT: The Ordering Principle

ChatGPT took the more systematic route. It noticed that the mantra is deceptively simple because the order carries the philosophy. Reduce comes first because the biggest performance improvement is often deleting work, not optimizing it. Before you write code, redesign an organization, scale a process, or automate a workflow, you have to ask whether the thing should exist at all. Can the feature disappear? Can the process become unnecessary? Can we eliminate an interface, dependency, approval, or layer?

That sounds obvious right up until you sit in a meeting where everyone wants to automate a broken process instead of admitting the process is dumb. Most organizations start at the last step. They automate before they simplify. They scale before they understand. They standardize before they delete. That is how you get very sophisticated ways of preserving bad decisions.

Refactor comes next because once complexity has been reduced, what remains deserves architecture. Refactoring is not just cleaning code. At enterprise scale, it is redesigning APIs, data models, organizational seams, manufacturing flows, business processes, incentive systems, and operating rhythms. A good refactor decreases coupling while increasing adaptability. It makes the system easier to change without pretending change will stop.

Reuse comes last because most companies accidentally start there. “We already have something” becomes the opening line of a tragedy. Existing things are not automatically assets. Some are fossils. Some are scars. Some are local optimizations pretending to be platforms. Reuse only becomes powerful after reduction and refactoring. Otherwise you are simply propagating technical debt faster.

ChatGPT’s strongest line was this:

“Reuse is not the goal. Simplicity is the goal; reuse is merely the consequence of achieving simplicity.”

That is the knife. Many organizations worship reuse because it sounds efficient. But reuse without reduction and refactoring is enterprise hoarding. It creates shared libraries nobody wants to touch, common services that are common only in the sense that everyone is commonly miserable, and “platforms” that become mandatory because they are not good enough to be chosen.

The model suggested adding “repeat” to the mantra: Reduce. Refactor. Reuse. Repeat. Fair. But i pushed back. Repeat is implicit. Ordering is implicit. The strength of the phrase is that it is short enough to become instinctive. Like “ready, aim, fire,” nobody thinks you do it once and then retire to a vineyard. The repetition lives inside the discipline.

Claude: The Basis Vector Version

Claude first challenged the ordering. It argued that depending on where you stand, the honest loop might begin with reuse: what already exists, what can die, what must be cleaned, and what can then be reused by the next team. It also suggested the mantra might need a fourth R, some kind of stop condition, because otherwise refactoring can become a CTO avoiding a decision.

That annoyed me because it was partly right and partly missing the point, which is usually where useful arguments live. So i pushed back: it depends, and that is the beauty of the 3Rs.

Claude then landed on the best mathematical framing which I liked: the 3Rs are not always a fixed sequence. They are a basis. Any decision projects onto them differently depending on context. A greenfield module may weight toward reduce. A core capability used by five programs may weight toward refactor. A proven component trying to move from one program to three may weight toward reuse. Same three verbs. Different coefficients.

“A mantra is not a procedure. A procedure tells you what to do. A mantra tells you what to weigh.”

That is the part i liked. A procedure has to be correct for the situation. A mantra has to be strong enough to survive situations you did not foresee. The 3Rs do not remove judgment. They force it. They make you ask which pressure matters now: deletion, coherence, or leverage.

Claude also gave me the freediver version, which of course got my attention ( I freedive for a hobby):

“Same three strokes, but how you weight them depends on the depth, the current, and how much air you’ve got.”

That is the right metaphor. Reduce. Refactor. Reuse. Same strokes. Different water. The skill is not memorizing the order. The skill is reading the conditions without lying to yourself.

Loops Within Loops

The next step is realizing the 3Rs are not merely a sequence and not merely a basis. They are recursive. Each R contains the other two. Reduce has to be reduced, refactored, and reused. Refactor has to be reduced, refactored, and reused. Reuse has to be reduced, refactored, and reused. The loop runs inside each verb, and then the output of one loop becomes the input to the next.

That sounds like wordplay until you put it against actual work. Reducing a system is not just deletion. Good reduction has its own internal discipline. You reduce the reduce by cutting the performative requirements, zombie features, redundant approvals, decorative dashboards, and meetings that exist only because the last reorg needed artifacts. You refactor the reduce by changing the intake path so dumb requirements have fewer places to hide next time. You reuse the reduce by turning the deletion pattern into a reusable operating habit: better design reviews, better product gates, better pre-mortems, better engineering judgment, and better permission to say “no” before the system gets fat again.

Refactor has the same internal loop. You reduce the refactor by refusing to clean everything just because it exists. Some code should not be refactored. Some processes should not be redesigned. Some tools should not be modernized. Some organizations should not be optimized. They should be removed. You refactor the refactor by improving the seams that matter: interfaces, ownership, observability, support boundaries, documentation, deployment paths, and incentives. Then you reuse the refactor when the new pattern becomes an architecture other teams can adopt without inheriting the original mess.

Reuse also contains the full loop, and this is where enterprises get into the most trouble. You reduce the reuse by asking what part of the thing is actually reusable. Not the whole system. Not the customer-specific scar tissue. Not the local naming conventions. Not the assumptions that only made sense under one contract. The reusable part might be a workflow, a schema, an interface, a model evaluation, a deployment pattern, a compliance mapping, a proof point, or a failure mode. You refactor the reuse by turning that pattern into something supportable, observable, governable, documented, and owned. Then you reuse the reuse by letting the next program start from a stronger baseline and produce telemetry that tells you whether the reusable core is actually improving.

That is the loop within the loop. Every reuse creates new evidence. That evidence should trigger the next reduction. What did the second program not need? What did the third program break? What assumption failed in the fourth customer environment? What interface kept changing? What support question appeared twice? What deployment step still required a hero? Those signals tell you where to reduce again. The loop does not end at reuse. Reuse is where the next reduce gets its evidence.

The moat is not the layer; it is the loop. Take the action, capture the outcome, attribute the authority, evaluate the result, correct the workflow, and make the next decision less uncertain than the last. The 3Rs are the same pattern applied to complexity: reduce what should not exist, refactor what must exist, reuse what has earned the right to travel, then let the evidence from reuse tell you what to reduce next.

Now Apply The 3Rs To The 3Rs

A useful mantra should survive being turned against itself. So let’s do that.  We are creating a Noumena.

Noumena (plural of noumenon) is a philosophical term meaning an object or event that exists independently of human sense perception and the mind. It describes a “thing-in-itself” rather than the thing as it is experienced, heard, seen, or felt by an observer.

Origin: The word comes from the Greek noein, meaning “to think” or “to perceive with the mind”.  Also Immanuel Kant, the philosopher popularized the concept in his Britannica guide on Noumenon as part of his work on human knowledge.

#TCTRule

Words Have Meanings.

via Dr Mathew Aldridge

Can Reduce. Refactor. Reuse. be reduced? Yes, and that is why i keep resisting the urge to add a fourth word. “Repeat” is true, but unnecessary. “Freeze” is sometimes useful, but situational. “Retire” is important, but already contained inside reduce. The three words are short enough to remember and sharp enough to cause discomfort. That is a good sign. A mantra that needs a process diagram before it can be used is not a mantra. It is another artifact looking for a meeting.

Can the mantra be refactored? Also yes. The first version reads like a sequence: reduce, then refactor, then reuse. That is still useful because most organizations start with reuse and create the mess they later call platform strategy. But Claude’s basis-vector framing improves the architecture. Sometimes the situation weights toward reduce. Sometimes toward refactor. Sometimes toward reuse. The refactor is not to abandon the order; it is to understand that the order is a default, not a prison.

Can the mantra be reused? That is the real test. If it only works for code, it is a software slogan. If it works for hardware, AI, organizations, operating models, platforms, products, and partnerships, it is closer to an enterprise heuristic. The receipt is whether people can use it in a room to make a better decision. Should we delete this requirement? Should we clean this interface? Should we productize this program artifact? Should we reuse this component or quarantine it until it stops leaking? If the 3Rs help answer those questions, they are reusable. If they become wall art, they are not.

That is the self-analysis. The mantra reduces well because it is already small. It refactors well because it can shift from sequence to basis without losing meaning. It reuses well because it travels across domains. But it also has a danger: it can become too clean. Three words can hide a lot of judgment. That is why the loop matters. The 3Rs are not a substitute for thinking. They are a forcing function for thinking.

The Failure Modes

Every R has a shadow.

Reduce can become vandalism. Some people hear “reduce” and start cutting without understanding load-bearing structure. They delete the weird exception that was actually protecting the customer. They remove the approval that existed because someone once set the building on fire. They simplify the system until it is elegant and wrong. Reduction without context is not discipline. It is austerity with a hoodie.

Refactor can become avoidance. Some people hear “refactor” and discover a bottomless cave where decisions go to die. The architecture is never clean enough. The interfaces are never stable enough. The platform is always one quarter away. Refactoring is necessary, but it can become a beautiful excuse for not shipping. A refactor that never reaches reuse is not architecture. It is therapy.

Reuse can become cargo cult. This is the enterprise favorite. A thing worked once, so now it must be a platform. A local tool becomes a standard. A program artifact becomes an offering. A prototype becomes a product. A script becomes infrastructure. A PowerPoint becomes strategy. Reuse without reduction and refactoring is how an organization scales its past mistakes while congratulating itself for efficiency.

The reason the 3Rs work together is that each one corrects the others. Reduce keeps reuse from becoming debt propagation. Refactor keeps reduce from becoming demolition. Reuse keeps refactor from becoming artisanal self-expression. The tension is the point. If one R is always winning, the system is probably lying to you.

The Enterprise Loop

At enterprise scale, the 3Rs become loops within loops because every layer of work has its own version of the cycle. A team reduces a local workflow, refactors the surviving pattern, and reuses it inside a program. The program generates telemetry, failure modes, customer feedback, compliance mappings, and deployment knowledge. A product team reduces that program-specific learning to the essential pattern, refactors it into a supported capability, and reuses it across multiple programs. A platform team then reduces the common seams, refactors the interfaces and governance, and reuses the pattern across the portfolio. The company brain captures the evidence and starts the loop again.

That is how program learning becomes product learning. That is how product learning becomes platform learning. That is how platform learning becomes operating leverage. Not by declaring reuse. Not by inventorying assets. Not by creating a portal. By running the loop until the next team starts from a stronger baseline.

This matters because large organizations love to say “reuse” when what they really mean is “please make my past decision look like a platform.” We see this in software, infrastructure, internal tools, product-led solutions, proposal content, operating models, partnerships, and AI. Someone builds a local thing under local pressure. The thing works well enough to survive the contract. Then someone declares it reusable. But it was never reduced to its essential customer value. It was never refactored into clean interfaces, support boundaries, observability, governance, documentation, and ownership. So when the next program adopts it, they inherit not a product but a fossil.

Then everyone blames adoption.

No.

The thing was not ready to be reused.

Reuse is not a label. It is a property earned through reduction and refactoring. This is especially important in a product-led services company. A program can create learning. A product can encode that learning. A platform can distribute it. But only if the learning has been reduced to the essential pattern, refactored into something supportable, and reused with enough telemetry to improve the next implementation.

Otherwise, we are not compounding.

We are copy-pasting scars.

#TCTRule

Reuse is not the goal. Reuse is the receipt.

The goal is a system simple enough to understand, clean enough to change, and valuable enough to carry forward. That is true for code. It is true for hardware. It is true for AI agents. It is true for operating models. It is true for business processes. It is true for the company brain. It is true for every platform that wants to be more than a portal with a funding line.

Reduce what should not exist. Refactor what must. Reuse what has earned it. Then listen to what reuse teaches you, because every reuse is also a test. If it works, you have evidence. If it fails, you have telemetry. If it almost works, you have the next refactor. And if nobody adopts it, you may have discovered that the thing you were trying to reuse never should have existed in the first place.

That is the loop.

Reduce the work until the truth shows. Refactor the truth until it can move. Reuse only what survives contact with another customer, program, mission, or market. Then run the loop again inside the loop you just created.

Same three strokes.

Different water.

Until Then,

𝕋𝕖𝕕 ℂ. 𝕋𝕒𝕟𝕟𝕖𝕣 𝕁𝕣. (@tctjr) / X

#iwishyouwater <- Tahiti 2026 opener. Hydro dynamic complexity at its finest.

MUZAK TO BLOG BY: “Hesitation Marks” by NIN. “Copy Of A” was amazing in concert.

Footnotes

[0] The model responses referenced here came from a prompt exercise comparing how Grok, ChatGPT, and Claude interpreted “Reduce. Refactor. Reuse.” The imagined Musk, Luckey, and Jobs responses are not quotations from those people. They are model-generated archetypes. Again: words have meanings.

[1] i kept “repeat” out on purpose. If you have to say “repeat” every time, the mantra has already become a checklist. The 3Rs are a discipline, not a one-time ceremony.

[2] “Reuse is not the goal. Reuse is the receipt.” That is probably the line i would underline twice. It is also the line most enterprise platform efforts should be forced to confront before calling themselves platforms.

[3] The “loop within the loop” framing is intentionally connected to the earlier “Headless With a Spine” argument: the real moat is not a layer but an instrumented control system that acts, captures outcome, evaluates, corrects, and improves the next decision. i love control system theory, feedback loops and most importantly complexity analysis.

[4] Yes, the 3Rs are dangerously close to the old environmental slogan. That is fine. Complexity is pollution too: it accumulates, spreads, and eventually makes the whole system harder to breathe in.

The Token Is The New Constraint

Why is it always with a hoodie and dystopian?

Measure what is measurable, and make measurable what is not so.

~ Galileo Galilei

i have sat through more versions of the same meeting in the past couple of years than i care to admit. It always opens with a slide, sometimes a graph, and nearly always the same sentence spoken with the confidence of a human (for now) who has recently discovered fire:

AI Coding is making our engineers a buh-zillion times more productive.

~ erryone errywhere

Mehbeh. Or Mehbeh Not. This is the part nobody wants to say out loud. Just like workers who act like they don’t prompt errythang to you know where and back for literally erry-thang.

We just made it ten times easier to generate noise, ship half-finished thoughts, and call the resulting churn velocity. Look, everyone, we are agile! (“Hey where did my post it drop of the ah-gill-ee board….”)

i write this from the perspective of someone who has spent the better part of (ahem many) decades pushing bits around many types of systems, and the last several years staring directly into mission-critical workloads where a bad decision does not become a JIRA ticket or Github issue, it becomes a phone call at “Oh Dark-Thirty” local.

However, in the creation of mission-critical systems: Surgical. Defense. Logistics. Edge inference. Real-time orchestration across systems that do not forgive sloppy thinking. In those environments, you learn very quickly that productivity is not a V I B E. It is a measurable flow of high-quality decisions under constraint, and the minute you stop respecting the constraint, the system starts eating you.

AI-assisted coding did not repeal that law. It rewrote the constraint while you were grabbing another piece of pineapple ham pizza or doomscrolling.

The Unit of Work Has Changed, Quietly

Historically, the scarce resource in software was human attention. Cognitive load. Coordination overhead. The dreaded two-pizza meeting that somehow required four pizzas and resolved nothing, except everyone wondering who would take the last piece of pineapple ham. We measured productivity badly because we were measuring the wrong substrate lines of code, commits, deploys, proxies layered on top of proxies. But at least the constraint itself was stable. You had engineers. They had hours. Work flowed, or it didn’t.

Then “IT” arrived a little sooner than many of us had planned, because although WE always had hoped it would arrive, IT came in a different gift wrapping. Backpropagation was back in vogue, then came The Transformers and Deep Learning, then a pseudo-CLI where you typed a “prompt,” and then the floodgates opened: Claude Code arrived. Grok (nice model distilling there bros). Cursor (60B anyone?). A pile of agentic tooling that fundamentally changed what developers do all day. We used to spend time in deep thought, designing and thinking between compiles, but now, with the humans_still_in_the_loop, a very large fraction of the typing, scaffolding, and even architectural drafting happens inside The All Knowing Model.

Ah! Eureka! Sounds like liberation until you realize you have silently replaced one constraint with another.

This new constraint is tokens[1].

Tokens are not a fuzzy abstraction. They are a first-class engineering resource, sitting right next to our beloved CPU,GPU, memory, and network, with a dollar sign attached to each. If you run a serious org, you now have a line item that looks a lot like compute spend because that is exactly what it is. And for the first time in the history of software engineering, we can draw a clean line from idea through generation through acceptance through deployed capability with a real economic cost attached to each step. That is a gift. It is also a trap because if you do not instrument it, it will quietly devour your margin and your architecture.

Tokens are evolving into a unifying primitive across the AI stack. They function simultaneously as an economic unit, where every token is billable, forecastable, and optimizable; as a scheduling unit, mapping directly to GPU time slices through prefill and decode cycles, queueing behavior, and overall throughput; and as a cognitive unit, defining the boundary of what a model can see, reason over, and retain within its context window. That, however, is only the surface layer.

Underneath, something more fundamental is taking shape: tokens are becoming the abstraction layer that unifies currency, memory, and compute. As a currency, they represent the first truly granular pricing primitive for intelligence not measured per model or per request, but per unit of reasoning, effectively per “thought fragment.” As memory, they define bounded buffers of context, where anything outside the token window is effectively forgotten unless explicitly rehydrated through retrieval or summarization. And as compute, tokens directly drive system behavior: they determine prefill workloads, which are parallel and compute-bound, as well as decode dynamics, which are sequential and constrained by memory bandwidth and latency.

tokens = currency + memory + compute abstraction

The Illusion Of Velocity

Here is what every team sees in the first ninety days after rolling out AI-assisted development or some-thang.

PR volume goes up (ah i do hope you are even tracking them please do so, Do At Least Some-Thang). Cycle time appears to drop. Engineers report feeling faster and to be fair, they are, in the same way that a cyclist going downhill is faster than one going uphill. Leadership sees the dashboard, nods sagely[2], and declares the transformation a success. Someone updates the dreaded disease: the slideware.

Then you look one layer down, and the picture changes.

Rework climbs acting a whole lot like refactoring to somewhere? Review latency balloons because humans are now the bottleneck in a pipeline that used to be bottlenecked by writing. Architectural drift accumulates in places nobody is watching, because generation is cheap and correction is not. You did not accelerate delivery. You increased the rate at which unfinished thoughts enter the system. In a toy app this is fine. In a system that has to hold under adversarial load, it is a slow-motion incident waiting to page you.

This is the part that matters for anyone running mission-critical platforms: the system does not care how many tokens you burned or how many PRs you opened. It cares whether the thing worked, whether it held under stress, and whether it reduced the uncertainty of the next decision. Everything else is theater.

Productivity Is Flow Under Constraint — Still

The one model that survives every generation of tooling, from punch cards to Claude Code, is this: developer productivity is the rate at which high-quality decisions flow through a constrained system. AI does not repeal that. It compresses one segment of the pipeline generation and in doing so, it exposes every other weakness you had been quietly tolerating. The queue that used to hide behind slow typing now stands out like a sore thumb. The ambiguous ownership, masked by low throughput, now creates explicit collisions. The review process you always meant to fix becomes the single largest source of wait state in the system.

Three failure modes appear almost immediately, in the same order every time.

The first is batch-size inflation dressed up as speed. Engineers, armed with a model that will happily generate a thousand lines in a minute, begin opening larger PRs. Larger PRs review slower, hide more defects, and carry more coordination tax. Cycle time goes down for the author and up for the team. Net throughput falls, but it falls later, so nobody connects the dots.

The second is rework explosion again, recursion at its finest, a fractal symphony of if-then-again. First drafts are cheap now. Correct systems are not. When you watch the seven-day rewrite rate on AI-generated code, you often see it creep past twenty-five percent before anyone raises a hand. That is not productivity. That is paid trash. You are converting tokens into heat. Joules down the drain. Mother nature doesn’t like that, you know.

The third, and the one that tends to surprise people, is wait-state dominance. Once writing is no longer the bottleneck, every other stage of the pipeline becomes visible reviews, CI, environment provisioning, release gates, ownership ambiguity and most organizations were never designed to operate with those segments under scrutiny. A third and fourth pair of “Cross-Eyed” Eyes On Glass. The model did its job. The system around it did not.

What You Actually Measure

I have argued for years, including in CEO OKRs → CTO Metrics, that the job of the CTO is to translate business outcomes into a set of instrumented signals that behave like a control system, not a quarterly report. That argument becomes more important, not less, the moment tokens enter the stack.

There are four layers worth discussing, and they nest.

Flow is still the backbone. Cycle time from PR to production, review latency, and merge frequency the standard DORA-adjacent surface. The twist is that flow is only meaningful when normalized against token consumption. If cycle time is dropping but tokens per accepted change are rising superlinearly, you are not getting more efficient. You are subsidizing the illusion of speed with computing.

Quality is where most AI-assisted teams quietly fail. The signal i care about most is not defect count. It is rework velocity how quickly generated code gets rewritten. Anything rewritten inside seventy-two hours of landing is, by definition, an unstable artifact. If that number climbs, your model is producing plausible code that the system rejects. Catch it early, or pay for it architecturally.

Load, meaning cognitive and system friction, is the hidden layer. Wait-state ratio time a unit of work spends idle, divided by total cycle time, tells you where your pipeline is actually broken. Context-switching index tells you whether engineers are still doing deep work or have been reduced to prompt-and-approve operators. Ownership diffusion tells you whether accountability has been silently distributed into the ether.

Creativity is the one everyone waves their hands at, because it is hard, and because most measurement frameworks collapse the moment you try to quantify it. I want to take that seriously for a moment, because I think the AI era is actually the first time we have had the instrumentation to do it honestly.

Measuring Creativity Without Killing It

Creativity is not output volume. It is not tokens generated. It is not a commit count. Those are the things that look like creativity from a distance and fall apart on contact.

Creativity, as best i can define it in an engineering context, is the compression of complexity into a durable, elegant, high-impact solution. You are taking a messy problem and returning something that is smaller, clearer, more general, and more stable than what you started with. That is the thing we actually pay senior “engineers and creatives” for. It is also the thing that models cannot yet do reliably on their own and the thing that, if measured badly, we will incentivize people to stop doing entirely.

You cannot measure creativity directly, but you can measure its footprint.

Problem compression ratio asks how much scope, code, or complexity disappeared between the initial specification and the shipped solution.

Good engineers delete more than they add. Great creatives reframe the problem so that most of it never needed to be built. Please, folks, understand WHY before you design. Re-wind. Re-Read.

It is only a small step to measuring “programmer productivity” in terms of “number of lines of code produced per month”. This is a very costly measuring unit because it encourages the writing of insipid code, but today I am less interested in how foolish a unit it is from even a pure business point of view. My point today is that, if we wish to count lines of code, we should not regard them as “lines produced” but as “lines spent”: the current conventional wisdom is so foolish as to book that count on the wrong side of the ledger.

~ Dijkstra, E. (1987)

First-pass acceptance rate for both humans and model-generated changes tells you how often a proposed solution lands without substantial rework. In an AI-assisted world this is a double signal: it tells you about the author’s judgment and about the quality of the context they are giving the model.

Cross-domain contribution (aka project mobility) captures engineers who solve problems outside their usual lane. This is the single best leading indicator of durable technical leadership i have ever tracked. It does not scale infinitely, but its absence is diagnostic.

Token efficiency: tokens consumed per accepted, shipped, non-reworked change is the new one, and it is the one I find most honest. Because it ties cognition to economics in real time. If a team’s token efficiency is improving quarter over quarter, they are getting genuinely better at converting machine cognition into durable capability. If it is flat while spending is rising, you are paying for activity, not value. Busy is as Busy does they say.

The Token Budget Is CapEx Now

Treat it that way. I mean that literally.

For the first time, we can tie engineering output to a continuously metered economic cost. Not a quarterly cloud bill. Not a headcount ratio. A real-time, per-change, per-feature, per-decision cost of cognition. That is a level of instrumentation that finance organizations have been begging for since the first mainframe. We should not squander it by hiding it inside a developer tools P&L line item and never looking at it again.

I have a dream with that one pull request or that feature designed by that amazing product person, we can map it directly to the valuation of the company.

~ tctjr

The conversation at the leadership level stops being how productive is this creative, a question that was always slightly degrading and almost always wrong, and becomes how efficiently is this system converting tokens into mission-ready capability. That is a question you can actually answer, and more importantly, one you can act on without reducing human beings to a throughput figure.

OKRs That Force The Right Behavior

If you run a mission-critical engineering organization and you are serious about this, vague objectives are worse than no objectives. Being told these objectives when you are the one creating, designing, and building is even worse. You want constraints that bend behavior in a specific direction. Below is roughly what i would write for a platform team shipping into a real-world, high-consequence environment adapt to taste.

The objective is to increase the deployment velocity of mission-critical capabilities without increasing system risk or compute cost per unit of delivered value. That is the whole thing. It is not clever and it is not supposed to be. Mission-critical systems reward extreme clarity.

Underneath that, i would set key results that operate as a connected system: reduce cycle time by thirty percent, hold change failure rate below five percent, drive rework rate under fifteen percent, improve token efficiency tokens per accepted PR by twenty percent, and collapse wait-state ratio below twenty-five percent. Each of those moves a different lever, and moving any one of them in isolation will surface the tension with the others, which is exactly what you want. An OKR set that cannot be gamed by optimizing a single axis is an OKR set that is actually doing its job.

At the operational layer, the KPIs you look at weekly (even daily?), not quarterly, you want a very short list on the wall or an agent to display it on all the screens in the company: cycle time, rework rate, wait-state ratio, token cost per shipped feature, and acceptance rate of AI-generated code. Five numbers. If you cannot tell the story of your engineering organization with five numbers updated weekly, you do not have a control system; you have a reporting habit. And in a mission-critical environment, drift is not a quarterly problem. Drift compounds in hours.

The Weekly Conversation Is The Real Artifact

i want to be careful here, because the point of all this instrumentation is not to build a more beautiful dashboard. It is to change the conversation.

The right weekly conversation, with the right five numbers on the wall, sounds like this. Why did rework tick up this week is it a specific surface, a specific author, a specific model context, or something structural? Where are tokens being wasted are we paying for retries, for bad prompts, for agents stuck in loops? Which stage of the pipeline is accumulating wait and is that stage bottlenecked by people, tooling, or ownership? Are we shipping decisions, or are we generating artifacts that look like decisions?

If those questions are not being asked weekly, by someone with the authority to actually change the system, the system will drift. Quietly at first. Then all at once, usually on a weekend.

The Pattern That Keeps Showing Up

After enough cycles through enough organizations, one pattern keeps winning. The best teams are not the ones moving fastest in any one step. They are the ones where less gets stuck, less gets rewritten, and less gets wasted. That has always been true. AI did not change it. AI just made the deltas larger, faster, and more expensive in both directions.

The winners of the next five years will not be the teams that generate the most code. They will be the teams that waste the least, learn the fastest, and convert intent into reality with the highest signal-per-token they can sustain. The losers will ship more code than ever before, pay more for it than ever before, and create less value doing it than they did in 2019.

Closing Thought

We are not entering an era of AI-driven development. That framing is lazy, and it offloads the thinking to a model that is not qualified to do the thinking. What we are actually entering is an era of token-constrained, system-optimized, human-plus-machine engineering, which is a mouthful, but it is the honest description.

In that world, the constraint is no longer time. It is not even worth attention. For now, it is tokens, attention, and system friction, measured together, optimized together, and treated as a single economic object.

If you get that right, you do not just improve developer productivity. You build an organization that can continuously convert ideas into reality faster, cheaper, and with far higher confidence than whoever you are competing against. If you get it wrong, you will ship more than ever and mean less than ever.

That, at the end of the day, is the difference.

Measure flow. Kill wait states. Shrink work units. Respect the token. Everything else is just more code.

Until Then,

#iwishyouwater <- The Wedge March 2026.

Be Safe.

Ted ℂ. Tanner Jr.

Muzak To Blog By: Yamandú Costa, Vagner Cunha: Interpreta Concerto para Violão de 7 Cordas. This is a technically astounding piece of work. Amazing classical guitar. The recording is astounding.

Foonotes:

[1] If you made it down the stack of turtles this far, thank you for your time and attention. As a side note the word tokenization as it is used in the LLM parlance. The term is overloaded in several technology areas, including Token-Based Authentication (e.g., JWT): After a user logs in, the server issues an encrypted “token” (such as a JSON Web Token) that the client sends with subsequent requests. This avoids re-entering passwords. Security Tokens (Hardware): Physical devices (like USB keys, YubiKeys) that generate temporary codes (OTP) to prove a user possesses the device. Network Tokens (Payments): Card networks (Visa, Mastercard) replace sensitive Primary Account Numbers (PANs) with secure tokens to improve authorization rates and security. Blockchain (the word that shall not be said) and Web3: Tokens as Digital Assets  In blockchain, a token is a programmable, digital asset that lives on a pre-existing blockchain (like Ethereum), using smart contracts to define its behavior.Coinhouse Governance Tokens: Give holders voting power to dictate the future of a protocol. Utility Tokens: Provide access to a specific product or service within a platform (e.g., a token to access a decentralized storage network), and the list goes on and on. A token in a Large Language Model (LLM) is the fundamental, discrete unit of data that a model processes. Rather than reading text word-by-word, an LLM breaks text into smaller chunks (stemming, lemmatization, etc.), subwords, characters, or punctuation, which are then mapped to unique numerical identifiers. The cool kids term for this (from a long time ago) are “Embeddings”: These integer IDs are subsequently converted into vectors known as embeddings N dimensional space that captures semantic relationships. Right now, most of these models are, at best, a stochastic parrot (not to be confused with ParrotHeads from Jimmy Buffett), or as i view it, just major-league regex-ing at the core. So why call it a stochastic parrot, you ask? Thank you for prompting, Polly did want a cracker… We are transferring one language into another, and this is a very inefficient transfer function or an inefficient compression algorithm, just like computer languages. It only parrots what it is taught, with tokenization being a business model. My “hot take” is that the parrot (tokenization business model) will eventually die. However, that is another story, Mehbeh, for another time. If you really want to get into the details, math and code go here: Architecture Behind LLMs and Context Windows

[2]FWIW i hate pineapple ham pizza.

[3] i always wanted to nod sagely with a pipe, but I do not like smoking.

SnakeByte[22]: MegaParse (An LLM’s Dream Parser with No Bits Left Behind)

Groks Idea of a MegaParser Fed Into An LLM

i’d rather have someone put a cigratte in my eye than parse pdfs.

~ BW (very accomplished coder) in a discussion about parsing healthtech pdfs

First, I trust everyone is safe. Second, I haven’t written a SnakeByte in a minute. If you’ve ever wrestled with a PDF that’s more fortress than file, you know, the kind where tables bleed into footnotes, images hide secrets, and your LLM chokes on the chaos, then you will appreciate this one.

Today, we’re diving into MegaParse, an open-source beast from QuivrHQ that’s built to crack open documents like a nutcracker on steroids. It’s optimized for LLM ingestion with zero information loss, turning messy PDFs, DOCXs, and PPTXs into clean, structured gold for your AI overlords. No more “sorry, Dave, I can’t parse that” moments.

If you’ve ever wired up RAG only to discover your PDF tables came out as ASCII i dont know what and your PowerPoints forgot their speaker notes, you’ve met the real villain: lossy parsing. Quivr’s Megaparse is an OSS parser that aims for no-loss conversion across PDFs, DOCX, PPTX, CSV/Excel, shipping markdown you can trust for embeddings and evals. Oh, and let’s not forget EDI specifications. No really.

Read On, Oh Dear Reader.

i stumbled on this gem while hunting for better ways to feed real-world docs into my own RAG experiments. In a world drowning in unstructured data (what is that saying about drowning in data and starving for information? Oh The Megatrends book), MegaParse isn’t just a parser; it’s a precision tool that respects the full spectrum: headers, footers, tables, TOCs, and even images. And get this: it comes in a “vision” mode that ropes in multimodal models like GPT-4o or Claude 3.5 to handle the gnarly stuff. Benchmarks show it smoking the competition with a 0.87 similarity ratio, way ahead of Unstructured's 0.59 or Llama Parser’s measly 0.33. That’s not hype; that’s math saying “this thing gets your docs.”

Why Bother? The Parser Wars Are Real

We’ve all been there: You dump a scanned report into an LLM, and out comes exploding salad. Traditional parsers mangle layouts, drop tables, or hallucinate whitespace where there shouldn’t be any. MegaParse flips the script by prioritizing fidelity no loss, period. It’s fast, free, and plays nice with LangChain, making it a drop-in for anyone building knowledge bases or chatty agents.

Key superpowers:

  • File Feast: Eats PDFs, DOCX, PPTX, TXT, Excel, CSV – you name it.
  • Content Clutch: Grabs tables, images, headers/footers without breaking a sweat.
  • Vision Boost: For the tough nuts, it calls in heavy hitters like GPT-4o to visually dissect pages.
  • Eval-Ready: Built-in benchmarking scripts to pit it against rivals. (Pro tip: Tweak evaluations/script.py and run it instant flex.)

It’s early days (still cooking table checkers, and structured outputs), but dang if it doesn’t feel like the parser we’ve been waiting for. Open source means you can fork it, fix it, or feast on it. Please be a good steward and contribute back. It is Apache 2.0 license.

Hands-On: Parsing Like a Pro

Let’s get dirty with some code. I’ll walk you through setup and a couple examples. (Assuming Python 3.11+ – because who lives in the past?)

Quick Install & Setup

Fire up your terminal:

pip install megaparse

I trust that wasn’t too difficult.

Ops notes (the stuff you’ll forget at 2am)

Containers: Repo includes Dockerfile and Dockerfile.gpu if you prefer hermetic builds.

System deps: PDFs/images benefit from Poppler and Tesseract; macOS also needs libmagic. Homebrew: brew install poppler tesseract libmagic.

Keys: Vision path needs an LLM key (OpenAI/Anthropic). Plain parser path can run without, depending on your inputs and slap it in a .env file (no keys in the code, boys and girls!):

OPENAI_API_KEY=your_key_here #dont put your OpenAI key for the Anthropic Key 

Example 1: Basic Parse: Effortless Extraction

Here’s the no-frills way to crack a PDF. It spits out a structured response ready for your LLM prompt. Ok, so some of you are saying ‘What’s the big deal on PDF Shredding and Parsing?” Well, check my quote at the beginning of this blog. Historically, you had to roll your own regex and then use NLTK, for example.

from megaparse import MegaParse
import json

# Initialize the parser
parser = MegaParse()

# Parse the PDF
response = parser.load("./complex_annual_report_that_no_one_wants_to_read.pdf")

# Pretty-print the output
print(json.dumps(response, indent=2))

Output? A tidy dictionary or list with sections, text, tables all intact. Feed that to your LLM, and watch it hum.

Example2: Parse -> Chunk-> Embed

 pip install megaparse tiktoken numpy sentence-transformers
from megaparse import MegaParse
from sentence_transformers import SentenceTransformer
import tiktoken, textwrap

mp = MegaParse()
doc = mp.load("./docs/board_minutes.pdf")         # -> {"markdown", "metadata", "images"}

# naive chunking by tokens
enc = tiktoken.get_encoding("cl100k_base")
def chunks(markdown, max_tokens=400):
    buf, count = [], 0
    for para in markdown.split("\n\n"):
        tokens = len(enc.encode(para))
        if count + tokens > max_tokens and buf:
            yield "\n\n".join(buf); buf, count = [], 0
        buf.append(para); count += tokens
    if buf: yield "\n\n".join(buf)

model = SentenceTransformer("all-MiniLM-L6-v2")
texts = list(chunks(doc["markdown"]))
embs  = model.encode(texts, convert_to_numpy=True)

print(f"Ingested {len(texts)} chunks; emb shape: {embs.shape}")

In the above example, you will notice tiktoken. tiktoken is a fast open-source Byte Pair Encoding (BPE) tokenizer developed by OpenAI for use with their models. It allows you to convert text strings into tokens (numerical representations) and vice versa, which is crucial for interacting with large language models (LLMs).

Swap in your vector store of choice; the point is the markdown quality gives you cleaner chunks and better recall.

In the above example.:

<N> = how many markdown chunks your PDF becomes with the ~400-token chunker.

384 = embedding size of all-MiniLM-L6-v2.

So if your document yields 12 chunks:

Ingested 12 chunks; emb shape: (12, 384)

Example 3: Vision Mode: When Pixels Get Personal

For docs with wonky scans (anything that uses an identity) or embedded visuals (think human identification or HotDogOrNot), flip to MegaParseVision. It uses a multimodal model to “see” the page, ensuring nothing gets lost in translation.

import os
from langchain_openai import ChatOpenAI
from megaparse.parser.megaparse_vision import MegaParseVision

# Set up your vision model (GPT-4o here; swap for Claude if you're fancy)
model = ChatOpenAI(model="gpt-4o", api_key=os.getenv("OPENAI_API_KEY"))

# Fire up the vision parser
vision_parser = MegaParseVision(model=model)

# Convert with eyes wide open
response = vision_parser.convert("./scanned_presentation.pptx")
print(response)

So, how to read the performance on output:

From their README benchmark (higher is better on their similarity metric):

megaparse_vision:            0.87
unstructured_with_check:     0.77
unstructured:                0.59
llama_parser:                0.33

Use this as a starting point, always test on your corpus (contracts, clinical notes, 10-Qs). They provide a evaluations/script.py hook for plugging in your own comparisons.

NOTE: I didn’t dig into the specifics of the distance similarity functions on how that is derived; however, I am guessing it’s one of the main ones on vector output.

This bad boy achieves that 0.87 benchmark score by visually cross-checking layouts. Pro move: Chain it with LangChain for RAG: parse once, query forever.

The output of the vision parser code using MegaParseVision depends on the input file (in this case, scanned_presentation.pptx) and the specific content within it, as well as the multimodal model used (e.g., GPT-4o).

Expected Output of the Vision Parser Code

The MegaParseVision class in the provided code processes the input file (a PowerPoint presentation, .pptx) using a multimodal model to extract content with high fidelity, including text, tables, images, and layout details. The output is typically a structured Python object (likely a dictionary or list) containing the parsed content, optimized for LLM ingestion. Here’s a breakdown of what you’d generally get:

Structured JSON-like Output: The response from vision_parser.convert(“./scanned_presentation.pptx”) is a structured data format (e.g., a dictionary) with keys representing different elements of the document, such as:

  • Text: Extracted text from slides, headers, footers, or annotations.
  • Tables: Structured data from any tables, often as lists or dictionaries representing rows and columns.
  • Images: Either embedded image data (e.g., base64-encoded) or references to extracted images, depending on configuration.
  • Metadata: Details like slide numbers, page layout, or document properties.
  • Visual Elements: For scanned or image-heavy documents, the vision model (e.g., GPT-4o) interprets visual content, so you might get descriptions of charts, diagrams, or other non-text elements.

Example Output Structure

Here’s a hypothetical example of what the output might look like for a simple PowerPoint slide deck with text, a table, and an image:

{
  "document_type": "pptx",
  "slides": [
    {
      "slide_number": 1,
      "text": "Welcome to Our Presentation\nKey Points:\n- Project Overview\n- Goals",
      "images": [
        {
          "description": "Company logo in top-right corner",
          "base64": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUg..."
        }
      ],
      "tables": []
    },
    {
      "slide_number": 2,
      "text": "Sales Data Q1 2025",
      "images": [],
      "tables": [
        {
          "rows": [
            ["Region", "Sales", "Growth"],
            ["North", "500K", "5%"],
            ["South", "300K", "3%"]
          ]
        }
      ]
    }
  ],
  "metadata": {
    "total_slides": 2,
    "file_name": "scanned_presentation.pptx",
    "parsed_with": "gpt-4o"
  }
}

Key Characteristics of the Output

  • Comprehensive: Includes all extractable elements (text, tables, images, etc.), leveraging the vision model to interpret scanned or visually complex content.
  • Structured for LLMs: The output is clean and organized, making it easy to feed into a language model or a RAG pipeline via LangChain.
  • Vision-Enhanced: Since MegaParseVision uses a multimodal model, it can describe images or interpret layouts that standard text parsers might miss (e.g., text embedded in images or non-standard table formats).
  • File-Specific: The exact content depends on the .pptx file’s structure. A scanned document might lean more on image descriptions, while a native PPTX might have cleaner text and table data.

Why the Output Varies

The output hinges on:

  • File Content: A text-heavy PPTX will yield more text fields; a scanned PDF converted to PPTX might emphasize image descriptions.
  • Model Choice: GPT-4o might prioritize different details compared to Claude 3.5, affecting how visual elements are described.
  • Configuration: If you’ve tweaked MegaParseVision settings (e.g., via custom prompts or parameters), the output format might differ slightly.

Bonus: API Mode for the Lazy Devs

Hate scripting? Spin up a local server at localhost:8000. Hit the /docs endpoint for Swagger-style bliss coding. Upload files, get parses zero boilerplate.

Wrapping the Byte: Parse Smarter, Not Harder

MegaParse is a reminder that good tools don’t just work; they respect your data. In the LLM era, where garbage in means garbage out, this is your anti-garbage shield. Star it, fork it, build on it and if you’re tweaking those evals, drop me a line on what you find.

NOTE: Benchmarks via their eval script run your own to confirm. No affiliation, just a fan of clean code.

NOTE: On the github “star growth” plot, they use the XKCD Python plotting library. i actually did a SnakeByte on that years ago, love the humor.

That’s your SnakeByte for today. Happy parsing!

Until Then,

Stay curious.

#iwishyouwater <- Opening Day at The Pipe 2025

Ted ℂ. Tanner Jr. (@tctjr) / X

Muzak To Blog By: Wisdom Of Clowns by Doctors Of Space. Synth meets Doom Metal meets Ambient.

A Survey Of Architectures And Methodologies For Distributed LLM Dissaggregation

Grok 4’s Idea of a Distributed LLM

I was kicking back in my Charleston study this morning, drinking my usual unsweetened tea in a mason jar, the salty breeze slipping through the open window like a whisper from the Charleston Harbor, carrying that familiar tang of low tide “pluff mud” and distant rain. The sun was filtering through the shutters, casting long shadows across my desk littered with old notes on distributed systems engineering, when I dove into this survey on architectures for distributed LLM disaggregation. It’s a dive into the tech that’s pushing LLMs beyond their limits. As i read the numerous papers and assembled commonalities, it hit me how these innovations echo the battles many have fought scaling AI/ML in production, raw, efficient, and unapologetically forward. Here’s the breakdown, with the key papers linked for those ready to dig deeper.

This is essentially the last article in a trilogy. The sister survey is a blog A Survey of Technical Approaches For Distributed AI In Sensor Networks. Then, for a top-level view, i wrote SnakeByte[21]: The Token Arms Race: Architectures Behind Long-Context Foundation Models, so you’ll have all views of a complete system, sensors->distributed compute methods->context engineering.

NOTE: By the time this is published, a whole new set of papers will come out, and i wrote (and read the papers) in a week.

Overview

Distributed serving of LLMs presents significant technical challenges driven by the immense scale of contemporary models, the computational intensity of inference, the autoregressive nature of token generation, and the diverse characteristics of inference requests. Efficiently deploying LLMs across clusters of hardware accelerators (predominantly GPUs and NPUs) necessitates sophisticated system architectures, scheduling algorithms, and resource management techniques to achieve low latency, high throughput, and cost-effectiveness while adhering to Service Level Objectives (SLOs). As you read the LLM survey, think in terms of deployment architectures:

Layered AI System Architecture:

  • Sensor Layer: IoT, Cameras, Radar, LIDAR, electro-mag, FLIR etc
  • Edge/Fog Layer: Edge Gateways, Inference Accelerators, Fog Nodes
  • Cloud Layer: Central AI Model Training, Orchestration Logic, Data Lake

Each layer plays a role in collecting, processing, and managing AI workloads in a distributed system.

Distributed System Architectures and Disaggregation

Modern distributed Large Language Models serving platforms are moving beyond monolithic deployments to adopt disaggregated architectures. A common approach involves separating the computationally intensive prompt processing (prefill phase) from the memory-bound token generation (decode phase). This disaggregation addresses the bimodal latency characteristics of these phases, mitigating pipeline bubbles that arise in pipeline-parallel deployments KV-cache Streaming for Fast, Fault-tolerant Generative LLM Serving. As a reminder in LLMs, KV cache stores key and value tensors from previous tokens during inference. In transformer-based models, the attention mechanism computes key (K) and value (V) vectors for each token in the input sequence. Without caching, these would be recalculated for every new token generated, leading to redundant computations and inefficiency.

Systems like Mooncake: A KVCache-centric Disaggregated Architecture for LLM Serving propose a KVCache-centric disaggregated architecture with dedicated clusters for prefill and decoding. This separation allows for specialized resource allocation and scheduling policies tailored to each phase’s demands. Similarly, P/D-Serve: Serving Disaggregated Large Language Model at Scale focuses on serving disaggregated LLMs at scale across tens of thousands of devices, emphasizing fine-grained P/D organization and dynamic ratio adjustments to minimize inner mismatch and improve throughput and Time-to-First-Token (TTFT) SLOs. KVDirect: Distributed Disaggregated LLM Inference explores distributed disaggregated inference by optimizing inter-node KV cache transfer using tensor-centric communication and a pull-based strategy.

Further granularity in disaggregation can involve partitioning the model itself across different devices or even separating attention layers, as explored by Infinite-LLM: Efficient LLM Service for Long Context with DistAttention and Distributed KVCache, which disaggregates attention layers to enable flexible resource scheduling and enhance memory utilization for long contexts. DynaServe: Unified and Elastic Execution for Dynamic Disaggregated LLM Serving unifies and extends both colocated and disaggregated paradigms using a micro-request abstraction, splitting requests into segments for balanced load across unified GPU instances.

The distributed nature also necessitates mechanisms for efficient checkpoint loading and live migration. ServerlessLLM: Low-Latency Serverless Inference for Large Language Models proposes a system for low-latency serverless inference that leverages near-GPU storage for fast multi-tier checkpoint loading and supports efficient live migration of LLM inference states.

Scheduling and Resource Orchestration

Effective scheduling is paramount in distributed LLM serving due to heterogeneous request patterns, varying SLOs, and the autoregressive dependency. Existing systems often suffer from head-of-line blocking and inefficient resource utilization under diverse workloads.

Preemptive scheduling, as implemented in Fast Distributed Inference Serving for Large Language Models, allows for preemption at the granularity of individual output tokens to minimize latency. FastServe employs a novel skip-join Multi-Level Feedback Queue scheduler leveraging input length information. Llumnix: Dynamic Scheduling for Large Language Model Serving introduces dynamic rescheduling across multiple model instances, akin to OS context switching, to improve load balancing, isolation, and prioritize requests with different SLOs via an efficient live migration mechanism.

Prompt scheduling with KV state sharing is a key optimization for workloads with repetitive prefixes. Preble: Efficient Distributed Prompt Scheduling for LLM Serving is a distributed platform explicitly designed for optimizing prompt sharing through a distributed scheduling system that co-optimizes KV state reuse and computation load-balancing using a hierarchical mechanism. MemServe: Context Caching for Disaggregated LLM Serving with Elastic Memory Pool integrates context caching with disaggregated inference, supported by a global scheduler that enhances cache reuse through a global prompt tree-based locality-aware policy. Locality-aware fair scheduling is further explored in Locality-aware Fair Scheduling in LLM Serving, which proposes Deficit Longest Prefix Match (DLPM) and Double Deficit LPM (D2LPM) algorithms for distributed setups to balance fairness, locality, and load-balancing.

Serving multi-SLO requests efficiently requires sophisticated queue management and scheduling. Queue management for slo-oriented large language model serving is a queue management system that handles batch and interactive requests across different models and SLOs using a Request Waiting Time (RWT) Estimator and a global scheduler for orchestration. SLOs-Serve: Optimized Serving of Multi-SLO LLMs optimizes the serving of multi-stage LLM requests with application- and stage-specific SLOs by customizing token allocations using a multi-SLO dynamic programming algorithm. SeaLLM: Service-Aware and Latency-Optimized Resource Sharing for Large Language Model Inference proposes a service-aware and latency-optimized resource sharing framework for large language model inference.

For complex workloads like agentic programs involving multiple LLM calls with dependencies, traditional request-level scheduling is suboptimal. Autellix: An Efficient Serving Engine for LLM Agents as General Programs treats programs as first-class citizens, using program-level context to inform scheduling algorithms that preempt and prioritize LLM calls based on program progress, demonstrating significant throughput improvements for agentic workloads. Parrot: Efficient Serving of LLM-based Applications with Semantic Variable focuses on end-to-end performance for LLM-based applications by introducing the Semantic Variable abstraction to expose application-level knowledge and enable data flow analysis across requests. Conveyor: Efficient Tool-aware LLM Serving with Tool Partial Execution optimizes for tool-aware LLM serving by enabling tool partial execution alongside LLM decoding.

Memory Management and KV Cache Optimizations

The KV cache’s size grows linearly with sequence length and batch size, becoming a major bottleneck for GPU memory and throughput. Distributed serving exacerbates this by requiring efficient management across multiple nodes.

Effective KV cache management involves techniques like dynamic memory allocation, swapping, compression, and sharing. KV-cache Streaming for Fast, Fault-tolerant Generative LLM Serving proposes KV-cache streaming for fast, fault-tolerant serving, addressing GPU memory overprovisioning and recovery times. It utilizes microbatch swapping for efficient GPU memory management. On-Device Language Models: A Comprehensive Review presents techniques for managing persistent KV cache states including tolerance-aware compression, IO-recompute pipelined loading, and optimized chunk lifecycle management.

In distributed environments, sharing and transferring KV cache states efficiently are critical. MemServe introduces MemPool, an elastic memory pool managing distributed memory and KV caches. Infinite-LLM: Efficient LLM Service for Long Context with DistAttention and Distributed KVCache leverages a pooled GPU memory strategy across a cluster. Prefetching KV-cache for LLM Inference with Dynamic Profiling proposes prefetching model weights and KV-cache from off-chip memory to on-chip cache during communication to mitigate memory bottlenecks and communication overhead in distributed settings. KVDirect: Distributed Disaggregated LLM Inference specifically optimizes KV cache transfer using a tensor-centric communication mechanism.

Handling Heterogeneity and Edge/Geo-Distributed Deployment

Serving LLMs cost-effectively often requires utilizing heterogeneous hardware clusters and deploying models closer to users on edge devices or across geo-distributed infrastructure.

Helix: Serving Large Language Models over Heterogeneous GPUs and Networks via Max-Flow addresses serving LLMs over heterogeneous GPUs and networks by formulating inference as a max-flow problem and using MILP for joint model placement and request scheduling optimization. LLM-PQ: Serving LLM on Heterogeneous Clusters with Phase-Aware Partition and Adaptive Quantization supports efficient serving on heterogeneous GPU clusters through adaptive model quantization and phase-aware partition. Efficient LLM Inference via Collaborative Edge Computing leverages collaborative edge computing to partition LLM models and deploy them on distributed devices, formulating device selection and partition as an optimization problem.

Deploying LLMs on edge or geo-distributed devices introduces challenges related to limited resources, unstable networks, and privacy. PerLLM: Personalized Inference Scheduling with Edge-Cloud Collaboration for Diverse LLM Services provides a personalized inference scheduling framework with edge-cloud collaboration for diverse LLM services, optimizing scheduling and resource allocation using a UCB algorithm with constraint satisfaction. Distributed Inference and Fine-tuning of Large Language Models Over The Internet investigates inference and fine-tuning over the internet using geodistributed devices, developing fault-tolerant inference algorithms and load-balancing protocols. MoLink: Distributed and Efficient Serving Framework for Large Models is a distributed serving system designed for heterogeneous and weakly connected consumer-grade GPUs, incorporating techniques for efficient serving under limited network conditions. WiLLM: an Open Framework for LLM Services over Wireless Systems proposes deploying LLMs in core networks for wireless LLM services, introducing a “Tree-Branch-Fruit” network slicing architecture and enhanced slice orchestration.

On the of most recent papers that echo my sentiment from years ago where is i’ve said “Vertically Trained Horizontally Chained” (maybe i should trademark that …) is Small Language Models are the Future of Agentic AI where they lay out the position that specific task LLMs are sufficiently robust, inherently more suitable, and necessarily more economical for many invocations in agentic systems, and are therefore the future of agentic AI. The argumentation is grounded in the current level of capabilities exhibited by these specialized models, the common architectures of agentic systems, and the economy of LM deployment. They further argue that in situations where general-purpose conversational abilities are essential, heterogeneous agentic systems (i.e., agents invoking multiple different models chained horizontally) are the natural choice. They discuss the potential barriers for the adoption of vertically trained LLMs in agentic systems and outline a general LLM-to-specific chained model conversion algorithm.

Other Optimizations and Considerations

Quantization is a standard technique to reduce model size and computational requirements. Atom: Low-bit Quantization for Efficient and Accurate LLM Serving proposes a low-bit quantization method (4-bit weight-activation) to maximize serving throughput by leveraging low-bit operators and reducing memory consumption, achieving significant speedups over FP16 and INT8 with negligible accuracy loss.

Splitting or partitioning models can also facilitate deployment across distributed or heterogeneous resources. SplitLLM: Collaborative Inference of LLMs for Model Placement and Throughput Optimization designs a collaborative inference architecture between a server and clients to enable model placement and throughput optimization. A related concept is Split Learning for fine-tuning, where models are split across cloud, edge, and user devices Hierarchical Split Learning for Large Language Model over Wireless Network. BlockLLM: Multi-tenant Finer-grained Serving for Large Language Models enables multi-tenant finer-grained serving by partitioning models into blocks, allowing component sharing, adaptive assembly, and per-block resource configuration.

Performance and Evaluation Metrics

Evaluating and comparing distributed LLM serving platforms requires appropriate metrics and benchmarks. The CAP Principle for LLM Serving: A Survey of Long-Context Large Language Model Serving suggests a trade-off between serving context length (C), serving accuracy (A), and serving performance (P). Developing realistic workloads and simulation tools is crucial. BurstGPT: A Real-world Workload Dataset to Optimize LLM Serving Systems provides a real-world workload dataset for optimizing LLM serving systems, revealing limitations of current optimizations under realistic conditions. LLMServingSim: A HW/SW Co-Simulation Infrastructure for LLM Inference Serving at Scale is a HW/SW co-simulation infrastructure designed to model dynamic workload variations and heterogeneous processor behaviors efficiently. ScaleLLM: A Resource-Frugal LLM Serving Framework by Optimizing End-to-End Efficiency focuses on a holistic system view to optimize LLM serving in an end-to-end manner, identifying and addressing bottlenecks beyond just LLM inference.

Conclusion

The landscape of distributed LLM serving platforms is rapidly evolving, driven by the need to efficiently and cost-effectively deploy increasingly large and complex models. Key areas of innovation include the adoption of disaggregated architectures, sophisticated scheduling algorithms that account for workload heterogeneity and SLOs, advanced KV cache management techniques, and strategies for leveraging diverse hardware and deployment environments. While significant progress has been made, challenges remain in achieving optimal trade-offs between performance, cost, and quality of service (QOS) across highly dynamic and heterogeneous real-world scenarios.

As the sun set and the neon glow of my screen dimmed, i wrapped this survey up, leaving me pondering the endless horizons of AI/ML scaling like waves crashing on the shore, relentless and full of promise and thinking how incredible it is to be working in these areas where what we have dreamed for decades has come to fruition?

Until Then,

#iwishyouwater

Ted ℂ. Tanner Jr. (@tctjr) / X

MUZAK TO BLOG BY: Vangelis, “L’apocalypse de animax (remastered). Vangelis is famous for “Chariots Of Fire” and “Blade Runner” Soundtracks.

A Survey of Technical Approaches For Distributed AI In Sensor Networks

Grok4’s Idea of AI and Sensor Orchestraton with DAI

Distributed Artificial Intelligence (DAI) within sensor networks (SN) involves deploying AI algorithms and models across a network of spatially distributed sensor nodes rather than relying solely on centralized cloud processing. This paradigm shifts computation closer to the data source, bringing the data to the compute, offering potential benefits in terms of reduced communication latency, lower bandwidth usage, enhanced privacy, increased system resilience, and improved scalability for large-scale IoT and pervasive computing deployments. The operational complexity of such systems necessitates sophisticated orchestration mechanisms to manage the distributed AI workloads, sensor resources, and heterogeneous compute infrastructure spanning from edge devices to cloud data centers.  This article will survey methods for distributed smart sensor technologies, along with considerations for implementing AI algorithms at these junctions.

Implementing AI functions in a distributed sensor network setting often involves adapting centralized algorithms or devising novel distributed methods. Key technical areas include distributed estimation, detection, and learning.

Distributed Sensor Anomaly Detection

Distributed estimation problems, such as static parameter estimation or Kalman filtering, can be addressed using consensus-based approaches. Algorithms of the “consensus + innovations” type, where one can have an estimation of the type and behavior of the sensor.  The paper “Distributed Parameter Estimation in Sensor Networks: Nonlinear Observation Models and Imperfect Communication” discusses these algorithms, which enable sensor nodes to iteratively update estimates by combining local observations (innovations) with information exchanged with neighbors (consensus). These methods enable asymptotically unbiased and efficient estimation, even in the presence of nonlinear observation models and imperfect communication. Extensions include randomized consensus for Kalman filtering, which offers robustness to network topology changes and distributes the computational load stochastically which are covered in the paper “Randomized Consensus based Distributed Kalman Filtering over Wireless Sensor Networks”. For multi-target tracking or target under consideration, distributed approaches integrate sensor registration with tracking filters, such as deploying a consensus cardinality probability hypothesis density (CPHD) filter across the network and minimizing a cost function based on local posteriors to estimate relative sensor poses in the paper “Distributed Joint Sensor Registration and Multitarget Tracking Via Sensor Network”.

Distributed detection focuses on identifying events or anomalies based on collective sensor readings. Techniques leveraging sparse signal recovery have been applied to detect defective sensors in networks with a small number of faulty nodes, using distributed iterative hard thresholding (IHT) and low-complexity decoding robust to noisy messages in these two papers “Distributed Sparse Signal Recovery For Sensor Networks” and “Distributed Sensor Failure Detection In Sensor Networks” cover methods for failure recovery and self healing.

In another closely related application for anomaly detection of sensors learning-based distributed procedures, like the mixed detection-estimation (MDE) algorithm, address scenarios with unknown sensor defects by iteratively learning the validity of local observations while refining parameter estimates, achieving performance close to ideal centralized estimators in high SNR regimes can be found in this paper “Learning-Based Distributed Detection-Estimation in Sensor Networks with Unknown Sensor Defects”.

Distributed learning enables sensor nodes or edge devices to collaboratively train models without requiring the sharing of raw data. This is crucial for maintaining privacy and conserving bandwidth, or where privacy-preserving machine learning (PPML) is necessary. Approaches include distributed dictionary learning using diffusion cooperation schemes, where nodes exchange local dictionaries with neighbors, are applied in this paper “Distributed Dictionary Learning Over A Sensor Network”

In many cases, one has no a priori information for the type of sensor under consideration.  For online sensor selection with unknown utility functions, distributed online greedy (DOG) algorithms provide no-regret guarantees for submodular utility functions with minimal communication overhead. Federated Learning (FL) and other distributed Machine Learning (ML) paradigms are increasingly applied for tasks like anomaly detection.  In the paper “ Online Distributed Sensor Selection,” we find that a key problem in sensor networks is to decide which sensors to query when, in order to obtain the most useful information (e.g., for performing accurate prediction), subject to constraints (e.g., on power and bandwidth). In many applications, the utility function is not known a priori, must be learned from data, and can even change over time. Furthermore, for large sensor networks, solving a centralized optimization problem to select sensors is not feasible, and thus we seek a fully distributed solution. In most cases, training on raw data occurs locally, and model updates or parameters are aggregated globally, often at an edge server or fusion center.

Sensor activation and selection are also critical aspects. Forward-thinking algorithms in energy-efficient distributed sensor activation based on predicted target locations using computational intelligence can significantly reduce energy consumption and the number of active nodes required for target tracking such as the paper IDSA: Intelligent Distributed Sensor Activation Algorithm For Target Tracking With Wireless Sensor Network.

Context-aware like those that are emerging with Large Language Models, can collaborate with intelligence and in-sensor analytics (ISA) on resource-constrained nodes, dramatically reducing communication energy compared to transmitting raw data, extending network lifetime while preserving essential information 

Context-Aware Collaborative-Intelligence with Spatio-Temporal In-Sensor-Analytics in a Large-Area IoT Testbed introduces a context-aware collaborative-intelligence approach that incorporates spatio-temporal in-sensor analytics (ISA) to reduce communication energy in resource-constrained IoT nodes. This approach is particularly relevant given that energy-efficient communication remains a primary bottleneck in achieving fully energy-autonomous IoT nodes, despite advancements in reducing the energy cost of computation. The research explores the trade-offs between communication and computation energies in a mesh network deployed across a large-scale university campus, targeting multi-sensor measurements for smart agriculture (temperature, humidity, and water nitrate concentration).

The paper considers several scenarios involving ISA, Collaborative Intelligence (CI), and Context-Aware-Switching (CAS) of the cluster-head during CI. A real-time co-optimization algorithm is developed to minimize energy consumption and maximize the battery lifetime of individual nodes. The results show that ISA consumes significantly less energy compared to traditional communication methods: approximately 467 times lower than Bluetooth Low Energy (BLE) and 69,500 times lower than Long Range (LoRa) communication. When ISA is used in conjunction with LoRa, the node lifetime increases dramatically from 4.3 hours to 66.6 days using a 230 mAh coin cell battery, while preserving over 98% of the total information. Furthermore, CI and CAS algorithms extend the worst-case node lifetime by an additional 50%, achieving an overall network lifetime of approximately 104 days, which is over 90% of the theoretical limits imposed by leakage currents.

Orchestration of Distributed AI and Sensor Resources

Orchestration in the context of distributed AI and sensor networks involves the automated deployment, configuration, management, and coordination of applications, dataflows, and computational resources across a heterogeneous computing continuum, typically spanning sensors, edge devices, fog nodes, and the cloud.  The paper Orchestration in the Cloud-to-Things Compute Continuum: Taxonomy, Survey and Future Directions.  This is essential for supporting complex, dynamic, and resource-intensive AI workloads in pervasive environments.

Traditional orchestration systems designed for centralized cloud environments are often ill-suited for the dynamic and resource-constrained nature of edge/fog computing and sensor networks. Requirements for continuum orchestration include support for diverse data models (streams, micro-batches), interfacing with various runtime engines (e.g., TensorFlow), managing application lifecycles (including container-based deployment), resource scheduling, and dynamic task migration.

Container orchestration tools, widely used in cloud environments, are being adapted for edge and fog computing to manage distributed containerized applications. However, deploying heavy-weight orchestrators on resource-limited edge/fog nodes presents challenges. Lightweight container orchestration solutions, such as clusters based on K3s, are proposed to support hybrid environments comprising heterogeneous edge, fog, and cloud nodes, offering improved response times for real-time IoT applications.  The paper Container Orchestration in Edge and Fog Computing Environments for Real-Time IoT Applications proposes a feasible approach to build a hybrid and lightweight cluster based on K3s, a certified Kubernetes distribution for constrained environments that offers containerized resource management framework. This work addresses the challenge of creating lightweight computing clusters in hybrid computing environments. It also proposes three design patterns for the deployment of the “FogBus2” framework in hybrid environments, including 1) Host Network, 2) Proxy Server, and 3) Environment Variable.

Machine learning algorithms are increasingly integrated into container orchestration systems to improve resource provisioning decisions based on predicted workload behavior and environmental conditions where it is mentioned in the paper ECHO: An Adaptive Orchestration Platform for Hybrid Dataflows across Cloud and Edge with an open source model.

Platforms like ECHO are designed to orchestrate hybrid dataflows across distributed cloud and edge resources, enabling applications such as video analytics and sensor stream processing on diverse hardware platforms.  Other frameworks such as the paper DAG-based Task Orchestration for Edge Computing, focus on orchestrating application tasks with dependencies (represented as Directed Acyclic Graphs, or DAGs) on heterogeneous edge devices, including personally owned, unmanaged devices, to minimize end-to-end latency and reduce failure probability.  Of note, this is also closely aligned with implementations of MFLow and Airflow, which implement a DAG.  

Autonomic orchestration aims to create self-managing distributed systems. This involves using AI, particularly edge AI, to enable local autonomy and intelligence in resource orchestration across the device-edge-cloud continuum as discussed in Autonomy and Intelligence in the Computing Continuum: Challenges, Enablers, and Future Directions for Orchestration.  For instance, in A Self-Managed Architecture for Sensor Networks Based on Real Time Data Analysis introduces a self-managed sensor network platforms that can use real-time data analysis to dynamically adjust network operations and optimize resource usage. AI-enabled traffic orchestration in future networks (e.g., 6G) utilizes technologies like digital twins to provide smart resource management and intelligent service provisioning for complex services like ultra-reliable low-latency communication (URLLC) and distributed AI workflows. There is an underlying interplay between Distributed AI Workflow and URLLC, which has manifold design considerations throughout any network topology.

Novel paradigms such as the paper How Can AI be Distributed in the Computing Continuum? Introducing the Neural Pub/Sub Paradigm are emerging to address the specific challenges of orchestrating large-scale distributed AI workflows. The neural publish/subscribe paradigm proposes a decentralized approach to managing AI training, fine-tuning, and inference workflows in the computing continuum, aiming to overcome limitations of traditional centralized brokers in handling the massive data surge from connected devices.  This paradigm facilitates distributed computation, dynamic resource allocation, and system resilience. Similarly, concepts like Airborne Neural Networks envision distributing neural network computations across multiple airborne devices, coordinated by airborne controllers, for real-time learning and inference in aerospace applications found in the paper Airborne Neural Network.  This paper proposes a novel concept: the Airborne Neural Network a distributed architecture where multiple airborne devices, each host a subset of neural network neurons. These devices compute collaboratively, guided by an airborne network controller and layer-specific controllers, enabling real-time learning and inference during flight. This approach has the potential to revolutionize Aerospace applications, including airborne air traffic control, real-time weather and geographical predictions, and dynamic geospatial data processing.

The intersection of distributed AI and sensor orchestration is also evident in specific applications like multi-robot systems for intelligence, surveillance, and reconnaissance (ISR), where decentralized coordination algorithms enable simultaneous exploration and exploitation in unknown environments using heterogeneous robot teams such as Decentralised Intelligence, Surveillance, and Reconnaissance in Unknown Environments with Heterogeneous Multi-Robot Systems, In the paper  Coordination of Drones at Scale: Decentralized Energy-aware Swarm Intelligence for Spatio-temporal Sensing it is introduced a solution to tackle the complex task self-assignment problem, a decentralized and energy-aware coordination of drones at scale is introduced. Autonomous drones share information and allocate tasks cooperatively to meet complex sensing requirements while respecting battery constraints. Furthermore, the decentralized coordination method prevents single points of failure, it is more resilient, and preserves the autonomy of drones to choose how they navigate and sense.  In the paper HiveMind: A Scalable and Serverless Coordination Control Platform for UAV Swarms, a centralized coordination control platform for IoT swarms is introduced that is both scalable and performant. HiveMind leverages a centralized cluster for all resource-intensive computation, deferring lightweight and time-critical operations, such as obstacle avoidance, to the edge devices to reduce network traffic. Resource orchestration for network slicing scenarios can employ distributed reinforcement learning (DRL) where multiple agents cooperate to dynamically allocate network resources based on slice requirements, demonstrating adaptability without extensive retraining found in the paper Using Distributed Reinforcement Learning for Resource Orchestration in a Network Slicing Scenario.

.

Challenges and Implementation Considerations

Implementing distributed AI and sensor orchestration presents numerous challenges:

Communication Constraints: The limited bandwidth, intermittent connectivity, and energy costs associated with wireless communication in sensor networks necessitate communication-efficient algorithms and data compression techniques. Distributed learning algorithms often focus on minimizing the number of communication rounds or the size of exchanged messages as discussed in Pervasive AI for IoT applications: A Survey on Resource-efficient Distributed Artificial Intelligence.

Computational Heterogeneity: Sensor nodes, edge devices, and cloud servers possess vastly different computational capabilities. Orchestration systems must effectively map AI tasks to appropriate resources, potentially offloading intensive computations to the edge or cloud while performing lightweight inference or pre-processing on resource-constrained nodes as found in Pervasive AI for IoT applications: A Survey on Resource-efficient Distributed Artificial Intelligence and further discussed a problems in Autonomy and Intelligence in the Computing Continuum: Challenges, Enablers, and Future Directions for Orchestration.

Resource Management: Dynamic allocation and optimization of compute, memory, storage, and network resources are critical for performance and efficiency, especially with fluctuating workloads and device availability in the paper Container Orchestration in Edge and Fog Computing Environments for Real-Time IoT Applications To orchestrate a multitude of containers, several orchestration tools are developed. But, many of these orchestration tools are heavy-weight and have a high overhead, especially for resource-limited Edge/Fog nodes

Fault Tolerance and Resilience: In A Distributed Architecture for Edge Service Orchestration with Guarantees  it is discussed how istributed systems are prone to node failures, communication link disruptions, and dynamic changes in network topology affect global convergence. Algorithms and orchestration platforms must be designed to handle such uncertainties and ensure system availability and reliability.

Security and Privacy: Distributing data processing raises concerns about data privacy and model security. Federated learning and privacy-preserving techniques are essential for distributed AI systems. Orchestration platforms must incorporate robust security mechanisms whic hwe can find discussed herewith Trustworthy Distributed AI Systems: Robustness, Privacy, and Governance.

Interoperability and Standardization: The heterogeneity of devices, platforms, and protocols in IoT and edge environments complicates seamless integration and orchestration. Efforts towards standardization and flexible, technology-agnostic frameworks are necessary as discussed in Towards autonomic orchestration of machine learning pipelines in future networks and Intelligence Stratum for IoT. Architecture Requirements and Functions.

Real-time Processing: Many sensor network applications, particularly in industrial IoT or autonomous systems, require low-latency decision-making. Orchestration must prioritize and schedule real-time tasks effectively as discussed in Container Orchestration in Edge and Fog Computing Environments for Real-Time IoT Applications.

Managing Data Velocity and Volume: High-frequency sensor data streams generate massive data volumes. In-network processing, data reduction, and efficient dataflow management are crucial Pervasive AI for IoT applications: A Survey on Resource-efficient Distributed Artificial Intelligence

Limitations of 3rd party Development:

In the survey of papers, there was no direct mention or reference to the ability for developers to take a platform and build upon it, except for the ECHO platform, which was due to the first principles of being an open-source project.   

Architecture, Algorithms and Pseudocode

Architecture diagrams typically depict layers: a sensor layer, an edge/fog layer, and a cloud layer. Orchestration logic spans these layers, managing data ingestion, AI model distribution and execution (inference, potentially distributed training), resource monitoring, and task scheduling. Middleware components facilitate communication, data routing, and state management across the distributed infrastructure.

Mathematically, we find common themes in the papers for AI and Sensor Orchestrations, wherethe weight matrix can be the sensors:

Initialize the local estimate x_i(0) for each sensor i = 1, 2, \dots, N.

Initialize the consensus weight matrix W = [W_{ij}] based on the network topology, where W_{ij} > 0 if j \in \mathcal{N}_i \cup \{i\} (neighbors including itself), and W_{ij} = 0 otherwise, with \sum_j W_{ij} = 1 for row-stochasticity.

For each iteration k = 0, 1, \dots, K (up to maximum iterations):

Evolve step:

y_i(k) = h_i(x_i(k)) + \nu_i(k) (local observation measurement, where h_i is the observation model and \nu_i(k) is noise).

v_i(k) = f_i(y_i(k), x_i(k)) (local model update, e.g., Kalman or prediction step).

Consensus step: Exchange v_i(k) with neighbors \mathcal{N}_i.

Update local estimate:

x_i(k+1) = \sum_{j \in \mathcal{N}_i \cup \{i\}} W_{ij} v_j(k).

Pseudocode for a simple distributed estimation algorithm using consensus might look like this:


Initialize local estimate x_i(0) for each sensor i
Initialize consensus weight matrix W based on network topology

For k = 0 to MaxIterations:
// Innovation step
y_i(k) = MeasureLocalObservation(sensor_i)
v_i(k) = ProcessObservationWithLocalModel(y_i(k), x_i(k)) // Local model update

// Consensus step (exchange with neighbors)
Send v_i(k) to neighbors Ni
Receive v_j(k) from neighbors j in Ni

// Update local estimate
x_i(k+1) = sum_{j in Ni U {i}} (W_ij * v_j(k))

Conclusion

The convergence of distributed AI and sensor orchestration is a critical enabler for advanced pervasive systems and the computing continuum. While significant progress has been made in developing distributed algorithms for sensing tasks and orchestration frameworks for heterogeneous environments, challenges related to resource constraints, scalability, resilience, security, and interoperability remain active areas of research and development. Future directions include further integration of autonomous and intelligent orchestration capabilities, development of lightweight and dynamic orchestration platforms, and the exploration of novel distributed computing paradigms to fully realize the potential of deploying AI at scale within sensor networks and across the edge-to-cloud continuum.

Until Then,

#iwishyouwater

Ted ℂ. Tanner Jr. (@tctjr) / X

MUZAK TO BLOG BY: i listened to several tracks during authoring this piece but i was reminded how incredible the Black Eyes Peas are musically and creatively – WOW. Pump IT! Shreds. i’d like to meet will.i.am

SnakeByte[21]: The Token Arms Race: Architectures Behind Long-Context Foundation Models

OpenAI’s Idea Of A Computer Loving The Sunset

Sometimes I tell sky our story. I dont have to say a word. Words are useless in the cosmos; words are useless and absurd.

~ Jess Welles

First, i trust everyone is safe. Second, i am going to write about something that is evolving extremely quickly and we are moving into a world some are calling context engineering. This is beyond prompt engineering. Instead of this just being mainly a python based how-to use a library, i wanted to do some math and some business modeling, thus the name of the blog.

So the more i thought about this i was thinking in terms of how our world is now tokenized. (Remember the token economy ala the word that shall not be named BLOCKCHAIN. Ok, i said it much like saying CandyMan in the movie CandyMan except i dont think anyone will show up if you say blockchain five times).

The old days of crafting clever prompts are fading fast, some say prompting is obsolete. The future isn’t about typing the perfect input; it’s about engineering the entire context in which AI operates and feeding that back into the evolving system. This shift is a game-changer, moving us from toy demos to real-world production systems where AI can actually deliver on scale.

Prompt Engineering So Last Month

Think about it: prompts might dazzle in a controlled demo, but they crumble when faced with the messy reality of actual work. Most AI agents don’t fail because their underlying models are weak—they falter because they don’t see enough of the window and aperture, if you will, is not wide enough. They lack the full situational awareness needed to navigate complex tasks. That’s where context engineering steps in as the new core skill, the backbone of getting AI to handle real jobs effectively.

Words Have Meanings.

~ Dr. Mathew Aldridge

So, what does context engineering mean? It’s a holistic approach to feeding AI the right information at the right time, beyond just a single command. It starts with system prompts that shape the agent’s behavior and voice, setting the tone for how it responds. Then there’s user intent, which frames the actual goalnot just what you ask, but why you’re asking it. Short-term memory keeps multi-step logic and dialogue history alive, while long-term memory stores facts, preferences, and learnings for consistency. Retrieval-Augmented Generation (RAG) pulls in relevant data from APIs, databases, and documents, ensuring the agent has the latest context. Tool availability empowers agents to act not just answer by letting them execute tasks. Finally, structured outputs ensure responses are usable, cutting the fluff and delivering actionable results.

Vertically Trained Horizontally Chained

This isn’t theory; platforms like LangChain and Anthropic are already proving it at scale. They split complex tasks into sub-agents, each with a focused context window to avoid overload. Long chats get compressed via summarization, keeping token limits in check. Sandboxed environments isolate heavy state, preventing crashes, while memory is managed with embeddings, scratchpads, and smart retrieval systems. LangGraph orchestrates these agents with fine-grained control, and LangSmith’s tracing and testing tools evaluate every context tweak, ensuring reliability. It’s a far cry from the old string-crafting days of prompting.

Prompting involved crafting a response with a well-worded sentence. Context engineering is the dynamic design of systems, building full-stack pipelines that provide AI with the right input when it matters. This is what turns a flashy demo into a production-ready product. The magic happens not in the prompt, but in the orchestrated context that surrounds it. As we move forward, mastering this skill will distinguish innovators from imitators, enabling AI to solve real-world problems with precision and power. People will look at you quizzically. In this context, tokens are the food for Large Language Models and are orthogonal to tokens in a blockchain economy.

Slide The Transformers

Which brings us to the evolution of long-context transformers, examining key players, technical concepts, and business implications. NOTE: Even back in the days of the semantic web it was about context.

Foundation model development has entered a new frontier not just of model size, but of memory scale. We’re witnessing the rise of long-context transformers: architectures capable of handling hundreds of thousands and even millions of tokens in a single pass.

This shift is not cosmetic; it alters the fundamental capabilities and business models of LLM platforms. First, i’ll analyze the major players, their long-term strategies, and then we will run through some mathematical architecture powering these transformations. Finally getting down to the Snake Language on basic function implementations for very simple examples.

CompanyModelMax Context LengthTransformer VariantNotable Use Case
GoogleGemini 1.5 Pro2M tokensMixture-of-Experts + RoPEContext-rich agent orchestration
OpenAIGPT-4 Turbo128k tokensLLM w/ windowed attentionChatGPT + enterprise workflows
AnthropicClaude 3.5 Sonnet200k tokensConstitutional Sparse AttentionSafety-aligned memory agents
Magic.devLTM-2-Mini100M tokensSegmented Recurrence w/ CacheCodebase-wide comprehension
MetaLlama 4 Scout10M tokensOn-device, efficient RoPEEdge + multimodal inference
MistralMistral Large 2128k tokensSliding Window + Local AttentionGeneralist LLM APIs
DeepSeekDeepSeek V3128k tokensBlock Sparse TransformerMultilingual document parsing
IBMGranite Code/Instruct128k tokensOptimized FlashAttention-2Code generation & compliance

The Matrix Of The Token Grid Arms Race

Redefining Long Context

Here is my explanation and blurb that i researched on each of these:

  • Google – Gemini 1.5 Pro (2M tokens, Mixture-of-Experts + RoPE)
    Google’s Gemini 1.5 Pro is a heavyweight, handling 2 million tokens with a clever mix of Mixture-of-Experts and Rotary Positional Embeddings. It shines in context-rich agent orchestration, seamlessly managing complex, multi-step tasks across vast datasets—perfect for enterprise-grade automation.
  • OpenAI – GPT-4 Turbo (128k tokens, LLM w/ windowed attention)
    OpenAI’s GPT-4 Turbo packs 128k tokens into a windowed attention framework, making it a go-to for ChatGPT and enterprise workflows. Its strength lies in balancing performance and accessibility, delivering reliable responses for business applications with moderate context needs.
  • Anthropic – Claude 3.5 Sonnet (200k tokens, Constitutional Sparse Attention)
    Anthropic’s Claude 3.5 Sonnet offers 200k tokens with Constitutional Sparse Attention, prioritizing safety and alignment. It’s a standout for memory agents, ensuring secure, ethical handling of long conversations—a boon for sensitive industries like healthcare or legal.
  • Magic.dev – LTM-2-Mini (100M tokens, Segmented Recurrence w/ Cache)
    Magic.dev’s LTM-2-Mini pushes the envelope with 100 million tokens, using Segmented Recurrence and caching for codebase-wide comprehension. This beast is ideal for developers, retaining entire project histories to streamline coding and debugging at scale.
  • Meta – Llama 4 Scout (10M tokens, On-device, efficient RoPE)
    Meta’s Llama 4 Scout brings 10 million tokens to the edge with efficient RoPE, designed for on-device use. Its multimodal inference capability makes it a favorite for privacy-focused applications, from smart devices to defense systems, without cloud reliance.
  • Mistral – Mistral Large 2 (128k tokens, Sliding Window + Local Attention)
    Mistral Large 2 handles 128k tokens with Sliding Window and Local Attention, offering a versatile generalist LLM API. It’s a solid choice for broad applications, providing fast, efficient responses for developers and businesses alike.
  • DeepSeek – DeepSeek V3 (128k tokens, Block Sparse Transformer)
    DeepSeek V3 matches 128k tokens with a Block Sparse Transformer, excelling in multilingual document parsing. Its strength lies in handling diverse languages and formats, making it a go-to for global content analysis and translation tasks.
  • IBM – Granite Code/Instruct (128k tokens, Optimized FlashAttention-2)
    IBM’s Granite Code/Instruct leverages 128k tokens with Optimized FlashAttention-2, tailored for code generation and compliance. It’s a powerhouse for technical workflows, ensuring accurate, regulation-aware outputs for developers and enterprises.

Each of these companies is carving out their own window of context and capabilities for the tokens arms race. So what are some of the basic mathematics at work here for long context?

i’ll integrate Python code to illustrate key architectural ideas (RoPE, Sparse Attention, MoE, Sliding Window) and business use cases (MaaS, Agentic Platforms), using libraries like NumPy, PyTorch, and a mock agent setup. These examples will be practical and runnable in a Jupyter environment.

Rotary Positional Embeddings (RoPE) Extensions

Rotary Positional Embeddings (RoPE) is a technique for incorporating positional information into Transformer-based Large Language Models (LLMs). Unlike traditional methods that add positional vectors, RoPE encodes absolute positions with a rotation matrix and explicitly includes relative position dependency within the self-attention mechanism. This approach enhances the model’s ability to handle longer sequences and better understand token interactions across larger contexts. 

The core idea behind RoPE involves rotating the query and key vectors within the attention mechanism based on their positions in the sequence. This rotation encodes positional information and affects the dot product between query and key vectors, which is crucial for attention calculations. 

To allow for arbitrarily long context, models generalize RoPE using scaling factors and interpolation. Here is the set of basic equations:

    \[\text{RoPE}(x_i) = x_i \cos(\theta_i) + x_i^\perp \sin(\theta_i)\]

where \theta_i \propto \frac{1}{10000^{\frac{2i}{d}}}, extended by interpolation.

Here is some basic code implementing this process:

import numpy as np
import torch

def apply_rope(input_seq, dim=768, max_seq_len=1000000):
    """
    Apply Rotary Positional Embeddings (RoPE) to input sequence.
    Args:
        input_seq (torch.Tensor): Input tensor of shape (batch_size, seq_len, dim)
        dim (int): Model dimension (must be even)
        max_seq_len (int): Maximum sequence length for precomputing positional embeddings
    Returns:
        torch.Tensor: Input with RoPE applied, same shape as input_seq
    """
    batch_size, seq_len, dim = input_seq.shape
    assert dim % 2 == 0, "Dimension must be even for RoPE"
    
    # Compute positional frequencies for half the dimension
    theta = 10000 ** (-2 * np.arange(0, dim//2, 1) / (dim//2))
    pos = np.arange(seq_len)
    pos_emb = pos[:, None] * theta[None, :]
    pos_emb = np.stack([np.cos(pos_emb), np.sin(pos_emb)], axis=-1)  # Shape: (seq_len, dim//2, 2)
    pos_emb = torch.tensor(pos_emb, dtype=torch.float32).view(seq_len, -1)  # Shape: (seq_len, dim)

    # Reshape and split input for RoPE
    x = input_seq  # Keep original shape (batch_size, seq_len, dim)
    x_reshaped = x.view(batch_size, seq_len, dim//2, 2).transpose(2, 3)  # Shape: (batch_size, seq_len, 2, dim//2)
    x_real = x_reshaped[:, :, 0, :]  # Real part, shape: (batch_size, seq_len, dim//2)
    x_imag = x_reshaped[:, :, 1, :]  # Imaginary part, shape: (batch_size, seq_len, dim//2)

    # Expand pos_emb for batch dimension and apply RoPE
    pos_emb_expanded = pos_emb[None, :, :].expand(batch_size, -1, -1)  # Shape: (batch_size, seq_len, dim)
    out_real = x_real * pos_emb_expanded[:, :, ::2] - x_imag * pos_emb_expanded[:, :, 1::2]
    out_imag = x_real * pos_emb_expanded[:, :, 1::2] + x_imag * pos_emb_expanded[:, :, ::2]

    # Combine and reshape back to original
    output = torch.stack([out_real, out_imag], dim=-1).view(batch_size, seq_len, dim)
    return output

# Mock input sequence (batch_size=1, seq_len=5, dim=4)
input_tensor = torch.randn(1, 5, 4)
rope_output = apply_rope(input_seq=input_tensor, dim=4, max_seq_len=5)
print("RoPE Output Shape:", rope_output.shape)
print("RoPE Output Sample:", rope_output[0, 0, :])  # Print first token's output

You should have get the following output:

RoPE Output Shape: torch.Size([1, 5, 4])
RoPE Output Sample: tensor([ 0.6517, -0.6794, -0.4551,  0.3666])

The shape verifies the function’s dimensional integrity, ensuring it’s ready for downstream tasks. The sample gives a glimpse into the transformed token, showing RoPE’s effect. You can compare it to the raw input_tensor[0, 0, :] tto see the rotation (though exact differences depend on position and frequency).see the rotation (though exact differences depend on position and to see the rotation (though exact differences depend on position and frequency).

Sparse Attention Mechanisms:

Sparse attention mechanisms are techniques used in transformer models to reduce computational cost by focusing on a subset of input tokens during attention calculations, rather than considering all possible token interactions. This selective attention process enhances efficiency and allows models to handle longer sequences, making them particularly useful for natural language processing tasks like translation and summarization. 

In standard self-attention mechanisms, each token in an input sequence attends to every other token, resulting in a computational complexity that scales quadratically with the sequence length (O(n^2 d)). For long sequences, this becomes computationally expensive. Sparse attention addresses this by selectively attending to a subset of tokens, reducing the computational burden.  Complexity drops from O(n^2 d) to O(nd \sqrt{n}) or better using block or sliding windows.

Sparse attention mechanisms achieve this reduction in computation by reducing the number of interactions instead of computing attention scores for all possible token pairs, sparse attention focuses on a smaller, selected set of tokens. The downside is by focusing on a subset of tokens, sparse attention may potentially discard some relevant information, which could negatively impact performance on certain tasks. Also it gets more complex code-wise.

This is mock implementation using pytorch.

import torch
import torch.nn.functional as F

def sparse_attention(q, k, v, window_size=3):
    batch, num_heads, seq_len, head_dim = q.shape
    attn_scores = torch.matmul(q, k.transpose(-2, -1)) / (head_dim ** 0.5)
    # Apply sliding window mask
    mask = torch.triu(torch.ones(seq_len, seq_len), diagonal=1-window_size).bool()
    attn_scores.masked_fill_(mask, float('-inf'))
    attn_weights = F.softmax(attn_scores, dim=-1)
    return torch.matmul(attn_weights, v)

# Mock query, key, value tensors (batch=1, heads=2, seq_len=6, dim=4)
q = torch.randn(1, 2, 6, 4)
k = torch.randn(1, 2, 6, 4)
v = torch.randn(1, 2, 6, 4)
output = sparse_attention(q, k, v, window_size=3)
print("Sparse Attention Output Shape:", output.shape)

This should just print out the shape:

Sparse Attention Output Shape: torch.Size([1, 2, 6, 4])

The sparse_attention function implements a simplified attention mechanism with a sliding window mask, mimicking sparse attention patterns used in long-context transformers. It takes query (q), key (k), and value (v) tensors, computes attention scores, applies a mask to limit the attention window, and returns the weighted output. The shape torch.Size([1, 2, 6, 4]) indicates that the output tensor has the same structure as the input v tensor. This is expected because the attention mechanism computes a weighted sum of the value vectors based on the attention scores derived from q and k. The sliding window mask (defined by window_size=3) restricts attention to the current token and the previous 2 tokens (diagonal offset of 1-window_size), but it doesn’t change the output shape it only affects which scores contribute to the weighting. The output retains the full sequence length and head structure, ensuring compatibility with downstream layers in a transformer model. This shape signifies that for each of the 1 batch, 2 heads, and 6 tokens, the output is a 4-dimensional vector, representing the attended features after the sparse attention operation.

Mixture-of-Experts (MoE) + Routing

Mixture-of-Experts (MoE) is a machine learning technique that utilizes multiple specialized neural networks, called “experts,” along with a routing mechanism to process input data. The router, a gating network, determines which experts are most relevant for a given input and routes the data accordingly, activating only those specific experts. This approach allows for increased model capacity and computational efficiency, as only a subset of the model needs to be activated for each input. 

Key Components:

  • Experts: These are individual neural networks, each trained to be effective at processing specific types of data or patterns. They can be simple feedforward networks, or even more complex structures. 
  • Routing/Gating Network:This component acts as a dispatcher, deciding which experts are most appropriate for a given input. It typically uses a learned weighting or probability distribution to select the experts. 

This basic definition activates a sparse subset of experts:

    \[\text{MoE}(x) = \sum_{i=1}^k g_i(x) \cdot E_i(x)\]

(Simulating MoE with 2 of 4 experts):

import torch
import torch.nn as nn

class MoE(nn.Module):
    def __init__(self, num_experts=4, top_k=2):
        super().__init__()
        self.experts = nn.ModuleList([nn.Linear(4, 4) for _ in range(num_experts)])
        self.gate = nn.Linear(4, num_experts)
        self.top_k = top_k

    def forward(self, x):
        scores = self.gate(x)  # (batch, num_experts)
        _, top_indices = scores.topk(self.top_k, dim=-1)  # Select top 2 experts
        output = torch.zeros_like(x)
        for i in range(x.shape[0]):
            for j in top_indices[i]:
                output[i] += self.experts[j](x[i])
        return output / self.top_k

# Mock input (batch=2, dim=4)
x = torch.randn(2, 4)
moe = MoE(num_experts=4, top_k=2)
moe_output = moe(x)
print("MoE Output Shape:", moe_output.shape)

This should give you the output:

MoE Output Shape: torch.Size([2, 4])

The shape torch.Size([2, 4]) indicates that the output tensor has the same batch size and dimension as the input tensor x. This is expected because the MoE applies a linear transformation from each selected expert (all outputting 4-dimensional vectors) and averages them, maintaining the input’s feature space. The Mixture-of-Experts mechanism works by:

  • Computing scores via self.gate(x), producing a (2, 4) tensor that’s transformed to (2, num_experts) (i.e., (2, 4)).
  • Selecting the top_k=2 experts per sample using topk, resulting in indices for the 2 best experts out of 4.
  • Applying each expert’s nn.Linear(4, 4) to the input x[i], summing the outputs, and dividing by top_k to normalize the contribution.

The output represents the averaged transformation of the input by the two most relevant experts for each sample, tailored to the input’s characteristics as determined by the gating function.

Sliding Window + Recurrence for Locality

While A context window in an AI model refers to the amount of information (tokens in text) it can consider at any one time. The Locality emphasizes the importance of data points that are close together in a sequence. In many applications, recent information is more relevant than older information. For example, in conversations, recent dialogue contributes most to a coherent response.  The importance of that addition lies in effectively handling long contexts in large language models (LLMs) and optimizing inference. Strategies involve splitting the context into segments and managing the Key-Value (KV) cache using data structures like trees. 

Segmenting Context: For very long inputs, the entire context might not fit within the model’s memory or process efficiently as a single unit. Therefore, the context can be divided into smaller, manageable segments or chunks.

KV Cache: During LLM inference, the KV cache stores previously computed “keys” and “values” for tokens in the input sequence. This avoids recomputing attention mechanisms for already processed tokens, speeding up the generation process ergo the terminology.

This code splits context into segments with KV cache trees.

import torch

def sliding_window_recurrence(input_seq, segment_size=3, cache_size=2):
    """
    Apply sliding window recurrence with caching.
    Args:
        input_seq (torch.Tensor): Input tensor of shape (batch_size, seq_len, dim)
        segment_size (int): Size of each segment
        cache_size (int): Size of the cache
    Returns:
        torch.Tensor: Output with recurrence applied
    """
    batch_size, seq_len, dim = input_seq.shape
    output = []
    # Initialize cache with batch dimension
    cache = torch.zeros(batch_size, cache_size, dim)  # Shape: (batch_size, cache_size, dim)
    
    for i in range(0, seq_len, segment_size):
        segment = input_seq[:, i:i+segment_size]  # Shape: (batch_size, segment_size, dim)
        # Ensure cache and segment dimensions align
        if segment.size(1) < segment_size and i + segment_size <= seq_len:
            segment = torch.cat([segment, torch.zeros(batch_size, segment_size - segment.size(1), dim)], dim=1)
        # Mock recurrence: combine with cache
        combined = torch.cat([cache, segment], dim=1)[:, -segment_size:]  # Take last segment_size
        output.append(combined)
        # Update cache with the last cache_size elements
        cache = torch.cat([cache, segment], dim=1)[:, -cache_size:]

    return torch.cat(output, dim=1)

# Mock input (batch=1, seq_len=6, dim=4)
input_tensor = torch.randn(1, 6, 4)
recurrent_output = sliding_window_recurrence(input_tensor, segment_size=3, cache_size=2)
print("Recurrent Output Shape:", recurrent_output.shape)

The output should be:

Recurrent Output Shape: torch.Size([1, 6, 4])

The shape torch.Size([1, 6, 4]) indicates that the output tensor has the same structure as the input tensor input_tensor. This is intentional, as the function aims to process the entire sequence while applying a recurrent mechanism. Sliding Window Process:

  • The input sequence (length 6) is split into segments of size 3. With seq_len=6 and segment_size=3, there are 2 full segments (indices 0:3 and 3:6).
  • Each segment is combined with a cache (size 2) using torch.cat, and the last segment_size elements are kept (e.g., (2+3)=5 elements, sliced to 3).
  • The loop runs twice, appending segments and torch.cat(output, dim=1) reconstructs the full sequence length of 6.

For the Recurrence Effect the cache (initialized as (1, 2, 4)) carries over information from previous segments, mimicking a recurrent neural network’s memory. The output at each position reflects the segment’s data combined with the cache’s prior context, but the shape remains unchanged because the function preserves the original sequence length. In practical applicability for a long-context model, this output could feed into attention layers, where the recurrent combination enhances positional awareness across segments, supporting lengths like 10M tokens (e.g., Meta’s Llama 4 Scout).

So how do we make money? Here are some business model implications.

MemoryAsAService: MaaS class mocks token storage and retrieval with a cost model. For enterprise search, compliance, and document workflows, long-context models enable models to hold entire datasets in RAM, reducing RAG complexity.

Revenue lever: Metered billing based on tokens stored and tokens retrieved

Agentic Platforms and Contextual Autonomy: (With 10M+ token windows), AI agents can:

  • Load multiyear project timelines
  • Track legal/compliance chains of thought
  • Maintain psychological memory for coaching or therapy

Revenue lever: Subscription for persistent agent state memory

Embedded / Edge LLMs: Pruning the attention mimics on-device optimization.

What are you attentive to and where are you attentive to? This is very important for autonomy systems. Insect-like LLMS? Models uses hardware-tuned attention pruning to run on-device without cloud support.

Revenue lever:

  • Hardware partnerships (Qualcomm, Apple, etc.)
  • Private licensing for defense/healthcare

Developer Infrastructure: Codebase Memory tracks repo events. Can Haz Logs? Devops on steroids. Analyize repos based on quality and deployment size.

Revenue lever: Developer SaaS pricing by repo or engineering team size (best fewest ups the revenue per employee and margin).

Magic.dev monetizes 100M-token memory by creating LLM-native IDEs that retain architecture history, unit tests, PRs, and stack traces. Super IDE’s for Context Engineering?

Here are some notional mappings for catalyst:

Business EdgeMathematical Leverage
Persistent memoryAttention cache, memory layers, LRU gating
Low latencySliding windows, efficient decoding
Data privacyOn-device + quantized attention ops
Vertical domain AIMoE + sparse fine-tuning adapters

Closing

In this token-maximized world, the architectural arms race is becoming a memory computation problem. The firms that master the blend of:

  • Efficient inference at high context length
  • Agentic memory persistence
  • Economically viable context scaling will win not just on benchmark scores, but on unit economics, retention, and defensibility.

In the world of AI business models, context is the new (i couldnt think of a buzzword please help me LazyWebTM)? Also I believe that William Gibson was right. Got More Ram?

Until Then.

#iwishyouwater

Ted ℂ. Tanner Jr. (@tctjr) / X

MUZAK TO BLOG BY: Jesse Welles, Pilgrim. If you havent listened to Jesse Welles you are missing out. He is our present-day Bob Dylan. Look him up on youtube out in the field and under the power lines.