Knowledgeable Preference Alignment for LLMs in Domain-specific Question Answering
Yichi Zhang, Zhuo Chen, Yin Fang, Yanxi Lu, Fangming Li, Wen Zhang, Huajun Chen
TL;DR
This work tackles domain-specific QA by aligning LLM preferences with human expectations through Knowledgeable Preference Alignment (KnowPAT). It introduces two knowledge-aware preference sets (style and knowledge) and a novel adaptive alignment loss to jointly optimize user-friendly responses and prudent use of retrieved KB content. Evaluations on CPQA and RJUA-QA show KnowPAT outperforms 15 baselines across traditional and model-based metrics, with positive human judgments and robust knowledge retention. The approach offers a practical path to deploying KB-enabled LLMs in industry, balancing discourse quality and factual grounding while mitigating irrelevant or harmful outputs.
Abstract
Deploying large language models (LLMs) to real scenarios for domain-specific question answering (QA) is a key thrust for LLM applications, which poses numerous challenges, especially in ensuring that responses are both accommodating to user requirements and appropriately leveraging domain-specific knowledge bases. They are the two major difficulties for LLM application as vanilla fine-tuning falls short of addressing. Combining these requirements, we conceive of them as the requirement for the model's preference to be harmoniously aligned with humans'. Thus, we introduce Knowledgeable Preference AlignmenT (KnowPAT), which constructs two kinds of preference sets to tackle the two issues. Besides, we design a new alignment objective to align the LLM preference with different human preferences uniformly, aiming to optimize LLM performance in real-world, domain-specific QA settings. Adequate experiments and comprehensive comparisons with 15 baseline methods illustrate that our KnowPAT is a superior pipeline for real-scenario domain-specific QA with LLMs.
