179 questions
No questions match those filters.
Why can an activation function that wins on paper, like...
This is one of the questions in the full AI/ML interview bank. Pro unlocks all 1789 questions; Premium includes the same bank plus the highest daily Practice limit.
See plansSwiGLU’s quality edge over GeLU comes from gating: it multiplies two separate learned projections elementwise before the down-projection, and that consistently ablates better than a plain nonlinearity at matched parameter and FLOP budgets. But the gate means two full matrix multiplies have to complete before the elementwise product can happen, and if the serving runtime lacks a fused kernel for that pattern, you pay for two GEMM launches and two round-trips to HBM to write and re-read intermediate activations instead of one.
On memory-bandwidth-constrained hardware — small-batch inference, edge deployment — that extra traffic can dominate, and an unfused SwiGLU can genuinely run slower in wall-clock time than a fused single-GEMM GeLU, despite doing more useful work per FLOP on paper. The lesson is that architecture choices and kernel-level performance aren’t separable decisions: before committing to an activation function for a model that will be deployed on a specific stack, check whether that stack actually ships a fused kernel for the gated variant. If it doesn’t, the real choice is between writing your own fused kernel, falling back to an unfused but still solid alternative, or knowingly accepting the throughput hit.