Miss it here,
not in the exam.
Build a skill, test your curiosity, or take on a friend. Every answer comes with the why.
Try a card · AI & LLM Engineering
In a transformer-based language model, what is the primary purpose of the softmax function applied to the attention scores (the dot products of queries and keys)?
The softmax function converts the raw attention scores (logits from query-key dot products) into a valid probability distribution where all weights are non-negative and sum to 1. This means each token's representation is a weighted combination of all value vectors, with the weights reflecting learned relevance. Without softmax, the raw scores could be arbitrarily large or negative, making the weighted sum unstable and uninterpretable. The option about eliminating negatives is partially true (softmax outputs are non-negative) but mischaracterises the purpose — softmax normalises, it does not simply clip negatives. The option about equal weights describes mean pooling, not attention. The option restricting softmax to training is wrong — softmax is applied at every forward pass, including inference.
Find your next rabbit hole
- Cloud certAWS SAA-C03247 questions →
- AccountingAccounting: GAAP & IFRS400 questions →
- TaxTax: UK/US/UAE/KSA/EU324 questions →
- AI skillsAI & LLM Engineering501 questions →
- TriviaTrivia268 questions →
- StudentsSchool248 questions →
- FinanceStock Market & Investing198 questions →
- DrivingUK Driving Theory199 questions →
No matching subjects. Try AI, tax or science.
Better with a little competition.
Pick a trivia topic, finish a round, then send a friend your challenge.
Understand it. Then test it.
All guides →Stop-Loss vs Stop-Limit Order: A Worked Example With Real Numbers
A stop and a stop-limit order behave very differently in a gap-down. A worked numeric example shows what each fills at — and when one doesn't fill at all.
Saudi Arabia withholding tax rates (Article 68): full schedule and worked examples
Every Article 68 withholding tax rate on payments from Saudi Arabia — including the 2023 cut to 5% for technical/consulting fees — plus worked examples.
Turn yesterday’s misses into progress
Revisit questions you missed with a fresh round of practice.