{"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-10T17:18:47","modified_gmt":"2026-05-10T09:18:47","slug":"powerlu-fast-as-relu-but-seemingly-more-consistent","status":"publish","type":"post","link":"https:\/\/oknomad.blog\/?p=2430","title":{"rendered":"PowerLU and ExpoLU"},"content":{"rendered":"\n<p>Just tried two new LUs &#8211; PowerLU and ExpoLU which are not continuously differentiable like ReLU.<\/p>\n\n\n\n<p>1) PowerLU&#8217;s math:<\/p>\n\n\n\n<p>for x&lt;-1, y=0 and y&#8217;=0; <\/p>\n\n\n\n<p>for -1&lt;=x&lt;1, y=(x+1)**p\/(2**p) and y&#8217;=p*(x+1)**(p-1)\/(2**p), in which when x=1, y=1 and y&#8217;=p\/2;<\/p>\n\n\n\n<p>for 1&lt;x, y=x and y&#8217;=1.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>2) ExpoLU&#8217;s math<\/p>\n\n\n\n<p>for x&lt;-b, y=0 and y&#8217;=0;<\/p>\n\n\n\n<p>for -b&lt;=x&lt;b, y=(x+b)**p and y&#8217;=p*(x+b)**(p-1), in which when x=b, y=(2*b)**p;<\/p>\n\n\n\n<p>for b&lt;x, y=x+(2*b)**p-b and y&#8217;=1, in which x=b, y=(2*b)**p.<\/p>\n\n\n\n<p><\/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 test of a neural network of 512 features and 15\/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><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Just tried two new LUs &#8211; PowerLU and ExpoLU which are not continuously differentiable like ReLU. 1) PowerLU&#8217;s math: for x&lt;-1, y=0 and y&#8217;=0; for&#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<\/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":13,"href":"https:\/\/oknomad.blog\/index.php?rest_route=\/wp\/v2\/posts\/2430\/revisions"}],"predecessor-version":[{"id":2450,"href":"https:\/\/oknomad.blog\/index.php?rest_route=\/wp\/v2\/posts\/2430\/revisions\/2450"}],"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}]}}