A Unified Lightweight Compute Engine for Softmax, GELU, and SiLU Based on a Shared Exponential Unit

Xiaoyu ZHANG , Liang WANG , Limin XIAO

Front. Comput. Sci. ››

PDF (855KB)
Front. Comput. Sci. ›› DOI: 10.1007/s11704-026-61283-5
RESEARCH ARTICLE
A Unified Lightweight Compute Engine for Softmax, GELU, and SiLU Based on a Shared Exponential Unit
Author information +
History +
PDF (855KB)

Abstract

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.

Keywords

Transformer accelerator / Softmax / GELU / SiLU / Sigmoid approximation / Hardware reuse / Time-division multiplexing (TDM) / Fixed-point arithmetic

Cite this article

Download citation ▾
Xiaoyu ZHANG, Liang WANG, Limin XIAO. A Unified Lightweight Compute Engine for Softmax, GELU, and SiLU Based on a Shared Exponential Unit. Front. Comput. Sci. DOI:10.1007/s11704-026-61283-5

登录浏览全文

4963

注册一个新账户 忘记密码

References

Rights & permissions

Higher Education Press 2026

PDF (855KB)

2

Accesses

0

Citation

Detail

Sections
Recommended

/

〈 〉