Physicist uses Stein Variational Gradient Descent to evenly light a Christmas tree

PTenigma · x · 2026-11-06

Paul Thompson turned his daughter's complaint about uneven Christmas tree lights into an SVGD demo: model the lights as particles on a cone surface and use kernel Stein variational updates to push them toward uniform density, under the constraint that lights stay on an equispaced 1-D string (spacing ≤ L cm). He analyzes the covering radius objective — hexagonal lattices are optimal in the flat plane but not on a cone, so the obvious serpentine layout isn't theoretical optimum. A playful application of a technique more commonly seen in generative modeling.

Related event: Mathematician uses SVGD to evenly distribute Christmas tree lights(2 posts)→

Original post →

More from Fun

Fun channel →