Goto

Collaborating Authors

 memory slot




Transformer-based WorkingMemoryforMultiagent ReinforcementLearningwithActionParsing

Neural Information Processing Systems

Learning in real-world multiagent tasks is challenging due to the usual partial observability ofeach agent. Previous efforts alleviate thepartial observability by historical hidden states with Recurrent Neural Networks, however, they do not consider themultiagent characters thateither themultiagent observationconsists ofanumber ofobject entities orthe action space shows clear entity interactions.


5d0d5594d24f0f955548f0fc0ff83d10-Supplemental.pdf

Neural Information Processing Systems

Onemightconsider"2V 7 V"and "V 84V"tobedifferent patterns orinvariants butatahigher levelofabstraction theycan both represent the concept of a repeated symbol irrespective of the position of the repeating item.


G-MemLLM: Gated Latent Memory Augmentation for Long-Context Reasoning in Large Language Models

arXiv.org Artificial Intelligence

By integrating a trainable latent memory bank with a frozen LLM backbone, we decouple linguistic processing from stateful information storage. Our primary technical innovation is the implementation of a GRU-style gated update logic, which allows the model to selectively preserve or overwrite latent memory slots. This mechanism, supported by a composite loss function emphasizing sparsity and entropy, successfully mitigates common issues such as context rot and information dilution found in traditional recurrent or compressed architectures. Empirical evaluations across scales, from GPT-2 (124M) to Llama 3.1-8B, demonstrate that GMemLLM provides significant performance gains on the HotpotQA and ZsRE benchmarks. These results suggest that as LLMs grow in capacity, they become increasingly efficient at using explicit memory modules to index and organize their internal knowledge. As a machine learning course project, this work highlights the transition from passive context windows to active gated cognitive architectures. We successfully navigated challenges related to memory collapse and high-dimensional state projection on limited hardware. The findings underscore that adding a small, trainable working memory, representing less than 3% additional parameters, is a highly efficient strategy for extending the reasoning capabilities of pre-trained models without the prohibitive cost of full-parameter fine-tuning.




Continual Learning via Sparse Memory Finetuning

arXiv.org Artificial Intelligence

Modern language models are powerful, but typically static after deployment. A major obstacle to building models that continually learn over time is catastrophic forgetting, where updating on new data erases previously acquired capabilities. Motivated by the intuition that mitigating forgetting is challenging because trainable parameters are shared across all tasks, we investigate whether sparse parameter updates can enable learning without catastrophic forgetting. We introduce sparse memory finetuning, leveraging memory layer models (Berges et al., 2024), which are sparsely updated by design. By updating only the memory slots that are highly activated by a new piece of knowledge relative to usage on pretraining data, we reduce interference between new knowledge and the model's existing capabilities. We evaluate learning and forgetting compared to full finetuning and parameter-efficient finetuning with LoRA on two question answering tasks. We find that sparse memory finetuning learns new knowledge while exhibiting substantially less forgetting: while NaturalQuestions F1 drops by 89% after full finetuning on new facts and 71% with LoRA, sparse memory finetuning yields only an 11% drop with the same level of new knowledge acquisition. Our results suggest sparsity in memory layers offers a promising path toward continual learning in large language models.