Prompting is not Enough: Exploring Knowledge Integration and Controllable Generation

Tingjia Shen, Hao Wang, Chuan Qin, Ruijun Sun, Yang Song +3 more
5/26/2025
2 citations
cs.CLcs.AI

Official code: USTC-StarTeam/GenKI (1 star, Python, last commit 2025-05-09).

Abstract

Open-domain question answering (OpenQA) represents a cornerstone in natural language processing (NLP), primarily focused on extracting answers from unstructured textual data. With the rapid advancements in Large Language Models (LLMs), LLM-based OpenQA methods have reaped the benefits of emergent understanding and answering capabilities enabled by massive parameters compared to traditional methods.

Show full abstract

However, most of these methods encounter two critical challenges: how to integrate knowledge into LLMs effectively and how to adaptively generate results with specific answer formats for various task situations. To address these challenges, we propose a novel framework named GenKI, which aims to improve the OpenQA performance by exploring Knowledge Integration and controllable Generation on LLMs simultaneously. Specifically, we first train a dense passage retrieval model to retrieve associated knowledge from a given knowledge base. Subsequently, we introduce a novel knowledge integration model that incorporates the retrieval knowledge into instructions during fine-tuning to intensify the model. Furthermore, to enable controllable generation in LLMs, we leverage a certain fine-tuned LLM and an ensemble based on text consistency incorporating all coherence, fluency, and answer format assurance. Finally, extensive experiments conducted on the TriviaQA, MSMARCO, and CMRC2018 datasets, featuring diverse answer formats, have demonstrated the effectiveness of GenKI with comparison of state-of-the-art baselines. Moreover, ablation studies have disclosed a linear relationship between the frequency of retrieved knowledge and the model's ability to recall knowledge accurately against the ground truth. Our code of GenKI is available at https://github.com/USTC-StarTeam/GenKI

View on arXivView PDF

Code Implementations(1)

10Python, ShellMay 9, 20251 years ago

Similar Papers

Cite this paper

@article{shen2025prompting,
  title  = {Prompting is not Enough: Exploring Knowledge Integration and Controllable Generation},
  author = {Tingjia Shen and Hao Wang and Chuan Qin and Ruijun Sun and Yang Song and Defu Lian and Hengshu Zhu and Enhong Chen},
  year   = {2025},
  eprint = {2505.19660},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.19660v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.19660.svg)](https://codeofpaper.com/paper/2505.19660)

Discussion