SoatDev IT Consulting
SoatDev IT Consulting
  • About us
  • Expertise
  • Services
  • How it works
  • Contact Us
  • News
  • August 6, 2023
  • Rss Fetcher

The previous post looked at the swish function and related activation functions for deep neural networks designed to address the “dying ReLU problem.”

Plot of swish(x) - frac{ x exp(x)}{1 + exp(x)}

Unlike many activation functions, the function f(x) is not monotone but has a minimum near x0 = -1.2784. The exact location of the minimum is

x_0 = -Wleft(frac{1}{e} right) - 1

where W is the Lambert W function, named after the Swiss mathematician Johann Heinrich Lambert [1].

The minimum value of f is -0.2784. I thought maybe I made a mistake, confusing x0 and f(x0). If you look at more decimal place, the minimum value of f is

-0.278464542761074

and occurs at

-1.278464542761074.

That can’t be a coincidence.

It turns out you can prove that f(x0) − x0 = 1 without explicitly finding x0. Take the derivative of f using the quotient rule and set the numerator equal to zero. This shows that at the minimum,

1 + x_0 + exp(x_0) = 0

Then

begin{align*} f(x_0) - x_0 &= frac{x_0 exp(x_0)}{1 + exp(x_0)}  - x_0 \ &= frac{x_0 exp(x_0)}{1 + exp(x_0)} - frac{x_0 (1+exp(x_0))}{1 + exp(x_0)} \ &= frac{-x_0}{1 + exp(x_0)} \ &= frac{1 + exp(x_0)}{1 + exp(x_0)} \ &= 1 end{align*}

The fourth equation is where we use the equation satisfied at the minimum.

[1] Lambert is sometimes considered Swiss and sometimes French. The plot of land he lived on belonged to Switzerland at the time, but now belongs to France. I wanted him to be Swiss so could use “swish” and “Swiss” together in the title.

The post Swish function and a Swiss mathematician first appeared on John D. Cook.

Previous Post
Next Post

Recent Posts

  • Speedata, a chip startup competing with Nvidia, raises a $44M Series B
  • Adobe launches beta version of its Photoshop app on Android
  • Stack Exchange knowledge is for everyone (and now available on Snowflake Marketplace)
  • An early Joby Aviation backer might soon be its biggest distributor in Saudi Arabia
  • Indeed CEO Chris Hyams resigns, hands over reins to former chief Hisayuki Idekoba

Categories

  • Industry News
  • Programming
  • RSS Fetched Articles
  • Uncategorized

Archives

  • June 2025
  • May 2025
  • April 2025
  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • August 2024
  • July 2024
  • June 2024
  • May 2024
  • April 2024
  • March 2024
  • February 2024
  • January 2024
  • December 2023
  • November 2023
  • October 2023
  • September 2023
  • August 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023

Tap into the power of Microservices, MVC Architecture, Cloud, Containers, UML, and Scrum methodologies to bolster your project planning, execution, and application development processes.

Solutions

  • IT Consultation
  • Agile Transformation
  • Software Development
  • DevOps & CI/CD

Regions Covered

  • Montreal
  • New York
  • Paris
  • Mauritius
  • Abidjan
  • Dakar

Subscribe to Newsletter

Join our monthly newsletter subscribers to get the latest news and insights.

© Copyright 2023. All Rights Reserved by Soatdev IT Consulting Inc.