Module 6: Attention and transformers#

Theme#

Attention and transformers

Essential Question#

How does self-attention replace fixed recurrence for language and multimodal tasks?

Professional Scenario#

A platform team is evaluating whether a transformer block can support document understanding without hiding how token interactions are weighted.

Learning Outcomes#

By the end of this module, students will be able to:

  • explain the core technical idea in precise neural-network vocabulary

  • connect architecture and training choices to the shape of the data and task

  • run or interpret the module lab as reproducible evidence

  • identify limitations, failure modes, and next steps for a defensible experiment

Module Components#

  • Book prose for conceptual framing and practitioner patterns.

  • Assignment notebook for the graded artifact: attention mechanism analysis.

  • Slides and narration for structured teaching.

  • Lab notebook for hands-on experimentation.

  • Rubric for grading technical correctness, evidence, tradeoffs, risk analysis, and communication.

Use This Module in Order#

  1. Read the learning chapter.

  2. Review the slide deck with the matching narration.

  3. In Populi, open the private student-repository link for this course and enter modules/module-6.

  4. Clone the repository once or open its Codespace/Colab copy; run lab.ipynb and complete exercise.ipynb there.

  5. Self-check with the rubric, commit and push the work, then submit exactly what Populi requests.