[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-detail-84743-en":3,"doc-seo-84743-105":30,"detail-sidebar-cat-0-en-105":91},{"code":4,"msg":5,"data":6},0,"success",{"doc_id":7,"user_id":8,"nickname":9,"user_avatar":10,"doc_module":4,"category_id":11,"category_name":12,"doc_title":13,"doc_description":14,"doc_content":15,"file_id":16,"file_url":17,"file_type":18,"file_size":19,"view_count":20,"is_deleted":4,"is_public":21,"is_downloadable":21,"audit_status":21,"page_count":22,"language":23,"language_code":24,"site_id":25,"html_lang":24,"table_of_contents":26,"faqs":27,"seo_title":13,"seo_description":14,"update_tm":28,"read_time":29},84743,137441390410,"Hazel","https://ap-avatar.wpscdn.com/avatar/2000252f4ab5702993?_k=1776741390130283984",8,"Research & Report","Lyapunov Guided Training for Hardware-Safe Neural Networks Under Fixed-Point Arithmetic","Low-precision neural networks enable deployment on resource-constrained hardware, yet fixed-point arithmetic introduces hidden failure modes beyond idealised quantisation. Two’s-complement overflow wrapping can corrupt activations by flipping sign and magnitude, amplifying numerical error propagation and severely degrading accuracy. The work presents a Lyapunov-stabilised quantisation framework for hardware-style wrapping arithmetic, monitoring layerwise hidden-state energy and applying a monotone projection to enforce bounded, non-increasing state evolution across depth. Experiments on MNIST with a compact transformer show unconstrained wrapped QAT collapses to near-chance with >11% activation overflow, while the proposed projection suppresses overflow below 0.012% and restores stable learning.","Lyapunov-Guided Training for Hardware-Safe Neural Networks Under Fixed-Point Arithmetic  \nAnis Hamadouche  \nThe School of Engineering & Physical Sciences Heriot-Watt University Edinburgh EH14 4AS, UK[anis.hamadouche@hw.ac.uk](anis.hamadouche@hw.ac.uk)  \nAmir Hussain  \nSDAIA-KFUPM Joint Research Centre for Artificial Intelligence  \nKing Fahd University of Petroleum and Minerals Dhahran, Saudi Arabia [amir.hussain@kfupm.edu.sa](amir.hussain@kfupm.edu.sa)  \narXiv :2607 .0453 1v 1 [ cs .LG] 5 Jul 2026  \nAbstract—Low-precision neural networks are attractive for resource-constrained hardware, but fixed-point arithmetic introduces failure modes that are often hidden by idealised quantisation models. In particular, two’s-complement overflow wrapping can corrupt hidden activations by changing both their magnitude and sign, leading to unstable numerical error propagation and severe accuracy degradation. This paper proposesa Lyapunov-stabilised quantisation framework for low-precision neural networks operating under hardware-style wrapping arithmetic. The hidden-state energy is monitored through a layerwise Lyapunov function, and a monotone projection is applied to enforce bounded and non-increasing state evolution across depth. The method is evaluated on MNIST using a compact patch-based transformer under post-training quantisation and quantisation-aware training with fixed-point bit-widths from 4 to 16 bits. Monte Carlo results show that unconstrained wrapped quantisation-aware training collapses to near-chance accuracy across 6–16 bits, with activation overflow rates exceeding 11%. In contrast, the proposed monotone Lyapunov projection suppresses activation overflow to below 0.012% and restores stable lowprecision learning, achieving 86.55% ± 0.65% accuracy at 12 bits. These results demonstrate that Lyapunov-based state control can act as a hardware-aware stabilisation mechanism for reliable fixed-point neural inference and training.  \nIndex Terms—Low-precision neural networks, quantisationaware training, fixed-point arithmetic, overflow wrapping, Lyapunov stability, neural network safety, hardware-aware machine learning, transformer networks.  \nI. INTRODUCTION  \nThe deployment of deep neural networks on edge devices, embedded processors, field-programmable gate arrays, and custom accelerators has made low-precision arithmetic a central topic in hardware-aware machine learning. Quantisation reduces memory footprint, bandwidth, arithmetic cost, and energy consumption by representing weights, activations, or accumulators using fewer bits than conventional floatingpoint arithmetic. These benefits are particularly important for real-time and resource-constrained applications, where fullprecision inference may be too expensive in terms of latency, silicon area, or power consumption. Consequently, posttraining quantisation (PTQ) and quantisation-aware training (QAT) have become standard techniques for mapping neural networks onto efficient low-precision hardware [8, 11, 15] .  \nMost quantisation studies focus on rounding error, clipping error, calibration, mixed precision, or the accuracy degradation  \ncaused by reducing the number of representable values. However, practical fixed-point hardware introduces an additional failure mode: arithmetic overflow. In saturating arithmetic, an overflowed value is clipped to the largest or smallest representable value. In wrapping arithmetic, which follows two’scomplement behaviour, an overflowed value wraps around the finite integer range. This means that a large positive value may become negative, and a large negative value may become positive. Such behaviour is efficient in hardware but can be numerically destructive. In quantised neural networks, overflow in activations or accumulators can corrupt hiddenstate trajectories and produce abrupt changes in the represented computation [4, 14] .  \nThis issue is especially important for deep residual and transformer-like architectures. These models can be ","cbCairS6QIwdI9dv","https://ap.wps.com/l/cbCairS6QIwdI9dv","pdf",423559,2,1,9,"English","en",105,"# Introduction\n## Low-precision arithmetic and quantisation benefits\n## Overflow failure modes in fixed-point hardware\n## Viewing deep models as layerwise dynamical systems\n## Lyapunov methods for stability and control\n# Proposed Lyapunov-stabilised quantisation framework\n## Layerwise Lyapunov energy monitoring\n## Monotone projection with bounded state energy","[{\"question\":\"What specific problem does fixed-point overflow wrapping create for quantised neural networks?\",\"answer\":\"Wrapping overflow follows two’s-complement behaviour, so large positive values can become negative and vice versa. In quantised networks, this can abruptly corrupt hidden-state trajectories and propagate destabilising numerical errors through later layers.\"},{\"question\":\"How does the proposed Lyapunov-guided framework improve stability during fixed-point QAT/PTQ?\",\"answer\":\"It monitors normalised hidden-state energy using a layerwise Lyapunov function and applies a monotone projection to enforce bounded, non-increasing energy across depth. This constrains states away from regions prone to wraparound.\"},{\"question\":\"What do the MNIST results indicate about unconstrained vs. Lyapunov-projected training?\",\"answer\":\"Unconstrained wrapped quantisation-aware training collapses to near-chance accuracy across 6–16 bits, with activation overflow rates exceeding 11%. With the monotone Lyapunov projection, activation overflow drops below 0.012% and accuracy reaches 86.55% ± 0.65% at 12 bits.\"}]",1784197997,23,{"code":4,"msg":31,"data":32},"ok",{"site_id":25,"language":24,"slug":33,"title":13,"keywords":34,"description":14,"schema_data":35,"social_meta":86,"head_meta":88,"extra_data":90,"updated_unix":28},"lyapunov-guided-training-for-hardware-safe-neural-networks-under-fixed-point-arithmetic","",{"@graph":36,"@context":85},[37,53,68],{"@type":38,"itemListElement":39},"BreadcrumbList",[40,44,47,50],{"item":41,"name":42,"@type":43,"position":21},"https://docshare.wps.com","Home","ListItem",{"item":45,"name":46,"@type":43,"position":20},"https://docshare.wps.com/document/","Document",{"item":48,"name":12,"@type":43,"position":49},"https://docshare.wps.com/document/research-report/",3,{"item":51,"name":13,"@type":43,"position":52},"https://docshare.wps.com/document/lyapunov-guided-training-for-hardware-safe-neural-networks-under-fixed-point-arithmetic/84743/",4,{"url":51,"name":13,"@type":54,"author":55,"headline":13,"publisher":57,"fileFormat":60,"inLanguage":24,"description":14,"dateModified":61,"datePublished":62,"encodingFormat":60,"isAccessibleForFree":63,"interactionStatistic":64},"DigitalDocument",{"name":9,"@type":56},"Person",{"url":41,"name":58,"@type":59},"DocShare","Organization","application/pdf","2026-07-23","2026-07-16",true,{"@type":65,"interactionType":66,"userInteractionCount":20},"InteractionCounter",{"@type":67},"ViewAction",{"@type":69,"mainEntity":70},"FAQPage",[71,77,81],{"name":72,"@type":73,"acceptedAnswer":74},"What specific problem does fixed-point overflow wrapping create for quantised neural networks?","Question",{"text":75,"@type":76},"Wrapping overflow follows two’s-complement behaviour, so large positive values can become negative and vice versa. In quantised networks, this can abruptly corrupt hidden-state trajectories and propagate destabilising numerical errors through later layers.","Answer",{"name":78,"@type":73,"acceptedAnswer":79},"How does the proposed Lyapunov-guided framework improve stability during fixed-point QAT/PTQ?",{"text":80,"@type":76},"It monitors normalised hidden-state energy using a layerwise Lyapunov function and applies a monotone projection to enforce bounded, non-increasing energy across depth. This constrains states away from regions prone to wraparound.",{"name":82,"@type":73,"acceptedAnswer":83},"What do the MNIST results indicate about unconstrained vs. Lyapunov-projected training?",{"text":84,"@type":76},"Unconstrained wrapped quantisation-aware training collapses to near-chance accuracy across 6–16 bits, with activation overflow rates exceeding 11%. With the monotone Lyapunov projection, activation overflow drops below 0.012% and accuracy reaches 86.55% ± 0.65% at 12 bits.","https://schema.org",{"og:url":51,"og:type":87,"og:title":13,"og:site_name":58,"og:description":14},"article",{"robots":89,"canonical":51},"index,follow",{"doc_id":7,"site_id":25},{"code":4,"msg":5,"data":92},[93,97,101,105,110,115,120,123,127,130,134],{"id":21,"doc_module":4,"doc_module_name":46,"category_name":94,"show_sort_weight":95,"slug":96},"Story & Novel",90,"story-novel",{"id":20,"doc_module":4,"doc_module_name":46,"category_name":98,"show_sort_weight":99,"slug":100},"Literature",80,"literature",{"id":52,"doc_module":4,"doc_module_name":46,"category_name":102,"show_sort_weight":103,"slug":104},"Exam",70,"exam",{"id":106,"doc_module":4,"doc_module_name":46,"category_name":107,"show_sort_weight":108,"slug":109},5,"Comic",60,"comic",{"id":111,"doc_module":4,"doc_module_name":46,"category_name":112,"show_sort_weight":113,"slug":114},6,"Technology",50,"technology",{"id":116,"doc_module":4,"doc_module_name":46,"category_name":117,"show_sort_weight":118,"slug":119},7,"Healthcare",40,"healthcare",{"id":11,"doc_module":4,"doc_module_name":46,"category_name":12,"show_sort_weight":121,"slug":122},30,"research-report",{"id":22,"doc_module":4,"doc_module_name":46,"category_name":124,"show_sort_weight":125,"slug":126},"Religion & Spirituality",20,"religion-spirituality",{"id":125,"doc_module":4,"doc_module_name":46,"category_name":128,"show_sort_weight":125,"slug":129},"World Cup","world-cup",{"id":131,"doc_module":4,"doc_module_name":46,"category_name":132,"show_sort_weight":131,"slug":133},10,"Lifestyle","lifestyle",{"id":135,"doc_module":4,"doc_module_name":46,"category_name":136,"show_sort_weight":106,"slug":137},19,"General","general"]