Practice
Learn
← Quit
0 / 0 correct
LLMs & AI
Hard
1 of 20
Why is softmax computed as exp(x − max(x)) / Σ exp(x − max(x)) in practice?
A
It is required for causal masking
B
It changes the probabilities to favor rare tokens
C
It makes softmax faster
D
Subtracting the max avoids floating-point overflow without changing the result