About the journal
Browse
Collections
Multimedia collections
Authors & reviewers
A Unified Lightweight Compute Engine for Softmax, GELU, and SiLU Based on a Shared Exponential Unit
Xiaoyu ZHANG , Liang WANG , Limin XIAO
Transformer inference evaluates Softmax in attention and GELU or SiLU in feed-forward blocks. When GELU is approximated in the sigmoid form z σ(1.702z) of the original GELU paper, it differs from SiLU only in the scale of the sigmoid argument; both activations then reduce to z • softmax2,1 ( [k, 0]) and share one log-domain softmax datapath with Softmax, extending the Softmax/GELU reuse of Peltekis et al. to a third operator. The mapping shrinks the pre-scaling front end from three 32 × 32 multipliers to one constant multiplication. The datapath uses a 16-segment minimax piecewise-linear exponential, a Mitchell logarithm with a truncated quadratic correction, and signed-digit constants; an optional time-division-multiplexed (TDM) configuration halves the exponential cores. The accuracy gains stem from this arithmetic, not from the operator unification. In SMIC 55 nm at N = 8, against a same-library reconstruction of the dual-mode reuse baseline, the full-throughput and TDM configurations are 33.1% and 47.8% smaller (the latter at half the throughput), close timing at 15 ns, whereas the reconstruction fails at 16 ns, and draw 44–57% less dynamic power under identical activation traces. The area savings persist in open 7 nm and 45 nm libraries. A gated mode adds GeGLU and SwiGLU; on an FPGA board all five operators run at 66.7 MHz without a mismatch in 1.8 × 1010 vector comparisons.
Transformer accelerator / Softmax / GELU / SiLU / Sigmoid approximation / Hardware reuse / Time-division multiplexing (TDM) / Fixed-point arithmetic
Higher Education Press 2026
/
| 〈 |
|
〉 |