wiqiRBERT: lightweight relation prediction via confidence-aware focused retraining
摘要
Relation prediction is a key task in knowledge graph completion that involves inferring the correct relation between a given head–tail entity pair. While transformer-based models such as KG-BERT leverage semantic representations effectively, they often overfit and fail to capitalize on misclassified or low-confidence instances. To address these limitations, we propose wiqiRBERT, a confidence-aware focused retraining framework that selectively fine-tunes the model using two types of challenging examples: misclassified triples and those with low prediction confidence. This post hoc optimization strategy, integrated with mixed-precision training and robust checkpoint control, enhances performance without architectural modifications. We evaluate wiqiRBERT on three benchmark datasets: WN18RR, WN18, and FB15k-237. Experimental results demonstrate consistent improvements over strong baselines. Notably, wiqiRBERT achieves state-of-the-art results across all metrics on WN18RR, superior MRR and Hits@3 on WN18, and outperforms prior methods on Hits@3 in the more challenging FB15k-237 dataset. These findings confirm the efficacy of confidence-driven retraining as a lightweight yet impactful enhancement for BERT-based relation prediction models.