This paper, presented at ACL 2023, introduces the Knowledgeable Parameter Efficient Tuning (KPE) network. It offers a clever way to infuse large language models with external commonsense knowledge using a tiny fraction of the usual computational cost, outperforming much larger, fully fine-tuned models on difficult reasoning tasks.
The Challenge of Commonsense Reasoning
While Pre-trained Language Models (PLMs) like GPT or RoBERTa are powerful, they often struggle with "common sense"—the basic understanding of the world that humans take for granted. Existing solutions usually fall into two camps: full fine-tuning, which is prohibitively expensive for billion-parameter models, and Graph Neural Networks (GNNs), which require expert design and often ignore rich, unstructured textual context.
The KPE Framework
The core of the paper is the Knowledgeable Adapter. Instead of updating the billions of weights in a PLM, the authors freeze the main model and attach a small, trainable "plugin" to each layer. This approach allows the model to retain its general linguistic knowledge while specializing in commonsense reasoning through external data.
Key Components
- Dual Knowledge Extraction: KPE retrieves knowledge from GenericsKB (a large set of "generic" facts). Crucially, it retrieves knowledge based on both specific entities and the entire query string to capture broader situational context.
- Parameter-Sharing Adapter: To keep the footprint small, the adapter layers share parameters. It uses a gating mechanism to filter out irrelevant information from the PLM and an attention mechanism to fuse the external knowledge with the question context.
- Auxiliary Training Tasks: To force the adapter to effectively "learn" the knowledge, two extra tasks are used during training: Span Masking (predicting hidden words in knowledge sentences) and Relation Discrimination (identifying the correct relationship between entities, such as distinguishing "made of" from "used for").
Experimental Evaluation
The researchers evaluated KPE on two primary benchmarks: OpenbookQA (elementary science questions) and CommonsenseQA 2.0 (CSQA2) (a difficult binary classification dataset designed to be "AI-hard"). They utilized RoBERTa-large for OpenbookQA and the massive Unicorn-11B for CSQA2.
Key Results
- Extreme Efficiency: On the 11-billion parameter Unicorn model, KPE only trained 2.1 million parameters—approximately 0.019% of the total model.
- Superior Performance: Despite the tiny parameter count, KPE outperformed other parameter-efficient methods like LoRA and Prefix Tuning. It also beat complex GNN-based models like QA-GNN on OpenbookQA.
- CSQA2 Boost: KPE achieved a 12.5% improvement over the baseline on the challenging CSQA2 dev set.
Insights and Future Directions
The authors found that converting structured knowledge into natural language sentences is highly effective, as it allows the model to use its existing linguistic strengths to "read" the facts. Furthermore, query-related knowledge proved more impactful than simple entity-related knowledge, suggesting that understanding the "situation" is more important than just identifying objects.
While KPE is dependent on the quality of the underlying PLM and the retrieval step, it proves that massive models don't always need full retraining to gain new capabilities. A small, knowledgeable "guide" can efficiently navigate external knowledge bases to solve complex reasoning problems.
Summary updated