mlsanityData to 14 Oct 2026

Knowledge-in-Context: Towards Knowledgeable Semi-Parametric Language Models

arXiv 2210.16433 ↗First posted 28 Oct 2022cs.CLcited by 24

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

  1. 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layer23 Jan

Other references · 63

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  2. 2020Language Models are Few-Shot Learnerscited by 32,419
  3. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  4. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
  5. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
  6. 2020Measuring Massive Multitask Language Understandingcited by 7,963
  7. 2020Scaling Laws for Neural Language Modelscited by 6,586
  8. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
  9. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
  10. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
  11. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
  12. 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,795
38 more
  1. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,512
  2. 2016Pointer Sentinel Mixture Modelscited by 3,096
  3. 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,073
  4. 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,883
  5. 2022Emergent Abilities of Large Language Modelscited by 2,512
  6. 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,183
  7. 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,164
  8. 2020REALM: Retrieval-Augmented Language Model Pre-Trainingcited by 2,141
  9. 2019SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systemscited by 1,729
  10. 2021Multitask Prompted Training Enables Zero-Shot Task Generalizationcited by 1,470
  11. 2021Improving language models by retrieving from trillions of tokenscited by 1,293
  12. 2021Scaling Language Models: Methods, Analysis & Insights from Training Gophercited by 1,202
  13. 2020MPNet: Masked and Permuted Pre-training for Language Understandingcited by 981
  14. 2022Atlas: Few-shot Learning with Retrieval Augmented Language Modelscited by 952
  15. 2017RACE: Large-scale ReAding Comprehension Dataset From Examinationscited by 861
  16. 2019Generalization through Memorization: Nearest Neighbor Language Modelscited by 800
  17. 2017Crowdsourcing Multiple Choice Science Questionscited by 765
  18. 2022GPT-NeoX-20B: An Open-Source Autoregressive Language Modelcited by 713
  19. 2020KILT: a Benchmark for Knowledge Intensive Language Taskscited by 573
  20. 2019ERNIE: Enhanced Language Representation with Informative Entitiescited by 528
  21. 2016A Corpus and Evaluation Framework for Deeper Understanding of Commonsense Storiescited by 417
  22. 2019PAWS: Paraphrase Adversaries from Word Scramblingcited by 402
  23. 2018WiC: the Word-in-Context Dataset for Evaluating Context-Sensitive Meaning Representationscited by 372
  24. 2019Explain Yourself! Leveraging Language Models for Commonsense Reasoningcited by 367
  25. 2020K-Adapter: Infusing Knowledge into Pre-Trained Models with Adapterscited by 319
  26. 2019K-BERT: Enabling Language Representation with Knowledge Graphcited by 304
  27. 2019Knowledge Enhanced Contextual Word Representationscited by 296
  28. 2019Cosmos QA: Machine Reading Comprehension with Contextual Commonsense Reasoningcited by 285
  29. 2020COMET-ATOMIC 2020: On Symbolic and Neural Commonsense Knowledge Graphscited by 254
  30. 2019QASC: A Dataset for Question Answering via Sentence Compositioncited by 252
  31. 2019ERNIE 2.0: A Continual Pre-training Framework for Language Understandingcited by 231
  32. 2018ReCoRD: Bridging the Gap between Human and Machine Commonsense Reading Comprehensioncited by 200
  33. 2017Constructing Datasets for Multi-hop Reading Comprehension Across Documentscited by 190
  34. 2019Episodic Memory in Lifelong Language Learningcited by 188
  35. 2019DREAM: A Challenge Dataset and Models for Dialogue-Based Reading Comprehensioncited by 156
  36. 2022Training Language Models with Memory Augmentationcited by 113
  37. 2019QuaRTz: An Open-Domain Dataset of Qualitative Relationship Questionscited by 89
  38. 2020GLUCOSE: GeneraLized and COntextualized Story Explanationscited by 86

50 most cited of 63 All 63 (JSON)

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2022: 1; 2023: 14; 2024: 6; 2025: 2; 2026: 1.

24 papers.

Sort:

By area:

  1. 2023CRITIC: Large Language Models Can Self-Correct with Tool-Interactive Critiquingcited by 783
  2. 2023Reasoning on Graphs: Faithful and Interpretable Large Language Model Reasoningcited by 328
  3. 2024Knowledge Conflicts for LLMs: A Surveycited by 283
  4. 2023The CoT Collection: Improving Zero-shot and Few-shot Learning of Language Models via Chain-of-Thought Fine-Tuningcited by 108
  5. 2023Pearl: Personalizing Large Language Model Writing Assistants with Generation-Calibrated Retrieverscited by 92
  6. 2023Boosting Language Models Reasoning with Chain-of-Knowledge Promptingcited by 77
  7. 2022A Survey of Knowledge Enhanced Pre-trained Language Modelscited by 76
  8. 2023Resolving Knowledge Conflicts in Large Language Modelscited by 50
  9. 2023Large Language Models Are Semi-Parametric Reinforcement Learning Agentscited by 42
  10. 2023Skills-in-Context Prompting: Unlocking Compositionality in Large Language Modelscited by 33
  11. 2023Towards Verifiable Generation: A Benchmark for Knowledge-aware Language Model Attributioncited by 24
  12. 2025Pre-training Limited Memory Language Models with Internal and External Knowledgecited by 12
12 more
  1. 2024Retrieval-Enhanced Machine Learning: Synthesis and Opportunitiescited by 11
  2. 2023MOKA: Moral Knowledge Augmentation for Moral Event Extractioncited by 7
  3. 2023Knowledgeable In-Context Tuning: Exploring and Exploiting Factual Knowledge for In-Context Learningcited by 6
  4. 2024Dissecting Dissonance: Benchmarking Large Multimodal Models Against Self-Contradictory Instructionscited by 6
  5. 2026Judging Against the Reference: Uncovering Knowledge-Driven Failures in LLM-Judges on QA Evaluationcited by 5
  6. 2024Is Cognition Consistent with Perception? Assessing and Mitigating Multimodal Knowledge Conflicts in Document Understandingcited by 4
  7. 2023Thrust: Adaptively Propels Large Language Models with External Knowledgecited by 3
  8. 2023HugNLP: A Unified and Comprehensive Library for Natural Language Processingcited by 1
  9. 2023Answering Unseen Questions With Smaller Language Models Using Rationale Generation and Dense Retrievalcited by 1
  10. 2025Reasoning in Action: MCTS-Driven Knowledge Retrieval for Large Language Modelscited by 1
  11. 2024DNA-SE: Towards Deep Neural-Nets Assisted Semiparametric Estimationcited by 0
  12. 2024Teaching Smaller Language Models To Generalise To Unseen Compositional Questions (Full Thesis)cited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2023Semi-Structured Chain-of-Thought: Integrating Multiple Sources of Knowledge for Improved Language Model Reasoning
  2. 2026Decoupled Mixture-of-Experts for Parametric Knowledge Injection
  3. 2023Knowledge-Augmented Reasoning Distillation for Small Language Models in Knowledge-Intensive Tasks
  4. 2026Understanding LoRA as Knowledge Memory: An Empirical Analysis
  5. 2026Beyond the Parameters: A Technical Survey of Contextual Enrichment in Large Language Models: From In-Context Prompting to Causal Retrieval-Augmented Generation
  6. 2022An Efficient Memory-Augmented Transformer for Knowledge-Intensive NLP Tasks
  7. 2024Large Language Models are Limited in Out-of-Context Knowledge Reasoning
  8. 2025Resisting Contextual Interference in RAG via Parametric-Knowledge Reinforcement