{"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/comat-chain-of-mathematically-annotated","title":"CoMAT: Chain of Mathematically Annotated Thought Improves Mathematical Reasoning","arxiv_id":"2410.10336","date":"2024-10-14","proceeding":null,"authors":["Joshua Ong Jun Leang","Aryo Pradipta Gema","Shay B. Cohen"],"abstract":"Mathematical reasoning remains a significant challenge for large language models (LLMs), despite progress in prompting techniques such as Chain-of-Thought (CoT). We present Chain of Mathematically Annotated Thought (CoMAT), which enhances reasoning through two stages: Symbolic Conversion (converting natural language queries into symbolic form) and Reasoning Execution (deriving answers from symbolic representations). CoMAT operates entirely with a single LLM and without external solvers. Across four LLMs, CoMAT outperforms traditional CoT on six out of seven benchmarks, achieving gains of 4.48% on MMLU-Redux (MATH) and 4.58% on GaoKao MCQ. In addition to improved performance, CoMAT ensures faithfulness and verifiability, offering a transparent reasoning process for complex mathematical tasks","url_abs":"https://arxiv.org/abs/2410.10336v1","url_pdf":"https://arxiv.org/pdf/2410.10336v1.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":"comat-chain-of-mathematically-annotated","repo_url":"https://github.com/joshuaongg21/comat","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"mmlu","task_name":"MMLU"},{"task_slug":"math","task_name":"Math"},{"task_slug":"mathematical-reasoning","task_name":"Mathematical Reasoning"},{"task_slug":"natural-language-queries","task_name":"Natural Language Queries"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2410.10336","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2410.10336"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+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/joshuaongg21/comat","reach":{"status":"ok"}}],"summary":{"ran":7,"unverified":2},"by_repo_kind":{"official":{"samples":9,"ran":7,"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":9,"samples":[{"code_sha256_prefix":"4e2add9f5f862954","entry":"load_aime_questions","repo":"joshuaongg21/comat","repo_kind":"official","path":"data_preprocess/AIME.py","file_url":"https://github.com/joshuaongg21/comat/blob/HEAD/data_preprocess/AIME.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":"4e2add9f5f862954"}},{"code_sha256_prefix":"3df55a3ea4d0b602","entry":"load_aqua_questions","repo":"joshuaongg21/comat","repo_kind":"official","path":"data_preprocess/aqua.py","file_url":"https://github.com/joshuaongg21/comat/blob/HEAD/data_preprocess/aqua.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":"3df55a3ea4d0b602"}},{"code_sha256_prefix":"5cad5f3eee4ee136","entry":"load_gaokao_questions","repo":"joshuaongg21/comat","repo_kind":"official","path":"data_preprocess/gaokao.py","file_url":"https://github.com/joshuaongg21/comat/blob/HEAD/data_preprocess/gaokao.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":"5cad5f3eee4ee136"}},{"code_sha256_prefix":"0f51a8bcdfa5b15d","entry":"load_gsm8k_questions","repo":"joshuaongg21/comat","repo_kind":"official","path":"data_preprocess/gsm8k.py","file_url":"https://github.com/joshuaongg21/comat/blob/HEAD/data_preprocess/gsm8k.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":"0f51a8bcdfa5b15d"}},{"code_sha256_prefix":"9e521c30df0d57cd","entry":"load_mgsm_questions","repo":"joshuaongg21/comat","repo_kind":"official","path":"data_preprocess/mgsm.py","file_url":"https://github.com/joshuaongg21/comat/blob/HEAD/data_preprocess/mgsm.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":"9e521c30df0d57cd"}},{"code_sha256_prefix":"985251ba6ede9b13","entry":"load_multiarath_questions","repo":"joshuaongg21/comat","repo_kind":"official","path":"data_preprocess/multiarath.py","file_url":"https://github.com/joshuaongg21/comat/blob/HEAD/data_preprocess/multiarath.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":"985251ba6ede9b13"}},{"code_sha256_prefix":"795635d172f465f3","entry":"predict_gpt","repo":"joshuaongg21/comat","repo_kind":"official","path":"utils.py","file_url":"https://github.com/joshuaongg21/comat/blob/HEAD/utils.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":"795635d172f465f3"}},{"code_sha256_prefix":"1999df40e3ed5dc8","entry":"evaluate_gpt4o_mini","repo":"joshuaongg21/comat","repo_kind":"official","path":"utils.py","file_url":"https://github.com/joshuaongg21/comat/blob/HEAD/utils.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":"1999df40e3ed5dc8"}},{"code_sha256_prefix":"192ddad7a240fba3","entry":"load_svamp_questions","repo":"joshuaongg21/comat","repo_kind":"official","path":"data_preprocess/svamp.py","file_url":"https://github.com/joshuaongg21/comat/blob/HEAD/data_preprocess/svamp.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":"192ddad7a240fba3"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}