測試關閉記憶功能的 AI 編碼助理:我們學到甚麼
What we learned testing an AI assistant's memory with the memory switched off
測試者以 15 條關於自身工作的問題比較同一 AI 編碼助理的記憶開啟與關閉狀態,每題分別放入四個全新工作階段,並由兩名評審評分。對只在對話中出現的四個答案,記憶開啟時同模型評審判對 8 題,Grok 評審判對 6 題、另判部分正確 2 題;記憶關閉時兩名評審均未判對任何一題。
I work with the same AI coding assistant every day, and for months it has had a memory: a small local model reads our conversations, writes short notes, and each note keeps a pointer to the exact lines it came from. It felt useful. Feeling is not measuring, so we switched it off and compared. The comparison itself taught us more than the result did.
The setup
Fifteen new questions about our own work, written down with their expected answers before anything ran. Each question went, word for word and in the same order, into four fresh sessions: two with the memory on, two with every memory hook switched off and every memory command refused. Two judges marked each answer right, partial or no answer, each on their own. One judge ran on the same model as the assistant, the other on Grok.
Lesson 1: "memory off" is not "knowing nothing"
The sessions without memory could still read the project's documents and code, and they did. Where a file held the answer, they mostly found it: on those 7 questions the memory-off sessions got 14 of 14 right by one judge and 10 right and 4 partial by the other.
So the honest comparison is not memory against an empty assistant. It is memory against everything else the assistant can read. A written document is a memory too.
Lesson 2: what only lives in conversation is where memory matters
Four questions had answers that were only ever said, never written: a technical verdict, what a board's firmware did after a reboot, a choice we made together. Eight answers per arm:
| Same-model judge | Grok judge | |
|---|---|---|
| Memory on | 8 right | 6 right, 2 partial |
| Memory off | 0 right | 0 right, 1 partial |
Small numbers, one user. But the shape is clear: a spoken decision stays outside every file.
Lesson 3: the judge that shares the model is generous
The judge on the assistant's own model gave higher quality marks than the other judges in all three series that followed the marking rules. On right or wrong they mostly agreed; the gap was in judgement calls. If you grade a model's output with the same model, run a second judge on a different one and report both. Our result stands on the stricter judge alone.
Lesson 4: keyword grading would have been wrong
A natural fix for judge bias is to grade by keyword: write the expected facts, check whether they appear. On our data it fails. Asked which moon was chosen on a first date, both memory-off sessions quoted a file line that names Io, and said that line was not the answer. A keyword match would have marked both right. One session also named the right technical term while saying it could not call it the reason. Words in an answer are not the same as the answer.
Lesson 5: write the answer key from the source, not from your notes
We wrote most expected answers from the memory's own notes. Two went wrong, in two different ways:
- One note had kept a cause that was disproved later that morning; the note's source stopped at 07:32, before the real cause was found. The key inherited the error. The memory-on sessions, which could read the source lines, found the real cause and corrected the key.
- One question carried a wrong premise: it placed a speaker on the robot, when it belongs to the room units. The note was right; the question was not. Again the memory-on sessions caught it.
Both corrections were made after the run, and the stricter judge marked against the corrected key. The lesson: if you test a memory against its own notes, a wrong note makes the key wrong too. Take the key from the original transcript.
What we would do next time
- Write the key from the transcript, before the run.
- Two judges on different models, blind to which arm produced the answer.
- Report the questions whose answers live in files apart from those that live only in conversation; they measure different things.
The memory system is open source, with the paper and the full test: https://github.com/mattexb/Anamnema
來源:DEV Community · dev.to