alt.hn

5/20/2026 at 12:06:56 PM

The quadratic sandwich

https://fedemagnani.github.io/math/2026/04/08/the-quadratic-sandwich.html

by cpp_frog

5/23/2026 at 10:03:38 AM

Great visualizations. Really enjoyed having a well-written example where mathematical proofs directly help with understanding a practical application.

I wonder what would happen with this analysis if a momentum term was added to the gradient descent. It seems that it would fix the specific failure modes in the examples, but I wonder if there's a corresponding mathematical way of categorizing what kinds of functions can(not) be quickly optimized with GD + momentum.

by laGrenouille

5/23/2026 at 7:57:47 AM

The animation is very good, making the article easy to understand

by xuzhenpeng

5/23/2026 at 8:59:08 AM

We studied it in our peparation for college entrance exams in India. Though the detail the article goes in is exhaustive. But I thought that this maybe common or almost common knowledge. We used to call it sandwich theorem

by Guestmodinfo

5/23/2026 at 6:22:45 PM

It frustrates me when math explainers, and textbooks, seem to start from the "here's why our methods are insufficient to solve our problem" and fail to provide an example of the problem they are trying to solve.

What's the question this method is attempting to answer? What does an answer look like? How does this method lead to it?

> If you have ever tried to minimize a function with gradient descent

"and if otherwise, go kick sand," I guess.

by explainforwhat

5/24/2026 at 11:21:25 AM

That's my article! Thank you so much to the user who posted it here <3

by drunello

5/24/2026 at 2:44:17 PM

Thank you for writing this article! It really helped me clear up my understanding of why you care about min and max eigenvalues of a Hessian matrix, something I've been confused about for some time. I have https://fedemagnani.github.io/math/2025/07/04/fenchel.html queued up to read next (convex conjugates being another topic that confuse the hell out of me).

by f5129cac

5/24/2026 at 2:55:27 PM

Haha that's great and excited to hear feedback, thank you so much! In these articles I deliberately want to keep a casual tone, just for grasping the concept, so probably a more rigorous material is very important as a follow-up

by drunello

5/23/2026 at 2:35:03 PM

There is one very clear example that I ran across due to the reasons outlined in the article. If you have a wavelet and you're trying to slide it around to make it fit, that will fail spectacularly. There are lots of problems that boil down to basically the above.

The neural net answer is being able to spawn a wavelet at any position, as opposed to tweaking the position of an existing one.

by Scene_Cast2

5/23/2026 at 5:53:33 PM

This is a great article and its super helpful, thanks to whoever wrote it!

by 20k

5/23/2026 at 12:41:17 PM

Simplex methods can handle those tough situations, though.

by CarVac

5/23/2026 at 5:57:43 PM

Simplex is not applicable. Simplex only minimises a linear function (f(x)=c'x) under linear inequality constraints (Ax≤b). The minimisation problem here is unconstrained, but (very) non-linear.

by FabHK

5/23/2026 at 3:47:51 PM

Kudos for beatiful formulae rendering.

by vzaliva

5/23/2026 at 9:26:26 AM

[flagged]

by xzp12138