[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-497285-105":59,"doc-detail-497285-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","l4-diagnosing-large-scale-llm-training-failures-via-automated-log-analysis","L4 - Diagnosing Large-scale LLM Training Failures via Automated Log Analysis","","Large Language Models (LLMs) enable critical enterprise applications, but customized LLM training inevitably fails because it demands massive compute and long training runs. Such failures waste substantial resources and delay recovery, making efficient failure diagnosis essential. This paper conducts the first empirical study of 428 production failures in Platform-X (May 2023–April 2024), showing hardware and user faults dominate and that existing log-based diagnosis struggles with LLM training logs. It proposes L4, an automated framework extracting failure-indicating events, nodes, stages, and iterations, using cross-job, spatial, and temporal log patterns, improving identification and localization accuracy.",{"@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/l4-diagnosing-large-scale-llm-training-failures-via-automated-log-analysis/497285/",{"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/l4-diagnosing-large-scale-llm-training-failures-via-automated-log-analysis/497285.png","ImageObject",300,407,{"name":92,"@type":93},"Đào","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-16","2026-10-02",true,{"@type":102,"interactionType":103,"userInteractionCount":105},"InteractionCounter",{"@type":104},"ViewAction",11,{"@type":107,"mainEntity":108},"FAQPage",[109,115,119],{"name":110,"@type":111,"acceptedAnswer":112},"Why is diagnosing LLM training failures important in large-scale systems?","Question",{"text":113,"@type":114},"Failures waste significant compute and training time and require human effort for recovery. Rapid diagnosis helps identify root causes, apply remediation, and resume training sooner.","Answer",{"name":116,"@type":111,"acceptedAnswer":117},"What did the study of Platform-X reveal about the root causes of LLM training failures?",{"text":118,"@type":114},"Across 428 failures, hardware and user faults were the predominant root causes. The study also shows that current log-based diagnosis methods do not handle LLM training logs effectively.",{"name":120,"@type":111,"acceptedAnswer":121},"How does L4 improve failure diagnosis compared with existing log-based approaches?",{"text":122,"@type":114},"L4 automatically extracts failure-indicating information from extensive training logs by leveraging three log patterns—cross-job, spatial, and temporal—then identifies failure-relevant logs and localizes faulty nodes more effectively.","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},497285,1791457173,{"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},1374402968488,"https://ap-avatar.wpscdn.com/davatar_29158cc5080c5b710cf443261637dec0","L4: Diagnosing Large-scale LLM Training Failures via Automated  \nLog Analysis  \nZhihan Jiang  \nThe Chinese University of Hong Kong Hong Kong SAR, China  \nZhuangbin Chen  \nSun Yat-sen University Zhuhai, China  \nCong Feng  \nHuawei Cloud Shenzhen, China  \nJunjie Huang  \nThe Chinese University of Hong Kong Hong Kong SAR, China  \nYichen Li  \nThe Chinese University of Hong Kong Hong Kong SAR, China  \nGuangba Yu∗ The Chinese University of Hong Kong Hong Kong SAR, China  \nRenyi Zhong  \nThe Chinese University of Hong Kong Hong Kong SAR, China  \nYongqiang Yang Zengyin Yang Huawei Cloud Shenzhen, China  \nMichael R. Lyu  \nThe Chinese University of Hong Kong Hong Kong SAR, China  \nAbstract  \nAs Large Language Models (LLMs) show their capabilities across various applications, training customized LLMs has become essential for modern enterprises. However, due to the complexity of LLM training, which requires massive computational resources and extensive training time, failures are inevitable during the training process. These failures result in considerable waste of resource and time, highlighting the critical need for effective and efficient failure diagnosis to reduce the cost of LLM training.  \nIn this paper, we present the first empirical study on the failure reports of 428 LLM training failures in our production Platform-X between May 2023 and April 2024 . Our study reveals that hardware and user faults are the predominant root causes, and current diagnosis processes rely heavily on training logs. Unfortunately, existing log-based diagnostic methods fall short in handling LLM training logs. Considering the unique features of LLM training, we identify three distinct patterns of LLM training logs: cross-job, spatial, and temporal patterns. We then introduce our Log-based Large-scale LLM training failure diagnosis framework, L4, which can automatically extract failure-indicating information (i.e., log events, nodes, stages, and iterations) from extensive training logs, thereby reducing manual effort and facilitating failure recovery. Experimental results on real-world datasets show that L4 outperforms existing approaches in identifying failure-indicating logsand localizing faulty nodes. Furthermore, L4 has been applied in Platform-X and demonstrated its effectiveness in enabling accurate and efficient failure diagnosis.  \nCCS Concepts  \n• Software and its engineering → Maintaining software.  \n∗ Guangba Yu is the corresponding author.  \nThis work is licensed under a Creative Commons Attribution 4 .0 International License. FSE Companion ’25, Trondheim, Norway  \n© 2025 Copyright held by the owner/author(s) .  \nACM ISBN 979-8-4007-1276-0/2025/06  \n[https://doi.org/10.1145/3696630.3728531](https://doi.org/10.1145/3696630.3728531)  \nKeywords  \nLarge Language Models, Log Analysis, Failure Diagnosis, LLM Training Systems, AIOps  \nACM Reference Format:  \nZhihan Jiang, Junjie Huang, Guangba Yu, Zhuangbin Chen, Yichen Li, Renyi Zhong, Cong Feng, Yongqiang Yang, Zengyin Yang, and Michael R. Lyu.  \n2025. L4: Diagnosing Large-scale LLM Training Failures via Automated Log Analysis. In 33rd ACM International Conference on the Foundations of Software Engineering (FSE Companion ’25), June 23–28, 2025, Trondheim, Norway. ACM, New York, NY, USA, 13 pages. [https://doi.org/10.1145/3696630.3728531](https://doi.org/10.1145/3696630.3728531)  \n1 introduction  \nLarge language models (LLMs) have revolutionized various fields including natural language processing [36, 78] and software engineering [28, 52], enabling breakthrough applications such as code generation [30], document translation [71], and dialogue systems [79] . The superior performance of LLMs is primarily driven by the scaling law [45], which establishes that the model capacity strongly correlates with both the model size and the volume of training data. For instance, recent models like Grok-1 [11] incorporate 314 billion parameters, while training datasets such as RedPajama [74] have reached 30 trillion","cbCairKQDPrtG8Oq","https://ap.wps.com/l/cbCairKQDPrtG8Oq","pdf",1973603,13,"English","# Abstract\n# Introduction\n## Background and motivation\n## Causes and impact of LLM training failures\n## Failure diagnosis challenges","[{\"question\":\"Why is diagnosing LLM training failures important in large-scale systems?\",\"answer\":\"Failures waste significant compute and training time and require human effort for recovery. Rapid diagnosis helps identify root causes, apply remediation, and resume training sooner.\"},{\"question\":\"What did the study of Platform-X reveal about the root causes of LLM training failures?\",\"answer\":\"Across 428 failures, hardware and user faults were the predominant root causes. The study also shows that current log-based diagnosis methods do not handle LLM training logs effectively.\"},{\"question\":\"How does L4 improve failure diagnosis compared with existing log-based approaches?\",\"answer\":\"L4 automatically extracts failure-indicating information from extensive training logs by leveraging three log patterns—cross-job, spatial, and temporal—then identifies failure-relevant logs and localizes faulty nodes more effectively.\"}]","L4 - Diagnosing Large-scale LLM Training Failures via Automated Log Analysis | PDF",1790951244,33,[148,152,156,160],{"page_no":8,"url":149,"width":150,"height":151},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/e811afc9b9f670ce2cceec4ecd1ac5ef.webp",983,1272,{"page_no":14,"url":153,"width":154,"height":155},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/53979587cc88122ec2ee1b9bed635965.webp",982,1270,{"page_no":81,"url":157,"width":158,"height":159},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/46068d07b4715ff57cccc07b119f1535.webp",981,1269,{"page_no":19,"url":161,"width":162,"height":163},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/9d65ddb0a7289b54c5b92ce9da764af7.webp",980,1268]