Knowledge-in-Context: Towards Knowledgeable Semi-Parametric Language Models
On the map: Mixture-of-experts → MoE large language models
Abstract (arXiv)
Fully-parametric language models generally require a huge number of model parameters to store the necessary knowledge for solving multiple natural language tasks in zero/few-shot settings. In addition, it is hard to adapt to the evolving world knowledge without the costly model re-training. In this paper, we develop a novel semi-parametric language model architecture, Knowledge-in-Context (KiC), which empowers a parametric text-to-text language model with a knowledge-rich external memory. Specifically, the external memory contains six different types of knowledge: entity, dictionary, commonsense, event, script, and causality knowledge. For each input instance, the KiC model adaptively selects a knowledge type and retrieves the most helpful pieces of knowledge. The input instance along with its knowledge augmentation is fed into a text-to-text model (e.g., T5) to generate the output answer, where both the input and the output are in natural language forms after prompting. Interestingly, we find that KiC can be identified as a special mixture-of-experts (MoE) model, where the knowledge selector plays the role of a router that is used to determine the sequence-to-expert assignment in MoE. This key observation inspires us to develop a novel algorithm for training KiC with an instance-adaptive knowledge selector. As a knowledge-rich semi-parametric language model, KiC only needs a much smaller parametric part to achieve superior zero-shot performance on unseen tasks. By evaluating on 40+ different tasks, we show that KiC_Large with 770M parameters easily outperforms large language models (LMs) that are 4-39x larger by a large margin. We also demonstrate that KiC exhibits emergent abilities at a much smaller model scale compared to the fully-parametric models.
Key facts. Cited by 24 papers in the map (data through 14 Oct 2026). Placed in MoE large language models, one of 12 directions in Mixture-of-experts. Builds on 64 of its 94 references that are in the map. First posted on arXiv 28 Oct 2022.
Builds on
64 of 94 references.
Closest ancestors · 1
Same direction, newest first
Other references · 63
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2020Scaling Laws for Neural Language Modelscited by 6,586
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
- 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,795
38 more
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,512
- 2016Pointer Sentinel Mixture Modelscited by 3,096
- 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,073
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,883
- 2022Emergent Abilities of Large Language Modelscited by 2,512
- 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,183
- 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,164
- 2020REALM: Retrieval-Augmented Language Model Pre-Trainingcited by 2,141
- 2019SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systemscited by 1,729
- 2021Multitask Prompted Training Enables Zero-Shot Task Generalizationcited by 1,470
- 2021Improving language models by retrieving from trillions of tokenscited by 1,293
- 2021Scaling Language Models: Methods, Analysis & Insights from Training Gophercited by 1,202
- 2020MPNet: Masked and Permuted Pre-training for Language Understandingcited by 981
- 2022Atlas: Few-shot Learning with Retrieval Augmented Language Modelscited by 952
- 2017RACE: Large-scale ReAding Comprehension Dataset From Examinationscited by 861
- 2019Generalization through Memorization: Nearest Neighbor Language Modelscited by 800
- 2017Crowdsourcing Multiple Choice Science Questionscited by 765
- 2022GPT-NeoX-20B: An Open-Source Autoregressive Language Modelcited by 713
- 2020KILT: a Benchmark for Knowledge Intensive Language Taskscited by 573
- 2019ERNIE: Enhanced Language Representation with Informative Entitiescited by 528
- 2016A Corpus and Evaluation Framework for Deeper Understanding of Commonsense Storiescited by 417
- 2019PAWS: Paraphrase Adversaries from Word Scramblingcited by 402
- 2018WiC: the Word-in-Context Dataset for Evaluating Context-Sensitive Meaning Representationscited by 372
- 2019Explain Yourself! Leveraging Language Models for Commonsense Reasoningcited by 367
- 2020K-Adapter: Infusing Knowledge into Pre-Trained Models with Adapterscited by 319
- 2019K-BERT: Enabling Language Representation with Knowledge Graphcited by 304
- 2019Knowledge Enhanced Contextual Word Representationscited by 296
- 2019Cosmos QA: Machine Reading Comprehension with Contextual Commonsense Reasoningcited by 285
- 2020COMET-ATOMIC 2020: On Symbolic and Neural Commonsense Knowledge Graphscited by 254
- 2019QASC: A Dataset for Question Answering via Sentence Compositioncited by 252
- 2019ERNIE 2.0: A Continual Pre-training Framework for Language Understandingcited by 231
- 2018ReCoRD: Bridging the Gap between Human and Machine Commonsense Reading Comprehensioncited by 200
- 2017Constructing Datasets for Multi-hop Reading Comprehension Across Documentscited by 190
- 2019Episodic Memory in Lifelong Language Learningcited by 188
- 2019DREAM: A Challenge Dataset and Models for Dialogue-Based Reading Comprehensioncited by 156
- 2022Training Language Models with Memory Augmentationcited by 113
- 2019QuaRTz: An Open-Domain Dataset of Qualitative Relationship Questionscited by 89
- 2020GLUCOSE: GeneraLized and COntextualized Story Explanationscited by 86
50 most cited of 63 All 63 (JSON)
Built on by
Citing papers per year: 2022: 1; 2023: 14; 2024: 6; 2025: 2; 2026: 1.
24 papers.
Sort:
By area:
- 2023CRITIC: Large Language Models Can Self-Correct with Tool-Interactive Critiquingcited by 783
- 2023Reasoning on Graphs: Faithful and Interpretable Large Language Model Reasoningcited by 328
- 2024Knowledge Conflicts for LLMs: A Surveycited by 283
- 2023The CoT Collection: Improving Zero-shot and Few-shot Learning of Language Models via Chain-of-Thought Fine-Tuningcited by 108
- 2023Pearl: Personalizing Large Language Model Writing Assistants with Generation-Calibrated Retrieverscited by 92
- 2023Boosting Language Models Reasoning with Chain-of-Knowledge Promptingcited by 77
- 2022A Survey of Knowledge Enhanced Pre-trained Language Modelscited by 76
- 2023Resolving Knowledge Conflicts in Large Language Modelscited by 50
- 2023Large Language Models Are Semi-Parametric Reinforcement Learning Agentscited by 42
- 2023Skills-in-Context Prompting: Unlocking Compositionality in Large Language Modelscited by 33
- 2023Towards Verifiable Generation: A Benchmark for Knowledge-aware Language Model Attributioncited by 24
- 2025Pre-training Limited Memory Language Models with Internal and External Knowledgecited by 12
12 more
- 2024Retrieval-Enhanced Machine Learning: Synthesis and Opportunitiescited by 11
- 2023MOKA: Moral Knowledge Augmentation for Moral Event Extractioncited by 7
- 2023Knowledgeable In-Context Tuning: Exploring and Exploiting Factual Knowledge for In-Context Learningcited by 6
- 2024Dissecting Dissonance: Benchmarking Large Multimodal Models Against Self-Contradictory Instructionscited by 6
- 2026Judging Against the Reference: Uncovering Knowledge-Driven Failures in LLM-Judges on QA Evaluationcited by 5
- 2024Is Cognition Consistent with Perception? Assessing and Mitigating Multimodal Knowledge Conflicts in Document Understandingcited by 4
- 2023Thrust: Adaptively Propels Large Language Models with External Knowledgecited by 3
- 2023HugNLP: A Unified and Comprehensive Library for Natural Language Processingcited by 1
- 2023Answering Unseen Questions With Smaller Language Models Using Rationale Generation and Dense Retrievalcited by 1
- 2025Reasoning in Action: MCTS-Driven Knowledge Retrieval for Large Language Modelscited by 1
- 2024DNA-SE: Towards Deep Neural-Nets Assisted Semiparametric Estimationcited by 0
- 2024Teaching Smaller Language Models To Generalise To Unseen Compositional Questions (Full Thesis)cited by 0
- 2026Judging Against the Reference: Uncovering Knowledge-Driven Failures in LLM-Judges on QA Evaluation12 Jan 2026
- 2025Reasoning in Action: MCTS-Driven Knowledge Retrieval for Large Language Models28 Nov 2025
- 2025Pre-training Limited Memory Language Models with Internal and External Knowledge21 May 2025
- 2024Teaching Smaller Language Models To Generalise To Unseen Compositional Questions (Full Thesis)25 Nov 2024
- 2024Is Cognition Consistent with Perception? Assessing and Mitigating Multimodal Knowledge Conflicts in Document Understanding12 Nov 2024
- 2024DNA-SE: Towards Deep Neural-Nets Assisted Semiparametric Estimation4 Aug 2024
- 2024Dissecting Dissonance: Benchmarking Large Multimodal Models Against Self-Contradictory Instructions2 Aug 2024
- 2024Retrieval-Enhanced Machine Learning: Synthesis and Opportunities17 Jul 2024
- 2024Knowledge Conflicts for LLMs: A Survey13 Mar 2024
- 2023MOKA: Moral Knowledge Augmentation for Moral Event Extraction16 Nov 2023
- 2023Pearl: Personalizing Large Language Model Writing Assistants with Generation-Calibrated Retrievers15 Nov 2023
- 2023Towards Verifiable Generation: A Benchmark for Knowledge-aware Language Model Attribution9 Oct 2023
12 more
- 2023Reasoning on Graphs: Faithful and Interpretable Large Language Model Reasoning2 Oct 2023
- 2023Resolving Knowledge Conflicts in Large Language Models2 Oct 2023
- 2023Knowledgeable In-Context Tuning: Exploring and Exploiting Factual Knowledge for In-Context Learning26 Sep 2023
- 2023Answering Unseen Questions With Smaller Language Models Using Rationale Generation and Dense Retrieval9 Aug 2023
- 2023Skills-in-Context Prompting: Unlocking Compositionality in Large Language Models1 Aug 2023
- 2023Thrust: Adaptively Propels Large Language Models with External Knowledge19 Jul 2023
- 2023Boosting Language Models Reasoning with Chain-of-Knowledge Prompting10 Jun 2023
- 2023Large Language Models Are Semi-Parametric Reinforcement Learning Agents9 Jun 2023
- 2023The CoT Collection: Improving Zero-shot and Few-shot Learning of Language Models via Chain-of-Thought Fine-Tuning23 May 2023
- 2023CRITIC: Large Language Models Can Self-Correct with Tool-Interactive Critiquing19 May 2023
- 2023HugNLP: A Unified and Comprehensive Library for Natural Language Processing28 Feb 2023
- 2022A Survey of Knowledge Enhanced Pre-trained Language Models11 Nov 2022
- 2023CRITIC: Large Language Models Can Self-Correct with Tool-Interactive Critiquingcited by 783
- 2023Reasoning on Graphs: Faithful and Interpretable Large Language Model Reasoningcited by 328
- 2023The CoT Collection: Improving Zero-shot and Few-shot Learning of Language Models via Chain-of-Thought Fine-Tuningcited by 108
- 2023Boosting Language Models Reasoning with Chain-of-Knowledge Promptingcited by 77
- 2023Answering Unseen Questions With Smaller Language Models Using Rationale Generation and Dense Retrievalcited by 1
- 2025Reasoning in Action: MCTS-Driven Knowledge Retrieval for Large Language Modelscited by 1
- 2025Reasoning in Action: MCTS-Driven Knowledge Retrieval for Large Language Models28 Nov 2025
- 2023Reasoning on Graphs: Faithful and Interpretable Large Language Model Reasoning2 Oct 2023
- 2023Answering Unseen Questions With Smaller Language Models Using Rationale Generation and Dense Retrieval9 Aug 2023
- 2023Boosting Language Models Reasoning with Chain-of-Knowledge Prompting10 Jun 2023
- 2023The CoT Collection: Improving Zero-shot and Few-shot Learning of Language Models via Chain-of-Thought Fine-Tuning23 May 2023
- 2023CRITIC: Large Language Models Can Self-Correct with Tool-Interactive Critiquing19 May 2023
- 2024Knowledge Conflicts for LLMs: A Surveycited by 283
- 2023Pearl: Personalizing Large Language Model Writing Assistants with Generation-Calibrated Retrieverscited by 92
- 2022A Survey of Knowledge Enhanced Pre-trained Language Modelscited by 76
- 2023Resolving Knowledge Conflicts in Large Language Modelscited by 50
- 2023Skills-in-Context Prompting: Unlocking Compositionality in Large Language Modelscited by 33
- 2023Towards Verifiable Generation: A Benchmark for Knowledge-aware Language Model Attributioncited by 24
- 2025Pre-training Limited Memory Language Models with Internal and External Knowledgecited by 12
- 2024Retrieval-Enhanced Machine Learning: Synthesis and Opportunitiescited by 11
- 2023MOKA: Moral Knowledge Augmentation for Moral Event Extractioncited by 7
- 2023Knowledgeable In-Context Tuning: Exploring and Exploiting Factual Knowledge for In-Context Learningcited by 6
- 2026Judging Against the Reference: Uncovering Knowledge-Driven Failures in LLM-Judges on QA Evaluationcited by 5
- 2023Thrust: Adaptively Propels Large Language Models with External Knowledgecited by 3
12 most cited of 15 All 15 (JSON)
- 2026Judging Against the Reference: Uncovering Knowledge-Driven Failures in LLM-Judges on QA Evaluation12 Jan 2026
- 2025Pre-training Limited Memory Language Models with Internal and External Knowledge21 May 2025
- 2024Teaching Smaller Language Models To Generalise To Unseen Compositional Questions (Full Thesis)25 Nov 2024
- 2024DNA-SE: Towards Deep Neural-Nets Assisted Semiparametric Estimation4 Aug 2024
- 2024Retrieval-Enhanced Machine Learning: Synthesis and Opportunities17 Jul 2024
- 2024Knowledge Conflicts for LLMs: A Survey13 Mar 2024
- 2023MOKA: Moral Knowledge Augmentation for Moral Event Extraction16 Nov 2023
- 2023Pearl: Personalizing Large Language Model Writing Assistants with Generation-Calibrated Retrievers15 Nov 2023
- 2023Towards Verifiable Generation: A Benchmark for Knowledge-aware Language Model Attribution9 Oct 2023
- 2023Resolving Knowledge Conflicts in Large Language Models2 Oct 2023
- 2023Knowledgeable In-Context Tuning: Exploring and Exploiting Factual Knowledge for In-Context Learning26 Sep 2023
- 2023Skills-in-Context Prompting: Unlocking Compositionality in Large Language Models1 Aug 2023
12 newest of 15 All 15 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2023Semi-Structured Chain-of-Thought: Integrating Multiple Sources of Knowledge for Improved Language Model Reasoning
- 2026Decoupled Mixture-of-Experts for Parametric Knowledge Injection
- 2023Knowledge-Augmented Reasoning Distillation for Small Language Models in Knowledge-Intensive Tasks
- 2026Understanding LoRA as Knowledge Memory: An Empirical Analysis
- 2026Beyond the Parameters: A Technical Survey of Contextual Enrichment in Large Language Models: From In-Context Prompting to Causal Retrieval-Augmented Generation
- 2022An Efficient Memory-Augmented Transformer for Knowledge-Intensive NLP Tasks
- 2024Large Language Models are Limited in Out-of-Context Knowledge Reasoning
- 2025Resisting Contextual Interference in RAG via Parametric-Knowledge Reinforcement