Prometheus Mind:为冻结语言模型添加记忆
Prometheus Mind: Retrofitting Memory to Frozen Language Models
AI总结:
Prometheus Mind通过11个模块化适配器为冻结的Qwen3-4B模型添加记忆,解决提取、训练、注入和隐藏状态崩溃四个问题,实现94.4%的检索准确率。
摘要:
为预训练语言模型添加记忆通常需要架构更改或权重修改。我们提出了Prometheus Mind,它通过11个模块化适配器(530MB,7%开销)将记忆添加到冻结的Qwen3-4B模型中——完全可逆,通过移除适配器即可。构建此系统需要解决四个问题:(1)提取——我们开发了对比方向发现(CDD),通过最小配对在无标签数据的情况下发现语义方向。(2)训练——端到端优化失效;在简单代理任务上逐阶段训练每个适配器成功。(3)注入——学习的编码器无法推广;我们发现lm_head权重行已经提供了所需的映射,无需训练。(4)隐藏状态崩溃——transformers使“妻子”和“兄弟”相似度达0.98+;我们训练投影以恢复区分(0.98→0.09)。在PrometheusExtract-132(132个案例)上,系统在干净输入上实现94.4%的检索率(n=54,95%置信区间:[84.9%,98.1%]),在非正式输入(含省略号、填充词或隐含主语)上退化至19.4%(n=36)。主要瓶颈是关系分类(47.3%准确率),负责大多数提取错误。
英文摘要:
Adding memory to pretrained language models typically requires architectural changes or weight modification. We present Prometheus Mind, which retrofits memory to a frozen Qwen3-4B using 11 modular adapters (530MB, 7% overhead) -- fully reversible by removing the adapters. Building this system required solving four problems: (1) Extraction -- we develop Contrastive Direction Discovery (CDD), which finds semantic directions via minimal pairs without labeled data. (2) Training -- end-to-end optimization collapses; stage-wise training of each adapter on simple proxy tasks succeeds. (3) Injection -- learned encoders fail to generalize; we find that lm_head-weight rows already provide the mapping we need, requiring no training. (4) Hidden state collapse -- transformers make ``wife'' and ``brother'' 0.98+ similar; we train projections to recover distinction (0.98 $\rightarrow$ 0.09). On PrometheusExtract-132 (132 cases), the system achieves 94.4% retrieval on clean inputs (n=54, 95% CI: [84.9%, 98.1%]), degrading to 19.4% on informal inputs with ellipsis, filler words, or implicit subjects (n=36). The primary bottleneck is relation classification (47.3% accuracy), responsible for most extraction errors.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。