An implementation circuit, method and application of an S-shaped activation function based on ASIC

CN121349255BActive Publication Date: 2026-08-28SHANGHAI QUSU CHAOWEI TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202511422461.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-09-30
Publication Date
2026-08-28
Estimated Expiration
2045-09-30

AI Technical Summary

Technical Problem

本发明采用查表加计算的方法有效平衡缓存、计算两大类资源,解决非查表法计算延迟大、查表法缓存消耗多这一问题

Benefits of technology

[0044]本发明的有益效果包括:本发明通过在ASIC电路中采用查表与乘加结合的方式实现S型激活函数,相比传统的多项式拟合或全查表实现方式,显著降低了片上存储资源的占用,并缩短了计算延迟。具体而言,采用分段量化和对称性优化后,即使在FP16数据格式下,查找表所需存储容量相较于传统查找表方式存储资源减少90%以上;同时,SiLU函数的计算时钟周期数由7个降低至3个,时间消耗降低57%。因此,本发明在保证激活函数计算精度的前提下,实现了存储资源与计算效率的双重优化,有效提升了ASIC加速器在大规模AI模型推理中的整体性能。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121349255B_ABST
    Figure CN121349255B_ABST
Patent Text Reader

Abstract

The application discloses an implementation circuit of an S-shaped activation function based on an ASIC, comprising an input analysis module, an address generation module, a lookup table storage module and a multiplication and addition calculation module; the input analysis module is used for receiving input data in a floating-point number format and separating a sign bit, an exponent bit and a mantissa bit; the address generation module is used for converting the input data into a fixed-point number and generating a lookup table address; the lookup table storage module is used for storing the quantized values of the S-shaped function and outputting corresponding function values; the multiplication and addition calculation module completes multiplication and addition operations to obtain output values of the S-shaped activation function; and the multiplication and addition calculation module is used for outputting the activation function results to a subsequent calculation unit. The application also provides an S-shaped activation function implementation method using the above circuit, which has a wide application prospect.
Need to check novelty before this filing date? Find Prior Art

Citation Information

Patent Citations

  • Configurable and reusable segmented lookup table activation function implementation device

    CN111581593A

  • Resource reuse type transcendental function calculation device and calculation method

    CN120255848A