When Data Goes Missing, Good Systems Stop Pretending They’re Complete

Nan Wang

Hatched by Nan Wang

Jul 31, 2026

10 min read

88%

0

The hidden similarity between repairing a panel and designing a prompt

What do a missing data point in an economic panel and a well built system prompt have in common? At first glance, almost nothing. One belongs to statistical inference, the other to language model behavior. But both are answers to the same uncomfortable problem: you rarely get the whole world, so you must design systems that behave well under incompleteness.

That is the deeper connection. In one case, a causal estimate must be recovered from a matrix with holes in it. In the other, a model must be guided by a prompt that cannot enumerate every future situation, yet still needs to remain stable, useful, and safe. Both domains reject fantasy completeness. Both replace it with structure.

The real question is not how to force perfection. It is: what kind of structure lets intelligence survive partial information?


Completeness is the wrong goal

Most people, when faced with missing information, try to fill every gap with a direct guess. In statistics, that means treating absent observations as if they should simply be imputed from nearby numbers. In product design, that means stuffing a prompt with every possible rule, edge case, and exception until it becomes a brittle wall of instructions.

That instinct feels responsible, but it is often the opposite. A system that tries to be complete usually becomes less reliable. Why? Because completeness is expensive, and the world keeps changing faster than your list of exceptions.

A more useful idea is structured incompleteness. Instead of pretending you know everything, you define the shape of what is missing and the constraints that allow the missing parts to be recovered or safely ignored. Matrix completion does this mathematically. A modular system prompt does it operationally.

Think of a half finished mosaic. You do not need every tile to understand the image. If the pattern is coherent enough, the missing pieces can be inferred. But if the tiles are randomly scattered, no amount of wishful thinking will restore the picture. The job is not to eliminate missingness. The job is to preserve enough structure that missingness is manageable.

The most robust systems are not the ones that know everything. They are the ones that know which kinds of not knowing they can tolerate.

This is why the connection between matrix completion and prompt design matters. Both disciplines are really about preserving latent structure under constraint.


Matrix completion is not just a math trick, it is a philosophy of inference

Causal panel data models often suffer from a familiar problem. You observe some units over some times, but not all. Entire outcomes are missing because no one can see the counterfactual world directly. Matrix completion offers a way forward by assuming that the observed panel is not arbitrary noise, but a partially hidden low dimensional structure.

That low dimensionality assumption is crucial. It says: underneath the messy surface, there may be a small number of forces shaping the data. Economic cycles, policy shocks, seasonality, institutional differences, persistent treatment effects. If that structure is real, then missing entries are not random voids. They are recoverable shadows.

This gives us a powerful mental model: inference is not about raw observation, it is about reconstructing the governing geometry. You are not merely guessing a number. You are asking what configuration of forces could have produced the numbers you do see.

A good causal estimator therefore behaves like an archaeologist. It does not invent missing artifacts. It infers the likely shape of the broken vessel from the fragments that remain. The more coherent the underlying structure, the more reliable the reconstruction.

But there is a warning here. Matrix completion works only when the hidden structure is real enough to support the reconstruction. If the data are too irregular, too sparse, or generated by too many independent causes, the low rank story collapses. That is not a failure of the method. It is a reminder that recovery requires compressibility.

This idea travels surprisingly well into prompt design.


A system prompt is a low rank model of behavior

A large language model does not become reliable because it is told everything. It becomes reliable when the instruction layer creates a compact behavioral geometry. The best system prompts are modular for the same reason good statistical models are parsimonious: they encode a few strong constraints that can generalize across many situations.

Consider three common modules in a product grade prompt:

  1. Citation rules, which define how evidence must be attributed.
  2. Artifact management, which defines when and how the model should produce structured outputs.
  3. Artifact usage instructions, which define how those outputs should be handled, updated, or referred to.

At first glance, these seem like separate operational details. But together they function like a low rank representation of desired behavior. They compress a large space of possible conversations into a smaller, more stable region. Instead of micromanaging every request, they establish a few strong axes of control.

This is exactly what matrix completion relies on. The observed entries constrain the hidden matrix, but the real work is done by the assumption that a compact latent pattern explains the surface. A strong system prompt does the same. It constrains the space of responses through a small number of semantic dimensions: cite carefully, organize artifacts clearly, maintain task boundaries, preserve continuity.

The implication is profound: good prompting is not instruction dumping. It is latent structure design.

If that sounds abstract, here is a concrete analogy. Imagine training a chef. You could hand them a thousand recipes for every possible meal, or you could teach them a few principles: balance salt, preserve texture, respect temperature, plate with intention. The second approach scales because it shapes judgment rather than memorizing outcomes. A system prompt should do the same for model behavior.

The goal is not to list every answer. The goal is to create the conditions under which many correct answers become more likely.


The central tension: recovery versus overconstraint

Once you see the shared logic, a new tension appears. Both matrix completion and modular prompting face the same tradeoff: too little structure and the system drifts, too much structure and the system becomes brittle.

In panel data, an overly restrictive model may miss the real causal dynamics. If the rank assumption is too simple, the estimator will smooth away meaningful heterogeneity. In prompting, a prompt that is too rigid can reduce flexibility, cause awkward refusals, or make the model unable to adapt to novel situations.

The danger is symmetry. If you under specify, the system hallucinates structure. If you over specify, the system cannot breathe.

This suggests a useful framework: the art is not to maximize rules, but to maximize recoverable signal per rule. A good system prompt behaves like an efficient statistical model. Every instruction should pull its weight. Every module should correspond to a stable behavioral dimension. Redundant or conflicting instructions are not just clutter. They are model misspecification.

Here is a practical way to test this.

Ask of any instruction block:

  • Does it constrain behavior in a way that generalizes beyond one example?
  • Does it reduce ambiguity without collapsing flexibility?
  • Does it define a latent dimension, or merely add a special case?

If the answer is no, the prompt may be acting like noisy data rather than useful signal.

The same is true in causal inference. The best model is not the most elaborate one. It is the one that captures the right invariants while leaving room for genuine variation. A good completion method does not force every cell to match a preconceived pattern. It discovers the pattern that is already there, but incomplete.

Robust design is the discipline of choosing the smallest structure that can still support reliable reconstruction.


What product prompts can learn from causal inference

If we treat a prompt as a behavioral model, then we can borrow several lessons from matrix completion.

1. Assume latent structure, but verify it

Matrix completion works because the data are not random. Similarly, a prompt should assume that behavior can be shaped by a small set of consistent principles. But assumptions must be tested against actual model outputs.

In practice, this means you should evaluate prompts the way you would evaluate a causal model: on hard cases, not only on the obvious ones. Does the system still obey citation rules when the task becomes ambiguous? Does artifact formatting remain stable when the user changes direction midstream? The prompt that works only on happy path examples is not robust.

2. Separate identification from presentation

Causal models distinguish the estimation problem from the way results are displayed. Great prompts do something similar. They separate the logic of action from the surface form of output.

For example, a citation rule is not just a formatting preference. It is an identification constraint. It tells the system what counts as support for a claim. Artifact instructions are not just UI guidance. They create a persistent workspace that lets the model maintain continuity across turns. These are structural primitives, not cosmetic extras.

3. Use modules to reduce interference

In matrix completion, different assumptions can interfere if they are poorly aligned. In prompts, a single giant instruction blob often creates collisions: cite everything, be concise, reason deeply, avoid verbosity, preserve tone, use artifacts, never use artifacts, and so on.

Modularity reduces that interference. Each module gets a job. Each job has a boundary. The system becomes easier to reason about because it has fewer cross terms. This is one of the deepest lessons from the modular prompt idea: clarity emerges when responsibilities are separated, not when they are all merged into one paragraph.

4. Think in terms of recoverability, not completeness

This may be the most important transfer. In statistical inference, you do not need every value to be observed if the missing values are recoverable from the structure. In prompting, you do not need to specify every micro behavior if the model can recover the right action from a few strong principles.

That shifts the design question. Instead of asking, “Did I cover everything?” ask, “Can the system recover the right thing when the surface form changes?”


A practical framework: the three layers of reliable intelligence

To unify these ideas, it helps to think in three layers.

1. Latent structure

This is the hidden geometry that makes inference possible. In causal panels, it may be the low dimensional pattern of outcomes. In prompting, it may be the behavioral axes that guide response generation.

2. Constraint architecture

These are the rules that preserve the latent structure. In statistics, it is the model class and regularization. In prompts, it is modular instruction design, citation policy, and artifact handling.

3. Recovery behavior

This is what happens when the system encounters missing or ambiguous information. A good matrix completion method reconstructs plausible values without overfitting. A good system prompt preserves useful behavior without needing exhaustive instructions.

The beauty of this framework is that it applies across disciplines. Whether you are designing an estimator, a prompt, or a workflow, the same question returns: what structure do you need so that the system can recover gracefully when the world is incomplete?

That is a better design question than “How do I make it perfect?” because perfection assumes total knowledge. Recoverability assumes reality.


Key Takeaways

  • Do not optimize for completeness. Optimize for recoverability. The goal is not to specify every case, but to preserve the structure that lets the system handle unseen cases well.
  • Treat prompts like statistical models. Every instruction should encode a stable dimension of behavior, not just add more words.
  • Prefer modular constraints over monolithic rules. Separate citation, formatting, state management, and task logic so each can do one job clearly.
  • Test on ambiguity, not just examples. A robust system reveals itself when the input is underspecified, shifting, or partially missing.
  • Ask whether the system can reconstruct the right action from partial evidence. If it cannot, either the latent structure is wrong or the constraints are too weak.

The deeper lesson: intelligence is the art of surviving gaps

The most interesting thing about missing data is not that it is a problem. It is that it reveals the real nature of intelligence. Intelligence is not the ability to enumerate everything. It is the ability to infer, constrain, and act when enumeration fails.

That is why matrix completion and product grade prompt design belong in the same conversation. Both are technologies of disciplined incompleteness. Both say that reliability comes from architecture, not exhaustiveness. Both teach that the best systems are not those that eliminate uncertainty, but those that make uncertainty legible.

In the end, the lesson is bigger than statistics or prompts. It is a theory of good design. A strong system does not panic when pieces go missing. It knows what shape the pieces should have, what constraints hold them together, and how to recover meaning from partial traces.

And perhaps that is the most useful reframe of all: the mark of intelligence is not how well it handles the full world, but how gracefully it behaves when the world refuses to be full.

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 🐣