[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-508385-105":59,"doc-detail-508385-en":131},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":124,"head_meta":126,"extra_data":128,"updated_unix":130},105,"en","self-attention-based-graph-of-thought-for-math-problem-solving","Self-attention-based Graph-of-Thought for Math Problem Solving","","Applying Large Language Models (LLMs) to math problem solving is a major research direction. Traditional Chain-of-Thought decoding often forms a linear reasoning chain, which can obscure how intermediate steps relate and may introduce unwanted interference from non-zero self-attention across weakly related steps. This paper introduces Self-attention-based Graph-of-Thought (SaGoT), a training-free Transformer decoding method that builds a thought graph during inference via an inter-step self-attention indicator and a graph-structured attention mechanism, improving mathematical reasoning accuracy, robustness on smaller models, and interpretability.",{"@graph":69,"@context":123},[70,84,106],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/self-attention-based-graph-of-thought-for-math-problem-solving/508385/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/self-attention-based-graph-of-thought-for-math-problem-solving/508385.png","ImageObject",300,407,{"name":92,"@type":93},"Ivy","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-20","2026-10-05",true,{"@type":102,"interactionType":103,"userInteractionCount":105},"InteractionCounter",{"@type":104},"ViewAction",12,{"@type":107,"mainEntity":108},"FAQPage",[109,115,119],{"name":110,"@type":111,"acceptedAnswer":112},"What problem does SaGoT address in Chain-of-Thought math solving?","Question",{"text":113,"@type":114},"It addresses how CoT’s linear reasoning chain can hide relationships among steps and how non-zero self-attention between weakly related steps can interfere with later outputs, lowering final accuracy.","Answer",{"name":116,"@type":111,"acceptedAnswer":117},"How does SaGoT construct a thought graph during inference?",{"text":118,"@type":114},"SaGoT builds a thought graph simultaneously with LLM inference using a newly defined inter-step self-attention indicator and a graph-structured self-attention mechanism for reasoning steps.",{"name":120,"@type":111,"acceptedAnswer":121},"What advantages does SaGoT claim compared with prompting-based graph methods and training-based approaches?",{"text":122,"@type":114},"SaGoT is training-free, enhances mathematical reasoning accuracy without relying on extremely large models, avoids performance degradation on smaller models for complex prompts, and integrates intrinsic interpretability into the reasoning process.","https://schema.org",{"og:url":83,"og:type":125,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":127,"canonical":83},"index,follow",{"doc_id":129,"site_id":62},508385,1791327335,{"code":4,"msg":5,"data":132},{"doc_id":129,"user_id":133,"nickname":92,"user_avatar":134,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":135,"file_id":136,"file_url":137,"file_type":138,"file_size":139,"view_count":105,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":140,"language":141,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":142,"faqs":143,"seo_title":144,"seo_description":67,"update_tm":145,"read_time":146,"preview_page_count":19,"preview_urls":147},549758252649,"https://ap-avatar.wpscdn.com/avatar/8000253669c5317157?_k=1778319167496531819","Self-attention-based Graph-of-Thought for Math Problem Solving  \nRuiqiao Bai1 , Xue Han1,* , Shuo Lei1 , Junlan Feng1,* , Yanyan Luo1 , Chao Deng1  \n1JIUTIAN Team, China Mobile Research Institute, Beijing, China  \n* Corresponding Authors  \nEmails: {bairuiqiao,hanxueai,leishuo,fengjunlan,luoyanyan,[dengchao}@chinamobile.com](dengchao}@chinamobile.com)  \nAbstract  \nApplying Large Language Models (LLM) to solve math problems is one of the hottest research topics at present. Traditional Chain-ofThought-based methods typically generate the reasoning path in a chain structure, leading to unnecessary interference caused by non-zero self-attention among weakly related reasoning steps. Such a setting also differs from humans’typical graph-structured reasoning habit (with an inter-step relationship graph in mind) . To solve the problem, this paper proposes a novel decoding method for Transformer-based LLM, named Self-attention-based Graph-of-Thought (SaGoT) . SaGoT constructs a thought graph simultaneously as an LLM inference (based on a newly defined inter-step self-attention indicator), and generates reasoning steps with a novel graph-structured self-attention mechanism. It is a significant contribution for SaGoTto enable an LLM’s graph-like reasoning ability by modifying its inner working operations, compared to SOTA prompting methods that are ex-post, rely on huge LLMs and redundant reasoning step generation to form a graph (inefficient & non-human-like) . In addition, SaGoT is a training-free technique that can be seamlessly incorporated into pre-trained Transformer-based LLMs. Our experimental results have shown that SaGoT could significantly enhance mathematical reasoning accuracy without the reliance on huge computationally over-expensive LLMs. It also avoids SOTA methods’ performance degradation issues when the LLM is too small to comprehend complex prompts. Moreover, SaGoT integrates intrinsic interpretability into the LLM’s reasoning procedure, intuitively assisting humans in understanding how an LLM views the relationships among its reasoning steps, and why the LLM succeeds or fails.  \n1 Introduction  \nA Large Language Model (LLM) is a deep learning model capable of handling various natural language  \ntasks (such as text classification and question answering) and has a large number of parameters. At present, LLMs employed in academia and industry are commonly based on the Transformer architecture, whose core technology is the self-attention mechanism (Vaswani et al., 2017) . In addition to improving model performance, an advantage of the self-attention mechanism is that it can help people interpret an LLM’s inner working procedure by showing how the model distributes weights among tokens (Vig, 2019 ; Wang et al., 2023b ; Vig and Belinkov, 2019) .  \nApplying LLMs to solve math problems is one of the hottest research areas at present, and the Chainof-Thought (CoT) technology has been widely applied to such a task (see Section 2.1) . In a nutshell, CoT requires the LLM to output texts describing the reasoning steps before generating the final answer (Wei et al., 2022) .  \nHowever, traditional CoT-based methods usually generate reasoning steps in a chain structure (see Figure 1(a)) . This might prevent humans from knowing whether the LLM correctly understandsand utilizes the relationship among its reasoning steps (as depicted in Figure 1(b), a human-like deduction trajectory is a graph instead of a chain) . In addition, some non-zero self-attention values among weakly related reasoning steps might disturb subsequent model outputs, resulting in lower accuracy of the final answer (as verified by our experiments in Section 5) .  \nRecently, scholars have noticed that combining CoT with the graph structure improves LLMs’ responses to complex questions (see Section 2.2) . However, there is still a lack of methods that efficiently mirror humans’ ability (without generating redundant reasoning steps/paths that might be wrong) to directl","cbCaiiqzREB3KZEA","https://ap.wps.com/l/cbCaiiqzREB3KZEA","pdf",1164223,14,"English","# Abstract\n# Introduction\n## Motivation: limits of Chain-of-Thought\n## Related work: adding graph structure to CoT\n## Proposed method: SaGoT and design rationale","[{\"question\":\"What problem does SaGoT address in Chain-of-Thought math solving?\",\"answer\":\"It addresses how CoT’s linear reasoning chain can hide relationships among steps and how non-zero self-attention between weakly related steps can interfere with later outputs, lowering final accuracy.\"},{\"question\":\"How does SaGoT construct a thought graph during inference?\",\"answer\":\"SaGoT builds a thought graph simultaneously with LLM inference using a newly defined inter-step self-attention indicator and a graph-structured self-attention mechanism for reasoning steps.\"},{\"question\":\"What advantages does SaGoT claim compared with prompting-based graph methods and training-based approaches?\",\"answer\":\"SaGoT is training-free, enhances mathematical reasoning accuracy without relying on extremely large models, avoids performance degradation on smaller models for complex prompts, and integrates intrinsic interpretability into the reasoning process.\"}]","Self-attention-based Graph-of-Thought for Math Problem Solving | PDF",1791219471,35,[148,152,156,160],{"page_no":8,"url":149,"width":150,"height":151},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/80a77ddb58526adb0f9da68e1b845b89.webp",983,1390,{"page_no":14,"url":153,"width":154,"height":155},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/9aed1ff32acb2ffbdc31e10448eb8b4f.webp",982,1388,{"page_no":81,"url":157,"width":158,"height":159},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/092577a18d7a2e0747ed749d8edee150.webp",981,1387,{"page_no":19,"url":161,"width":162,"height":163},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/8b7d2cdee0c5a0ff78028fcd72d4d975.webp",980,1385]