CS 471/671 (How to grow language models) - #11 - Fall 2026

CS 471/671 (How to grow language models) - #11 - Fall 2026

🎙 Center for Language & Speech Processing (CLSP), JHU 👥 4K 📅 October 7, 2026 ⏱ 47 min 👁 149 📄 tutorial 🧭 2026-10-15
Available in: English (current) Français

Keywords

transformerself-attentionmulti-head attentionlanguage modelsdeep learning

Summary

This lecture from the course ‘How to grow language models’ covers the foundational components of transformers, focusing on self-attention and multi-head attention. The instructor begins by revisiting the core concepts of query, key, and value, explaining how attention mechanisms compute weighted sums of values based on similarities between queries and keys. He then introduces the formal matrix formulation, showing how to compute attention scores with QK^T and apply softmax row-wise. Scaling by the square root of the embedding dimension is justified to maintain variance stability. The lecture extends the formulation to handle batched inputs, demonstrating dimension preservation. Subsequently, multi-head attention is introduced with parallel attention modules that learn different patterns, and the implementation details are discussed, including how to adjust weight matrix dimensions to keep the model dimension constant. The instructor emphasizes efficient implementation by fusing weight matrices to perform large tensor multiplications on GPUs, avoiding sequential for-loops. The lecture concludes with the addition of feed-forward networks, completing the transformer block.

161 words

Critical Evaluation

Value of the Information & Strength of the Argument

The value of this lecture lies in its clear, step-by-step explanation of transformer architecture, making complex concepts accessible through analogies and interactive questioning. The argumentation is solid: the instructor demonstrates the mathematical correctness of attention operations, justifies the scaling factor, and explains the design choices for multi-head attention, such as dimension reduction to maintain compute efficiency. He also addresses practical implementation concerns, encouraging efficient coding practices. The lecture builds conceptually from single attention to multi-head, providing a comprehensive understanding.

Scientific Rigor, Source Quality, Title Accuracy

The lecture does not cite external references but relies on established knowledge from the transformer literature, as evidenced by the alignment with the original ‘Attention Is All You Need’ paper. The content is consistent with standard textbook treatments of transformers. The title accurately reflects the educational context, as it is part of a course on language models. However, the absence of direct citations within the video is a minor limitation for a scientific evaluation, though the course page provides supplementary materials.

175 words

Title / Content Match

The title indicates a lecture on language models, and the content focuses on transformer building blocks, which is directly relevant to the course objective of understanding language model growth.

Quality & Reliability

8/10

The lecture is part of a university course, provides rigorous mathematical derivations and clear explanations of transformer components. The instructor is an expert, and the content is consistent with established literature.

Key Moments

Cited Sources

Concurring Sources

  • Attention Is All You Need — Original paper introducing the transformer architecture, consistent with the lecture's content.

Contribution & Novelties

The lecture provides an original pedagogical approach to explaining transformer internals, emphasizing both mathematical foundations and practical implementation strategies. It bridges theory and code, which is valuable for learners.

Pour aller plus loin :

69 words

Radar Profile

The scores indicate a highly technical and informative video with strong quantitative and qualitative content, but slightly less emphasis on external sourcing and critical evaluation. The high technical level suggests the lecture is aimed at an advanced audience, but the explanations are clear and well-structured.

Reliability 8/10