Brain & Memory — Part 1. The Economics of Short and Long-Term Memory: A Hierarchy Forced by a 20W Budget

1. Problem & Constraint — A Hierarchy Forced by a 20W Budget

The wall every systems architect hits is that you cannot buy speed and capacity at once. L1/L2 registers answer in under a nanosecond but their cost explodes at the megabyte (MB) scale. NVMe SSDs and distributed object stores (Amazon S3, GCS) hold petabytes (PB) cheaply but bill you in I/O latency on every access. Which is why no real system ships a single store — it ships a hierarchy.

The brain solved the same problem on a far tighter budget. An adult brain draws roughly 20W, about one refrigerator bulb, while consuming 20% of the body's energy on 2% of its mass. Under that ceiling, persisting every sensory input was never an option. Splitting memory into a small expensive cache and a large slow disk was the only answer evolution could afford.

2. Sensory Intake — 11 Million Bits In, 50 Bits Out

Receptors convert light, pressure, and chemistry into electrical signals and push them upstream. A widely cited estimate puts total sensory bandwidth around 11 million bits per second, dominated by the retina. Conscious processing, meanwhile, is estimated at roughly 50 bits per second — an effective throughput ratio of about 1 in 200,000.

In backend terms: 11 Mbps arrives at the gateway while the downstream worker sustains 50 bps. Any sane design drops aggressively at the edge. That is exactly what the brain does. Discarding is not exception handling here; it is the pipeline's default operation.

3. Attention Filter — The Prefrontal Gateway

Attention is the component that decides what survives. Built jointly by prefrontal and parietal circuits, it weights the incoming stream and forwards only the top-ranked fraction. Hearing your own name cut through a noisy party is that filter holding a standing high-priority rule on pattern == self_name.

The architecture solves the same problem transformer attention does: given a fixed compute budget, which tokens deserve the weight. The difference is the cost curve. Transformers scale quadratically with sequence length; the brain, locked at 20W, chose to shrink the input rather than grow the throughput.

4. 4-Slot Buffer — Baddeley's Model and Cowan's Ceiling

What survives the filter lands in working memory. Alan Baddeley's model describes it not as one buffer but as separate subsystems: the Phonological Loop, the Visuospatial Sketchpad, the Episodic Buffer, and a Central Executive that allocates attention across them. Because modalities occupy distinct buffers, you can talk while reading a map, but you cannot hold a second map in mind while reading the first.

George Miller's 'magical number 7±2' is the famous version, but Nelson Cowan showed that once rehearsal and chunking are controlled for, the pure active capacity is closer to four items. Anything not rehearsed decays within 15 to 30 seconds. Working memory is a 4-entry cache with a 30-second TTL.

The real constraint is concurrency, not volume. Showing five things is fine. What breaks is a screen where the user must hold all five simultaneously before any next action is possible. That distinction is the fork in the road for interface design.

5. Chunk Compression — Chunking Is Not Lossless

The brain routes around the four-slot ceiling with chunking. The digits 1, 9, 8, 4, 2, 0, 2, 6 consume all eight slots, but wrapped into the concepts 1984 and 2026 the cost drops to two. Chess masters recall boards better than novices not because their buffer is larger, but because twenty pieces encode into a handful of chunks like 'Sicilian opening'.

The analogy needs a hard qualifier. Protobuf and Zstd are lossless — decode and the original bits return exactly. Chunking is lossy. The chunk '1984' keeps the digit pattern and delegates the rest to a schema. When the schema overwrites the original at decode time, detail that was never there gets reconstructed as fact. The false memories in section 7 are not a bug; they are the invoice for this compression scheme.

6. Persistent Track — From Hippocampal Ingestion to Cue Recall

Only a small fraction of working memory reaches the persistent track: Hippocampal Ingestion (the hippocampus scores importance and indexes provisionally) ➔ Sleep LTP Flush (batch transfer to cortex during sleep) ➔ Synaptic Remodeling (physical restructuring of dendritic spines) ➔ Cue Recall (an associative key co-activating distributed nodes). Part 2 dissects this track in full.

Long-term capacity is popularly quoted at 2.5 PB, but that is a rough extrapolation from synapse counts, not a measurement. What matters is not capacity but access: long-term memory has no addresses. An unindexed table still permits a full scan; a memory without the right cue permits nothing and fails outright. The word stuck on the tip of your tongue that a single smell releases is the demonstration.

7. Edge Cases & Failure Modes — Overflow and Rewrite Corruption

Buffer overflow. Demand five heterogeneous chunks at once and earlier items get evicted. Users do not report this as 'too hard'; they report it as 'I couldn't focus', blame themselves, and leave. Cognitive overload is the failure mode that writes no error log, which makes it the hardest one to instrument.

Reconsolidation. Read a disk a hundred times and the bytes are unchanged. Retrieve a memory and it destabilizes, then re-encodes — carrying the emotion and context of the moment of recall. The more often you revisit a memory, the further it drifts from the original. A store where reading is writing is where the SSD analogy collapses completely.

False memory. This is where section 5's lossy compression sends the bill. Elizabeth Loftus demonstrated that a single word supplied after the fact can rewrite an eyewitness account. Because the result is indistinguishable from a true memory to the person holding it, this is structurally the same failure as LLM hallucination.

8. Takeaways & Application — Interfaces Built by People Who Know the Hierarchy

John Sweller's Cognitive Load Theory splits load into intrinsic (inherent task complexity), extraneous (waste created by presentation), and germane (effort that builds schemas). Designers can only touch extraneous load — and that is the entire job.

Three rules follow. First, keep the number of new chunks a user must hold simultaneously at four or fewer, deferring the rest via Progressive Disclosure. Second, reuse schemas already written to long-term storage; the cart icon works because the index is pre-built, not because it is pretty. Third, leave critical information on screen instead of asking users to remember it — trusting human working memory is mistaking a 30-second TTL cache for durable storage.

Part 2 dissects the router that decides what ever reaches persistence: the hippocampus.