Why the Best Systems Remember Surprises, Not Everything

Nan Wang

Hatched by Nan Wang

Jul 14, 2026

9 min read

87%

0

The hidden problem with memory is not storage, it is relevance

What if the real challenge in building intelligent systems, experiments, or even organizations is not remembering more, but deciding what deserves to be remembered at all?

That question sits beneath two very different ideas. In one world, marketplace experiments break because one buyer’s outcome is shaped by many sellers, many other buyers, and the network that connects them. In another, a memory system becomes more powerful when it does not merely cache history, but actively compresses it into the model, preserving the relations and themes that matter most. The deeper connection is startling: both causal inference and memory are failures of naive bookkeeping.

We like to imagine that if we record enough detail, truth will reveal itself later. But in dense systems, detail without structure becomes noise. The important thing is not just what happened. It is what happened in relation to what, under what exposure, and with what surprising consequence. Whether you are estimating the effect of a discount in a marketplace or teaching a model to retain long context, the core task is the same: learn the mapping from raw events to meaningful exposure.

The most valuable systems do not remember more facts. They remember the few facts that reorganize everything else.

That is the shared intuition connecting modern causal experimentation and selective memory architectures. Both reject the fantasy of isolated units. Both insist that influence flows through structure. And both force us to confront a harder question: if everything affects everything else, how do we know what actually caused the change?

When treatment leaks across the network, the experiment becomes a graph

Traditional experimentation assumes that each unit can be treated independently. Flip the switch for one person, observe the outcome for that person, and compare it with a control group. But marketplaces, social platforms, recommendation systems, and many real organizations do not behave like laboratory beakers. A discount on one item can change behavior for customers who never saw that item directly. A promotion on one side of a marketplace can alter demand on the other side. Influence travels through connections.

This is where the old assumption collapses. The problem is not just that outcomes are noisy. It is that the treatment on one node can affect another node through a web of interactions. The unit you intervene on is not always the unit you care about. In such settings, you are no longer estimating a simple direct effect. You are estimating an effect that has been filtered through an exposure mapping, a rule that compresses many assignments into a smaller set of meaningful conditions.

A useful analogy is city traffic. If you close one road, the effect is not confined to that road. Traffic reroutes, congestion shifts, and travel time changes elsewhere. The outcome for any intersection depends on more than the light at that intersection. It depends on the network. In marketplaces, a customer’s exposure to treatment may be the average treatment status of items they reviewed, or the weighted influence of neighboring products in a bipartite graph. The outcome is not driven by a single intervention. It is driven by the pattern of nearby interventions.

This is why graph structure matters so much. If the network is too dense, everyone receives nearly the same exposure, and consistent estimation becomes impossible. If the assignments are too balanced or too uniform, the exposures lack the variation needed to identify an effect. In other words, the experiment must be designed to create informative differences in exposure, not just random labels on items.

The key lesson is subtle but profound: causal inference in connected systems is not about randomizing units, it is about engineering variation in exposure. Randomness is necessary, but randomness without structure is not enough.


Memory systems face the same problem as experiments: compression must preserve signal

Now shift to a seemingly unrelated idea: a memory architecture that does not let context grow without bound. Instead of storing every past token in an expanding cache, it compresses history into the model’s weights. More importantly, it is not passive. It does not merely archive. It learns to identify and retain the relationships and themes that bind the input together. One crucial ingredient is a measure of surprise.

This is easy to misunderstand. Surprise is not just novelty for its own sake. Surprise is a signal that something in the stream of information does not fit the current compression scheme. It is the point where the system says, in effect, “This deserves special treatment because it changes how the rest should be interpreted.”

That sounds remarkably similar to the logic of well designed experiments. In a marketplace setting, a naïve record of every treatment assignment is not enough. What matters is how those assignments change exposure, and how exposure changes outcomes. The system must preserve the relations that matter, not every local detail. Likewise, a memory architecture must preserve the pieces of history that reshape future interpretation, not every token equally.

Think of a human reading a long, complicated paper. You do not retain every sentence. You retain the thesis, the exceptions, the turning points, and the anomalies that altered your understanding. The parts that survive are not necessarily the most recent or the most frequent. They are the most structurally informative. That is what a good memory system does too. It acts as a lossy compressor with judgment.

This is where the idea of surprise becomes powerful. Surprise is a proxy for compressive value. If a new token or event sharply changes the model’s prediction, it may reveal a hidden pattern, a new regime, or a causal break. If the system can identify these moments, it can preserve the past in a way that supports better future reasoning.

So memory and experimentation converge on the same principle: keep what changes the map, not what merely fills the territory.

The deeper synthesis: causality and memory are both problems of selective retention

At first glance, one topic is about estimating treatment effects in a bipartite graph, while the other is about compressing context in a neural model. But beneath the surface, both are trying to solve the same cognitive and statistical puzzle: how to convert a complicated interaction history into a representation that supports correct inference.

Here is the shared structure:

  1. There is a raw stream of events or assignments. In one case, treatment allocations across items. In the other, token sequences across time.

  2. The stream is not directly interpretable. Effects spill across edges in a marketplace. Meaning spills across tokens in a long prompt.

  3. A mapping is needed to decide what counts as relevant context. Exposure mapping in one case, memory compression in the other.

  4. Not all variation is useful. Some variation identifies the effect, some only adds variance. Some tokens help recall, some are just clutter.

  5. The system must preserve the right differences. In experiments, differences in exposure. In memory, differences in concepts and relations.

This suggests a broader principle: intelligence is the art of designing informative summaries of interacting systems. A summary is not a smaller version of reality. It is a representation that keeps the dimensions needed for action and inference. The best summaries are not neutral. They are chosen.

That is why both domains care about design. In experiments, the assignment mechanism can improve precision by increasing variance in exposures and reducing covariance between them. In memory systems, the update mechanism can improve usefulness by retaining surprising or structurally important relationships. Both are optimizing a bottleneck. Both must decide what to discard.

A system becomes smarter when it learns that compression is not the enemy of truth. Bad compression is the enemy of truth.

This is the real insight. Poorly designed experiments compress the world into misleading averages. Poorly designed memory compresses the past into bland traces. In each case, the failure mode is not too little information. It is the wrong information surviving.

A practical framework: from raw events to useful exposure

Once you see the parallel, a helpful mental model emerges. Whether you are designing an experiment or a memory mechanism, ask four questions.

1. What are the units of intervention, and what are the units of outcome?

In a marketplace, the item may be treated while the customer is observed. In a conversation model, a token may arrive while a later prediction is measured. Confusing the intervention unit with the outcome unit creates blind spots. You need to know where influence is injected and where it is judged.

2. Through what network does influence travel?

Influence rarely moves directly. It moves through review histories, neighborhoods, attention patterns, or latent associations. The graph is not a decorative detail. It is the mechanism.

3. What is the right exposure variable?

A good exposure variable is a compressed representation of how much relevant treatment reached an outcome unit. It is not everything, only the part the outcome can plausibly feel. In memory, the parallel question is: what state should be retained so the next prediction is materially better?

4. What variation is informative, and what is merely chaotic?

This is where design matters most. For experiments, you want enough exposure variation to identify effects, but not so much dependence that inference collapses. For memory, you want enough surprise to preserve important exceptions, but not so much volatility that the model chases noise.

This framework applies far beyond the two source ideas. A product team deciding which user events to log, a recommender deciding what to keep in long term memory, or a researcher measuring peer effects in a social network all face the same problem: how do we preserve causal structure under compression?

Key Takeaways

  • Do not mistake raw count for meaningful memory. The goal is not to retain everything, but to retain what changes interpretation.
  • In connected systems, experiment on exposures, not just assignments. Outcomes often depend on the networked pattern of treatments, not on isolated interventions.
  • Use surprise as a signal, not as a curiosity. In both memory systems and experiments, surprising variation often marks the most informative structure.
  • Design for identifiable variation. If everyone sees the same exposure, or if memory treats every token equally, inference and recall both degrade.
  • Ask what should survive compression. The right summary preserves relationships, not just data volume.

The real lesson: intelligence is selective continuity

We usually think of memory as continuity and experiments as disruption. But the deeper truth is that both are forms of selective continuity. A good memory preserves the parts of the past that remain explanatory. A good experiment creates the variation needed to reveal which parts matter. Both are disciplines of attention under constraint.

That changes how you should think about any system that learns from interaction. The question is not whether it can store more or randomize more. The question is whether it can keep the structure that makes the future legible.

This is why surprise matters so much. Surprise marks the boundary between ordinary repetition and meaningful change. It tells the system, “Do not just remember that something happened. Remember that this changed the map.” In a marketplace, that may be a discount that reveals hidden substitution effects. In a memory model, it may be a token sequence that exposes a new topic or relation.

The best systems, human or machine, do not aspire to perfect recall. They aspire to useful recall. They remember enough to explain, enough to predict, and enough to act. Everything else is just expensive noise.

Sources

← Back to Library

Hatch New Ideas with Glasp AI 🐣

Glasp AI allows you to hatch new ideas based on your curated content. Let's curate and create with Glasp AI :)

Start Hatching 🐣