知识卡片
视觉注意力块的数据路线
结构图:
flowchart TD
A[图像分块与共享投影] --> B[词元及位置表示]
B --> C[层归一化与多头注意力]
B --> D[第一处残差相加]
C --> D
D --> E[层归一化与逐词元MLP]
D --> F[第二处残差相加]
E --> F
F --> G[后续块或任务读出]
多头注意力承担跨词元汇集,MLP处理各词元内部特征;位置与掩码设计另行规定模型可使用的关系。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- · 查看原书依据
A full transformer architecture is a stack of self-attention layers interleaved with tokenwise nonlinearities. These two steps are analogous to linear layers interleaved with neuronwise nonlinearities in an MLP, as shown below (figure 26.13):
参考来源
- 位置:《Foundations of Computer Vision (Antonio Torralba, Phillip Isola etc.)》第26章《Transformer》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Foundations of Computer Vision (Antonio Torralba, Phillip Isola etc.)/_epub-src/OPS/xhtml/c026.xhtml)
- 结论依据:摘录中关于视觉注意力块的数据路线的定义、比较或条件支撑卡片;原书表述不严谨的范围已在覆盖记录逐项限定,不把案例结果外推为普遍结论。
- 原始内容:A full transformer architecture is a stack of self-attention layers interleaved with tokenwise nonlinearities. These two steps are analogous to linear layers interleaved with neuronwise nonlinearities in an MLP, as shown below (figure 26.13):