<mxfile host="zl-research-templates">
  <diagram id="zl-Transformer 编码器" name="Transformer 编码器">
    <mxGraphModel dx="970" dy="840" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="970" pageHeight="840" math="0" shadow="0">
      <root>
        <mxCell id="0"/>
        <mxCell id="1" parent="0"/>
        <mxCell id="c2" value="Transformer 编码器结构" style="text;html=1;strokeColor=none;fillColor=none;whiteSpace=wrap;align=center;verticalAlign=middle;fontSize=16;fontStyle=1;fontColor=#1F2937;" vertex="1" parent="1"><mxGeometry x="90" y="40" width="790" height="30" as="geometry"/></mxCell>
        <mxCell id="c3" value="编码器层" style="rounded=1;arcSize=4;whiteSpace=wrap;html=1;fillColor=#F8FAFC;strokeColor=#CBD5E1;strokeWidth=1.2;dashed=1;verticalAlign=top;align=left;spacingLeft=10;spacingTop=4;fontStyle=1;fontSize=13;fontColor=#374151;" vertex="1" parent="1"><mxGeometry x="90" y="130" width="320" height="480" as="geometry"/></mxCell>
        <mxCell id="c4" value="N×" style="text;html=1;strokeColor=none;fillColor=none;whiteSpace=wrap;align=center;verticalAlign=middle;fontSize=14;fontStyle=1;fontColor=#1F2937;" vertex="1" parent="1"><mxGeometry x="40" y="350" width="30" height="40" as="geometry"/></mxCell>
        <mxCell id="c5" value="残差与层归一化" style="rounded=1;arcSize=12;whiteSpace=wrap;html=1;fillColor=#FAF7C6;strokeColor=#B8A800;strokeWidth=1.5;fontColor=#1F2937;fontSize=12;align=center;verticalAlign=middle;spacing=6;" vertex="1" parent="1"><mxGeometry x="150" y="170" width="200" height="40" as="geometry"/></mxCell>
        <mxCell id="c6" value="前馈网络" style="rounded=1;arcSize=12;whiteSpace=wrap;html=1;fillColor=#CCE8F8;strokeColor=#56B4E9;strokeWidth=1.5;fontColor=#1F2937;fontSize=12;align=center;verticalAlign=middle;spacing=6;" vertex="1" parent="1"><mxGeometry x="150" y="250" width="200" height="40" as="geometry"/></mxCell>
        <mxCell id="c7" value="" style="shape=waypoint;sketch=0;fillStyle=solid;size=6;pointerEvents=1;points=[];fillColor=none;strokeColor=#4B5563;strokeWidth=1.5;resizable=0;rotatable=0;perimeter=centerPerimeter;snapToPoint=1;" vertex="1" parent="1"><mxGeometry x="240" y="320" width="20" height="20" as="geometry"/></mxCell>
        <mxCell id="c8" value="残差与层归一化" style="rounded=1;arcSize=12;whiteSpace=wrap;html=1;fillColor=#FAF7C6;strokeColor=#B8A800;strokeWidth=1.5;fontColor=#1F2937;fontSize=12;align=center;verticalAlign=middle;spacing=6;" vertex="1" parent="1"><mxGeometry x="150" y="370" width="200" height="40" as="geometry"/></mxCell>
        <mxCell id="c9" value="多头自注意力" style="rounded=1;arcSize=12;whiteSpace=wrap;html=1;fillColor=#F8E2B3;strokeColor=#E69F00;strokeWidth=1.5;fontColor=#1F2937;fontSize=12;align=center;verticalAlign=middle;spacing=6;" vertex="1" parent="1"><mxGeometry x="150" y="450" width="200" height="40" as="geometry"/></mxCell>
        <mxCell id="c10" value="" style="shape=waypoint;sketch=0;fillStyle=solid;size=6;pointerEvents=1;points=[];fillColor=none;strokeColor=#4B5563;strokeWidth=1.5;resizable=0;rotatable=0;perimeter=centerPerimeter;snapToPoint=1;" vertex="1" parent="1"><mxGeometry x="240" y="520" width="20" height="20" as="geometry"/></mxCell>
        <mxCell id="c11" value="" style="shape=waypoint;sketch=0;fillStyle=solid;size=6;pointerEvents=1;points=[];fillColor=none;strokeColor=#4B5563;strokeWidth=1.5;resizable=0;rotatable=0;perimeter=centerPerimeter;snapToPoint=1;" vertex="1" parent="1"><mxGeometry x="240" y="560" width="20" height="20" as="geometry"/></mxCell>
        <mxCell id="c12" value="" style="shape=orEllipse;perimeter=ellipsePerimeter;whiteSpace=wrap;html=1;fillColor=#FFFFFF;strokeColor=#4B5563;strokeWidth=1.5;" vertex="1" parent="1"><mxGeometry x="240" y="640" width="20" height="20" as="geometry"/></mxCell>
        <mxCell id="c13" value="位置编码" style="rounded=1;arcSize=12;whiteSpace=wrap;html=1;fillColor=#F2F2F2;strokeColor=#7F7F7F;strokeWidth=1.5;fontColor=#1F2937;fontSize=12;align=center;verticalAlign=middle;spacing=6;" vertex="1" parent="1"><mxGeometry x="90" y="630" width="100" height="40" as="geometry"/></mxCell>
        <mxCell id="c14" value="输入嵌入" style="rounded=1;arcSize=12;whiteSpace=wrap;html=1;fillColor=#F2F2F2;strokeColor=#7F7F7F;strokeWidth=1.5;fontColor=#1F2937;fontSize=12;align=center;verticalAlign=middle;spacing=6;" vertex="1" parent="1"><mxGeometry x="150" y="700" width="200" height="40" as="geometry"/></mxCell>
        <mxCell id="c15" value="输入序列 x&lt;sub&gt;1&lt;/sub&gt;, x&lt;sub&gt;2&lt;/sub&gt;, …, x&lt;sub&gt;n&lt;/sub&gt;" style="text;html=1;strokeColor=none;fillColor=none;whiteSpace=wrap;align=center;verticalAlign=middle;fontSize=12;fontColor=#1F2937;" vertex="1" parent="1"><mxGeometry x="150" y="780" width="200" height="20" as="geometry"/></mxCell>
        <mxCell id="c16" value="编码器输出" style="text;html=1;strokeColor=none;fillColor=none;whiteSpace=wrap;align=center;verticalAlign=middle;fontSize=12;fontColor=#1F2937;" vertex="1" parent="1"><mxGeometry x="150" y="90" width="200" height="20" as="geometry"/></mxCell>
        <mxCell id="e17" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;endArrow=block;endFill=1;strokeWidth=1.5;strokeColor=#4B5563;fontSize=11;fontColor=#1F2937;labelBackgroundColor=#FFFFFF;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;" edge="1" parent="1" source="c15" target="c14"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell>
        <mxCell id="e18" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;endArrow=block;endFill=1;strokeWidth=1.5;strokeColor=#4B5563;fontSize=11;fontColor=#1F2937;labelBackgroundColor=#FFFFFF;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;" edge="1" parent="1" source="c14" target="c12"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell>
        <mxCell id="e19" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;endArrow=block;endFill=1;strokeWidth=1.5;strokeColor=#4B5563;fontSize=11;fontColor=#1F2937;labelBackgroundColor=#FFFFFF;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c13" target="c12"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell>
        <mxCell id="e20" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;endArrow=none;endFill=1;strokeWidth=1.5;strokeColor=#4B5563;fontSize=11;fontColor=#1F2937;labelBackgroundColor=#FFFFFF;exitX=0.5;exitY=0;exitDx=0;exitDy=0;" edge="1" parent="1" source="c12" target="c11"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell>
        <mxCell id="e21" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;endArrow=none;endFill=1;strokeWidth=1.5;strokeColor=#4B5563;fontSize=11;fontColor=#1F2937;labelBackgroundColor=#FFFFFF;" edge="1" parent="1" source="c11" target="c10"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell>
        <mxCell id="e22" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;endArrow=block;endFill=1;strokeWidth=1.5;strokeColor=#4B5563;fontSize=11;fontColor=#1F2937;labelBackgroundColor=#FFFFFF;entryX=0.25;entryY=1;entryDx=0;entryDy=0;" edge="1" parent="1" source="c10" target="c9"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="200" y="530"/></Array></mxGeometry></mxCell>
        <mxCell id="e23" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;endArrow=block;endFill=1;strokeWidth=1.5;strokeColor=#4B5563;fontSize=11;fontColor=#1F2937;labelBackgroundColor=#FFFFFF;entryX=0.5;entryY=1;entryDx=0;entryDy=0;" edge="1" parent="1" source="c10" target="c9"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell>
        <mxCell id="e24" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;endArrow=block;endFill=1;strokeWidth=1.5;strokeColor=#4B5563;fontSize=11;fontColor=#1F2937;labelBackgroundColor=#FFFFFF;entryX=0.75;entryY=1;entryDx=0;entryDy=0;" edge="1" parent="1" source="c10" target="c9"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="300" y="530"/></Array></mxGeometry></mxCell>
        <mxCell id="e25" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;endArrow=block;endFill=1;strokeWidth=1.5;strokeColor=#4B5563;fontSize=11;fontColor=#1F2937;labelBackgroundColor=#FFFFFF;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;" edge="1" parent="1" source="c9" target="c8"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell>
        <mxCell id="e26" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;endArrow=block;endFill=1;strokeWidth=1.5;strokeColor=#4B5563;fontSize=11;fontColor=#1F2937;labelBackgroundColor=#FFFFFF;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c11" target="c8"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="120" y="570"/><mxPoint x="120" y="390"/></Array></mxGeometry></mxCell>
        <mxCell id="e27" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;endArrow=none;endFill=1;strokeWidth=1.5;strokeColor=#4B5563;fontSize=11;fontColor=#1F2937;labelBackgroundColor=#FFFFFF;exitX=0.5;exitY=0;exitDx=0;exitDy=0;" edge="1" parent="1" source="c8" target="c7"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell>
        <mxCell id="e28" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;endArrow=block;endFill=1;strokeWidth=1.5;strokeColor=#4B5563;fontSize=11;fontColor=#1F2937;labelBackgroundColor=#FFFFFF;entryX=0.5;entryY=1;entryDx=0;entryDy=0;" edge="1" parent="1" source="c7" target="c6"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell>
        <mxCell id="e29" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;endArrow=block;endFill=1;strokeWidth=1.5;strokeColor=#4B5563;fontSize=11;fontColor=#1F2937;labelBackgroundColor=#FFFFFF;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c7" target="c5"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="120" y="330"/><mxPoint x="120" y="190"/></Array></mxGeometry></mxCell>
        <mxCell id="e30" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;endArrow=block;endFill=1;strokeWidth=1.5;strokeColor=#4B5563;fontSize=11;fontColor=#1F2937;labelBackgroundColor=#FFFFFF;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;" edge="1" parent="1" source="c6" target="c5"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell>
        <mxCell id="e31" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;endArrow=block;endFill=1;strokeWidth=1.5;strokeColor=#4B5563;fontSize=11;fontColor=#1F2937;labelBackgroundColor=#FFFFFF;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;" edge="1" parent="1" source="c5" target="c16"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell>
        <mxCell id="c32" value="多头自注意力（展开）" style="rounded=1;arcSize=4;whiteSpace=wrap;html=1;fillColor=#FCF2DD;strokeColor=#E69F00;strokeWidth=1.2;dashed=1;verticalAlign=top;align=left;spacingLeft=10;spacingTop=4;fontStyle=1;fontSize=13;fontColor=#374151;" vertex="1" parent="1"><mxGeometry x="470" y="90" width="460" height="520" as="geometry"/></mxCell>
        <mxCell id="c33" value="输出" style="text;html=1;strokeColor=none;fillColor=none;whiteSpace=wrap;align=center;verticalAlign=middle;fontSize=12;fontColor=#1F2937;" vertex="1" parent="1"><mxGeometry x="650" y="140" width="100" height="20" as="geometry"/></mxCell>
        <mxCell id="c34" value="线性变换" style="rounded=1;arcSize=12;whiteSpace=wrap;html=1;fillColor=#F2F2F2;strokeColor=#7F7F7F;strokeWidth=1.5;fontColor=#1F2937;fontSize=12;align=center;verticalAlign=middle;spacing=6;" vertex="1" parent="1"><mxGeometry x="620" y="200" width="160" height="40" as="geometry"/></mxCell>
        <mxCell id="c35" value="拼接" style="rounded=1;arcSize=12;whiteSpace=wrap;html=1;fillColor=#F2F2F2;strokeColor=#7F7F7F;strokeWidth=1.5;fontColor=#1F2937;fontSize=12;align=center;verticalAlign=middle;spacing=6;" vertex="1" parent="1"><mxGeometry x="620" y="280" width="160" height="40" as="geometry"/></mxCell>
        <mxCell id="c36" value="缩放点积注意力&lt;br&gt;&lt;span style=&quot;font-size:11px&quot;&gt;softmax(QK&lt;sup&gt;T&lt;/sup&gt;/√d&lt;sub&gt;k&lt;/sub&gt;)V&lt;/span&gt;" style="shape=mxgraph.basic.layered_rect;dx=20;flipV=1;boundedLbl=1;outlineConnect=0;whiteSpace=wrap;html=1;fillColor=#F8E2B3;strokeColor=#E69F00;strokeWidth=1.5;fontColor=#1F2937;fontSize=12;align=center;verticalAlign=middle;spacing=6;" vertex="1" parent="1"><mxGeometry x="560" y="360" width="300" height="70" as="geometry"/></mxCell>
        <mxCell id="c37" value="h 个头" style="text;html=1;strokeColor=none;fillColor=none;whiteSpace=wrap;align=center;verticalAlign=middle;fontSize=11;fontColor=#1F2937;" vertex="1" parent="1"><mxGeometry x="870" y="390" width="50" height="30" as="geometry"/></mxCell>
        <mxCell id="c38" value="线性变换" style="rounded=1;arcSize=12;whiteSpace=wrap;html=1;fillColor=#F2F2F2;strokeColor=#7F7F7F;strokeWidth=1.5;fontColor=#1F2937;fontSize=12;align=center;verticalAlign=middle;spacing=6;" vertex="1" parent="1"><mxGeometry x="530" y="470" width="100" height="40" as="geometry"/></mxCell>
        <mxCell id="c39" value="查询 Q" style="text;html=1;strokeColor=none;fillColor=none;whiteSpace=wrap;align=center;verticalAlign=middle;fontSize=12;fontColor=#1F2937;" vertex="1" parent="1"><mxGeometry x="530" y="550" width="100" height="20" as="geometry"/></mxCell>
        <mxCell id="e40" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;endArrow=block;endFill=1;strokeWidth=1.5;strokeColor=#4B5563;fontSize=11;fontColor=#1F2937;labelBackgroundColor=#FFFFFF;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;" edge="1" parent="1" source="c39" target="c38"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell>
        <mxCell id="e41" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;endArrow=block;endFill=1;strokeWidth=1.5;strokeColor=#4B5563;fontSize=11;fontColor=#1F2937;labelBackgroundColor=#FFFFFF;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.06666666666666667;entryY=1;entryDx=0;entryDy=0;" edge="1" parent="1" source="c38" target="c36"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell>
        <mxCell id="c42" value="线性变换" style="rounded=1;arcSize=12;whiteSpace=wrap;html=1;fillColor=#F2F2F2;strokeColor=#7F7F7F;strokeWidth=1.5;fontColor=#1F2937;fontSize=12;align=center;verticalAlign=middle;spacing=6;" vertex="1" parent="1"><mxGeometry x="650" y="470" width="100" height="40" as="geometry"/></mxCell>
        <mxCell id="c43" value="键 K" style="text;html=1;strokeColor=none;fillColor=none;whiteSpace=wrap;align=center;verticalAlign=middle;fontSize=12;fontColor=#1F2937;" vertex="1" parent="1"><mxGeometry x="650" y="550" width="100" height="20" as="geometry"/></mxCell>
        <mxCell id="e44" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;endArrow=block;endFill=1;strokeWidth=1.5;strokeColor=#4B5563;fontSize=11;fontColor=#1F2937;labelBackgroundColor=#FFFFFF;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;" edge="1" parent="1" source="c43" target="c42"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell>
        <mxCell id="e45" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;endArrow=block;endFill=1;strokeWidth=1.5;strokeColor=#4B5563;fontSize=11;fontColor=#1F2937;labelBackgroundColor=#FFFFFF;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.4666666666666667;entryY=1;entryDx=0;entryDy=0;" edge="1" parent="1" source="c42" target="c36"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell>
        <mxCell id="c46" value="线性变换" style="rounded=1;arcSize=12;whiteSpace=wrap;html=1;fillColor=#F2F2F2;strokeColor=#7F7F7F;strokeWidth=1.5;fontColor=#1F2937;fontSize=12;align=center;verticalAlign=middle;spacing=6;" vertex="1" parent="1"><mxGeometry x="770" y="470" width="100" height="40" as="geometry"/></mxCell>
        <mxCell id="c47" value="值 V" style="text;html=1;strokeColor=none;fillColor=none;whiteSpace=wrap;align=center;verticalAlign=middle;fontSize=12;fontColor=#1F2937;" vertex="1" parent="1"><mxGeometry x="770" y="550" width="100" height="20" as="geometry"/></mxCell>
        <mxCell id="e48" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;endArrow=block;endFill=1;strokeWidth=1.5;strokeColor=#4B5563;fontSize=11;fontColor=#1F2937;labelBackgroundColor=#FFFFFF;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;" edge="1" parent="1" source="c47" target="c46"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell>
        <mxCell id="e49" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;endArrow=block;endFill=1;strokeWidth=1.5;strokeColor=#4B5563;fontSize=11;fontColor=#1F2937;labelBackgroundColor=#FFFFFF;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.8666666666666667;entryY=1;entryDx=0;entryDy=0;" edge="1" parent="1" source="c46" target="c36"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell>
        <mxCell id="e50" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;endArrow=block;endFill=1;strokeWidth=1.5;strokeColor=#4B5563;fontSize=11;fontColor=#1F2937;labelBackgroundColor=#FFFFFF;exitX=0.4666666666666667;exitY=0;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;" edge="1" parent="1" source="c36" target="c35"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell>
        <mxCell id="e51" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;endArrow=block;endFill=1;strokeWidth=1.5;strokeColor=#4B5563;fontSize=11;fontColor=#1F2937;labelBackgroundColor=#FFFFFF;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;" edge="1" parent="1" source="c35" target="c34"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell>
        <mxCell id="e52" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;endArrow=block;endFill=1;strokeWidth=1.5;strokeColor=#4B5563;fontSize=11;fontColor=#1F2937;labelBackgroundColor=#FFFFFF;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;" edge="1" parent="1" source="c34" target="c33"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell>
        <mxCell id="e53" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;endArrow=block;endFill=1;strokeWidth=1.5;strokeColor=#4B5563;dashed=1;fontSize=11;fontColor=#1F2937;labelBackgroundColor=#FFFFFF;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.7307692307692307;entryDx=0;entryDy=0;" edge="1" parent="1" source="c9" target="c32"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell>
        <mxCell id="c54" value="符号说明" style="rounded=1;arcSize=4;whiteSpace=wrap;html=1;fillColor=#F8FAFC;strokeColor=#CBD5E1;strokeWidth=1.2;dashed=1;verticalAlign=top;align=left;spacingLeft=10;spacingTop=4;fontStyle=1;fontSize=13;fontColor=#374151;" vertex="1" parent="1"><mxGeometry x="470" y="630" width="460" height="170" as="geometry"/></mxCell>
        <mxCell id="c55" value="&lt;div style=&quot;line-height:20px&quot;&gt;N：编码器层数，常取 6&lt;br&gt;h：注意力头数，常取 8&lt;br&gt;d&lt;sub&gt;model&lt;/sub&gt;：模型隐藏维度，常取 512&lt;br&gt;d&lt;sub&gt;k&lt;/sub&gt; = d&lt;sub&gt;model&lt;/sub&gt; / h：每个注意力头的维度&lt;br&gt;前馈网络：两层全连接，中间层维度常取 2048&lt;/div&gt;" style="text;html=1;strokeColor=none;fillColor=none;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#1F2937;" vertex="1" parent="1"><mxGeometry x="490" y="670" width="420" height="100" as="geometry"/></mxCell>
      </root>
    </mxGraphModel>
  </diagram>
</mxfile>
