CS 471/671 (How to grow language models) - #12 - Fall 2026 - Guest lecture by Arda Uzunoglu

CS 471/671 (How to grow language models) - #12 - Fall 2026 - Guest lecture by Arda Uzunoglu

🎙 Arda Uzunoglu (guest lecturer) 👥 4K 📅 October 9, 2026 ⏱ 64 min 👁 349 📄 tutorial 🧭 2026-10-15
Available in: English (current) Français

Keywords

self-attentionattention maskingpaddingcross-attentiondecoder-only

Summary

The lecture, part of a graduate course on self-supervised learning, begins with a recapitulation of the transformer architecture, emphasizing that self-attention preserves dimensions and that attention weights are normalized row-wise. It explains the scaling by sqrt(d) to prevent softmax saturation, multi-head attention splitting into parallel subspaces, and the roles of residual connections. Inference-time autoregressive generation is contrasted with parallel training, where masking prevents look-ahead. Attention masking is implemented by setting illegal connections to -inf before softmax, and a PyTorch practical note distinguishes between adding a boolean mask and using masked_fill. Padding tokens allow batching of variable-length sequences, with right padding for training and left padding for batched inference, and their role is clearly explained. A live demo using GPT-2 visualizes attention patterns and layer flow. The second half introduces encoder-decoder architectures, describing the encoder as reading the full source and the decoder as writing output autoregressively. The decoder contains masked self-attention and a new cross-attention module that queries the encoder’s representation. Training updates both encoder and decoder, with the encoder providing refined representations. The classification of attention types (encoder self-attention, decoder self-attention, cross-attention) is clarified, and an example shows how cross-attention aids agreement. The lecture concludes with a discussion of layer connection patterns, noting that the decoder attends to the final encoder layer’s output.

214 words

Critical Evaluation

Value of the Information & Strength of the Argument

The value lies in its clear pedagogical breakdown of transformer internals, making complex concepts accessible through step-by-step reasoning and interactive demonstrations. The argumentation is solid: each operation is justified with purpose, such as scaling to avoid peaky softmax, masking to prevent train/inference mismatch, and padding for batching efficiency. The lecturer anticipates common confusions and addresses them with concrete examples, such as why masking must occur before softmax to maintain probability sums. The comparison between training and inference parallelism and the explanation of why the decoder uses final encoder representations are particularly well-argued.

Scientific Rigor, Source Quality, Title Accuracy

The lecture is rigorous, grounded in well-established transformer theory, and consistent with standard deep learning literature. It references practical implementation details (PyTorch) and uses the GPT-2 demo as an illustrative tool, noting its age while highlighting enduring principles. The course website (self-supervised.cs.jhu.edu) is provided as a resource, and the content aligns with academic teaching standards. The title accurately reflects the lecture’s focus on language model development, and the content matches the announced topic.

180 words

Title / Content Match

The title indicates a lecture on growing language models, which directly matches the content covering transformer architectures, self-attention, and training considerations.

Quality & Reliability

9/10

University course lecture from Johns Hopkins CLSP, providing clear and technically accurate explanations of transformer architectures, attention masking, and encoder-decoder models. Content aligns with established research and is presented in a structured pedagogical manner.

Key Moments

Cited Sources

  • Course website — Official course page for CS 471/671, referenced for additional materials and lecture notes.

Contribution & Novelties

This lecture provides a compact, comprehensive overview of transformer variants and practical implementation details, emphasizing the rationale behind masking and padding choices. Its contribution is pedagogical clarity, connecting theoretical concepts with concrete PyTorch usage and interactive visualization.

Pour aller plus loin :

87 words

Radar Profile

The profile shows uniformly high scores across information quantity, quality, technical level, and reliability, reflecting a dense, accurate, and well-presented lecture suitable for advanced learners.

Reliability 9/10