注意機構
ちゅういきこう
技法
出典 AI下書き
難度 3/5
#機械学習#LLM
入力の系列の中で「どの要素とどの要素が関係し合うか」を重み付けして計算する仕組み。文中の離れた語同士の関係や、画像内の領域同士の関係を捉えられる。
Attention EN
A mechanism that weighs how strongly each element of an input relates to every other, letting models capture long-range relationships in text or between regions of an image.
Transformer の中核部品。各要素が他のすべての要素への「注意の向け先」を学習することで、語順や距離に縛られずに文脈を扱える。画像生成でもプロンプトの語と画像領域の対応付け(クロスアテンション)に使われており、プロンプトが画像のどこに効くかを決める仕組みの正体でもある。
公式 / 参照
Attention Is All You Need(Vaswani et al., 2017) https://arxiv.org/abs/1706.03762