Power Series, Taylor Series
How do polynomial models, encrypted inference, and local curvature use Taylor ideas?
Vishnu Boddeti
Example 1
CKKS evaluates additions and multiplications. ReLU must therefore become a polynomial.
AutoFHE overview: private data remain encrypted while the cloud evaluates a polynomial CNN.
How can a cloud classify an encrypted image when the encryption scheme cannot evaluate ReLU?
Math bridge: Taylor series explains local polynomial approximation. AutoFHE goes further: ReLU is not smooth at zero, so the deployed approximation is range-aware and optimized rather than simply its Taylor series.
Example 2
Shampoo keeps one manageable statistic per tensor mode instead of one enormous full matrix.
The left factor rescales row directions. The right factor rescales column directions.
Shampoo preserves the row-column structure of a layer instead of flattening all parameters into one enormous vector.
Why is one learning rate—or even one scale per parameter—not enough for a badly conditioned layer?
Important distinction: Shampoo is not computing the Hessian or taking an exact Newton step. The second-order Taylor picture explains why geometry matters; Shampoo estimates useful geometry from accumulated gradients.
Example 3
Different layers see different ranges. One global setting wastes depth or loses accuracy.
ATLAS turns encrypted-transformer approximation into a multi-objective configuration search.
How can a transformer run on ciphertext when attention and normalization contain unsupported nonlinear functions?
Math bridge: the approximation error depends jointly on polynomial complexity and the interval on which it must be accurate—the same local-versus-global issue shown in the Taylor demo.
Example 4
The architecture raises degree without storing the full coefficient tensor.
Multiplicative skip blocks raise polynomial degree while reusing factorized linear projections.
Can a deep model learn rich nonlinear interactions while remaining an explicit polynomial of its input?
Math bridge: a Taylor polynomial approximates a fixed smooth function locally. A Π-Net instead learns the coefficients of a finite multivariate polynomial from data; the architecture determines which high-order interactions can be represented efficiently.
Each scenario hides a mathematical structure from this lecture. Identify the structure, justify it, and work through the resulting problem.
An edge accelerator replaces the exponential in attention with a cheap quadratic whenever logits stay between $-0.2$ and $0.2$. Before trusting it, you need both the polynomial and a guarantee on its worst mistake.
Use a Taylor expansion about $x=0$ through degree two.
A residual block must be inverted on hardware that can apply $A$ repeatedly but cannot form a dense inverse. Someone proposes adding $I+A+A^2+\cdots$ and stopping after a manageable number of terms. When does that trick work?
Assume $\|A\|<1$ and consider $S_k=I+A+\cdots+A^k$.
A second-order optimizer wants a quick local model of logistic loss near zero margin. A quadratic would reveal not only the current slope but also the local curvature without evaluating another exponential.
$\ell(z)=\log(1+e^{-z})$ and the expansion point is $z=0$.