Transformers & Self-Attention

🤚🏻 Welcome to Assignment 2 of the CV track of CSOC’26

Introduction

Modules are present on the website, complete one to get the access to the next one. Each module has its deadline, but you can do it before and move to the next. In order to get access to the next module beforehand, ask the mentors on discord to review your solution for the current module. If they think you’ve done it correctly, then you will be given the access to the next module. Adhere strictly to deadlines. Submissions will be evaluated on approach, technical correctness, and clarity. The most technically accurate solution may not necessarily be the one chosen; clarity of thought and a well-reasoned approach will be valued more.

Communities

All resources and updates will be shared through the CSOC website and the Discord Community. Ensure you’re registered on the website and join the Discord community. In case we fail to respond on discord, you can contact us on Whatsapp:

Resources

Let us begin by gaining an introductory understanding of Sequence to Sequence learning, Transformers and Self-Attention.

Dataset Generation

Sequence to Sequence Learning

Standard Transformers & Self-Attention

This section provides useful resources for learning the basics of Transformers:

Deep Dive into Individual Components If you are having a hard time understanding individual components of the Transformer, use these specific resources:

Hugging Face & Implementation

Visualization Aid

Visualizing how attention heads route information can help the math click. Here are the best tools to see Transformers in action: