Skip to content
KernelIndex
Search⌘K

Tanh gated residual add backward

23 eligible runs
other

Backward pass for tanh-gated residual addition. Computes gradients for residual, hidden_states, and gate parameter. Forward: output = residual + tanh(gate) * hidden_states * mask. Backward computes: grad_residual = grad_output, grad_hidden_states = grad_output * tanh(gate) * mask, grad_gate = sum(grad_output * hidden_states * mask * sech^2(gate)).

Fastest reported
9.80µsmean · 93% of SOL
Amir M. Mir | SF TensorLicense unknown · unknown

Reported evidence · last observed 2026-08-03. Reported by source; not independently reproduced. No public source. License unknown.

No public sourceRun detail →

Current records

Workloadsuite of 16 cases · mean latencyhidden_size = 409616 cases

Not measured on H100 for this workload. Challenges →

Source-native comparison · GPU NVIDIA B200 · Workload suite of 16 cases · mean latency · Protocol SOL-ExecBench evaluation stack v1.1 · mean · 13 results · last observed 2026-08-13Record history →
#
Implementation
Latency
vs #1
Trust
Observed
1
9.80µs93% SOL
1.00×
Reported · license unknown · no source
2026-08-03

Measured exactly what you asked. Reported by source; not independently reproduced.

no sourcelicense unknownno install recipeRun detail →
2
10.1µs93% SOL
1.03×
Reported · license unknown · no source
2026-07-26

Measured exactly what you asked. Reported by source; not independently reproduced.

no sourcelicense unknownno install recipeRun detail →
3
10.3µs92% SOL
1.05×
Reported · license unknown · no source
2026-07-10

Measured exactly what you asked. Reported by source; not independently reproduced.

no sourcelicense unknownno install recipeRun detail →
4
11.1µs90% SOL
1.14×
Reported · license unknown · no source
2026-07-10

Measured exactly what you asked. Reported by source; not independently reproduced.

no sourcelicense unknownno install recipeRun detail →
5
11.2µs91% SOL
1.14×
Reported · license unknown · no source
2026-08-13

Measured exactly what you asked. Reported by source; not independently reproduced.

no sourcelicense unknownno install recipeRun detail →
6
11.4µs90% SOL
1.17×
Reported · license unknown · no source
2026-08-13

Measured exactly what you asked. Reported by source; not independently reproduced.

no sourcelicense unknownno install recipeRun detail →
7
11.6µs89% SOL
1.18×
Reported · license unknown · no source
2026-07-24

Measured exactly what you asked. Reported by source; not independently reproduced.

no sourcelicense unknownno install recipeRun detail →
8
12.0µs89% SOL
1.23×
Reported · license unknown · no source
2026-07-16

Measured exactly what you asked. Reported by source; not independently reproduced.

no sourcelicense unknownno install recipeRun detail →
9
12.0µs89% SOL
1.23×
Reported · license unknown · no source
2026-07-10

Measured exactly what you asked. Reported by source; not independently reproduced.

no sourcelicense unknownno install recipeRun detail →
10
12.1µs89% SOL
1.23×
Reported · license unknown · no source
2026-07-10

Measured exactly what you asked. Reported by source; not independently reproduced.

no sourcelicense unknownno install recipeRun detail →
11
13.6µs86% SOL
1.39×
Reported · license unknown · no source
2026-07-11

Measured exactly what you asked. Reported by source; not independently reproduced.

no sourcelicense unknownno install recipeRun detail →
12
15.1µs83% SOL
1.54×
Reported · license unknown · no source
2026-07-10

Measured exactly what you asked. Reported by source; not independently reproduced.

no sourcelicense unknownno install recipeRun detail →
13
25.1µs69% SOL
2.56×
Reported · license unknown · no source
2026-07-10

Measured exactly what you asked. Reported by source; not independently reproduced.

no sourcelicense unknownno install recipeRun detail →

Implementations

Implementation
Runtime
Best latency
Evidence
Availability
unknown
11.2µs
1.14×
Reported
license unknown · no source
unknown
11.1µs
1.13×
Reported
license unknown · no source
unknown
11.6µs
1.18×
Reported
license unknown · no source
unknown
12.0µs
1.23×
Reported
license unknown · no source
unknown
12.1µs
1.23×
Reported
license unknown · no source
unknown
12.0µs
1.23×
Reported
license unknown · no source
unknown
16.0µs
1.63×
Reported
license unknown · no source
unknown
23.9µs
2.44×
Reported
license unknown · no source
Show all 23 implementations ›
unknown
10.3µs
1.05×
Reported
license unknown · no source
unknown
11.1µs
1.14×
Reported
license unknown · no source
unknown
11.4µs
1.17×
Reported
license unknown · no source
unknown
12.1µs
1.23×
Reported
license unknown · no source
unknown
12.2µs
1.24×
Reported
license unknown · no source
unknown
12.4µs
1.27×
Reported
license unknown · no source
unknown
13.6µs
1.39×
Reported
license unknown · no source
unknown
15.1µs
1.54×
Reported
license unknown · no source
unknown
15.2µs
1.55×
Reported
license unknown · no source
unknown
16.1µs
1.64×
Reported
license unknown · no source
unknown
25.1µs
2.56×
Reported
license unknown · no source
unknown
90.9µs
9.28×
Reported
license unknown · no source
unknown
9.80µs
1.00×
Reported
license unknown · no source
unknown
10.1µs
1.03×
Reported
license unknown · no source
unknown
10.3µs
1.05×
Reported
license unknown · no source

Semantics

Inputs and outputs
grad_outputbf16 [batch_size, seq_len, hidden_size]
gatebf16 scalar
hidden_statesbf16 [batch_size, seq_len, hidden_size]
maskbf16 [batch_size, seq_len, 1]
grad_residualbf16 [batch_size, seq_len, hidden_size]
grad_hidden_statesbf16 [batch_size, seq_len, hidden_size]
grad_gatebf16 scalar
Axes and behavior
seq_lenvariable
batch_sizevariable
hidden_sizeconstant = 4096
determinismunspecified
constraintsNo mutation or aliasing
Identity
alias061_tanh_gated_residual_add_backwardmodelllama-3-2-11b-visionsha2563975ca7accd2…
Sources: NVIDIA SOL-ExecBench (2026-08-13)last observed 2026-08-13How records are decidedJSON