Computationally efficient softmax loss gradient backpropagation
Abstract
A computation unit comprises first, second, and third circuits. The first circuit traverses gradient loss elements gpn and normalized output elements pn and produces an accumulation C. The accumulation C is produced by element-wise multiplying the gradient loss elements gpn with the corresponding normalized output elements pn and summing the results of the element-wise multiplication. The second circuit, operatively coupled to the first circuit, element-wise subtracts the accumulation C from each of the gradient loss elements gpn and produces modulated gradient loss elements gpn′. The third circuit, operatively coupled to the second circuit, traverses the modulated gradient loss elements gpn′ and produces gradient loss elements gxn for a function preceding the softmax function. The gradient loss elements gxn are produced by element-wise multiplying the modulated gradient loss elements gpn′ with the corresponding normalized output elements pn.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 50 · Forward citations: 0.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computation unit, comprising: a first circuit to traverse gradient loss elements g pn of a softmax function and normalized output elements p n of the softmax function and produce an accumulation C, wherein the accumulation C is produced by element-wise multiplying the gradient loss elements g pn with the corresponding normalized output elements p n and summing the results of the element-wise multiplication; a second circuit operatively coupled to the first circuit to element-wise subtract the accumulation C from each of the gradient loss elements g pn and produce modulated gradient loss
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (50)
Non-Patent Literature (5)
- “Activation Function,” Downloaded from Wikipedia on Aug. 16, 2019, 3 pages.
- a. Mutlu et al., “Computer Architecture: SIMD and GPUs (PartI)”, Computer Architecture Lecture, Carnegie Mellon University, 2013 (Year: 2013).
- Anonymous: “Rounding to 0.5”, Arduino Forum, Aug. 28, 2017, 4 pages.
- Basterretxea et al., “Approximation of sigmoid function and the derivative for hardware implementation of artificial neurons,” IEE Proceedings—Circuits, Devices and Systems, vol. 151, Issue 1, Feb. 5, 2004, 7 pages.
- Bendersky “The Softmax function and its derivative,” https://eli.thegreenplace.net/2016/the-softmax-function-and-its-derivative, Oct. 18, 2016, 11 pages.