arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2603.16413cs.LGcs.AI
收藏

为冻结的编码器-解码器语言模型训练持久内存:六种架构方法

Trained Persistent Memory for Frozen Encoder--Decoder LLMs: Six Architectural Methods

Inha University in Tashkent, Uzbekistan(乌兹别克斯坦塔什克ENT的Inha大学)

Hong Jeong

AI总结:

本文探讨了在冻结编码器-解码器语言模型中通过持久内存实现连续潜在空间的可行性,提出六种架构方法,通过训练适配器实现对话学习,验证了容量作为关键设计参数的重要性。

摘要:

冻结的编码器-解码器语言模型是无状态的:每次前向传递后都会丢弃潜在表示,因此无法在会话之间保持信息。本文提出了一项概念验证研究,展示在冻结LLM的连续潜在空间中存在持久内存的可行性——即使在严重的资源限制下(单个冻结的Flan-T5-XL主干,小的可训练适配器,单个数据集)。我们实现了六种架构方法,涵盖三个注入点和四种写入机制;与文本级内存系统不同,每次写入和读取都是对密集向量的可微操作。仅训练适配器后,内存库在推理时继续积累,无需梯度,实现对话学习。在LoCoMo上进行的遗忘曲线评估中,无状态基线在两个容量规模(1×和10×)下均得分为零;在10×规模下,所有六种训练的适配器产生正的记忆回忆曲线;在1×规模下,三种方法崩溃,揭示容量作为关键设计参数的重要性。由于内存库是一个紧凑的数值数组,它可以扩展到任意大的容量,而无需改变主干。我们认为,使用更大模型、更大数据和数量级更大的内存进行全端到端训练将产生显著更强的结果;本文的概念验证研究确立了此类努力所需的基础可行性和设计空间分类。

英文摘要:

Frozen encoder--decoder language models are stateless: the latent representation is discarded after every forward pass, so no information persists across sessions. This paper presents a \textbf{proof-of-concept pilot study} showing that persistent memory in the \emph{continuous latent space} of a frozen LLM is feasible -- even under severe resource constraints (a single frozen Flan-T5-XL backbone, small trainable adapters, a single dataset). We implement six architectural methods spanning three injection points and four write mechanisms; unlike text-level memory systems, every write and read is a differentiable operation on dense vectors. After training only the adapter, the memory bank continues to accumulate at inference time without gradients, enabling \emph{conversational learning}. Under a forgetting-curve evaluation on LoCoMo at two capacity scales (1$\times$ and 10$\times$), the stateless baseline scores exactly zero; at 10$\times$ all six trained adapters produce positive memory-recall curves; at 1$\times$ three methods collapse, revealing capacity as a critical design parameter. Because the memory bank is a compact numerical array, it can be scaled to arbitrarily large capacity without altering the backbone. We argue that full end-to-end training with larger models, larger data, and orders-of-magnitude larger memory will yield substantially stronger results; this pilot study establishes the feasibility baseline and design-space taxonomy that such efforts require.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑