PEK: A Parameter-Efficient Framework for Knowledge-Grounded Dialogue Generation

Pan Yang, Dandan Song, Zhijing Wu, Yanru Zhou

Introduction

Knowledge-grounded dialogue (KGD) tasks require Large Language Models (LLMs) to generate responses that are not only fluent but also factually accurate by referencing external knowledge sources like Wikipedia or Knowledge Graphs (KGs). However, full fine-tuning of these models is computationally expensive and memory-intensive. While Parameter-Efficient Fine-Tuning (PEFT) methods like LoRA reduce these costs, they often struggle to maintain the expressive capacity needed for complex knowledge integration.

The PEK (Parameter-Efficient Knowledge-grounded) framework addresses these challenges by introducing a novel rank-selection method and a robust attention mechanism, achieving superior performance while training only approximately 2% of the model's parameters.

The PEK Framework

The PEK framework integrates external knowledge into a pre-trained language model (PLM) using two main components: Threshold LoRA (T-LoRA) for efficient weight adaptation and Geometric Mean Weighted Attention for precise knowledge fusion.

The PEK architecture integrates T-LoRA layers and a knowledge fusion module with geometric mean attention.

Threshold LoRA (T-LoRA)

Standard LoRA applies a fixed rank $r$ across all layers, which may lead to redundancy in some layers and insufficient capacity in others. T-LoRA utilizes Singular Value Decomposition (SVD) to analyze the information density of each weight matrix. By applying a threshold $\lambda$ to the singular values, the framework automatically determines the optimal rank for each matrix, ensuring that parameters are allocated where they are most needed.

Geometric Mean Weighted Attention

Integrating Knowledge Graphs often introduces noise, as many retrieved triplets may be irrelevant to the current dialogue context. To mitigate this, PEK employs a Geometric Mean Weighted Attention mechanism. Unlike standard attention, which uses an arithmetic mean or simple dot product, this module computes separate scores for the head entity, relation, and tail entity of a triplet.

The Geometric Mean Weighted Attention mechanism filters irrelevant knowledge by requiring all components of a triplet to align with the context.

By taking the geometric mean of these scores, the mechanism acts as a strict filter. If any single component (e.g., the relation) has a low relevance score, the entire triplet's influence is significantly reduced. This "veto" effect ensures that only highly relevant knowledge is fused into the model's hidden states.

Experimental Results

The framework was evaluated on the Wizard of Wikipedia (WoW) and CMU_DoG datasets using DialoGPT-large as the backbone.

Performance and Efficiency

PEK demonstrated significant improvements over both full fine-tuning and standard LoRA. On the WoW "Seen" test set, PEK achieved a BLEU-4 score of 6.1, compared to 5.8 for full fine-tuning and 5.5 for LoRA. Remarkably, these results were achieved by training only 15.9 million parameters—roughly 2% of the total model size.

Human Evaluation

Human assessments confirmed the quantitative findings. Evaluators rated PEK higher in terms of "Context Coherence" and "Knowledge Relevance," suggesting that the geometric mean filtering effectively reduces hallucinations and improves the factual grounding of the generated dialogue.

Conclusion and Future Work

PEK proves that parameter-efficient methods can outperform full fine-tuning in knowledge-intensive tasks by intelligently managing model capacity and filtering external noise. Future work may explore dynamic rank allocation that adapts during the training process and more sophisticated graph embedding techniques to handle complex, asymmetric relationships within knowledge graphs.

Summary updated

BibTeX
@inproceedings{yang2024pek,
  author = {Pan Yang and Dandan Song and Zhijing Wu and Yanru Zhou},
  title = {{PEK: A Parameter-Efficient Framework for Knowledge-Grounded Dialogue Generation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.findings-acl.550},
}
Figure