PolyCom (Polynomial Composition Activations): Making Transformers smarter by letting them see complex patterns in data.
This new activation function that speaks polynomial but thinks like ReLU
https://arxiv.org/abs/2411.03884
π― Original Problem:
Transformers heavily rely on activation functions like ReLU and GeLU for nonlinearity, but these functions limit the model's ability to capture complex patterns and higher-order interactions in data.
-----
π§ Solution in this Paper:
β Introduces PolyCom (Polynomial Composition Activations) with two variants - PolyReLU and PolyNorm
β PolyReLU composes polynomial functions with ReLU: x β Ξ£(i=0 to r) ai * ReLU^i(x)
β PolyNorm normalizes polynomial powers: x β Ξ£(i=0 to r) ai * norm(x^i)
β Uses third-order polynomials (r=3) with trainable coefficients initialized as ai=1/3
-----
π‘ Key Insights:
β PolyReLU networks can exactly represent any ReLU network of same size
β ReLU networks need more parameters to match PolyReLU's expressivity
β Achieves optimal approximation rate in Sobolev spaces with minimal parameters
β Enables capturing of higher-order data interactions without computational overhead
-----
π Results:
β On 1B dense models: PolyNorm outperformed SwiGLU by 1.21% average margin across six tasks
β Lower training loss (2.17 vs 2.19) and validation perplexity (3.17 vs 3.22) compared to SwiGLU
β On MoE models: Better performance on 8 out of 9 downstream tasks










