Engineering · AI · Feature · Product
Topic Memories: Cereby Remembers the Questions You Missed
Why a list of short facts could not hold what a student knows about one topic, the research idea we borrowed instead of the one that went viral, and what we have not measured yet.
A biology student takes a Cereby quiz on cell respiration and misses "How many NADH does one turn of the Krebs cycle make?" Two days later, in chat, they say they keep mixing up NADH and FADH2. A week after that, they ask for an adaptive quiz on the Krebs cycle. The quiz knows they scored 33% on the topic, so it starts easy. It does not know which question they missed, or what they said confused them. The student, the quiz and the remark are made up for this post; the gap is not.
In production on November 20, 24 graded quiz attempts by 12 students held 377 answers, 107 of them wrong, spread over 86 pairs of student and topic. Each wrong answer was saved on its attempt. Unless a student brought that one quiz back into a chat, nothing Cereby read later carried any of them forward.
This post is about the topic memory, one record per student per topic that quizzes and chats both write to and that grows over a semester. It builds on how Cereby's memory saves and merges facts, described in Rebuilding Cereby's Memory So It Saves 9 in 10 Facts, Not 1 and audited in Auditing What Cereby Remembers About Students: The Boring Fixes Won.
It matters less than that sounds today. Twelve students have graded attempts with per-question results, two each on average. Topic memories are for the student who quizzes the same course five times before a final, which is the use Cereby was built for in the first place.
Two halves of one topic
Cereby's memory is a list of short facts: "Biology major", "Quiz at 3:00 PM on 2026-09-07". Each is one sentence of at most 300 characters in one of six categories, and the save step merges a new fact into an old one when they describe the same thing. That shape is right for facts. It is wrong for a topic, which is a running story: three quizzes, two misses, one confusion, one moment where it clicked.
So the story was split. Quiz results lived on each attempt, and the adaptive quiz read a mastery number per topic from them. A remark about the topic, if the memory detector (the step that reads each message and decides whether anything in it is worth keeping) saved it at all, became a separate sentence. Its rules told it to skip answers to quiz questions and temporary context, and "I keep mixing up NADH and FADH2" sits close to that line. Traced for our synthetic student:
The paper we did not use, and the one we did
This project started from a claim that went around in November: a Stanford research memory, Memorilla: Latent Semantic Memory for LLMs, that squeezes a whole document collection into 16 tokens. The work is real, and its numbers are its authors' own. But the 16 tokens are vectors written straight into an open model's inputs, rebuilt for every question from a store of every document, with a module trained for each model. Its authors say it loses exact names. Cereby's chat runs on hosted models that read text, and a study answer lives on exact names. It was not ours to use.
A paper with a confusingly similar name was. Memora: A Harmonic Memory Representation Balancing Abstraction and Specificity, from Microsoft Research, keeps each memory under a "primary abstraction": a short canonical title that related facts merge into, instead of piling up as separate entries. (Cereby's own tables were named memora_ until March, which made the reading list confusing.) In the paper's ablation on a long-conversation benchmark, the title structure added about 14 points over a flat baseline, while the retrieval agent built on top of it added 1.4.
We took the structure and left the retrieval. Production said retrieval was not our bottleneck. No student had more than 10 active memories, and a chat turn reads up to 15, so every student's whole list already reaches every answer:
One record per topic
A topic memory is one row per student and topic. Its title is the topic as the quiz names it. The quiz writer already stamps a topic on each question, and 867 of 915 stored questions carry one, about five topics to a quiz. Under the title sit three things: what the quizzes measured, the notes the chats added, and both rendered as plain text, which is what the models read and what we embed (turn into a vector that captures meaning, so "the NADH thing" can find the Krebs cycle).
The title's spelling tripped the first version. It grouped a quiz's answers by topic title as written, so when one synthetic quiz labeled a question "Krebs cycle" and another "krebs cycle", the record said the student had been quizzed on it twice. Both writes landed on the same row, because the row is found by a normalized key, but the grouping before it was not. Answers are now grouped by that same key, and the first spelling names the topic. A generic label like "Overview" is scoped by its subject, so two quizzes' overviews stay apart, a guard that catches 2 of today's 867 labels.
Two decisions shaped the rest. A topic is born from a quiz, never from a chat: a quiz names its topic precisely, while a remark in chat may say "this stuff". A remark about a topic the student was never quizzed on stays a flat memory, as before. And topic memories do not count toward a plan's memory limit, since they follow what a student studied rather than what they chose to save. A cap of 300 per student keeps that bounded.
The adaptive quiz is the reader that matters most. It already gave weak topics more questions at an easier level. Now each topic's share of the quiz comes with that topic's record and an instruction to come back to a point the student missed or mixed up, in new words rather than the old question repeated. In chat, the three topic records nearest the message join the flat memories, under a similarity floor and a token budget of their own, so a turn about something else carries none.
Students can see every record, and delete any of them, in Settings. The panel draws a record from its parts rather than from the text the models read: a score bar in the same bands the adaptive quiz uses for its level, a trend once there are two quizzes, the notes from chat as tags with the newest first, and the missed questions behind a toggle, with any math in them rendered. Clear all in Settings deletes topic memories with the rest, and clearing performance data clears them too, since they are built from it. Deleting an account needed nothing new, because the deletion function already empties every table with a user id.
The Topics section in Settings, on synthetic records.
A topic, traced
The quiz, the attempts and the two chat notes below are synthetic. Every record is what the code returns for them today.
Quiz (synthetic): "Cell respiration", subject Biology
Q1 topic Krebs cycle "Which molecule enters the Krebs cycle?"
Q2 topic Krebs cycle "How many NADH does one turn of the Krebs cycle make?"
Q3 topic Krebs cycle "What does the Krebs cycle regenerate each turn?"
Q4 topic Glycolysis "Where does glycolysis happen?"
Nov 10 attempt Q1 wrong, Q2 wrong, Q3 right, Q4 right
→ Krebs cycle asked 3, right 1, missed Q1 (answer: Acetyl-CoA), Q2 (answer: 3)
→ Glycolysis asked 1, right 1
Nov 12 chat note filed under Krebs cycle: confused, "mixes up NADH and FADH2"
Nov 18 attempt Q1 right, Q2 wrong, Q3 right, Q4 right
→ Krebs cycle asked 3, right 2; Q1 answered right, so its miss is cleared
Nov 18 chat note filed under Krebs cycle: clicked, "gets it as a loop that hands back oxaloacetate"
Krebs cycle topic memory, as the models read it (331 characters):
Topic: Krebs cycle (Biology)
Quizzed in 2 quizzes: 3 of 6 right overall; first 1 of 3, latest 2 of 3 (improving). Last practiced 2026-11-18.
Missed: "How many NADH does one turn of the Krebs cycle make?" (answer: 3)
Confused (2026-11-12): mixes up NADH and FADH2
Clicked (2026-11-18): gets it as a loop that hands back oxaloacetate
Before, the same history reached the chat as a weak-topic line with an average and a severity, plus, if the remark was kept, a sentence that said nothing about a quiz. The record above is what the next adaptive quiz on the Krebs cycle now reads beside the 50% mastery.
This example caught a bug that no test had. In the first version, after the second attempt, the record still listed "Which molecule enters the Krebs cycle?" as missed, though the student had just answered it right. A quiz writer told to come back to that question would have drilled something already learned. A question answered right now clears its earlier miss, which is the line under the Nov 18 attempt above.
Three ways a remark stays a flat memory
Filing a chat remark under a topic is the one step a model decides, so it is fenced on both sides. Before the model is asked, a remark has to be the kind that could be about understanding, and a quizzed topic has to be near it. After, its answer has to name a topic it was shown, a known kind of note, a short note and enough confidence. A remark that fails any check goes on to the flat memory path exactly as it did before:
"Biology exam moved to Friday" names a subject and a topic might be near it, but it is a date, so it never reaches the model. For a student with no topics, the whole step is one lookup that finds nothing, and no model is called.
Letting the detector keep these remarks at all took a change to its instructions. They are pinned by a hash, so a casual edit fails the build. We changed them on purpose: what a student keeps getting wrong or finally understood about a specific topic now counts as how they learn. That changes what is saved for every student, not only those with topics, so the pin and the reason moved together.
Before and after
| Before | After | |
|---|---|---|
| A missed question | Kept on its attempt | On the topic's record until it is answered right |
| A remark about a topic | A separate sentence, if kept | A dated note on that topic |
| An adaptive quiz on a topic | A mastery number and a level | The number, plus what was missed and mixed up |
| A chat about a topic | A weak-topic line with an average | The nearest topic records, up to three |
| What the student can see | Their list of facts | That list, and a Topics section, each deletable |
What this taught us
Most of a research system's gain can sit in its plainest part. The paper's own ablation put about 14 points on titled entries and 1.4 on the clever retrieval, and the plain part was the one that fit a product running hosted models.
Check the bottleneck before importing the machinery. A smarter retriever would have changed nothing, because no student's memory list was long enough to need one.
A worked example is a test you read. The stale miss passed every unit test we had, because each one checked a single fold; only printing a whole record over two attempts showed it.
What's next
Topic memories start with quizzes finished after this ships: the 24 earlier attempts are not backfilled yet. The two similarity floors, 0.3 for what a chat reads and 0.4 for filing a note, were set before any production data, and the filing model's choices have so far only been checked against fixtures, so both are the first things to measure. And only Materials quizzes and quizzes taken in a student's own AI app feed topics today; exams and learning paths keep their attempts to themselves.