Preisach™Nothing returns clean.
← All research
Paper · November 6, 2026 · Teaching edition

What Gets Remembered: Hysteresis and Context Rot

By Daniel J. Preisach
DOI: https://doi.org/10.5281/zenodo.24500475

The longer an AI conversation runs, the worse the AI gets at using what’s in it. Researchers call this context rot. A magnet has the opposite problem solved: it remembers its history for decades in almost no space at all. This paper starts from the documented problem and works backwards to how hysteresis decides what to keep.

The documented problem

More context, less reliable use of it

Liu et al. (2024) gave language models long inputs with one relevant passage hidden at different positions. Performance followed a U-shape: models used information best when it sat at the very start or the very end, and markedly worse when it sat in the middle. Where something appeared mattered more than whether it mattered.

Hong et al. (2025) tested 18 leading models on deliberately simple tasks, such as finding a fact or repeating a list of words, while varying only the length of the input. Performance grew increasingly unreliable as input length grew, often well before the context window was full. They named the effect context rot.

Both findings point the same way. A context window keeps everything, and what stands out in it depends heavily on position. This paper looks at a kind of memory that works on a different principle.

How hysteresis remembers

Keep the turning points, wipe out the small stuff

✕✕✕✕✕✕✕✕keptkeptnow
Plate 1 · The wiping-out ruleA bigger swing erases the smaller ones inside it.Every reversal of the input leaves a turning point. When a later swing goes past an earlier one, the smaller turning points inside it stop mattering and drop out of memory. What’s left is a short staircase of the swings that still shape the present.

Preisach’s (1935) model doesn’t record a magnet’s history. It keeps only a short list of past turning points, and the wiping-out rule decides which ones survive: a new extreme erases every smaller extreme it passes. Mayergoyz (1986) proved that this rule, together with congruency, is exactly what qualifies a system for Preisach-type memory.

The result is memory that stays small however long the history runs. What survives is decided by size of swing, not by when it happened. A big moment from long ago outlasts a dozen small recent ones, and nothing is lost in the middle by accident, because small swings are absorbed on purpose by the bigger ones around them.

Plate 2 · Topics, not messages

A long history, a short memory

Plate 2 · What gets rememberedChatter fades; the topics and their links remain.A long conversation, the grey line, settles into five topics, each kept as a single node. As each new topic forms, amber arcs link it back to the earlier topics it touches, and those earlier nodes shift. Not every topic links to every other one, and the teal line redraws as the nodes move. Illustrative, with invented data; it does not show the model's method.The forward and backward arcs draw on coupled, or interacting, hysterons: switches whose thresholds shift with the state of their neighbours, as described by Teunisse and van Hecke (2025). Classic Preisach models treat each switch as independent; coupling is what lets a later topic change how an earlier one reads. See the companion paper, Interacting Hysterons.
Two ways to remember

Position versus significance

A context windowHysteretic memory
What it keepsEverythingOnly the turning points that still matter
Size over timeGrows with every tokenStays small
What stands outDepends on position: start and end do best (Liu et al., 2024)Depends on size of swing (Preisach, 1935)
Long historiesUse gets less reliable as length grows (Hong et al., 2025)Old big moments outlast recent small ones
The middleLost by accidentSmall swings absorbed on purpose
Links between momentsEach token weighed where it sitsCoupled switches can shift one another, so a later moment can change how an earlier one reads (Teunisse & van Hecke, 2025)

The AI literature already has a model that remembers the second way. The Preisach attention layer proposed by Frydrych (2026) keeps a stack of local extrema as its internal state: the same staircase of turning points shown above, built into a transformer.

Seen through hysteresis, context rot looks like memory organised by position rather than significance. A system that keeps everything has to find what matters in a pile that keeps growing. A system that keeps turning points has already done that sorting as it went.

Implementation · Pilot, November 2026

The Preisach Model

The principle in this paper, memory organised by significance rather than position, is implemented in the Preisach Model (Preisach, 2026b), a working tool developed by the author and offered through preisachmodel.com, first made available to members in November 2026. It connects to a member's existing AI assistant and applies the principle in a few ways.

  • Measure first. A one-time calibration reads where the member stands, in the form of a threshold profile, before any decision is made.
  • A steady check. The member's readings are checked consistently from one session to the next, so that drift can be seen.
  • A calibrated rolling summary. Long conversations are read in pieces and kept as one growing list of the points that still shape the work, decisions, open items and next steps, the way the wiping-out rule keeps turning points rather than every move.
  • Calibration carried forward. Handoffs between conversations are built against the member's calibration, so what matters travels with the work instead of being re-found in a growing pile.

A first pilot tested this against context rot directly. Ten of the author's own threads, about 657,000 tokens, were summarised two ways. A plain one-pass summary kept about 10% of the points each thread had settled; the calibrated rolling summary kept about 73%. The gap widened as threads grew longer. On the largest thread, a fresh chat working from each summary scored about 8.5 out of 10 (rolling) against 3.5 (plain) on questions graded by hand. The full method and its limits are reported in Preisach (2026a).

An earlier pilot in ChatGPT pointed the same way. A plain summary and a calibrated summary of the same thread were scored by a judge in a separate thread that was not told which was which. The calibrated summary needed about 46% fewer words for each point of information it carried (it scored 9 points to 6, in about 18.5% fewer words overall; word counts as reported by the model). Here the calibrated summary was shorter and still held more, so the advantage is not simply a matter of length.

References

Frydrych, P. (2026). Preisach attention: A hysteretic model of sequential memory. arXiv. https://doi.org/10.48550/arXiv.2605.23603

Hong, K., Troynikov, A., & Huber, J. (2025). Context rot: How increasing input tokens impacts LLM performance [Technical report]. Chroma. https://research.trychroma.com/context-rot

Liu, N. F., Lin, K., Hewitt, J., Paranjape, A., Bevilacqua, M., Petroni, F., & Liang, P. (2024). Lost in the middle: How language models use long contexts. Transactions of the Association for Computational Linguistics, 12, 157–173. https://doi.org/10.1162/tacl_a_00638

Mayergoyz, I. D. (1986). Mathematical models of hysteresis. Physical Review Letters, 56(15), 1518–1521. https://doi.org/10.1103/PhysRevLett.56.1518

Preisach, D. J. (2026a). Paper context: When fluency outruns shared context. Preisach Model Project. https://preisachmodel.com/research/paper-context/

Preisach, D. J. (2026b). Preisach Model [Computer software]. Carbon X LLC. https://preisachmodel.com

Preisach, D. J. (2026c). Sycophancy as a moving target: Coupled sycophancy and why the fix must be personal. Preisach Model Project. https://preisachmodel.com/research/sycophancy-moving-target/

Preisach, F. (1935). Über die magnetische Nachwirkung. Zeitschrift für Physik, 94(5–6), 277–302. https://doi.org/10.1007/BF01349418

Teunisse, M. H., & van Hecke, M. (2025). Transition graphs of interacting hysterons: Structure, design, organization and statistics. Royal Society Open Science, 12(9), 250753. https://doi.org/10.1098/rsos.250753

This research is the foundation of the Preisach Model™.

See how it works