mlsanityData to 7 Oct 2026

P-Adapters: Robustly Extracting Factual Information from Language Models with Diverse Prompts

arXiv 2110.07280 ↗First posted 14 Oct 2021cs.CLcited by 22

On the map: Mixture-of-experts → MoE large language models

Abstract (arXiv)

Recent work (e.g. LAMA (Petroni et al., 2019)) has found that the quality of the factual information extracted from Large Language Models (LLMs) depends on the prompts used to query them. This inconsistency is problematic because different users will query LLMs for the same information using different wording, but should receive the same, accurate responses regardless. In this work we aim to address this shortcoming by introducing P-Adapters: lightweight models that sit between the embedding layer and first attention layer of LLMs. They take LLM embeddings as input and output continuous prompts that are used to query the LLM. Additionally, we investigate Mixture of Experts (MoE) models that learn a set of continuous prompts ("experts") and select one to query the LLM. They require a separate classifier trained on human-annotated data to map natural language prompts to the continuous ones. P-Adapters perform comparably to the more complex MoE models in extracting factual information from BERT and RoBERTa while eliminating the need for additional annotations. P-Adapters show between 12-26% absolute improvement in precision and 36-50% absolute improvement in consistency over a baseline of only using natural language queries. Finally, we investigate what makes P-Adapters successful and conclude that a significant factor is access to the LLM's embeddings of the original natural language prompt, particularly the subject of the entity pair being queried.

Key facts. Cited by 22 papers in the map (data through 7 Oct 2026). Placed in MoE large language models, one of 12 directions in Mixture-of-experts. Builds on 30 of its 38 references that are in the map. First posted on arXiv 14 Oct 2021.

Builds on

30 of 38 references.

References · 30

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  3. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  4. 2013Intriguing properties of neural networkscited by 5,114
  5. 2019Parameter-Efficient Transfer Learning for NLPcited by 4,195
  6. 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
  7. 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
  8. 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,222
  9. 2019Language Models as Knowledge Bases?cited by 1,922
  10. 2021BitFit: Simple Parameter-efficient Fine-tuning for Transformer-based Masked Language-modelscited by 1,234
  11. 2019How Can We Know What Language Models Know?cited by 953
  12. 2021GPT Understands, Toocited by 715
18 more
  1. 2017Adversarial Examples for Evaluating Reading Comprehension Systemscited by 568
  2. 2018Generating Natural Language Adversarial Examplescited by 422
  3. 2021Learning How to Ask: Querying LMs with Mixtures of Soft Promptscited by 376
  4. 2021Measuring and Improving Consistency in Pretrained Language Modelscited by 361
  5. 2017Certifying Some Distributional Robustness with Principled Adversarial Trainingcited by 333
  6. 2017Synthetic and Natural Noise Both Break Neural Machine Translationcited by 304
  7. 2021Factual Probing Is [MASK]: Learning vs. Learning to Recallcited by 291
  8. 2018Adversarial Example Generation with Syntactically Controlled Paraphrase Networkscited by 282
  9. 2019Negated and Misprimed Probes for Pretrained Language Models: Birds Can Talk, But Cannot Flycited by 240
  10. 2018A Simple Method for Commonsense Reasoningcited by 223
  11. 2019Commonsense Knowledge Mining from Pretrained Modelscited by 189
  12. 2021Knowledgeable or Educated Guess? Revisiting Language Models as Knowledge Basescited by 107
  13. 2019E-BERT: Efficient-Yet-Effective Entity Embeddings for BERTcited by 96
  14. 2021BERTese: Learning to Speak to BERTcited by 82
  15. 2020Robust Encodings: A Framework for Combating Adversarial Typoscited by 58
  16. 2018Training verified learners with learned verifierscited by 50
  17. 2021Swords: A Benchmark for Lexical Substitution with Improved Data Coverage and Qualitycited by 13
  18. 2021Static Embeddings as Efficient Knowledge Bases?cited by 11

Built on by

Cited by year

Citing papers per year: 2022: 5; 2023: 10; 2024: 6; 2025: 1.

22 papers.

Sort:

By area:

  1. 2023LM vs LM: Detecting Factual Errors via Cross Examinationcited by 155
  2. 2023GeoLLM: Extracting Geospatial Knowledge from Large Language Modelscited by 62
  3. 2022Measuring Reliability of Large Language Models through Semantic Consistencycited by 38
  4. 2023Two Failures of Self-Consistency in the Multi-Step Reasoning of LLMscited by 36
  5. 2023Give Me the Facts! A Survey on Factual Knowledge Probing in Pre-trained Language Modelscited by 32
  6. 2023Predicting Question-Answering Performance of Large Language Models through Semantic Consistencycited by 28
  7. 2022BertNet: Harvesting Knowledge Graphs with Arbitrary Relations from Pretrained Language Modelscited by 20
  8. 2022Factual Consistency of Multilingual Pretrained Language Modelscited by 15
  9. 2023Semantic Consistency for Assuring Reliability of Large Language Modelscited by 15
  10. 2025Improving Consistency in Large Language Models through Chain of Guidancecited by 13
  11. 2023Understanding Finetuning for Factual Knowledge Extraction from Language Modelscited by 12
  12. 2023One Model for All Domains: Collaborative Domain-Prefix Tuning for Cross-Domain NERcited by 11
10 more
  1. 2024MM-R3: On (In-)Consistency of Vision-Language Models (VLMs)cited by 10
  2. 2024Towards Reliable Latent Knowledge Estimation in LLMs: Zero-Prompt Many-Shot Based Factual Knowledge Extractioncited by 6
  3. 2022SPE: Symmetrical Prompt Enhancement for Fact Probingcited by 5
  4. 2022PALT: Parameter-Lite Transfer of Language Models for Knowledge Graph Completioncited by 3
  5. 2023Measuring the Knowledge Acquisition-Utilization Gap in Pretrained Language Modelscited by 3
  6. 2024Surprisingly Fragile: Assessing and Addressing Prompt Instability in Multimodal Foundation Modelscited by 3
  7. 2023Document-Level In-Context Few-Shot Relation Extraction via Pre-Trained Language Modelscited by 2
  8. 2024UniArk: Improving Generalisation and Consistency for Factual Knowledge Extraction through Debiasingcited by 2
  9. 2024CoRA: Optimizing Low-Rank Adaptation with Common Subspace of Large Language Modelscited by 2
  10. 2024Enhancing Fact Retrieval in PLMs through Truthfulnesscited by 1

Similar, not cited

Close in wording, no citation either way

  1. 2024Generative Adapter: Contextualizing Language Models in Parameters with A Single Forward Pass
  2. 2024Your Mixture-of-Experts LLM Is Secretly an Embedding Model For Free
  3. 2024Prompt-Aware Adapter: Towards Learning Adaptive Visual Tokens for Multimodal Large Language Models
  4. 2024A Survey on Mixture of Experts in Large Language Models
  5. 2022MoEBERT: from BERT to Mixture-of-Experts via Importance-Guided Adaptation
  6. 2024Where is the answer? Investigating Positional Bias in Language Model Knowledge Extraction
  7. 2023Bidirectional Attention as a Mixture of Continuous Word Experts
  8. 2025L-MoE: End-to-End Training of a Lightweight Mixture of Low-Rank Adaptation Experts