A neural network layer produces activations of hidden dimension
.
You consider two normalization strategies:
1. Batch Normalization
2. Layer Normalization
Which option correctly states the number of trainable parameters added by each normalization
method?
6406536025086.
BatchNorm adds
parameters, LayerNorm adds
parameters
6406536025087.
BatchNorm adds
parameters, LayerNorm adds
parameters
6406536025088.
BatchNorm adds
parameters, LayerNorm adds
parameters
6406536025089.
BatchNorm adds
parameters, LayerNorm adds
parameters
6406536025090.
Both add 0 trainable parameters
A published solution is not available for this question yet.
A sub-word vocabulary is being constructed using the WordPiece algorithm. The following tokens
and their frequencies are extracted:
• replay (frequency = 100)
• replus (frequency = 3)
The current vocabulary includes the tokens:
Two candidate merges are under consideration:
• Merge A:
• Merge B:
Which of the above merges are most possible based on the WordPiece tokenizer?
6406536025091.
Merge
6406536025092.
Merge
6406536025093.
Insufficient information to determine
A published solution is not available for this question yet.
A hospital wants to extract disease mentions and treatment plans from unstructured clinical
notes. Notes use heavy abbreviations like ``pt dx w/ CAD, rx aspirin''
For extracting specific disease names from text, which task should you fine-tune BERT for?
6406536025098.
Masked Language Modeling
6406536025099.
Next Sentence Prediction
6406536025100.
Named Entity Recognition
6406536025101.
Text generation
A published solution is not available for this question yet.
blocks. If the
attention matrix is restricted to only the main diagonal blocks (non-overlapping), what is the
computational complexity of the self-attention operation for one layer (ignoring linear
projections)? Assume
Match the positional encoding method (Column A) with its property/behavior (Column B).
**Column A (Methods)**
1. APE
2. RPE
3. RoPE
4. ALiBi
5. NoPE
**Column B (Properties / Observations)**
A. Works even on sequence lengths far beyond training length without retraining, because
attention bias grows proportionally to token distance.
B. Even if the model sees sequences only up to length 512 during training, it fails badly at length
1024, because positions above 512 have never had embeddings learned.
C. Creates an implicit rotation such that the attention score between positions
and
depends
only on the difference
, not the positions themselves.
D. Uses a fixed-size bank of distance embeddings such that two attention pairs
and
with the same distance use the same embedding.
E. The model becomes permutation-invariant, meaning it treats ''cat sat mat'' the same as ``mat
cat sat''.
6406536025106.
1
B, 2
D, 3
C, 4
A, 5
E
6406536025107.
1
D, 2
A, 3
B, 4
C, 5
E
6406536025108.
1
B, 2
C, 3
A, 4
D, 5
E
6406536025109.
1
E, 2
D, 3
A, 4
C, 5
B
A published solution is not available for this question yet.
Which of the following statements accurately describes the properties and computational
complexities of the various sparse and block attention mechanisms?
6406536025148.
Strided Local Attention reduces the computational complexity from quadratic
to linear, specifically
where
is the window size.
6406536025149.
Dilated Attention increases the computational complexity significantly
compared to standard Strided Local Attention because it covers a wider receptive field.
6406536025150.
Global, Random, and Local Window attention patterns handle long sequences
well.
6406536025151.
Empirical observations suggest that random permutations of blocks are
significantly more important for performance than the identity permutation.
A published solution is not available for this question yet.
Suppose you are working on prefix language modeling. The sequence length is 10 and the first
two tokens represent the task-specific prefix. How many non-infinity elements are there in the
mask for computing attention scores?
A published solution is not available for this question yet.
You are configuring a Large Language Model (LLM) for inference and need to estimate the
memory footprint of the KV Cache. Calculate the KV cache memory required per token (in Bytes)
given the following model architecture:
• Number of Layers (
): 32
• Number of Heads (
): 16
• Head Dimension (
): 128
• Precision: 2 Bytes (FP16)
A published solution is not available for this question yet.
A team is developing a new large language model (LLM) for code generation, focusing on an
autoregressive (AR) approach using the Causal Language Modeling (CLM) objective. They
implement a standard Transformer decoder-only architecture.The team is training the model on a
sequence of tokens
, where
is the total length. The CLM objective aims to
maximize the following log-likelihood:
During training, they strictly enforce teacher forcing, meaning the ground-truth previous tokens
are always provided as input to predict the current token. Based on the above setup, answer the
given subquestions.
Which of the following describes the fundamental training mechanism of this model?
6406536025155.
The model predicts the entire sequence
simultaneously without considering
dependencies.
6406536025156.
The model predicts the token
based only on the tokens
up to
.
6406536025157.
The model predicts a masked token
based on both the left and right
context tokens.
A published solution is not available for this question yet.
A team is developing a new large language model (LLM) for code generation, focusing on an
autoregressive (AR) approach using the Causal Language Modeling (CLM) objective. They
implement a standard Transformer decoder-only architecture.The team is training the model on a
sequence of tokens
, where
is the total length. The CLM objective aims to
maximize the following log-likelihood:
During training, they strictly enforce teacher forcing, meaning the ground-truth previous tokens
are always provided as input to predict the current token. Based on the above setup, answer the
given subquestions.
During the training phase on a sequence
of length
, how does the teacher forcing mechanism
specifically relate to the calculation of the loss function
?
6406536025158.
It means the model uses its own previous predictions
as input to
predict
.
6406536025159.
It dictates that the loss is only calculated for tokens that were incorrectly
predicted.
6406536025160.
It ensures that for every prediction
, the model is conditioned on
the ground-truth sequence
.
6406536025161.
It allows the model to see future tokens
when predicting
.
A published solution is not available for this question yet.
A team is developing a new large language model (LLM) for code generation, focusing on an
autoregressive (AR) approach using the Causal Language Modeling (CLM) objective. They
implement a standard Transformer decoder-only architecture.The team is training the model on a
sequence of tokens
, where
is the total length. The CLM objective aims to
maximize the following log-likelihood:
During training, they strictly enforce teacher forcing, meaning the ground-truth previous tokens
are always provided as input to predict the current token. Based on the above setup, answer the
given subquestions.
In the inference phase (when the model is used for generation), why is the teacher forcing
technique not used, and what is the primary challenge this introduces?
6406536025162.
Teacher forcing is used, but only with a small probability.
6406536025163.
It's not used because the ground-truth sequence is unknown; this introduces
the exposure bias problem, where the model is unfamiliar with its own prediction errors.
6406536025164.
It's not used because it drastically slows down the inference speed.
6406536025165.
It's not used; the challenge is the need for a separate encoder-decoder
architecture.
A published solution is not available for this question yet.
A team is developing a new large language model (LLM) for code generation, focusing on an
autoregressive (AR) approach using the Causal Language Modeling (CLM) objective. They
implement a standard Transformer decoder-only architecture.The team is training the model on a
sequence of tokens
, where
is the total length. The CLM objective aims to
maximize the following log-likelihood:
During training, they strictly enforce teacher forcing, meaning the ground-truth previous tokens
are always provided as input to predict the current token. Based on the above setup, answer the
given subquestions.
Which component of the Transformer decoder is essential for enforcing the Causal Language
Modeling constraint?
6406536025166.
The Feed-Forward Network layer.
6406536025167.
The Positional Encoding layer.
6406536025168.
The masked Self-Attention layer.
6406536025169.
The Cross-Attention layer.
A published solution is not available for this question yet.