[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-327212-105":59,"doc-detail-327212-en":135,"doc-similar-327212":167},{"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":128,"head_meta":130,"extra_data":132,"updated_unix":134},105,"en","full-stack-fp4-stable-llm-pretraining-with-quantized-projections-optimizers-and-attention","Full-Stack FP4 - Stable LLM Pretraining with Quantized Projections, Optimizers, and Attention","","Recent NVFP4 pretraining focuses mainly on transformer linear layers, while optimizer states/computation and attention operators remain only partially studied for 4-bit regimes. This gap blocks stable end-to-end full-stack 4-bit pretraining because linear projections, AdamW second moments, and attention paths exhibit distinct numerical failure modes. Full-Stack FP4 introduces module-specific precision policies—LoRA-SVD for linear layers, stabilized AdamW/Root handling for optimizers, and mixed-precision Q/K/V plus backward dS for attention—preserving forward-backward alignment and enabling stable 3B/64B-token training with only a 1.47% loss gap versus BF16.",{"@graph":69,"@context":127},[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/full-stack-fp4-stable-llm-pretraining-with-quantized-projections-optimizers-and-attention/327212/",{"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/full-stack-fp4-stable-llm-pretraining-with-quantized-projections-optimizers-and-attention/327212.png","ImageObject",300,407,{"name":92,"@type":93},"Quinn","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-30","2026-09-21",true,{"@type":102,"interactionType":103,"userInteractionCount":105},"InteractionCounter",{"@type":104},"ViewAction",18,{"@type":107,"mainEntity":108},"FAQPage",[109,115,119,123],{"name":110,"@type":111,"acceptedAnswer":112},"Why does naive uniform NVFP4 quantization fail for end-to-end pretraining?","Question",{"text":113,"@type":114},"The paper identifies three distinct failure modes: quantization noise ceilings and dimension-scaled error amplification in linear projections; heavy-tailed, denominator-sensitive optimizer states (e.g., AdamW second moments) plus fragile Newton–Schulz iterations in low precision; and attention divergence risks due to error-sensitive forward-backward consistency requirements.","Answer",{"name":116,"@type":111,"acceptedAnswer":117},"What precision policy is used for linear projections in Full-Stack FP4?",{"text":118,"@type":114},"It proposes LoRA-SVD, a lightweight structural decomposition that dilutes quantization noise and avoids the error floor of direct 4-bit quantization, reducing the linear-only loss gap from 1.40% to 0.61%.",{"name":120,"@type":111,"acceptedAnswer":121},"How does Full-Stack FP4 stabilize optimizer training in NVFP4?",{"text":122,"@type":114},"It designs a transformation pipeline for stable NVFP4 storage of AdamW second moments and enables NVFP4-native Newton–Schulz iterations for Root (Muon) without extra mixed-precision auxiliary operations.",{"name":124,"@type":111,"acceptedAnswer":125},"How is attention quantized while maintaining stability?",{"text":126,"@type":114},"It uses a mixed-precision scheme that quantizes Q/K/V and backward dS, while protecting sensitive paths in BF16 and reusing tensors consistently to preserve forward-backward alignment.","https://schema.org",{"og:url":83,"og:type":129,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":131,"canonical":83},"index,follow",{"doc_id":133,"site_id":62},327212,1790270079,{"code":4,"msg":5,"data":136},{"doc_id":133,"user_id":137,"nickname":92,"user_avatar":138,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":139,"file_id":140,"file_url":141,"file_type":142,"file_size":143,"view_count":105,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":105,"language":144,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":145,"faqs":146,"seo_title":147,"seo_description":67,"update_tm":148,"read_time":149,"preview_page_count":19,"preview_urls":150},962075114765,"https://ap-avatar.wpscdn.com/davatar_a8503ba1806abce46bf441b54a3ca4cd","arXiv :2607 .04422v 1 [ cs .LG] 5 Jul 2026  \nFull-Stack FP4: Stable LLM Pretraining with Quantized Projections, Optimizers, and Attention  \nSiyu Ding 1 Mingchuan Ma2 Jiabo Tong 1 ,3  \nXingrun Xing 1 Ziming Wang4 Guoqi Li 1 ,5 ,6 ∗  \n1Institute of Automation, Chinese Academy of Sciences  \n2 Sichuan University  \n3Beijing Zhongguancun Academy  \n4Zhejiang University  \n5Beijing Key Laboratory of Brain-Inspired General Intelligence Large Model  \n6 Key Laboratory of Brain Cognition and Brain-inspired Intelligence Technology  \nAbstract  \nRecent NVFP4 pretraining works have primarily focused on transformer linear layers, while optimizer states, optimizer computation, and attention operators remain only partially explored in 4-bit pretraining. This gap makes stable full-stack 4-bit pretraining unattainable, because the three modules suffer from distinct numerical failure modes: linear projections face a fundamental quantization noise ceiling and dimension-scaled error amplification; AdamW second moments are non-negative, heavy-tailed, and denominator-sensitive to quantization; attention involves error-sensitive paths and requires strict forward-backward quantization consistency. We present Full-Stack FP4, the first end-to-end NVFP4 pretraining recipe that addresses all three stability bottlenecks with module-specific precision policies. For linear projections, we introduce LoRA-SVD, a light-weight structural decomposition that systematically dilutes quantization noise and escapes the error ceiling of direct quantization, reducing the linear-only loss gap from 1.40% to 0.61% . For optimizers, we design a transformation pipeline to reshape AdamW’s second moment for stable NVFP4 storage, and enable Newton–Schulz iterations of the arising Root (Muon) optimizer to run natively in NVFP4 . For attention, we use a mixed-precision design that quantizes Q/K/V and backward dS while protecting sensitive paths in BF16, with consistent tensor reuse to preserve forward-backward alignment. We additionally provide lightweight analyses showing why quantization error grows rapidly with scale in direct low-bit matrix products and why the PV and dOV ⊤ attention paths are particularly sensitive. All components are modular with stability and additive efficiency gains. Experiments on 3B/64B-tokens pretraining show that our full-stack FP4 training maintains tight alignment with BF16 baselines, with only a 1.47% loss gap, demonstrating that stable, full-stack NVFP4 LLM pretraining is achievable. 1  \n1 Introduction  \nThe computational cost of LLM pretraining has driven precision down from FP32 to BF16 and FP8, with major gains in memory efficiency and throughput. Blackwell GPUs further enable native NVFP4  \n∗ Corresponding author: [guoqi.li@ia.ac.cn](guoqi.li@ia.ac.cn)  \n[1](1 Code will be released post-review)[ Code will be released post-review](1 Code will be released post-review).  \nPreprint.  \nTensor Core support, making 4-bit pretraining practical rather than merely theoretical. Recent work has demonstrated stable 4-bit pretraining for transformer linear layers [1–7], and as Muon[8] has been adopted in top models including Kimi Moonlight [9] and Deepseek-V4 [10], researchers have begun to explore low-bit Muon updates [11] . Yet the full training stack including optimizer states, optimizer computation, and attention remains uncovered.  \nThe core question thus becomes: can we extend NVFP4 to the full pretraining stack while maintaining stability?  \nThe challenge is that naive uniform quantization fails, because the three core modules suffer from distinct numerical failure modes: (1) Quantization Error Accumulation: Linear projections with direct NVFP4 quantization hit a fundamental quantization noise ceiling that recent works have progressively approached but cannot further reduce, with error growing linearly with hidden dimension and overwhelming optimization signals; (2) Numerical Instability: Optimizer states such as AdamW’s second moment vt are non-negativ","cbCaiqA1sQQNmUZg","https://ap.wps.com/l/cbCaiqA1sQQNmUZg","pdf",1702357,"English","# Abstract\n# Introduction\n## Quantization error accumulation in linear projections\n## Numerical instability in optimizer states and Root iterations\n## Forward-backward path sensitivity in attention\n## Contributions and experimental validation","[{\"question\":\"Why does naive uniform NVFP4 quantization fail for end-to-end pretraining?\",\"answer\":\"The paper identifies three distinct failure modes: quantization noise ceilings and dimension-scaled error amplification in linear projections; heavy-tailed, denominator-sensitive optimizer states (e.g., AdamW second moments) plus fragile Newton–Schulz iterations in low precision; and attention divergence risks due to error-sensitive forward-backward consistency requirements.\"},{\"question\":\"What precision policy is used for linear projections in Full-Stack FP4?\",\"answer\":\"It proposes LoRA-SVD, a lightweight structural decomposition that dilutes quantization noise and avoids the error floor of direct 4-bit quantization, reducing the linear-only loss gap from 1.40% to 0.61%.\"},{\"question\":\"How does Full-Stack FP4 stabilize optimizer training in NVFP4?\",\"answer\":\"It designs a transformation pipeline for stable NVFP4 storage of AdamW second moments and enables NVFP4-native Newton–Schulz iterations for Root (Muon) without extra mixed-precision auxiliary operations.\"},{\"question\":\"How is attention quantized while maintaining stability?\",\"answer\":\"It uses a mixed-precision scheme that quantizes Q/K/V and backward dS, while protecting sensitive paths in BF16 and reusing tensors consistently to preserve forward-backward alignment.\"}]","Full-Stack FP4 - Stable LLM Pretraining with Quantized Projections, Optimizers, and Attention | PDF",1789976708,45,[151,155,159,163],{"page_no":8,"url":152,"width":153,"height":154},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/f71abb4efa7e3ad8f6340bd846598aa2.webp",983,1272,{"page_no":14,"url":156,"width":157,"height":158},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/c5af47d623f39c135ada469325fcf9fc.webp",982,1270,{"page_no":81,"url":160,"width":161,"height":162},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/d404c73ad61c3cff70b0cf3a29a7a6a8.webp",981,1269,{"page_no":19,"url":164,"width":165,"height":166},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/6085b8fbfd7b8335599e3b6b86c48d20.webp",980,1268,{"list":168,"token":66},[169,176,183,190,197,203,209,215,222,229],{"doc_id":170,"doc_title":171,"file_type":142,"home_preview_img_url":172,"slug":173,"view_count":174,"category_name":40,"create_tm":175},86505,"M+Adam Low-Precision Training via Additive–Multiplicative Optimization","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809423510/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108099&Signature=zbjJw6iM3o1qYQKcGw9DOr90f78%3D","madam-low-precision-training-via-additivemultiplicative-optimization",21,1784212242,{"doc_id":177,"doc_title":178,"file_type":142,"home_preview_img_url":179,"slug":180,"view_count":181,"category_name":40,"create_tm":182},128131,"Personalized and Efficient Distributed Machine Learning","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229839479183/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108099&Signature=KDGQkcpRZBt9kYRpldAbFqIWiUg%3D","personalized-and-efficient-distributed-machine-learning",15,1785944995,{"doc_id":184,"doc_title":185,"file_type":142,"home_preview_img_url":186,"slug":187,"view_count":188,"category_name":40,"create_tm":189},455438,"Asymptotic theory of in-context learning by linear attention","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229925071859/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108099&Signature=3hpFTY9KNoVf7exYYPR6cKNRZ64%3D","asymptotic-theory-of-in-context-learning-by-linear-attention",11,1790742918,{"doc_id":191,"doc_title":192,"file_type":142,"home_preview_img_url":193,"slug":194,"view_count":195,"category_name":40,"create_tm":196},85999,"From Self Attention to Connection Laplacian: A Unified Operator View of Transformers","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809496075/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108099&Signature=1v4Fo%2FyQBVXfGYTqBLoaLA5HBpE%3D","from-self-attention-to-connection-laplacian-a-unified-operator-view-of-transformers",32,1784207686,{"doc_id":198,"doc_title":199,"file_type":142,"home_preview_img_url":200,"slug":201,"view_count":195,"category_name":40,"create_tm":202},83590,"Hypic Accelerating Hybrid-Attention LLM Serving with Position-Independent Caching","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808989915/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108099&Signature=UWyLdI1Ldp8cP6mtGsj7Ii3j8kA%3D","hypic-accelerating-hybrid-attention-llm-serving-with-position-independent-caching",1784189059,{"doc_id":204,"doc_title":205,"file_type":142,"home_preview_img_url":206,"slug":207,"view_count":174,"category_name":40,"create_tm":208},126283,"WAAM过程中基于机器学习预测工艺相关参数的可行性研究 - 使用316LSi填充材料","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229838717371/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108099&Signature=NzFALogcPOrHU%2BgB6hWdwb%2Ftb6M%3D","feasibility-study-on-machine-learning-methods-for-prediction-of-process-related-parameters-during-waam-using-316lsi-filler-material",1785904251,{"doc_id":210,"doc_title":211,"file_type":142,"home_preview_img_url":212,"slug":213,"view_count":195,"category_name":40,"create_tm":214},85057,"Hidden Decoding at Scale: Latent Computation Scaling for Large Language Models","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809238776/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108099&Signature=pzjsMeE2nra16ljbCElX4gMe1Mg%3D","hidden-decoding-at-scale-latent-computation-scaling-for-large-language-models",1784200696,{"doc_id":216,"doc_title":217,"file_type":142,"home_preview_img_url":218,"slug":219,"view_count":220,"category_name":40,"create_tm":221},82987,"FourTune Towards Fully 4-Bit Efficient Post-Training for Diffusion Models","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808925098/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108099&Signature=kx1R22hph%2BgkhZU4icWupkFpSyI%3D","fourtune-towards-fully-4-bit-efficient-post-training-for-diffusion-models",38,1784184477,{"doc_id":223,"doc_title":224,"file_type":142,"home_preview_img_url":225,"slug":226,"view_count":227,"category_name":40,"create_tm":228},86091,"WSqD: A Horizon-Free Learning Rate Schedule for Large Model Training","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809377540/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108099&Signature=dgZBYbdZuojBjnHv%2B5MtOrpQ1A4%3D","wsqd-a-horizon-free-learning-rate-schedule-for-large-model-training",25,1784208452,{"doc_id":230,"doc_title":231,"file_type":142,"home_preview_img_url":232,"slug":233,"view_count":234,"category_name":40,"create_tm":235},122847,"Efficient Resource Management for Machine Learning - Dissertation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229836950143/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108099&Signature=gbVc2cBoBzb43j7w6Q9Vks2JAyg%3D","efficient-resource-management-for-machine-learning-dissertation",14,1785813248]