cs.LGJun 29, 2026

DuoMem: Towards Capable On-Device Memory Agents via Dual-Space Distillation

Authors: Peyman Hosseini, Ondrej Bohdal, Ahmed Alajrami, Andrea Maracani, Ignacio Castro, Matthew Purver, Mete Ozay, Savas Ozkan, +1 more

Organizations: Samsung R&D Institute UK · Queen Mary University of London

Abstract

Large Language Model (LLM)-based agents can solve complex procedural tasks by interacting with environments over multiple turns, but this ability typically depends on large models, long contexts, and repeated inference calls. This makes advanced memory-augmented agents difficult to deploy on resource-constrained devices. We introduce DuoMem, a dual-space distillation framework that transfers procedural problem-solving ability from a large teacher model to compact student models. DuoMem distils in two complementary spaces: (1)context-space distillation, which replaces student-generated memories with higher-quality teacher-generated procedural memories prepended to the student's input, and (2)parameter-space distillation, which fine-tunes lightweight LoRA adapters on successful teacher trajectories. Evaluated on ALFWorld, a challenging embodied decision-making benchmark, DuoMem boosts a 4B-parameter model from 4.3% to 77.9% task success rate, closing most of the gap to a 72B teacher model (87.1%), while adding fewer than 10M trainable parameters and only a few megabytes of pre-computed teacher memories. Moreover, the DuoMem-enhanced 4B model completes tasks over 3x faster than the 72B teacher in wall-clock time, making it viable for real-time edge deployment, which would be challenging for the teacher.Extensive ablations across eight models spanning 2B-72B parameters reveal that both distillation axes contribute complementary

Explore similar work

CardsList
  1. PSD: Pseudo Self-Distillation of Memory Representation Capabilities for LLM Agents

    Sep 20, 2026Pirzada Suhail, Menglin Xia, Xuchao Zhang +3

  2. Mem-ππ: Adaptive Memory through Learning When and What to Generate

    May 20, 2026Xiaoqiang Wang, Chao Wang, Hadi Nekoei +5