MemDuet System 1 — Qwen2.5-1.5B
MemDuet System 1 selects evidence for long-context reasoning. Given a question,
the current memory, and a context chunk, it scores k (skip) and u (update).
Use this model with the System 2 verifier and memory updater in the MemDuet code.
Base model: Qwen/Qwen2.5-1.5B. The weights in this repository are a standalone BF16 model.
Paper · Code · Project page
Load
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "jiangchengsong/MemDuet-S1-Qwen2.5-1.5B"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, dtype="auto")
model.eval()
Use Transformers 5.15.0 with PyTorch 2.13.0, matching the prepared release. For the selection prompt and the complete controller, use the MemDuet inference implementation.
Use with MemDuet
From the MemDuet code directory, download this model to system1:
hf download jiangchengsong/MemDuet-S1-Qwen2.5-1.5B --local-dir system1
python -m memduet serve --config configs/paper_frozen.json --role selector
Follow the code repository instructions to provide system2, start its service,
and run evaluation. Retain this model's tokenizer and chat template.
License
Apache License 2.0. The base-model license is included in LICENSE; source
attribution and modification information are retained in NOTICE.
Citation
@misc{song2026memduet,
title = {MemDuet: Learning Dual-Process Memory for Long-Context Reasoning},
author = {Song, Jiangcheng and Jing, Haodong and Mu, Yulin and Tao, Lesong and
Wang, Jixin and Cui, Jin and Ren, Tianjing and Xie, Runxuan and
Ma, Yongqiang and Zheng, Nanning},
year = {2026},
eprint = {2610.19928},
archivePrefix = {arXiv},
primaryClass = {cs.CL},
url = {https://arxiv.org/abs/2610.19928}
}