Nirvana: A Specialized Generalist Model With Task-Aware Memory Mechanism
Not on the map. Why?
Abstract (arXiv)
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 (textitTrigger), which treats each input as a self-supervised fine-tuning task and adjusts task-related parameters on the fly; and (2) Specialized Memory Updater (textitUpdater), 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.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 48 of its 57 references that are in the map. First posted on arXiv 30 Oct 2025.
Builds on
48 of 57 references.
References · 48
- 2017Attention Is All You Needcited by 59,932
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,014
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
- 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,970
- 2024Mixtral of Expertscited by 1,785
- 2017Decoupled Weight Decay Regularizationcited by 1,722
- 2020GShard: Scaling Giant Models with Conditional Computation and Automatic Shardingcited by 1,601
36 more
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
- 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,283
- 2021Improving language models by retrieving from trillions of tokenscited by 1,278
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,270
- 2024The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scalecited by 1,104
- 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,096
- 2023RWKV: Reinventing RNNs for the Transformer Eracited by 814
- 2019Generalization through Memorization: Nearest Neighbor Language Modelscited by 788
- 2023Retentive Network: A Successor to Transformer for Large Language Modelscited by 594
- 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 483
- 2018fastMRI: An Open Dataset and Benchmarks for Accelerated MRIcited by 464
- 2025MedGemma Technical Reportcited by 398
- 2024Jamba: A Hybrid Transformer-Mamba Language Modelcited by 390
- 2024Parallelizing Linear Transformers with the Delta Rule over Sequence Lengthcited by 373
- 2024Learning to (Learn at Test Time): RNNs with Expressive Hidden Statescited by 329
- 2023LegalBench: A Collaboratively Built Benchmark for Measuring Legal Reasoning in Large Language Modelscited by 328
- 2024Titans: Learning to Memorize at Test Timecited by 303
- 2022Memorizing Transformerscited by 219
- 2025Lingshu: A Generalist Foundation Model for Unified Multimodal Medical Understanding and Reasoningcited by 217
- 2020End-to-End Variational Networks for Accelerated MRI Reconstructioncited by 201
- 2024Samba: Simple Hybrid State Space Models for Efficient Unlimited Context Language Modelingcited by 167
- 2024Eagle and Finch: RWKV with Matrix-Valued States and Dynamic Recurrencecited by 155
- 2019Online Meta-Learningcited by 137
- 2025RWKV-7 "Goose" with Expressive Dynamic State Evolutioncited by 134
- 2024HGRN2: Gated Linear RNNs with State Expansioncited by 122
- 2025HealthGPT: A Medical Large Vision-Language Model for Unifying Comprehension and Generation via Heterogeneous Knowledge Adaptationcited by 112
- 2023Advances and Challenges in Meta-Learning: A Technical Reviewcited by 65
- 2025It's All Connected: A Journey Through Test-Time Memorization, Attentional Bias, Retention, and Online Optimizationcited by 60
- 2024Just read twice: closing the recall gap for recurrent language modelscited by 55
- 2024Jamba-1.5: Hybrid Transformer-Mamba Models at Scalecited by 48
- 2021AI-based Reconstruction for Fast MRI -- A Systematic Review and Meta-analysiscited by 38
- 2025Sliding Window Attention Training for Efficient Large Language Modelscited by 21
- 2024Towards Building Specialized Generalist AI with System 1 and System 2 Fusioncited by 8
- 2024A Perspective for Adapting Generalist AI to Specialized Medical AI Applications and Their Challengescited by 8
- 2024A Unified Model for Compressed Sensing MRI Across Undersampling Patternscited by 7
- 2023Automated Refugee Case Analysis: An NLP Pipeline for Supporting Legal Practitionerscited by 6
Built on by
Citing papers per year: 2025: 2.
2 papers.