i ran an experiment on how an llm agent can selectively unlearn a single memory when storing memories inside a shared lora.
dug deep into it and wrapped up a paper.
turns out, injecting context into a shared lora and then deleting a specific entry causes collateral damage to other memories and relational positioning.
cheolsoo kim is a doctor, minhyeok park is a doctor
if you erase cheolsoo, minhyeok gets affected too so to delete only cheolsoo, you have to preserve the shared "is a doctor" context for minhyeok.
to solve this, i defined a shared-term constant called "decoy" (controlling how much less to subtract) and calibrated the deletion across different model vendors, which noticeably improved memory retention.
i also derived a rule to compute this coefficient so the shared portion stays intact, cutting collateral damage to other memories by 60–90% across 4 different models.
it still has practical limitations and real-world data is way too massive, so it was mostly just a fun experiment.
wish i had bigger gpus to test more variations, since i only used 3x rtx 6000s.
time to move on to rl now.