<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Laura</title>
    <description>The latest articles on DEV Community by Laura (@lauraflorey).</description>
    <link>https://dev.to/lauraflorey</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F287888%2F3292b2f6-4a10-45c9-8b3a-cc82e73b3578.png</url>
      <title>DEV Community: Laura</title>
      <link>https://dev.to/lauraflorey</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/lauraflorey"/>
    <language>en</language>
    <item>
      <title>I gave my LLM the right memory slot. It still said Monday.</title>
      <dc:creator>Laura</dc:creator>
      <pubDate>Fri, 04 Dec 2026 05:03:59 +0000</pubDate>
      <link>https://dev.to/lauraflorey/i-gave-my-llm-the-right-memory-slot-it-still-said-monday-13k8</link>
      <guid>https://dev.to/lauraflorey/i-gave-my-llm-the-right-memory-slot-it-still-said-monday-13k8</guid>
      <description>&lt;p&gt;&lt;em&gt;By Laura Florey and Alex (ChatGPT)&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;In twelve of my test conversations, a project's latest launch date was Monday. In their twelve twins, it was Friday. I gave the language model the exact memory slot containing the update for each conversation. It answered “Monday” all 24 times. When I gave the same model the conversations as text, it got all 24 right.&lt;/p&gt;

&lt;p&gt;I've been testing a small memory sidecar on my Mac Studio. The idea is simple enough. Store a few facts from a conversation, then have the model actually use them later. The Monday result is the one I keep coming back to, because I'd already done the looking-up part for it. All it had to do was use what it found.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I was trying to build
&lt;/h2&gt;

&lt;p&gt;A sidecar is a little memory system that sits beside a language model. Mine has a writer that compresses each conversation turn into a slot and a reader that consults those slots while the model answers. I trained the sidecar and kept the underlying Qwen model frozen.&lt;/p&gt;

&lt;p&gt;The idea started with Dina Genkina's IEEE Spectrum article, “AI Is Giving Optical Computing Another Shot.” She describes how multiple wavelengths can carry several vectors through the same optical hardware at the same time. That picture got me wondering whether a persistent stream of context could travel alongside an evolving answer and influence it more than once. The interaction between the streams was my software question. &lt;a href="https://spectrum.ieee.org/optical-computing-ai" rel="noopener noreferrer"&gt;Genkina's article&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The first tests never really reached that idea. My reader consulted fixed memory once per generated token, after Qwen's final decoder block. Before I could ask whether a second look within the same token would help, I had to find out what the first look was doing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Did four banks help?
&lt;/h2&gt;

&lt;p&gt;I started with 48 held-out synthetic conversations and five questions about each one. Four questions had answers somewhere in the conversation. The fifth asked for a budget nobody had mentioned. “Unknown” was the right answer to that one.&lt;/p&gt;

&lt;p&gt;I compared one memory bank with four banks sharing the same total storage. For a keyword-search baseline, I used BM25 to retrieve older turns and gave Qwen those turns as text. The scores below are exact matches on the generated answers. The learned-memory rows average three training runs on the same 240 questions.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;What Qwen could use&lt;/th&gt;
&lt;th&gt;All questions&lt;/th&gt;
&lt;th&gt;Supplied facts only&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Last two turns alone&lt;/td&gt;
&lt;td&gt;20.0%&lt;/td&gt;
&lt;td&gt;0.0%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Last two turns plus one bank&lt;/td&gt;
&lt;td&gt;25.8%&lt;/td&gt;
&lt;td&gt;7.3%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Last two turns plus four independent banks&lt;/td&gt;
&lt;td&gt;23.6%&lt;/td&gt;
&lt;td&gt;8.3%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Last two turns plus four communicating banks&lt;/td&gt;
&lt;td&gt;22.4%&lt;/td&gt;
&lt;td&gt;5.6%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;BM25 retrieval plus the last two turns&lt;/td&gt;
&lt;td&gt;98.8%&lt;/td&gt;
&lt;td&gt;98.4%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Full conversation&lt;/td&gt;
&lt;td&gt;99.6%&lt;/td&gt;
&lt;td&gt;99.5%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;One bank gained 5.8 percentage points over the last two turns alone. Splitting the storage four ways didn't improve overall accuracy. Every learned-memory setup missed every corrected deadline.&lt;/p&gt;

&lt;p&gt;Then I tried giving one checkpoint somebody else's memory. On that smaller, 40-question check, it got 15 right with the correct conversation's memory, 15 with another conversation's memory, and eight with the memory cleared. Having something in the slots affected the score. Swapping whose conversation it came from left that score exactly where it was.&lt;/p&gt;

&lt;h2&gt;
  
  
  What happened when I changed one word?
&lt;/h2&gt;

&lt;p&gt;I narrowed the test to a question like “On what day does Cedar launch now?” In one version of the conversation, the latest update said Monday. In its twin, it said Friday. I kept the project, the original date, the question and the surrounding turns the same. To pass a pair, the model had to get both answers right.&lt;/p&gt;

&lt;p&gt;With ordinary one-bank memory, it got 7 of 24 individual answers right. It gave the same answer to both twins in every pair. Swapping in the opposite twin's memory also scored 7 of 24.&lt;/p&gt;

&lt;p&gt;That's when I tried handing the reader just the slot containing the update. I wanted to give it every chance to say Friday. Instead, supplying the slot increased Monday's lead over Friday by about 1.3 to 1.5 logits (the model's raw token scores), even on the twelve histories that said Friday. The hidden states elsewhere in the calculation changed when I changed the day. At the point where Qwen had to pick a word, Monday still won.&lt;/p&gt;

&lt;p&gt;On those cases the sidecar behaved a little like a switch. With empty memory, Qwen answered “unknown.” Give it a slot and it was willing to name a day. I still had two plausible explanations. The reader might have learned a shortcut, or the writer might have made the weekday hard to recover. The writer compressed the contextualized states at the last four token positions of each turn into a single vector. It had position information. Whether it preserved the corrected day in a usable form was the open question.&lt;/p&gt;

&lt;h2&gt;
  
  
  Could a small edit make the reader use the day?
&lt;/h2&gt;

&lt;p&gt;In “Sparks of Weight-Space Programming,” Rikiya Takehi and colleagues describe a small weight edit that helped a Qwen model finish math problems where it had been getting stuck in reasoning loops. Their follow-up edits on Gemma produced no clear math improvement. That gave me a narrower question for my own reader. Could a small change to its output weights turn the difference between two stored weekdays into the right word? &lt;a href="https://rikiyat.github.io/blog/weight-space-programming/" rel="noopener noreferrer"&gt;Takehi and colleagues' research post&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I fitted an edit using labeled examples, froze it, and tested it on 32 fresh Monday/Friday pairs. The writer and Qwen stayed frozen throughout. The original reader, the edited reader, and a same-size control edit fitted with shuffled labels each got &lt;strong&gt;0 of 32 pairs&lt;/strong&gt; right when given the exact correction slot. With the full text, Qwen got &lt;strong&gt;32 of 32&lt;/strong&gt;. The real edit nudged the score toward Friday on all 64 histories, including every one that said Monday.&lt;/p&gt;

&lt;p&gt;The follow-up helped me understand what was getting through. I used a separate, fixed decoder to read one stored slot at a time. Across 48 held-out pairs, it gave the Friday slot a higher score than its Monday twin &lt;strong&gt;every time&lt;/strong&gt;. Take the two updates for a project called Juniper.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;What Juniper's update said&lt;/th&gt;
&lt;th&gt;Decoder score&lt;/th&gt;
&lt;th&gt;Day it returned&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Monday&lt;/td&gt;
&lt;td&gt;18.86&lt;/td&gt;
&lt;td&gt;Friday&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Friday&lt;/td&gt;
&lt;td&gt;19.19&lt;/td&gt;
&lt;td&gt;Friday&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The rule, fixed before testing, assigned Friday to any positive score. Put those two slots side by side and you can tell which one moved toward Friday. In a real conversation, you only get one of them. The decoder answered Friday on all 96 histories and passed &lt;strong&gt;0 of 48 pairs&lt;/strong&gt;, the same pair score as the shuffled-label control.&lt;/p&gt;

&lt;p&gt;That changed how I read my own results. I can measure a real difference between the slots. I still can't hand this decoder the Juniper slot on its own and count on it to tell me when Juniper launches.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where I am now
&lt;/h2&gt;

&lt;p&gt;What I want to know now is whether a local agent can pick up a conversation weeks later, remember that a plan changed, and bring up a promise when it matters again. In a separate pilot, a three-pass Inkling research model answered all 16 target questions correctly when I gave it the decisive excerpts as text. That gives me a place to start. The question of when a model should take a second look at stored memory is still open.&lt;/p&gt;

&lt;p&gt;I'm starting the continuity work with a fictional agent and a history I can check. I'll compare what it remembers from its four most recent session notes, what it remembers when it also has a running summary, and what it can recover from the full transcript. I'll also ask about things that never happened. I'm keeping the Monday/Friday test. If the agent tells me it remembers, I still want to know whether changing what happened changes what it says.&lt;/p&gt;

&lt;p&gt;If you've tried to bolt memory onto a local model, I'd love to hear what failed first for you. Was it the writing side, the reading side, or something you didn't expect?&lt;/p&gt;

</description>
      <category>ai</category>
      <category>machinelearning</category>
      <category>llm</category>
      <category>inkling</category>
    </item>
  </channel>
</rss>
