{"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/knowledgemath-knowledge-intensive-math-word","title":"FinanceMath: Knowledge-Intensive Math Reasoning in Finance Domains","arxiv_id":"2311.09797","date":"2023-11-16","proceeding":null,"authors":["Yilun Zhao","Hongjun Liu","Yitao Long","Rui Zhang","Chen Zhao","Arman Cohan"],"abstract":"We introduce FinanceMath, a novel benchmark designed to evaluate LLMs' capabilities in solving knowledge-intensive math reasoning problems. Compared to prior works, this study features three core advancements. First, FinanceMath includes 1,200 problems with a hybrid of textual and tabular content. These problems require college-level knowledge in the finance domain for effective resolution. Second, we provide expert-annotated, detailed solution references in Python program format, ensuring a high-quality benchmark for LLM assessment. We also construct a finance-domain knowledge bank and investigate various knowledge integration strategies. Finally, we evaluate a wide spectrum of 44 LLMs with both Chain-of-Thought and Program-of-Thought prompting methods. Our experimental results reveal that the current best-performing system (i.e., GPT-4o) achieves only 60.9% accuracy using CoT prompting, leaving substantial room for improvement. Moreover, while augmenting LLMs with external knowledge can improve model performance (e.g., from 47.5% to 54.5% for Gemini-1.5-Pro), their accuracy remains significantly lower than the estimated human expert performance of 92%. We believe that FinanceMath can advance future research in the area of domain-specific knowledge retrieval and integration, particularly within the context of solving reasoning-intensive tasks.","url_abs":"https://arxiv.org/abs/2311.09797v2","url_pdf":"https://arxiv.org/pdf/2311.09797v2.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":"knowledgemath-knowledge-intensive-math-word","repo_url":"https://github.com/yale-nlp/knowledgemath","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"math","task_name":"Math"},{"task_slug":"math-word-problem-solving","task_name":"Math Word Problem Solving"},{"task_slug":"retrieval","task_name":"Retrieval"}],"methods":[{"method_slug":"absolute-position-encodings","method_name":"Absolute Position Encodings"},{"method_slug":"adam","method_name":"Adam"},{"method_slug":"attention","method_name":"Attention"},{"method_slug":"attention-dropout","method_name":"Attention Dropout"},{"method_slug":"bpe","method_name":"BPE"},{"method_slug":"cosine-annealing","method_name":"Cosine Annealing"},{"method_slug":"dense-connections","method_name":"Dense Connections"},{"method_slug":"dropout","method_name":"Dropout"},{"method_slug":"gpt-3","method_name":"GPT-3"},{"method_slug":"gpt-4","method_name":"GPT-4"},{"method_slug":"label-smoothing","method_name":"Label Smoothing"},{"method_slug":"layer-normalization","method_name":"Layer Normalization"},{"method_slug":"linear-layer","method_name":"Linear Layer"},{"method_slug":"linear-warmup-with-cosine-annealing","method_name":"Linear Warmup With Cosine Annealing"},{"method_slug":"multi-head-attention","method_name":"Multi-Head Attention"},{"method_slug":"position-wise-feed-forward-layer","method_name":"Position-Wise Feed-Forward Layer"},{"method_slug":"residual-connection","method_name":"Residual Connection"},{"method_slug":"softmax","method_name":"Softmax"},{"method_slug":"transformer","method_name":"Transformer"},{"method_slug":"weight-decay","method_name":"Weight Decay"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2311.09797","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2311.09797"}},"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/yale-nlp/knowledgemath","reach":{"status":"ok"}}],"summary":{"ran":12,"unverified":3},"by_repo_kind":{"official":{"samples":15,"ran":12,"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":15,"samples":[{"code_sha256_prefix":"1244f0e9165aa97a","entry":"compare_two_numbers","repo":"yale-nlp/knowledgemath","repo_kind":"official","path":"utils/evaluation_utils.py","file_url":"https://github.com/yale-nlp/knowledgemath/blob/HEAD/utils/evaluation_utils.py","link_basis":"harvester_set","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":"1244f0e9165aa97a"}},{"code_sha256_prefix":"22cda7c1cf2eea8d","entry":"extracted_math_expression","repo":"yale-nlp/knowledgemath","repo_kind":"official","path":"utils/calculator_utils.py","file_url":"https://github.com/yale-nlp/knowledgemath/blob/HEAD/utils/calculator_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":"22cda7c1cf2eea8d"}},{"code_sha256_prefix":"f4f818c6f8c7f710","entry":"get_result","repo":"yale-nlp/knowledgemath","repo_kind":"official","path":"cot_evaluation_with_calculator.py","file_url":"https://github.com/yale-nlp/knowledgemath/blob/HEAD/cot_evaluation_with_calculator.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":"f4f818c6f8c7f710"}},{"code_sha256_prefix":"e7a7c7026476f66b","entry":"get_result","repo":"yale-nlp/knowledgemath","repo_kind":"official","path":"evaluation.py","file_url":"https://github.com/yale-nlp/knowledgemath/blob/HEAD/evaluation.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":"e7a7c7026476f66b"}},{"code_sha256_prefix":"223273c78e7ff863","entry":"prepare_cot_model_input","repo":"yale-nlp/knowledgemath","repo_kind":"official","path":"utils/model_input_utils.py","file_url":"https://github.com/yale-nlp/knowledgemath/blob/HEAD/utils/model_input_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":"223273c78e7ff863"}},{"code_sha256_prefix":"a24a6c31ec5b6456","entry":"prepare_messages_for_calculator","repo":"yale-nlp/knowledgemath","repo_kind":"official","path":"utils/calculator_utils.py","file_url":"https://github.com/yale-nlp/knowledgemath/blob/HEAD/utils/calculator_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":"a24a6c31ec5b6456"}},{"code_sha256_prefix":"df1f59c7e613c9bc","entry":"prepare_model_inputs","repo":"yale-nlp/knowledgemath","repo_kind":"official","path":"utils/model_input_utils.py","file_url":"https://github.com/yale-nlp/knowledgemath/blob/HEAD/utils/model_input_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":"df1f59c7e613c9bc"}},{"code_sha256_prefix":"57660af07664a3b9","entry":"prepare_pot_model_input","repo":"yale-nlp/knowledgemath","repo_kind":"official","path":"utils/model_input_utils.py","file_url":"https://github.com/yale-nlp/knowledgemath/blob/HEAD/utils/model_input_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":"57660af07664a3b9"}},{"code_sha256_prefix":"dd758470029ca57e","entry":"prepare_single_message_for_calculator","repo":"yale-nlp/knowledgemath","repo_kind":"official","path":"utils/calculator_utils.py","file_url":"https://github.com/yale-nlp/knowledgemath/blob/HEAD/utils/calculator_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":"dd758470029ca57e"}},{"code_sha256_prefix":"d86ea5a31781b2d8","entry":"process_single_example_raw_outputs","repo":"yale-nlp/knowledgemath","repo_kind":"official","path":"run_llm.py","file_url":"https://github.com/yale-nlp/knowledgemath/blob/HEAD/run_llm.py","link_basis":"harvester_set","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":"d86ea5a31781b2d8"}},{"code_sha256_prefix":"4f64fae0c2fbb2b6","entry":"round_up_to_decimal","repo":"yale-nlp/knowledgemath","repo_kind":"official","path":"utils/evaluation_utils.py","file_url":"https://github.com/yale-nlp/knowledgemath/blob/HEAD/utils/evaluation_utils.py","link_basis":"harvester_set","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":"4f64fae0c2fbb2b6"}},{"code_sha256_prefix":"05e59123f91ef53c","entry":"within_eps","repo":"yale-nlp/knowledgemath","repo_kind":"official","path":"utils/evaluation_utils.py","file_url":"https://github.com/yale-nlp/knowledgemath/blob/HEAD/utils/evaluation_utils.py","link_basis":"harvester_set","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":"05e59123f91ef53c"}},{"code_sha256_prefix":"433c867ae986ff55","entry":"evaluate_cot_pred_file","repo":"yale-nlp/knowledgemath","repo_kind":"official","path":"evaluation.py","file_url":"https://github.com/yale-nlp/knowledgemath/blob/HEAD/evaluation.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":"433c867ae986ff55"}},{"code_sha256_prefix":"0906cb27da5df6d5","entry":"evaluate_file_with_calculator","repo":"yale-nlp/knowledgemath","repo_kind":"official","path":"cot_evaluation_with_calculator.py","file_url":"https://github.com/yale-nlp/knowledgemath/blob/HEAD/cot_evaluation_with_calculator.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":"0906cb27da5df6d5"}},{"code_sha256_prefix":"94510495bc06c5ec","entry":"evaluate_pot_pred_file","repo":"yale-nlp/knowledgemath","repo_kind":"official","path":"evaluation.py","file_url":"https://github.com/yale-nlp/knowledgemath/blob/HEAD/evaluation.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":"94510495bc06c5ec"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}