{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/towards-robust-temporal-reasoning-of-large","title":"Towards Robust Temporal Reasoning of Large Language Models via a Multi-Hop QA Dataset and Pseudo-Instruction Tuning","arxiv_id":"2311.09821","date":"2023-11-16","proceeding":null,"authors":["Qingyu Tan","Hwee Tou Ng","Lidong Bing"],"abstract":"Knowledge in the real world is being updated constantly. However, it is costly to frequently update large language models (LLMs). Therefore, it is crucial for LLMs to understand the concept of temporal knowledge. However, prior works on temporal question answering (TQA) did not emphasize multi-answer and multi-hop types of temporal reasoning. In this paper, we propose a complex temporal question-answering dataset Complex-TR that focuses on multi-answer and multi-hop temporal reasoning. Besides, we also propose a novel data augmentation strategy to improve the complex temporal reasoning capability and robustness of LLMs. We conducted experiments on multiple temporal QA datasets. Experimental results show that our method is able to improve LLMs' performance on temporal QA benchmarks by significant margins. Our code and data are released at: https://github.com/nusnlp/complex-tr.","url_abs":"https://arxiv.org/abs/2311.09821v2","url_pdf":"https://arxiv.org/pdf/2311.09821v2.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"towards-robust-temporal-reasoning-of-large","repo_url":"https://github.com/nusnlp/complex-tr","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"data-augmentation","task_name":"Data Augmentation"},{"task_slug":"question-answering","task_name":"Question Answering"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2311.09821","atlas_url":"https://app.syntology.ai/?focus=2311.09821","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2311.09821"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/nusnlp/complex-tr","reach":{"status":"ok"}}],"summary":{"ran":3,"ran_draft_wrong":1,"unverified":2},"by_repo_kind":{"official":{"samples":6,"ran":4,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":6,"samples":[{"code_sha256_prefix":"72ae17e5ad61f6cb","entry":"get_tokens","repo":"nusnlp/complex-tr","repo_kind":"official","path":"prompt_experiment/sem_metric/evaluate.py","file_url":"https://github.com/nusnlp/complex-tr/blob/HEAD/prompt_experiment/sem_metric/evaluate.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"72ae17e5ad61f6cb"}},{"code_sha256_prefix":"41e5ac23be97994b","entry":"make_qid_to_has_ans","repo":"nusnlp/complex-tr","repo_kind":"official","path":"prompt_experiment/sem_metric/evaluate.py","file_url":"https://github.com/nusnlp/complex-tr/blob/HEAD/prompt_experiment/sem_metric/evaluate.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"41e5ac23be97994b"}},{"code_sha256_prefix":"fe0e2df4d9cb5edd","entry":"mean_pooling","repo":"nusnlp/complex-tr","repo_kind":"official","path":"custom_qa/get_local_ranking.py","file_url":"https://github.com/nusnlp/complex-tr/blob/HEAD/custom_qa/get_local_ranking.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"fe0e2df4d9cb5edd"}},{"code_sha256_prefix":"2d391d2daa3c57fe","entry":"normalize_answer","repo":"nusnlp/complex-tr","repo_kind":"official","path":"prompt_experiment/sem_metric/evaluate.py","file_url":"https://github.com/nusnlp/complex-tr/blob/HEAD/prompt_experiment/sem_metric/evaluate.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"2d391d2daa3c57fe"}},{"code_sha256_prefix":"210d1520a7ea9d7f","entry":"get_argument_value","repo":"nusnlp/complex-tr","repo_kind":"official","path":"atlas/finetune_qa.py","file_url":"https://github.com/nusnlp/complex-tr/blob/HEAD/atlas/finetune_qa.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"210d1520a7ea9d7f"}},{"code_sha256_prefix":"3d952765274002ec","entry":"set_parser_options","repo":"nusnlp/complex-tr","repo_kind":"official","path":"atlas/finetune_qa.py","file_url":"https://github.com/nusnlp/complex-tr/blob/HEAD/atlas/finetune_qa.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"3d952765274002ec"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}