Datasets:

Languages:
English
Size:
n<1K
License:

SAMPLE: Context Window = Chat History

#1
by PaulFancher - opened
NOT AI: The Sacred Cow Hunt org
•
edited Sep 22

BLUF (Bottom Line, Up Front)

The Cow: Certain models treat the conversation as their entire working state.

The Alternative: Separate the dialogue from the working state.

Why it's a choice, not a constraint: There is nothing in the transformer that requires the transcript to be the memory.

The testable claim (short form):
A model with separate working-state storage answers questions about early-session information at least as accurately as an equivalent transcript-only model, once the session exceeds the context window, at lower per-turn compute cost than resending the full transcript.

The Sacred Cow

Chat-style models treat the conversation transcript as their entire working state. Each turn, the full transcript is resent, and what the model can "know" is whatever fits in that one token stream.

The Alternative

The alternative is to separate dialogue (what was said) from working state (what the model holds), each with its own capacity and access rules.

How the cow became Sacred

Chat was the first product shape, and the simplest API was "send messages, get a message." Statelessness made serving easy to scale. Nobody decided that transcript and memory should be one object. It fell out of the interface, then hardened into the ecosystem around it: context limits, per-token pricing, tooling.

Costs and risks

  • Hard ceiling. Past the window, something is dropped or summarized. Truncation, rolling summaries, retrieval, and memory features all patch this one coupling, and each is lossy.

  • Degradation before the ceiling. Research on long inputs finds models use material in the middle of a long context less reliably (Liu et al., "Lost in the Middle," 2023).

  • Repeated cost. Resending history means reprocessing the same tokens every turn, and attention cost grows with length.

  • Input must look like conversation. Anything the model takes in has to be serialized into the transcript. Structured state, long-lived knowledge, or another system's output has to pose as a conversational turn.

  • One undifferentiated channel (a related risk). Instructions, user messages, and retrieved text are all the same kind of token, which arguably underlies prompt injection.

Why it's a choice, not a constraint

Nothing in the transformer requires the transcript to be the memory. Working systems that don't couple them already exist (see Prior art), so the coupling is a choice, not a limit imposed by chips or budget.

What changes if it goes away

No hard conversation length limit, working notes kept apart from dialogue, per-turn cost that doesn't grow with history, and a channel that can tell instructions from data.

Prior art

Working without the cow:

  • Mamba (Gu & Dao, 2023): a state-space model whose state doesn't grow with the conversation.
  • Neural Turing Machines (Graves et al., 2014): a network coupled to an external memory that it reads and writes through attention.

Working around the cow:


Sample submission. Drafted with extensive help from Claude Sonnet 5 (Anthropic). Edited and published by Paul Fancher.

PaulFancher changed discussion title from The context window is the chat history to SAMPLE: Context Window = Chat History

Sign up or log in to comment