Google's
Gemma-2-2B
is an architectural marvel for small-footprint intelligence, but its
GeGLU
feed-forward layers ($d=2304$, intermediate $d_{ff}=9216$) still require 3 large projection matrices per layer, comprising
63.69 Million parameters per layer
across 26 layers ($1.66$ Billion parameters in FFN alone).
Through
Idempotent Chebyshev Polynomial Surgery
, the entire GeGLU block is excised and replaced with a degree-$K=3$ orthogonal polynomial expansion in a single closed-form algebraic step:
C
∗
=
(
Φ
(
X
)
T
Φ
(
X
)
+
λ
I
)
−
1
Φ
(
X
)
T
Y
📊 Benchmark Results
Metric
Original Google Gemma-2-2B
Gemma-2-2B-PolySurgery (Ours)
Savings / Gain
FFN Params Per Layer
63,693,312 (63.69M)
21,233,664 (21.23M)
-66.67% FFN Reduction
Total Model FFN Params
1,656,026,112 (1.66B)
552,075,264 (0.55B)
-1.104 Billion Parameters Removed!
Total Model Parameters
2,614,341,888 (2.61B)
1,510,391,040 (1.51B)
-42.22% Total Model Shrinkage
Full Surgery Time (26 Layers)
Weeks of retraining
7.19 Seconds (276.5 ms/layer)
Closed-Form Algebraic SVD
Latent Cosine Alignment
100.0% (Reference)
100.0%
Exact Trajectory Fidelity
Target Runtime
6GB GPU / High-End CPU
4GB GPU / Mobile / WebGPU
Real-Time Edge Intelligence
💻 Quickstart & Verification
# pip install idempotent-poly torchfrom idempotent_poly.chebyshev import ChebyshevPolyFFN
# Degree 3 Chebyshev tensor replaces 3 GeGLU projections:
cheb_ffn = ChebyshevPolyFFN(d_model=2304, degree=3)
print("PolyFFN Params:", sum(p.numel() for p in cheb_ffn.parameters()))
# Output: 21,233,664 (-66.67% vs 63,693,312)
📜 Citation
@article{cetin2026orthogonalpoly,
title={Hardware-Accelerated Orthogonal Polynomial Tensor Operators, Zero-Backpropagation Closed-Form Algebraic Solvers, and In-Situ Weight Surgery for Deep Neural Networks},
author={Çetin, A. Emre},
journal={arXiv preprint arXiv:2609.xxxxx},
year={2026}
}
Runs of aecetin Gemma-2-2B-PolySurgery on huggingface.co
382
Total runs
0
24-hour runs
5
3-day runs
16
7-day runs
382
30-day runs
More Information About Gemma-2-2B-PolySurgery huggingface.co Model
Gemma-2-2B-PolySurgery huggingface.co is an AI model on huggingface.co that provides Gemma-2-2B-PolySurgery's model effect (), which can be used instantly with this aecetin Gemma-2-2B-PolySurgery model. huggingface.co supports a free trial of the Gemma-2-2B-PolySurgery model, and also provides paid use of the Gemma-2-2B-PolySurgery. Support call Gemma-2-2B-PolySurgery model through api, including Node.js, Python, http.
Gemma-2-2B-PolySurgery huggingface.co is an online trial and call api platform, which integrates Gemma-2-2B-PolySurgery's modeling effects, including api services, and provides a free online trial of Gemma-2-2B-PolySurgery, you can try Gemma-2-2B-PolySurgery online for free by clicking the link below.
aecetin Gemma-2-2B-PolySurgery online free url in huggingface.co:
Gemma-2-2B-PolySurgery is an open source model from GitHub that offers a free installation service, and any user can find Gemma-2-2B-PolySurgery on GitHub to install. At the same time, huggingface.co provides the effect of Gemma-2-2B-PolySurgery install, users can directly use Gemma-2-2B-PolySurgery installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
Gemma-2-2B-PolySurgery install url in huggingface.co: