{"id":2430,"date":"2026-05-10T03:27:15","date_gmt":"2026-05-09T19:27:15","guid":{"rendered":"https:\/\/oknomad.blog\/?p=2430"},"modified":"2026-05-11T01:55:50","modified_gmt":"2026-05-10T17:55:50","slug":"powerlu-fast-as-relu-but-seemingly-more-consistent","status":"publish","type":"post","link":"https:\/\/oknomad.blog\/?p=2430","title":{"rendered":"PowerLU and ExpoLU &#8211; ExpoLU is superior"},"content":{"rendered":"\n<p>Just tried two new LUs &#8211; PowerLU and ExpoLU which have continuous value y but are not continuously differentiable just like ReLU.<\/p>\n\n\n\n<p>ExpoLU beats ReLU by huge advantages (always several magnitudes) in my few tests of 300 rounds training of a neural network of 512 features and 30 layers to approximate 21 pairs of x and y, under same setting including learning rate.<\/p>\n\n\n\n<p>1) PowerLU&#8217;s math:<\/p>\n\n\n\n<p>x&lt;-1, y=0, y&#8217;=0<\/p>\n\n\n\n<p>-1&lt;=x&lt;1, y=(x+1)**p\/(2**p)<\/p>\n\n\n\n<p>1&lt;x, y=x<\/p>\n\n\n\n<p>2) ExpoLU&#8217;s math<\/p>\n\n\n\n<p>ExpoLU has 3 parameters: a, b, p.<\/p>\n\n\n\n<p>x&lt;-b, y=0<\/p>\n\n\n\n<p>-b&lt;=x&lt;b, y=(1\/a)(x+b)**p<\/p>\n\n\n\n<p>b&lt;x, y=x+(1\/a)(2b)**p-b<\/p>\n\n\n\n<p>It&#8217;d better be a=2**n to make division as a bit shift in hardware.<\/p>\n\n\n\n<p>If set a=1, ExpoLU has another simplified version (first version):<\/p>\n\n\n\n<p>x&lt;-b, y=0<\/p>\n\n\n\n<p>-b&lt;=x&lt;b, y=(x+b)**p<\/p>\n\n\n\n<p>b&lt;x, y=x+(2b)**p-b<\/p>\n\n\n\n<p>3) I&#8217;m trying these Linear units for fun and also for: first to make training converge become more jumping to avoid small deep holes, second to provide some curve around x=0 for activation.<\/p>\n\n\n\n<p>In my few tests of a neural network of 512 features and 30 layers to approximate 21 pairs of x and y, both PowerLU and ExpoLU can work with proper settings.<\/p>\n\n\n\n<p>Especially in the few tests above, Relu is not a match of ExpoLU at all in same settings including learning rate, in which Relu is far way below ExpoLU&#8217;s performance.<\/p>\n\n\n\n<p>ExpoLU is a real monster here and it has 3 parameters (a, b, p), but I just tried several simplest combinations like a=2,b=1,p=2 and a=1,b=1,p=2, in which a=1 reach 1e-5 to 1e-9 and a=2 reach 1e-5 to 1e-7 (while Relu reach 1e-1 only once in 3 tests).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Just tried two new LUs &#8211; PowerLU and ExpoLU which have continuous value y but are not continuously differentiable just like ReLU. ExpoLU beats ReLU&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/oknomad.blog\/?p=2430\">Continue reading<span class=\"screen-reader-text\">PowerLU and ExpoLU &#8211; ExpoLU is superior<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2430","post","type-post","status-publish","format-standard","hentry","category-uncategorized","entry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/oknomad.blog\/index.php?rest_route=\/wp\/v2\/posts\/2430","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oknomad.blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/oknomad.blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/oknomad.blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oknomad.blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2430"}],"version-history":[{"count":35,"href":"https:\/\/oknomad.blog\/index.php?rest_route=\/wp\/v2\/posts\/2430\/revisions"}],"predecessor-version":[{"id":2482,"href":"https:\/\/oknomad.blog\/index.php?rest_route=\/wp\/v2\/posts\/2430\/revisions\/2482"}],"wp:attachment":[{"href":"https:\/\/oknomad.blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2430"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oknomad.blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2430"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oknomad.blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2430"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}