Atlasof World Models
Start

T-04 · State-Space Models

  1. Mission · Sonu, 10

    State-Space Models

    Carry one compact, ever-updated summary of the past forward, instead of re-reading everything every time.

    5 idea cards, 3 questions and a recap. About 6 minutes. One idea per card, so read one, then look away and say it back.

    Arrow keys or swipe to move.

  2. Idea 1 of 5

    Picture a long soccer game on a Saturday. You are the scorekeeper. You have one small card and a pencil.

    You cannot write down every kick. The card is too small. So you keep only what matters.

    You write the score and who has a yellow card. Maybe you note which player looks tired.

  3. Idea 2 of 5

    Keep in your head Picture a long soccer game on a Saturday.

    After every big play, you rub out a line and write a new one. The card stays the same size all game. It just keeps changing.

    That little card is what a state-space model keeps. It is a short summary of the past that gets rewritten at every step. It carries just enough of the game to make sense of the next play.

    Try this Close the screen. Tell someone at home what this card says, in your own words.

  4. Idea 3 of 5

    Keep in your head After every big play, you rub out a line and write a new one.

    A small card is also a risk. Say you rub out the yellow card to make room. Later the same player fouls again. You will be surprised, because your card forgot.

    The trick is choosing what to keep. A good scorekeeper learns that yellow cards matter for the whole game. A goal from the first minute still counts at the end.

  5. Idea 4 of 5

    Keep in your head A small card is also a risk.

    After the game, you can also watch the replay. Now you know how things turned out. You can fix your notes about the first half.

    Scientists call that smoothing. Writing the card live, during the game, is called filtering.

    Computers do this with long streams of numbers. One meter on one house sends 96 readings a day. Over a year that is more than 35,000 numbers.

    Try this Draw this card as one small picture. Use three lines or fewer.

  6. Idea 5 of 5

    Keep in your head After the game, you can also watch the replay.

    The computer cannot reread all of them each time. It keeps a small card instead and updates it with each new reading.

    Try this at school or at home. Watch one game or one TV episode with a grown-up. Keep a card with only three lines on it. Update it at every break.

    At the end, ask the grown-up to quiz you about the start. What did your card remember? What did it lose?

  7. Words to keep

    Try this Cover the list. Say each word and what it means, then check.

  8. Quick check 1 of 3

    1Why do state-space models suit very long histories?

  9. Quick check 2 of 3

    2What is the difference between filtering and smoothing?

  10. Quick check 3 of 3

    3In the feeder lab, what did the GRU memory pick up that no single hour showed?

  11. Recap

    What you just learned

    1. Picture a long soccer game on a Saturday.
    2. After every big play, you rub out a line and write a new one.
    3. A small card is also a risk.
    4. After the game, you can also watch the replay.
    5. The computer cannot reread all of them each time.

  1. Mission · Senior AI Architect

    State-Space Models

    Carry one compact, ever-updated summary of the past forward, instead of re-reading everything every time.

    6 idea cards, 3 questions and a recap. About 7 minutes. One idea per card, so read one, then look away and say it back.

    Arrow keys or swipe to move.

  2. Idea 1 of 6

    A state-space model carries a state forward through time. The new state is a function of the old state and the current input. The output is read from the state. Per-step compute and memory stay constant however long the sequence runs.

    That property is why the lineage matters. Attention compares every token with every other token. Its cost grows with the square of the context length. A recurrent state pays a fixed price per step.

  3. Idea 2 of 6

    Keep in your head A state-space model carries a state forward through time.

    The classical form is linear. The Kalman filter (1960) estimates the state online from observations so far. That is filtering.

    The Rauch, Tung and Striebel smoother (1965) revisits past estimates once later observations exist. Smoothing is more accurate and non-causal.

    Deep learning revived the idea with structured recurrences. S4 (Gu, Goel and Ré, ICLR 2022) parameterized the state matrix for long-range memory. It solved the Path-X task of length 16,384, which all prior work had failed. It also generated 60 times faster than Transformers in their tests.

    Try this Find "recurrence" on this card. Define it in one line without looking.

  4. Idea 3 of 6

    Keep in your head The classical form is linear.

    Mamba (Gu and Dao, 2023) made the state selective. The recurrence parameters depend on the input, so the model can choose what to keep. Mamba scales linearly in sequence length. Its authors report about 5 times the inference throughput of Transformers.

    World models filter online for planning and often smooth offline for training. That gap is a common source of train and inference mismatch. A state trained with future information looks better in training than it can live. I would recommend to audit this before anything else.

  5. Idea 4 of 6

    Keep in your head Mamba (Gu and Dao, 2023) made the state selective.

    Here is the feeder version, from my lab. Each hour the model sees 16 meter-cluster loads and the temperature. Air-conditioning load follows indoor heat build-up, a slow average of past temperatures. That variable is never in the observation.

    A no-memory model predicted the next hour from the current hour and the action. A GRU carried a 32-number memory.

    Try this Name one system you have shipped where this would break first.

  6. Idea 5 of 6

    Keep in your head Here is the feeder version, from my lab.

    After 12 hours of history, the GRU's one-step error was 0.034 against 0.040. Nobody told it the heat variable existed. It carried some of it anyway.

    Three failure modes deserve tests. A state too small forgets slow variables like heat build-up or a meter's drift. Selective forgetting can drop rare events, such as a brief overload. Smoothing leakage makes offline scores look better than live ones.

  7. Idea 6 of 6

    Keep in your head After 12 hours of history, the GRU's one-step error was 0.034 against 0.040.

    What to measure follows from that. Plot error by hours of history seen. Probe the state for slow variables you know exist. Then insert gaps in the readings and check recovery.

    The utility fit is long memory at low cost. Equipment histories and multi-week outage restorations both run for thousands of steps. A fixed-size state keeps the cost flat as that history grows.

    Try this Write down the one number on this card you would put on a dashboard.

  8. Words to keep

    Try this Cover the list. Say each word and what it means, then check.

  9. Quick check 1 of 3

    1Why do state-space models suit very long histories?

  10. Quick check 2 of 3

    2What is the difference between filtering and smoothing?

  11. Quick check 3 of 3

    3In the feeder lab, what did the GRU memory pick up that no single hour showed?

  12. Recap

    What you just learned

    1. A state-space model carries a state forward through time.
    2. The classical form is linear.
    3. Mamba (Gu and Dao, 2023) made the state selective.
    4. Here is the feeder version, from my lab.
    5. After 12 hours of history, the GRU's one-step error was 0.034 against 0.040.
    6. What to measure follows from that.

  1. Mission · My CIO

    State-Space Models

    Carry one compact, ever-updated summary of the past forward, instead of re-reading everything every time.

    5 idea cards, 3 questions and a recap. About 6 minutes. One idea per card, so read one, then look away and say it back.

    Arrow keys or swipe to move.

  2. Idea 1 of 5

    State-space models answer a cost problem. Attention-based sequence models scale with the square of context length. That cost becomes prohibitive for anything that must remember hours or days.

    A few thousand tokens is fine for a chat. It is far short for operational memory. One smart meter at 15-minute intervals makes 96 readings a day.

  3. Idea 2 of 5

    Keep in your head State-space models answer a cost problem.

    A feeder has many meters. An asset can run for decades.

    The SSM lineage keeps a constant-size memory. Each new reading costs the same to process as the first. That makes long histories affordable to carry in production.

    The applications with real long memory are familiar. A customer relationship spans years of bills and payment plans. An equipment history spans decades of inspections and repairs. A multi-week process such as storm restoration spans thousands of events.

    Try this Name the one decision this card changes for you.

  4. Idea 3 of 5

    Keep in your head A feeder has many meters.

    Track this lineage for its constant-memory recurrence. A compelling generative demo says little about it.

    There is a risk inside the saving. A compact memory has to choose what to keep. If it drops a rare event, the model forgets it quietly. A transformer with the full record in view would still see it.

  5. Idea 4 of 5

    Keep in your head Track this lineage for its constant-memory recurrence.

    So the decision is about which histories matter most. Where a rare past event drives today's risk, test the memory for that event. A transformer over a shorter window may also be enough for some uses. Pick by the length of memory the decision needs.

    Try this Say what this card would cost you if a vendor got it wrong.

  6. Idea 5 of 5

    Keep in your head So the decision is about which histories matter most.

    I would recommend to ask for one concrete test before funding. Plant a known event far back in the history. Then check whether the model still acts on it.

    The question I would ask is this one. What does the model remember about this asset from six months ago? Can we see it?

  7. Words to keep

    Try this Cover the list. Say each word and what it means, then check.

  8. Quick check 1 of 3

    1Why do state-space models suit very long histories?

  9. Quick check 2 of 3

    2What is the difference between filtering and smoothing?

  10. Quick check 3 of 3

    3In the feeder lab, what did the GRU memory pick up that no single hour showed?

  11. Recap

    What you just learned

    1. State-space models answer a cost problem.
    2. A feeder has many meters.
    3. Track this lineage for its constant-memory recurrence.
    4. So the decision is about which histories matter most.
    5. I would recommend to ask for one concrete test before funding.

Search the atlas