Back to search

Nanyang Technological University

Generating high-quality queries to enhance large language model (LLM) performance

Abstract

dc:description.abstract

Large Language Models have demonstrated strong generative capabilities across various tasks. Within the Retrieval Augmented Generation framework, they have enhanced accuracy and the effectiveness of factual responses. However, the mismatch between the original question and the knowledge base recall can lead to deviations in the retrieved data, thus limiting the accuracy of LLM-generated results. To address this issue, this paper proposes a set of high quality query generation and adaptive inference optimization frameworks for RAG, aiming to Generating High Quality Queries to Enhance LLM Performance. This paper constructs a query generator based on T5, transforming user questions into more retrieval-friendly query expressions. A two-stage training approach is employed. Stage-1 supervised bootstrapping training achieves stable initialization, followed by KTO preference alignment optimization. To characterize the strength of the gains from query generation, this paper further proposes Weighted-KTO, mapping the relative improvement in retrieval metrics to sample weights. In the inference phase, this paper assembles the trained query generator into an end-to-end RAG process and designs three strategies to optimize retrieval results: Query-Fused Retrieval, Cross-Encoder Reranking, and Dynamic Cutoff Reranking, to improve evidence quality and reduce interference. A Router mechanism is introduced to adaptively select between baseline, rewrite-only, and hybrid paths at the sample level. Experiments on HotpotQA, TriviaQA, and government domain datasets demonstrate that this framework can improve the quality of retrieval evidence and enhance downstream question-answering performance, and exhibits good adaptability across different task distributions.

Degree

thesis:*
College dc:contributor.school
School of Electrical and Electronic Engineering
Grantor dc:publisher
Nanyang Technological University
Year dc:date.issued
2026

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Wang, Huanqi
Advisor dc:contributor.supervisor
  • Mao Kezhi

Subjects

dc:subject × 1

Rights

Language dc:language.iso
en

Identifiers

dc:identifier.*
Handle dc:identifier.uri
https://hdl.handle.net/10356/210831

Chain of custody

source
Harvested from
Nanyang Technological University
Base URL
dr.ntu.edu.sg/oai/request
Last updated
2026-11-27
Source record
OAI-PMH GetRecord
related terms
citation

Wang, Huanqi. Generating high-quality queries to enhance large language model (LLM) performance. Nanyang Technological University, 2026. https://hdl.handle.net/10356/210831