Transformerの心臓部である注意機構(Attention Mechanism)について解説。Scaled Dot-Product Attentionの仕組みから、複数の表現空間で並列処理を行うMulti-Head Attentionの概念まで、系列データにおける情報の重み付けと抽出のメカニズムを紐解きます。