Optimizing answer selection in community question answering through pre-trained and large language models

Community Question Answering (CQA) has become increasingly prevalent in recent years. However, the large volume of answers poses a challenge for users in identifying the most pertinent ones, thereby making answer selection a vital subtask within CQA. In this paper, we introduce the Question-Answer cross attention networks (QAN) with pre-trained models for improved answer selection and leverage large language models (LLMs) for enhanced answer selection with knowledge augmentation. Specifically, we utilize the BERT model as the encoder layer to pre-train on question subjects, question bodies, and answers separately. The cross attention mechanism is then used to identify the most relevant answers for different questions. Our experimental results demonstrate that the QAN model attains state-of-the-art performance on the SemEval2015 and SemEval2017 datasets. Additionally, we use LLMs to generate external knowledge from questions and correct answers, enhancing the answer selection task. By optimizing the LLM prompts in various aspects, we found that incorporating external knowledge improves the correct answer selection rate on both the SemEval2015 and SemEval2017 datasets. Moreover, optimized prompts enable LLMs to select the correct answers for a greater number of questions.

Authors

Institutions

Publication Details

Published
2024-09-30
DOI
https://doi.org/10.1117/12.3045190
Primary Topic
Expert finding and Q&A systems
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Optimizing answer selection in community question answering through pre-trained and large language models

Xinghang Hu
Expert finding and Q&A systems
article

Optimizing answer selection in community question answering through pre-trained and large language models

Xinghang Hu
article en

Abstract

Community Question Answering (CQA) has become increasingly prevalent in recent years. However, the large volume of answers poses a challenge for users in identifying the most pertinent ones, thereby making answer selection a vital subtask within CQA. In this paper, we introduce the Question-Answer cross attention networks (QAN) with pre-trained models for improved answer selection and leverage large language models (LLMs) for enhanced answer selection with knowledge augmentation. Specifically, we utilize the BERT model as the encoder layer to pre-train on question subjects, question bodies, and answers separately. The cross attention mechanism is then used to identify the most relevant answers for different questions. Our experimental results demonstrate that the QAN model attains state-of-the-art performance on the SemEval2015 and SemEval2017 datasets. Additionally, we use LLMs to generate external knowledge from questions and correct answers, enhancing the answer selection task. By optimizing the LLM prompts in various aspects, we found that incorporating external knowledge improves the correct answer selection rate on both the SemEval2015 and SemEval2017 datasets. Moreover, optimized prompts enable LLMs to select the correct answers for a greater number of questions.

Sichuan University (CN)
Quality Education
Openalex Percentile: Top 74%
Expert finding and Q&A systems
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.