P-Adapters: Robustly Extracting Factual Information from Language Models with Diverse Prompts
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
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2013Intriguing properties of neural networkscited by 5,114
- 2019Parameter-Efficient Transfer Learning for NLPcited by 4,195
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
- 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
- 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,222
- 2019Language Models as Knowledge Bases?cited by 1,922
- 2021BitFit: Simple Parameter-efficient Fine-tuning for Transformer-based Masked Language-modelscited by 1,234
- 2019How Can We Know What Language Models Know?cited by 953
- 2021GPT Understands, Toocited by 715
18 more
- 2017Adversarial Examples for Evaluating Reading Comprehension Systemscited by 568
- 2018Generating Natural Language Adversarial Examplescited by 422
- 2021Learning How to Ask: Querying LMs with Mixtures of Soft Promptscited by 376
- 2021Measuring and Improving Consistency in Pretrained Language Modelscited by 361
- 2017Certifying Some Distributional Robustness with Principled Adversarial Trainingcited by 333
- 2017Synthetic and Natural Noise Both Break Neural Machine Translationcited by 304
- 2021Factual Probing Is [MASK]: Learning vs. Learning to Recallcited by 291
- 2018Adversarial Example Generation with Syntactically Controlled Paraphrase Networkscited by 282
- 2019Negated and Misprimed Probes for Pretrained Language Models: Birds Can Talk, But Cannot Flycited by 240
- 2018A Simple Method for Commonsense Reasoningcited by 223
- 2019Commonsense Knowledge Mining from Pretrained Modelscited by 189
- 2021Knowledgeable or Educated Guess? Revisiting Language Models as Knowledge Basescited by 107
- 2019E-BERT: Efficient-Yet-Effective Entity Embeddings for BERTcited by 96
- 2021BERTese: Learning to Speak to BERTcited by 82
- 2020Robust Encodings: A Framework for Combating Adversarial Typoscited by 58
- 2018Training verified learners with learned verifierscited by 50
- 2021Swords: A Benchmark for Lexical Substitution with Improved Data Coverage and Qualitycited by 13
- 2021Static Embeddings as Efficient Knowledge Bases?cited by 11
Built on by
Citing papers per year: 2022: 5; 2023: 10; 2024: 6; 2025: 1.
22 papers.
Sort:
By area:
- 2023LM vs LM: Detecting Factual Errors via Cross Examinationcited by 155
- 2023GeoLLM: Extracting Geospatial Knowledge from Large Language Modelscited by 62
- 2022Measuring Reliability of Large Language Models through Semantic Consistencycited by 38
- 2023Two Failures of Self-Consistency in the Multi-Step Reasoning of LLMscited by 36
- 2023Give Me the Facts! A Survey on Factual Knowledge Probing in Pre-trained Language Modelscited by 32
- 2023Predicting Question-Answering Performance of Large Language Models through Semantic Consistencycited by 28
- 2022BertNet: Harvesting Knowledge Graphs with Arbitrary Relations from Pretrained Language Modelscited by 20
- 2022Factual Consistency of Multilingual Pretrained Language Modelscited by 15
- 2023Semantic Consistency for Assuring Reliability of Large Language Modelscited by 15
- 2025Improving Consistency in Large Language Models through Chain of Guidancecited by 13
- 2023Understanding Finetuning for Factual Knowledge Extraction from Language Modelscited by 12
- 2023One Model for All Domains: Collaborative Domain-Prefix Tuning for Cross-Domain NERcited by 11
10 more
- 2024MM-R3: On (In-)Consistency of Vision-Language Models (VLMs)cited by 10
- 2024Towards Reliable Latent Knowledge Estimation in LLMs: Zero-Prompt Many-Shot Based Factual Knowledge Extractioncited by 6
- 2022SPE: Symmetrical Prompt Enhancement for Fact Probingcited by 5
- 2022PALT: Parameter-Lite Transfer of Language Models for Knowledge Graph Completioncited by 3
- 2023Measuring the Knowledge Acquisition-Utilization Gap in Pretrained Language Modelscited by 3
- 2024Surprisingly Fragile: Assessing and Addressing Prompt Instability in Multimodal Foundation Modelscited by 3
- 2023Document-Level In-Context Few-Shot Relation Extraction via Pre-Trained Language Modelscited by 2
- 2024UniArk: Improving Generalisation and Consistency for Factual Knowledge Extraction through Debiasingcited by 2
- 2024CoRA: Optimizing Low-Rank Adaptation with Common Subspace of Large Language Modelscited by 2
- 2024Enhancing Fact Retrieval in PLMs through Truthfulnesscited by 1
- 2025Improving Consistency in Large Language Models through Chain of Guidance21 Feb 2025
- 2024Enhancing Fact Retrieval in PLMs through Truthfulness17 Oct 2024
- 2024MM-R3: On (In-)Consistency of Vision-Language Models (VLMs)7 Oct 2024
- 2024CoRA: Optimizing Low-Rank Adaptation with Common Subspace of Large Language Models31 Aug 2024
- 2024Surprisingly Fragile: Assessing and Addressing Prompt Instability in Multimodal Foundation Models26 Aug 2024
- 2024Towards Reliable Latent Knowledge Estimation in LLMs: Zero-Prompt Many-Shot Based Factual Knowledge Extraction19 Apr 2024
- 2024UniArk: Improving Generalisation and Consistency for Factual Knowledge Extraction through Debiasing1 Apr 2024
- 2023Predicting Question-Answering Performance of Large Language Models through Semantic Consistency2 Nov 2023
- 2023Give Me the Facts! A Survey on Factual Knowledge Probing in Pre-trained Language Models25 Oct 2023
- 2023Document-Level In-Context Few-Shot Relation Extraction via Pre-Trained Language Models17 Oct 2023
- 2023GeoLLM: Extracting Geospatial Knowledge from Large Language Models10 Oct 2023
- 2023Semantic Consistency for Assuring Reliability of Large Language Models17 Aug 2023
10 more
- 2023Measuring the Knowledge Acquisition-Utilization Gap in Pretrained Language Models24 May 2023
- 2023Two Failures of Self-Consistency in the Multi-Step Reasoning of LLMs23 May 2023
- 2023LM vs LM: Detecting Factual Errors via Cross Examination22 May 2023
- 2023Understanding Finetuning for Factual Knowledge Extraction from Language Models26 Jan 2023
- 2023One Model for All Domains: Collaborative Domain-Prefix Tuning for Cross-Domain NER25 Jan 2023
- 2022SPE: Symmetrical Prompt Enhancement for Fact Probing14 Nov 2022
- 2022Measuring Reliability of Large Language Models through Semantic Consistency10 Nov 2022
- 2022PALT: Parameter-Lite Transfer of Language Models for Knowledge Graph Completion25 Oct 2022
- 2022BertNet: Harvesting Knowledge Graphs with Arbitrary Relations from Pretrained Language Models28 Jun 2022
- 2022Factual Consistency of Multilingual Pretrained Language Models22 Mar 2022
- 2024MM-R3: On (In-)Consistency of Vision-Language Models (VLMs)cited by 10
- 2023LM vs LM: Detecting Factual Errors via Cross Examinationcited by 155
- 2023GeoLLM: Extracting Geospatial Knowledge from Large Language Modelscited by 62
- 2022Measuring Reliability of Large Language Models through Semantic Consistencycited by 38
- 2023Give Me the Facts! A Survey on Factual Knowledge Probing in Pre-trained Language Modelscited by 32
- 2023Predicting Question-Answering Performance of Large Language Models through Semantic Consistencycited by 28
- 2022BertNet: Harvesting Knowledge Graphs with Arbitrary Relations from Pretrained Language Modelscited by 20
- 2022Factual Consistency of Multilingual Pretrained Language Modelscited by 15
- 2023Semantic Consistency for Assuring Reliability of Large Language Modelscited by 15
- 2025Improving Consistency in Large Language Models through Chain of Guidancecited by 13
- 2023Understanding Finetuning for Factual Knowledge Extraction from Language Modelscited by 12
- 2023One Model for All Domains: Collaborative Domain-Prefix Tuning for Cross-Domain NERcited by 11
- 2024Towards Reliable Latent Knowledge Estimation in LLMs: Zero-Prompt Many-Shot Based Factual Knowledge Extractioncited by 6
12 most cited of 20 All 20 (JSON)
- 2025Improving Consistency in Large Language Models through Chain of Guidance21 Feb 2025
- 2024Enhancing Fact Retrieval in PLMs through Truthfulness17 Oct 2024
- 2024CoRA: Optimizing Low-Rank Adaptation with Common Subspace of Large Language Models31 Aug 2024
- 2024Surprisingly Fragile: Assessing and Addressing Prompt Instability in Multimodal Foundation Models26 Aug 2024
- 2024Towards Reliable Latent Knowledge Estimation in LLMs: Zero-Prompt Many-Shot Based Factual Knowledge Extraction19 Apr 2024
- 2024UniArk: Improving Generalisation and Consistency for Factual Knowledge Extraction through Debiasing1 Apr 2024
- 2023Predicting Question-Answering Performance of Large Language Models through Semantic Consistency2 Nov 2023
- 2023Give Me the Facts! A Survey on Factual Knowledge Probing in Pre-trained Language Models25 Oct 2023
- 2023Document-Level In-Context Few-Shot Relation Extraction via Pre-Trained Language Models17 Oct 2023
- 2023GeoLLM: Extracting Geospatial Knowledge from Large Language Models10 Oct 2023
- 2023Semantic Consistency for Assuring Reliability of Large Language Models17 Aug 2023
- 2023Measuring the Knowledge Acquisition-Utilization Gap in Pretrained Language Models24 May 2023
12 newest of 20 All 20 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2024Generative Adapter: Contextualizing Language Models in Parameters with A Single Forward Pass
- 2024Your Mixture-of-Experts LLM Is Secretly an Embedding Model For Free
- 2024Prompt-Aware Adapter: Towards Learning Adaptive Visual Tokens for Multimodal Large Language Models
- 2024A Survey on Mixture of Experts in Large Language Models
- 2022MoEBERT: from BERT to Mixture-of-Experts via Importance-Guided Adaptation
- 2024Where is the answer? Investigating Positional Bias in Language Model Knowledge Extraction
- 2023Bidirectional Attention as a Mixture of Continuous Word Experts
- 2025L-MoE: End-to-End Training of a Lightweight Mixture of Low-Rank Adaptation Experts