Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
Tentamen (uitwerkingen)

CS7643 QUIZ 5 QUESTIONS WITH DETAILED VERIFIED ANSWERS (100% CORRECT ANSWERS) /ALREADY GRADED A +

Beoordeling
-
Verkocht
-
Pagina's
5
Cijfer
A+
Geüpload op
24-04-2026
Geschreven in
2025/2026

CS7643 QUIZ 5 QUESTIONS WITH DETAILED VERIFIED ANSWERS (100% CORRECT ANSWERS) /ALREADY GRADED A +

Instelling
CS7643
Vak
CS7643

Voorbeeld van de inhoud

CS7643 QUIZ 5 QUESTIONS WITH DETAILED VERIFIED
ANSWERS (100% CORRECT ANSWERS) /ALREADY
GRADED A +



Neural Attention - ANSWER-- weighting or probability distribution over inputs that depend on
computational state and inputs

-HOW IT's Computed?

1. "Hard" - where samples are drawn from the distribution over the input

2. "Soft" - where the distribution is used directly as a weighted average



- Allows information to propagate between distant computational nodes while making minimal structural
assumptions

- Most standard form of attention is softmax



Softmax Properties - ANSWER-- Probabilities sum to one (gives probability distribution independent of
input)

- Performed on sets so invariant to different permutations (permutation invariant)

- Not linear

- Doubling inputs will put more mass on largest input

- Softmax is differentiable



Softmax Attention vs Final Layer of MLP - ANSWER-Attention:

- q is an internal hidden state, U is the embeddings of input (previous layer)

- distribution corresponds to a summary of U



MLP:

- q is last hidden state, U is embedding of class labels

- distribution corresponds to labelings (outputs)

, Position Embedding - ANSWER-- A vector that depend only on the location in the sequence which is
added to an input placed at that location in the sequence.

- Adds information about the absolute and relative locations of inputs

--> Need this in transformer architectures as they are attention based not sequentially based



Transformers - ANSWER-- multi-layer attention model that is state of the art in most language tasks

- Superior compared to previous attention architectures because:

1. Multi-query hidden-state propagation ("Self-attention") (MOST IMPORTANT THING)

2. Multi-head attention

3. Residual Connections, LayerNorm



Transformers: Self Attention (Multi-query hidden-state propagation) - ANSWER-- improves on softmax
attention by having a controller for every input (size of controller state grows with input size)



Transformers: Multi-head attention - ANSWER-- combines multiple attention 'heads' being trained in the
same way on the same data - but with different weight matrices

- each of the L attention heads yields values for each token; these values are then multiplied by trained
parameters and added



Causal Attention - ANSWER-- Attention mask (way of putting a graph structure on transformer)

- Masks out attention weights that don't go from left to right

--> training code outputs a prediction at each token simultaneously (and takes gradients simultaneously)

--> massively speeds up training (by the size of the context)

--> Not necessary for masked language models like BERT



Attention vs. Seq2Seq Modeling - ANSWER-- Seq2Seq passes a single context (the last hidden state) to
the decoder, Attention passes all hidden states to the decoder

- Decoder computes a weighted sum of all hidden states to determine single context vector



BERT is a stack of - ANSWER-Encoder Modules

Geschreven voor

Instelling
CS7643
Vak
CS7643

Documentinformatie

Geüpload op
24 april 2026
Aantal pagina's
5
Geschreven in
2025/2026
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

$19.99
Krijg toegang tot het volledige document:

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kun je een ander document kiezen. Je kunt het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF

Maak kennis met de verkoper

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
DoctorDee Teachme2-tutor
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
24
Lid sinds
2 jaar
Aantal volgers
7
Documenten
4401
Laatst verkocht
1 maand geleden
Hi wayne1111

3.5

6 beoordelingen

5
3
4
0
3
1
2
1
1
1

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Bezig met je bronvermelding?

Maak nauwkeurige citaten in APA, MLA en Harvard met onze gratis bronnengenerator.

Bezig met je bronvermelding?

Veelgestelde vragen