Question Answering as Programming for Solving Time-Sensitive Questions
Not on the map. Why?
Abstract (arXiv)
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 Question Answering task as Programming (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
Key facts. Cited by 14 papers in the map (data through 14 Oct 2026). Builds on 27 of its 38 references that are in the map. First posted on arXiv 23 May 2023.
Builds on
27 of 38 references.
References · 27
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,374
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,182
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,754
- 2022Least-to-Most Prompting Enables Complex Reasoning in Large Language Modelscited by 1,407
- 2020Leveraging Passage Retrieval with Generative Models for Open Domain Question Answeringcited by 1,210
- 2022Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Taskscited by 1,076
- 2021Show Your Work: Scratchpads for Intermediate Computation with Language Modelscited by 886
15 more
- 2023CRITIC: Large Language Models Can Self-Correct with Tool-Interactive Critiquingcited by 783
- 2021Did Aristotle Use a Laptop? A Question Answering Benchmark with Implicit Reasoning Strategiescited by 743
- 2022PAL: Program-aided Language Modelscited by 652
- 2023How Language Model Hallucinations Can Snowballcited by 311
- 2022Generate rather than Retrieve: Large Language Models are Strong Context Generatorscited by 298
- 2023Faithful Chain-of-Thought Reasoningcited by 288
- 2022RARR: Researching and Revising What Language Models Say, Using Language Modelscited by 287
- 2021A Dataset for Answering Time-Sensitive Questionscited by 154
- 2020Detecting Hallucinated Content in Conditional Neural Sequence Generationcited by 152
- 2021Question Answering Over Temporal Knowledge Graphscited by 99
- 2023Weakly-Supervised Concealed Object Segmentation with SAM-based Pseudo Labeling and Multi-scale Feature Groupingcited by 92
- 2022Solving Math Word Problems via Cooperative Reasoning induced Language Modelscited by 77
- 2021Complex Temporal Question Answering on Knowledge Graphscited by 69
- 2019TEQUILA: Temporal Question Answering over Knowledge Basescited by 47
- 2022Zero-Shot Learners for Natural Language Understanding via a Unified Multiple Choice Perspectivecited by 14
Built on by
Citing papers per year: 2023: 2; 2024: 6; 2025: 5; 2026: 1.
14 papers.
Sort:
By area:
- 2023Encouraging Divergent Thinking in Large Language Models through Multi-Agent Debatecited by 1,011
- 2023How Do Large Language Models Capture the Ever-changing World Knowledge? A Review of Recent Advancescited by 33
- 2024Living in the Moment: Can Large Language Models Grasp Co-Temporal Reasoning?cited by 25
- 2024HoLLMwood: Unleashing the Creativity of Large Language Models in Screenwriting via Role Playingcited by 22
- 2024Timo: Towards Better Temporal Reasoning for Language Modelscited by 21
- 2025It's High Time: A Survey of Temporal Question Answeringcited by 14
- 2025RAG Meets Temporal Graphs: Time-Sensitive Modeling and Retrieval for Evolving Knowledgecited by 13
- 2024Temporal Knowledge Graph Question Answering: A Surveycited by 9
- 2024ChroKnowledge: Unveiling Chronological Knowledge of Language Models in Multiple Domainscited by 8
- 2025Counterfactual-Consistency Prompting for Relative Temporal Understanding in Large Language Modelscited by 5
- 2026Right Knowledge, Wrong Answer: Characterizing Parametric Temporal Conflict in Open-Weight Language Modelscited by 2
- 2025NeSTR: A Neuro-Symbolic Abductive Framework for Temporal Reasoning in Large Language Modelscited by 1
- 2026Right Knowledge, Wrong Answer: Characterizing Parametric Temporal Conflict in Open-Weight Language Models18 Jun 2026
- 2025NeSTR: A Neuro-Symbolic Abductive Framework for Temporal Reasoning in Large Language Models8 Dec 2025
- 2025Structured yet Bounded Temporal Understanding in Large Language Models19 Oct 2025
- 2025RAG Meets Temporal Graphs: Time-Sensitive Modeling and Retrieval for Evolving Knowledge15 Oct 2025
- 2025It's High Time: A Survey of Temporal Question Answering26 May 2025
- 2025Counterfactual-Consistency Prompting for Relative Temporal Understanding in Large Language Models17 Feb 2025
- 2024ChroKnowledge: Unveiling Chronological Knowledge of Language Models in Multiple Domains13 Oct 2024
- 2024An Energy-based Model for Word-level AutoCompletion in Computer-aided Translation29 Jul 2024
- 2024Timo: Towards Better Temporal Reasoning for Language Models20 Jun 2024
- 2024Temporal Knowledge Graph Question Answering: A Survey20 Jun 2024
- 2024HoLLMwood: Unleashing the Creativity of Large Language Models in Screenwriting via Role Playing17 Jun 2024
- 2024Living in the Moment: Can Large Language Models Grasp Co-Temporal Reasoning?13 Jun 2024
- 2023Encouraging Divergent Thinking in Large Language Models through Multi-Agent Debatecited by 1,011
- 2024Living in the Moment: Can Large Language Models Grasp Co-Temporal Reasoning?cited by 25
- 2024Timo: Towards Better Temporal Reasoning for Language Modelscited by 21
- 2025Counterfactual-Consistency Prompting for Relative Temporal Understanding in Large Language Modelscited by 5
- 2025NeSTR: A Neuro-Symbolic Abductive Framework for Temporal Reasoning in Large Language Modelscited by 1
- 2025NeSTR: A Neuro-Symbolic Abductive Framework for Temporal Reasoning in Large Language Models8 Dec 2025
- 2025Counterfactual-Consistency Prompting for Relative Temporal Understanding in Large Language Models17 Feb 2025
- 2024Timo: Towards Better Temporal Reasoning for Language Models20 Jun 2024
- 2024Living in the Moment: Can Large Language Models Grasp Co-Temporal Reasoning?13 Jun 2024
- 2023Encouraging Divergent Thinking in Large Language Models through Multi-Agent Debate30 May 2023
- 2023How Do Large Language Models Capture the Ever-changing World Knowledge? A Review of Recent Advancescited by 33
- 2024HoLLMwood: Unleashing the Creativity of Large Language Models in Screenwriting via Role Playingcited by 22
- 2025It's High Time: A Survey of Temporal Question Answeringcited by 14
- 2024Temporal Knowledge Graph Question Answering: A Surveycited by 9
- 2024ChroKnowledge: Unveiling Chronological Knowledge of Language Models in Multiple Domainscited by 8
- 2026Right Knowledge, Wrong Answer: Characterizing Parametric Temporal Conflict in Open-Weight Language Modelscited by 2
- 2024An Energy-based Model for Word-level AutoCompletion in Computer-aided Translationcited by 0
- 2025Structured yet Bounded Temporal Understanding in Large Language Modelscited by 0
- 2026Right Knowledge, Wrong Answer: Characterizing Parametric Temporal Conflict in Open-Weight Language Models18 Jun 2026
- 2025Structured yet Bounded Temporal Understanding in Large Language Models19 Oct 2025
- 2025It's High Time: A Survey of Temporal Question Answering26 May 2025
- 2024ChroKnowledge: Unveiling Chronological Knowledge of Language Models in Multiple Domains13 Oct 2024
- 2024An Energy-based Model for Word-level AutoCompletion in Computer-aided Translation29 Jul 2024
- 2024Temporal Knowledge Graph Question Answering: A Survey20 Jun 2024
- 2024HoLLMwood: Unleashing the Creativity of Large Language Models in Screenwriting via Role Playing17 Jun 2024
- 2023How Do Large Language Models Capture the Ever-changing World Knowledge? A Review of Recent Advances11 Oct 2023
Similar, not cited
Close in wording, no citation either way
- 2023Unlocking Temporal Question Answering for Large Language Models with Tailor-Made Reasoning Logic
- 2025T2: An Adaptive Test-Time Scaling Strategy for Contextual Question Answering
- 2026AdapTime: Enabling Adaptive Temporal Reasoning in Large Language Models
- 2026Exploring the Meta-level Reasoning of Large Language Models via a Tool-based Multi-hop Tabular Question Answering Task
- 2026Robustness and Reasoning Fidelity of Large Language Models in Long-Context Code Question Answering
- 2024UnSeenTimeQA: Time-Sensitive Question-Answering Beyond LLMs' Memorization
- 2025On the Temporal Question-Answering Capabilities of Large Language Models Over Anonymized Data
- 2024MRAG: A Modular Retrieval Framework for Time-Sensitive Question Answering