arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.26083cs.LGcs.AI
收藏

Nirvana:一种具有任务感知内存机制的专用通用模型

Nirvana: A Specialized Generalist Model With Task-Aware Memory Mechanism

Shanghai AI Laboratory(上海人工智能实验室);Tsinghua University(清华大学);Xiong’an Anying Technology Co., Ltd.(雄安安影科技有限公司);Zhejiang University(浙江大学)

Yuhua Jiang, Shuang Cheng, Yihao Liu, Ermo Hua, Che Jiang, Weigao Sun, Yu Cheng, Feifei Gao, Biqing Qi, Bowen Zhou

AI总结:

Nirvana提出一种具备任务感知内存机制的专用通用模型,通过线性时间复杂度和测试时任务信息提取,在通用和专业领域均表现优异,尤其在医学、金融和法律等专业领域实现最低困惑度。

摘要:

大型语言模型(LLMs)在通用语言任务中表现优异,但在专业领域表现不佳。专用通用模型(SGMs)通过保留广泛能力并适应目标领域来解决这一问题。然而,现有架构对任务引导的专业化内存机制支持有限。在本工作中,我们引入了Nirvana,一种具备专业化内存、线性时间复杂度和测试时任务信息提取的SGM。Nirvana的核心包括:(1)任务感知内存触发(Trigger),将每个输入视为自监督微调任务,并实时调整与任务相关的参数;(2)专业化内存更新器(Updater),动态整合与任务相关的上下文。Nirvana在通用基准测试中匹配或超越LLM基线,并在生物医学、金融和法律等专业领域实现最低困惑度。在具有挑战性的磁共振成像(MRI)任务中,我们通过将轻量级编码器附加到冻结的Nirvana主干并对其在配对的k空间信号和图像上进行微调,Nirvana实现了比传统LLM模型更高的重建保真度,Trigger提供了有效的领域特定适应。消融研究证实,移除Trigger会导致所有任务的显著退化,突显其在任务感知专业化中的关键作用。模型可在https://huggingface.co/collections/YuhuaJiang/nirvana获取,代码可在https://github.com/YuhuaJiang2002/Nirvana获取。

英文摘要:

Large Language Models (LLMs) excel at general language tasks but struggle in specialized domains. Specialized Generalist Models (SGMs) address this by preserving broad capabilities while adapting to target domains. However, existing architectures provide limited support for task-guided specialized memory mechanisms. In this work, we introduce Nirvana, an SGM featuring specialized memory, linear-time complexity, and test-time task information extraction. Central to Nirvana are: (1) Task-Aware Memory Trigger ($\textit{Trigger}$), which treats each input as a self-supervised fine-tuning task and adjusts task-related parameters on the fly; and (2) Specialized Memory Updater ($\textit{Updater}$), which dynamically consolidates task-relevant context. Nirvana matches or surpasses LLM baselines on general benchmarks and achieves the lowest perplexity across specialized domains including biomedicine, finance, and law. On the challenging task of Magnetic Resonance Imaging (MRI), we attach lightweight codecs to the frozen Nirvana backbone and fine-tune them on paired k-space signals and images. Nirvana achieves higher-fidelity reconstructions than conventional LLM-based models, with Trigger providing effective domain-specific adaptation. Ablation studies confirm that removing Trigger leads to substantial degradation across all tasks, underscoring its essential role in task-aware specialization. Models are available at https://huggingface.co/collections/YuhuaJiang/nirvana. Code is available at https://github.com/YuhuaJiang2002/Nirvana.

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

↑