Question Answering as Programming for Solving Time-Sensitive Questions

Xinyu Zhu, Cheng Yang, Bei Chen, Siheng Li, Jian-Guang Lou +1 more
5/23/2023
cs.CL

Official code: TianHongZXY/qaap (12 stars, last commit 2023-12-18).

Abstract

Question answering plays a pivotal role in human daily life because it involves our acquisition of knowledge about the world. However, due to the dynamic and ever-changing nature of real-world facts, the answer can be completely different when the time constraint in the question changes. Recently, Large Language Models (LLMs) have shown remarkable intelligence in question answering, while our experiments reveal that the aforementioned problems still pose a significant challenge to existing LLMs. This can be attributed to the LLMs' inability to perform rigorous reasoning based on surface-level text semantics. To overcome this limitation, rather than requiring LLMs to directly answer the question, we propose a novel approach where we reframe the $\textbf{Q}$uestion $\textbf{A}$nswering task $\textbf{a}$s $\textbf{P}$rogramming ($\textbf{QAaP}$). Concretely, by leveraging modern LLMs' superior capability in understanding both natural language and programming language, we endeavor to harness LLMs to represent diversely expressed text as well-structured code and select the best matching answer from multiple candidates through programming. We evaluate our QAaP framework on several time-sensitive question answering datasets and achieve decent improvement, up to $14.5$% over strong baselines. Our codes and data are available at https://github.com/TianHongZXY/qaap

View on arXivView PDF

Code Implementations(1)

TianHongZXY/qaapOfficial100%

[EMNLP 2023] Question Answering as Programming for Solving Time-Sensitive Questions

121PythonMay 18, 20232 years ago
emnlpgptlanguage-modellarge-language-modelsllm+8 more

Similar Papers

Cite this paper

@article{zhu2023question,
  title  = {Question Answering as Programming for Solving Time-Sensitive Questions},
  author = {Xinyu Zhu and Cheng Yang and Bei Chen and Siheng Li and Jian-Guang Lou and Yujiu Yang},
  year   = {2023},
  eprint = {2305.14221},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.14221v3}
}

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/2305.14221.svg)](https://codeofpaper.com/paper/2305.14221)

Discussion