Skip to content

Search is not available right now.

PT PortuguêsFuadNext

When you change your mind, what does the AI remember?

Research9 min read

What is your favorite juice now, if you said strawberry, then orange, then strawberry again? The answer depends on telling the current preference from the old one, the day of the change from the day of the record, and finding the sentence behind the assistant's answer.

Three statements, one current preference

You tell the assistant you prefer strawberry juice. Later you write that you changed your mind and now your favorite is orange. Later still, you say you went back and strawberry is your favorite again. That is three statements in order, and the right answer to “what is my favorite juice now?” is strawberry.

The preference goes from strawberry to orange and back to strawberry. The word strawberry appears in both the first record and the most recent one. (open the full-size image)

A well-made note about this could say that the preference used to be strawberry, moved to orange, and then returned to strawberry. In that record both fruits appear together. If it kept only the current flavor, there would be no way to say which came first. Even with every statement stored, the word strawberry appears in the first and in the last, and a search for it can find the note through either one. If the answer relied on the wrong occurrence, the past could be presented as the present. What decides the answer is the passage where the person says they went back to preferring strawberry, because that sentence gives the sequence its meaning. “I used to prefer strawberry” describes the past with the same word.

What the question asks also matters. If you ask which juice was your favorite before the last change, the answer is orange, the fruit that held until you went back. If you ask which is your favorite now, the answer is strawberry, because your last statement returned the preference to the first fruit. If the note kept only the names of the flavors, the meaning of the statements would be lost. “Today I’m going with orange” may be an order for that day, not a change of the usual preference. Showing the sentence from the record that the answer rests on can help check it.

The day of the change and the day of the record

There is also a difference between when the change happened and when the assistant found out about it. Today you say you went back to preferring strawberry yesterday. Until this message, the note the assistant had said orange. The new record arrived today, but the preference it describes changed yesterday.

The person went back to preferring strawberry yesterday and told the assistant about the change today. Before the notice, the note still said orange. (open the full-size image)

That is why the question decides the answer. If you want to know what was noted yesterday, the answer may be orange, because the news had not arrived yet. If you want to know what you say you already preferred yesterday, the answer is strawberry, because today’s message describes yesterday.

The ai-memory temporal documentation, for the system we use in development to store records, covers the first of these days, the day of the record. To see what was noted yesterday, the date search reads the versions the memory held on that day. The day the preference changed, though, appears only in what the message says, and the search does not extract it on its own. There is also a limit. Because new records can come in, the order of today’s results may differ from the earlier one, even for an old date that did not change.

Knowing which day we are talking about guides which record to read. For what was noted yesterday about the juice, the assistant opens the record from that day. For what you said today about yesterday’s preference, it reads today’s message. If you only ask “what about yesterday?”, the assistant can clarify which of the two questions you mean. In both cases the date appears in the sentence, but sometimes it points to the version of the record to open, and sometimes to the day the statement refers to.

How the evidence was measured

Once the record is chosen, you still need to find the conversation that contains the change, and this is where search measurement starts to matter. Before asking whether the answer came out right, it is worth asking where the passage that helps answer it is. The version 3.5.0 report measured search on 470 answerable questions about conversations, from LongMemEval-S. Each question has conversation sessions that contain the evidence.

The percentage in each column of this table counts the questions with at least one evidence session up to that position. The report’s full table has other measures, and here we show only this slice. In the top five column, one useful session among five results is enough. If the juice preference was stated in more than one conversation, the search may bring back one of them and leave out another that would also have served. The report compared two configurations with the same code: Keyword search, which is the default, and the With local vectors configuration, which uses a local model that turns text into numeric representations. The second is a configured mode, not a measurement that isolates vector search alone.

Evidence among the top search results, ai-memory 3.5.0
SearchEvidence in 1st position (%)Evidence in top 3 positions (%)Evidence in top 5 positions (%)Evidence in top 10 positions (%)
Word search85.192.195.397.0
With local vectors75.390.494.097.0
Source: ai-memory 3.5.0 release report
Method and data
commit 812c89e75ff8MethodologyDownload JSONDownload CSV

Why does the short list matter? At the first result, Keyword search has 85.1% and the With local vectors configuration has 75.3%. Reading five results, they are 95.3% and 94.0%. Reading ten, both reach 97.0%. Having the evidence at the top and being able to examine more results are different questions, and the gap between the two configurations shrinks as more results are read.

What these numbers let us read is that there was material for the assistant to open. They do not say that the model read the right sentence or applied the right preference. The report measured session retrieval, not an assistant’s answer.

When the note is too short

Suppose the assistant’s memory is a short note, rewritten after each conversation. When you change your mind in a later conversation, which update can slip through? The new value may be left out of the note, or the old one may stay, and the old conversations do not come back to be checked.

That is what Supersede compared. It is a test and training environment built by one author to examine this kind of update. It used 78 update questions from LongMemEval, in the split that provides the relevant sessions. In one condition the model reads the relevant sessions. In the other, after each session it rewrites a field of up to 300 characters and answers using only that memory, without getting the old sessions back. A grader model scored the answers following the LongMemEval protocol. With gpt-5.4, accuracy was 92% reading the sessions and 77% with the short note. gpt-4.1-mini went from 82% to 63% and gpt-4.1 from 91% to 64%. The short note got fewer answers right in all three models.

In the Supersede study, on 78 questions about information that changed, the correct answers when reading the relevant conversations and when using a short summary were 82% and 63% for GPT-4.1-mini, 91% and 64% for GPT-4.1, and 92% and 77% for GPT-5.4. (open the full-size image)

The study describes two ways the note can fail. The updated value may be left out of the rewritten note, or the previous one may remain. If the note only says the favorite is orange after the statement in which you went back to strawberry, the most recent update was left out. The study’s cases show this loss, but the data do not allow tying each one to a specific compression mechanism, and the result holds for the design that was tested.

In an additional scaling test, with 25 questions and gpt-4.1-mini, going from about 2 to 48 sessions with a 300-character note took accuracy from 68% to 28%. In the long history, enlarging the note to about 7,150 characters kept it at 28%. In that slice, more room to write did not bring back the earlier performance, and choosing what goes into the note is a separate question. The result is local, does not add to the 78 questions, and does not guarantee the same for larger limits.

Going back to the original message

What if the note missed the “I went back to preferring”? One way out is to keep the original messages and maintain, on top of them, notes organized by topic, each linked to the messages that support it. The note organizes and the message supports. Whoever answers opens the note, follows the link, and reads the original sentence. In a case like the juice, the note says the preference changed to orange and the message says whether the change holds from now on or from when. Access to the passage makes it possible to check the sentence, but the model still has to interpret it.

That is the architecture of SoMem. It stores the original interactions and lets a model organize thematic notes linked to them. Each note can be revised, and the system checks the structure and the references before accepting the change. When answering, the model searches by topic, opens the relevant notes, and can follow the links to the original messages.

The experiment took that access away. It analyzed 1,540 questions from LoCoMo, a conversation memory test, in categories 1 to 4. The answering model, the already prepared memory, and the query configuration were held fixed. Only the access to the original messages changed. With access, 88.96% of the answers were judged correct by the grader model. With access blocked at query time, it was 80.32%. On the questions about time, which are already included in that total, it was 88.16% with access and 78.50% without.

In SoMem, on the 1,540 questions analyzed, the share of correct answers was 88.96% with the original messages and 80.32% without them. On the questions about time, the values were 88.16% and 78.50%. (open the full-size image)

The result is useful because it isolates one variable, having the original passage at hand or not. In both conditions the model had the organized notes, and what changed was being able to open the source message. That bridge between note and message is what matters for our case.

What we saw in Fuad Next and Fuad Memória

In the development memory of Fuad Next, a technical decision had a page that was corrected because the recorded reference was wrong. We searched for the old reference, which was still cited in the correction, and the search brought back the corrected page. Historical queries separated the version from before the correction and the one after. The search for the decision, without naming the page, also offered the corrected version as the first result.

The search for the old reference brought back the corrected page, which mentions the previous reference to explain the change. (open the full-size image)

It is a small observation. We queried a decision we already knew, measured only the retrieval of the record, did not generate an assistant answer, and did not estimate a hit rate on other pages. Even so, it teaches something. Finding the right page does not close the question, because the corrected page keeps the old number precisely to say it was wrong. The answer still has to read whether the passage confirms, corrects, or gives context to what was searched for. It is the two-fruit situation, now in a work decision.

In Fuad Memória, an authorized person can open the versions of a note. Separately, the new consolidated notes are linked to the source documents, with pages when indicated, and the product distinguishes the notes that predate this link.

Which memory holds now?

In the team’s search for the old reference, the corrected page appeared, and it keeps the wrong number precisely to say it was wrong. The observation measured only the retrieval of the record. Finding the page, therefore, leaves open whether the passage confirms or corrects what was being looked for.

For the juice, the answer is strawberry, because the last statement says the person went back to preferring that fruit. “Today I’m going with orange” may be an order for that day, not a change of the usual preference. If you ask what was noted yesterday, the answer comes from that day’s note. If you ask what you said today about yesterday’s change, the new message holds.

Agent draft from the listed sources; reviewed and approved by Lucas Fuad

Sources

  1. ai-memory: temporal memory documentation (v3.6.5)
  2. ai-memory 3.5.0: public evaluation report on evidence retrieval
  3. Supersede
  4. SoMem