Hugging Face Daily Papers · · 4 min read

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

Mirrored from Hugging Face Daily Papers for archival readability. Support the source by reading on the original site.

We are excited to release DuoMem, a dual-space distillation framework for on-device AI agents!</p>\n<ul>\n<li>DuoMem combines context-space and parameter-space distillation to transfer knowledge from a large teacher model into a small on-device model.</li>\n<li>It boosts 4B model success rate from 4.3% to 77.9% on ALFWorld, achieving near-parity with a 72B teacher model (87.1%) with 3× faster inference.</li>\n<li>Minimal overhead with &lt;10M trainable parameters, making it suitable for edge deployment.</li>\n</ul>\n","updatedAt":"2026-07-03T14:41:38.157Z","author":{"_id":"65b11831c9a5a7680faa8cc9","avatarUrl":"/avatars/e14a0f7ee2883926e7f6e146365c7ccf.svg","fullname":"Ondrej Bohdal","name":"obohdal","type":"user","isPro":false,"isHf":false,"isHfAdmin":false,"isMod":false,"followerCount":1,"isUserFollowing":false}},"numEdits":0,"identifiedLanguage":{"language":"en","probability":0.880131721496582},"editors":["obohdal"],"editorAvatarUrls":["/avatars/e14a0f7ee2883926e7f6e146365c7ccf.svg"],"reactions":[],"isReport":false}}],"primaryEmailConfirmed":false,"paper":{"id":"2606.29961","authors":[{"_id":"6a477c816ee372f6920de494","name":"Peyman Hosseini","hidden":false},{"_id":"6a477c816ee372f6920de495","name":"Ondrej Bohdal","hidden":false},{"_id":"6a477c816ee372f6920de496","name":"Ahmed Alajrami","hidden":false},{"_id":"6a477c816ee372f6920de497","name":"Andrea Maracani","hidden":false},{"_id":"6a477c816ee372f6920de498","name":"Ignacio Castro","hidden":false},{"_id":"6a477c816ee372f6920de499","name":"Matthew Purver","hidden":false},{"_id":"6a477c816ee372f6920de49a","name":"Mete Ozay","hidden":false},{"_id":"6a477c816ee372f6920de49b","name":"Savas Ozkan","hidden":false},{"_id":"6a477c816ee372f6920de49c","name":"Taha Ceritli","hidden":false}],"publishedAt":"2026-06-29T00:00:00.000Z","submittedOnDailyAt":"2026-07-03T00:00:00.000Z","title":"DuoMem: Towards Capable On-Device Memory Agents via Dual-Space Distillation","submittedOnDailyBy":{"_id":"65b11831c9a5a7680faa8cc9","avatarUrl":"/avatars/e14a0f7ee2883926e7f6e146365c7ccf.svg","isPro":false,"fullname":"Ondrej Bohdal","user":"obohdal","type":"user","name":"obohdal"},"summary":"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","upvotes":3,"discussionId":"6a477c816ee372f6920de49d","ai_summary":"DuoMem is a dual-space distillation framework that transfers procedural problem-solving from large language models to compact student models through context-space and parameter-space distillation, achieving high performance with minimal additional parameters and improved inference speed.","ai_keywords":["large language model","LLM-based agents","procedural tasks","environment interaction","memory-augmented agents","resource-constrained devices","dual-space distillation","context-space distillation","parameter-space distillation","LoRA adapters","ALFWorld","embodied decision-making","task success rate","parameter-efficient fine-tuning","distillation framework"],"ai_summary_model":"Qwen/Qwen2.5-Coder-32B-Instruct"},"canReadDatabase":false,"canManagePapers":false,"canSubmit":false,"hasHfLevelAccess":false,"upvoted":false,"upvoters":[{"_id":"65b11831c9a5a7680faa8cc9","avatarUrl":"/avatars/e14a0f7ee2883926e7f6e146365c7ccf.svg","isPro":false,"fullname":"Ondrej Bohdal","user":"obohdal","type":"user"},{"_id":"63496aae21f7b96c188c18d0","avatarUrl":"https://cdn-avatars.huggingface.co/v1/production/uploads/63496aae21f7b96c188c18d0/DYAN07HqCEA4Qdq-qFQJb.jpeg","isPro":false,"fullname":"Peyman Hosseini","user":"PeymanHosseini","type":"user"},{"_id":"60cf445f43c9305fa34dd87c","avatarUrl":"/avatars/1b24521a4bcfda7d88fcd8fa592ae159.svg","isPro":false,"fullname":"Ahmed Alajrami","user":"aajrami","type":"user"}],"acceptLanguages":["en"],"dailyPaperRank":0,"markdownContentUrl":"https://huggingface.co/buckets/huggingchat/papers-content/resolve/2606/2606.29961.md","query":{}}">
Papers
arxiv:2606.29961

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

Published on Jun 29
· Submitted by
Ondrej Bohdal
on Jul 3
Authors:
,
,
,
,
,
,
,
,

Abstract

DuoMem is a dual-space distillation framework that transfers procedural problem-solving from large language models to compact student models through context-space and parameter-space distillation, achieving high performance with minimal additional parameters and improved inference speed.

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

Community

Paper submitter about 5 hours ago

We are excited to release DuoMem, a dual-space distillation framework for on-device AI agents!

  • DuoMem combines context-space and parameter-space distillation to transfer knowledge from a large teacher model into a small on-device model.
  • It boosts 4B model success rate from 4.3% to 77.9% on ALFWorld, achieving near-parity with a 72B teacher model (87.1%) with 3× faster inference.
  • Minimal overhead with <10M trainable parameters, making it suitable for edge deployment.
Upload images, audio, and videos by dragging in the text input, pasting, or clicking here.
Tap or paste here to upload images

· Sign up or log in to comment

Get this paper in your agent:

hf papers read 2606.29961
Don't have the latest CLI?
curl -LsSf https://hf.co/cli/install.sh | bash

Models citing this paper 0

No model linking this paper

Cite arxiv.org/abs/2606.29961 in a model README.md to link it from this page.

Datasets citing this paper 0

No dataset linking this paper

Cite arxiv.org/abs/2606.29961 in a dataset README.md to link it from this page.

Spaces citing this paper 0

No Space linking this paper

Cite arxiv.org/abs/2606.29961 in a Space README.md to link it from this page.

Collections including this paper 0

No Collection including this paper

Add this paper to a collection to link it from this page.

Discussion (0)

Sign in to join the discussion. Free account, 30 seconds — email code or GitHub.

Sign in →

No comments yet. Sign in and be the first to say something.

More from Hugging Face Daily Papers