Introduction
Pre-trained Language Models (PLMs) like BERT serve as the foundation for modern Natural Language Processing. However, they often struggle with specific factual or entity-related knowledge, such as identifying complex relationships between entities. Existing solutions typically involve expensive retraining or external adapters that can introduce noise and degrade the model's original reasoning capabilities.
This paper introduces the Knowledge Enhancement Filtering Framework (KEFF), a "plug-and-play" framework designed to boost the factual knowledge of frozen PLMs without retraining. KEFF identifies and repurposes "redundant bits" within the model's own embedding space, achieving state-of-the-art performance on entity-related tasks while significantly reducing computational costs.
Methodology
The KEFF framework consists of two primary components: Knowledge Enhancement (KE) and a Knowledge Enhancement Filter (KEF).
Knowledge Enhancement (KE)
The researchers observed that PLM embedding spaces contain "redundant bits"—dimensions with very small absolute values that have negligible impact on performance. KEFF utilizes a small, trainable network ($H$) to map entity-specific knowledge directly into these redundant bits. This allows the model to incorporate additional information without distorting its base representations. To identify these bits, a Neuron Clipping technique iteratively prunes dimensions to find the most redundant parts of the embedding space.
Knowledge Enhancement Filter (KEF)
To mitigate the "noise" often introduced by external knowledge, KEFF includes a gatekeeper module. This single-layer classifier predicts whether the enhanced embedding will improve the model's output for a specific token. If the filter's confidence is low, the model defaults to its original state, ensuring selective and beneficial enhancement.
Experimental Evaluation
The framework was evaluated on several entity-driven benchmarks:
- FewRel 1.0 & 2.0: Few-shot relationship classification.
- Wiki80: Large-scale relation classification from Wikipedia.
- Wiki-ET: Entity typing with 68 different types.
- Wiki20M: External knowledge base for training.
Results and Discussion
KEFF achieved superior performance, reaching the highest F1-scores across all evaluated tasks. On the FewRel 2.0 dataset, it showed a significant improvement of up to 0.75 over baselines.
Key findings include:
- Efficiency: The framework reduced computational costs by 1.7x to 2.5x compared to state-of-the-art approaches due to its simple affine transformation architecture.
- Competitive Performance: A BERT-base model with KEFF (88.01 F1 on Wiki80) outperformed much larger models like Llama 3.1-8B (42.43 F1) and Qwen2.5-72B (66.48 F1) on specific entity relationship tasks when used without fine-tuning.
- Selective Enhancement: The KEF module proved crucial in acknowledging that base model reasoning is sometimes superior to noisy knowledge injection.
Conclusion
KEFF demonstrates that factual knowledge can be efficiently injected into frozen PLMs by leveraging redundant embedding dimensions. While currently focused on encoder-only models like BERT, future work will explore adapting these "redundant bit" insights for the multi-billion parameter decoder-only models that currently dominate the field.
Summary updated