arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.02176cs.CL
收藏

EEE-QA:探索有效且高效的问答表示

EEE-QA: Exploring Effective and Efficient Question-Answer Representations

School of Informatics, University of Edinburgh(爱丁堡大学信息学院)

Zhanghao Hu, Yijun Yang, Junjie Xu, Yifu Qiu, Pinzhen Chen

AI总结:

本文提出 EEE-QA,通过改进池化表示及问题与所有候选答案的联合嵌入,在保持性能的同时显著降低内存占用并提升消费级 GPU 上的推理吞吐量。

摘要:

当前的问答方法依赖于 RoBERTa 等预训练语言模型(PLM)。本工作对现有的问答编码惯例提出挑战,并探索更精细的表示。我们首先测试多种池化方法,并将其与使用句首 token 作为问题表示的做法进行比较,以获得更好的质量。接下来,我们探索将所有候选答案与问题同时嵌入的可能性。这使得答案选项之间能够相互参照,并通过减少内存使用提高推理吞吐量。尽管这些方法简单且有效,但在当前框架中尚未得到广泛研究。我们使用不同的 PLM 进行实验,并分别测试整合与不整合知识图谱的情况。结果证明,所提出技术具有内存效率,且性能损失很小。在实际应用中,通过允许使用显著更大的批量大小,我们的工作在消费级 GPU 上将吞吐量提升了 38–100%,速度提升了 26–65%。本工作向社区传达了一个信息:自然语言处理中的问答任务在表示质量和效率两方面都具有富有前景的方向。

英文摘要:

Current approaches to question answering rely on pre-trained language models (PLMs) like RoBERTa. This work challenges the existing question-answer encoding convention and explores finer representations. We begin with testing various pooling methods compared to using the begin-of-sentence token as a question representation for better quality. Next, we explore opportunities to simultaneously embed all answer candidates with the question. This enables cross-reference between answer choices and improves inference throughput via reduced memory usage. Despite their simplicity and effectiveness, these methods have yet to be widely studied in current frameworks. We experiment with different PLMs, and with and without the integration of knowledge graphs. Results prove that the memory efficacy of the proposed techniques with little sacrifice in performance. Practically, our work enhances 38-100% throughput with 26-65% speedups on consumer-grade GPUs by allowing for considerably larger batch sizes. Our work sends a message to the community with promising directions in both representation quality and efficiency for the question-answering task in natural language processing.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑