Abstract—Deployinglanguagemodelsonedgehardwareisfundamentallyconstrainedbymemorybudgetsthatprecludebillion-parameterarchitectures.ThispaperintroducesMicroPy-5M,adecoder-onlyTransformercomprisingonly5.6Mparam-eters,designedexclusivelyforlocalisedPythonscriptsynthesisonmicrocontroller-classdevices.Ourcentralfindingisthat,atthisextremesub-10M-parameterscale,conventionalprobabilisticone-shotdecodingproducesunacceptablyhighratesofstructuralerrors;reliabilityisinsteadachievablethroughaclosed-loopRecursiveError-Feedback(REF)mechanismthattreatsthePythoncompile()bytecodecompilerasanobjective,externalverificationoracle.Within1–2feedbackiterationsthemodelself-correctssyntaxfaultsandachieves100%convergenceonacuratedsuiteofaxiomaticprogrammingtasks,whileoccupyingan11.2MBon-diskfootprint(FP16)andapproximately42MBofRAMatinferencetime.TheseresultsestablishanewoperatingpointforwhatwetermLogic-GatedMicro-Intelligence:compact,formallyverified,andsuitablefordeploymentondevicespreviouslyconsideredincompatiblewithon-deviceAI.IndexTerms—EdgeAI,TinyML,codegeneration,Transformer,formalverification,recursiveself-correction,IoT,microcontroller
Rohith Yarramala (Sun,) studied this question.