<?xml version="1.0" encoding="UTF-8"?>
<mxfile host="drawio" compressed="false">
  <diagram id="p1" name="Multi-Head Latent Attention">
<mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/><mxCell id="g" value="" style="group;" vertex="1" connectable="0" parent="1"><mxGeometry width="590" height="505" as="geometry"/></mxCell><mxCell id="n1" value="Hidden h&lt;sub&gt;t&lt;/sub&gt;" style="rounded=1;arcSize=8;whiteSpace=wrap;html=1;fontColor=#333333;strokeWidth=1.5;fontFamily=Times New Roman;fillColor=#F8CECC;strokeColor=#B85450;fontSize=12;" vertex="1" parent="g"><mxGeometry x="235" y="10" width="120" height="30" as="geometry"/></mxCell><mxCell id="n2" value="W&lt;sup&gt;DQ&lt;/sup&gt; (down-proj)" style="rounded=1;arcSize=8;whiteSpace=wrap;html=1;fontColor=#333333;strokeWidth=1.5;fontFamily=Times New Roman;fillColor=#FFE6CC;strokeColor=#D79B00;fontSize=12;" vertex="1" parent="g"><mxGeometry x="40" y="80" width="150" height="30" as="geometry"/></mxCell><mxCell id="n3" value="W&lt;sup&gt;DKV&lt;/sup&gt; (down-proj)" style="rounded=1;arcSize=8;whiteSpace=wrap;html=1;fontColor=#333333;strokeWidth=1.5;fontFamily=Times New Roman;fillColor=#FFE6CC;strokeColor=#D79B00;fontSize=12;" vertex="1" parent="g"><mxGeometry x="400" y="80" width="150" height="30" as="geometry"/></mxCell><mxCell id="n4" value="Latent c&lt;sup&gt;Q&lt;/sup&gt;" style="rounded=1;arcSize=8;whiteSpace=wrap;html=1;fontColor=#333333;strokeWidth=1.5;fontFamily=Times New Roman;fillColor=#F5F5F5;strokeColor=#999999;fontSize=12;" vertex="1" parent="g"><mxGeometry x="40" y="135" width="150" height="30" as="geometry"/></mxCell><mxCell id="n5" value="Latent c&lt;sup&gt;KV&lt;/sup&gt; (cached)" style="rounded=1;arcSize=8;whiteSpace=wrap;html=1;fontColor=#333333;strokeWidth=1.5;fontFamily=Times New Roman;fillColor=#D5F0EE;strokeColor=#4A9C94;fontSize=12;" vertex="1" parent="g"><mxGeometry x="400" y="135" width="150" height="30" as="geometry"/></mxCell><mxCell id="n6" value="W&lt;sup&gt;UQ&lt;/sup&gt;" style="rounded=1;arcSize=8;whiteSpace=wrap;html=1;fontColor=#333333;strokeWidth=1.5;fontFamily=Times New Roman;fillColor=#FFE6CC;strokeColor=#D79B00;fontSize=12;" vertex="1" parent="g"><mxGeometry x="10" y="195" width="90" height="30" as="geometry"/></mxCell><mxCell id="n7" value="W&lt;sup&gt;QR&lt;/sup&gt;" style="rounded=1;arcSize=8;whiteSpace=wrap;html=1;fontColor=#333333;strokeWidth=1.5;fontFamily=Times New Roman;fillColor=#FFE6CC;strokeColor=#D79B00;fontSize=12;" vertex="1" parent="g"><mxGeometry x="130" y="195" width="90" height="30" as="geometry"/></mxCell><mxCell id="n8" value="W&lt;sup&gt;KR&lt;/sup&gt;" style="rounded=1;arcSize=8;whiteSpace=wrap;html=1;fontColor=#333333;strokeWidth=1.5;fontFamily=Times New Roman;fillColor=#FFE6CC;strokeColor=#D79B00;fontSize=12;" vertex="1" parent="g"><mxGeometry x="250" y="195" width="90" height="30" as="geometry"/></mxCell><mxCell id="n9" value="W&lt;sup&gt;UK&lt;/sup&gt;" style="rounded=1;arcSize=8;whiteSpace=wrap;html=1;fontColor=#333333;strokeWidth=1.5;fontFamily=Times New Roman;fillColor=#FFE6CC;strokeColor=#D79B00;fontSize=12;" vertex="1" parent="g"><mxGeometry x="370" y="195" width="90" height="30" as="geometry"/></mxCell><mxCell id="n10" value="W&lt;sup&gt;UV&lt;/sup&gt;" style="rounded=1;arcSize=8;whiteSpace=wrap;html=1;fontColor=#333333;strokeWidth=1.5;fontFamily=Times New Roman;fillColor=#FFE6CC;strokeColor=#D79B00;fontSize=12;" vertex="1" parent="g"><mxGeometry x="490" y="195" width="90" height="30" as="geometry"/></mxCell><mxCell id="n11" value="RoPE" style="rounded=1;arcSize=8;whiteSpace=wrap;html=1;fontColor=#333333;strokeWidth=1.5;fontFamily=Times New Roman;fillColor=#FFF2CC;strokeColor=#D6B656;fontSize=12;" vertex="1" parent="g"><mxGeometry x="130" y="250" width="90" height="30" as="geometry"/></mxCell><mxCell id="n12" value="RoPE" style="rounded=1;arcSize=8;whiteSpace=wrap;html=1;fontColor=#333333;strokeWidth=1.5;fontFamily=Times New Roman;fillColor=#FFF2CC;strokeColor=#D6B656;fontSize=12;" vertex="1" parent="g"><mxGeometry x="250" y="250" width="90" height="30" as="geometry"/></mxCell><mxCell id="n13" value="C" style="shape=ellipse;whiteSpace=wrap;html=1;aspect=fixed;fontColor=#333333;strokeWidth=1.5;fontStyle=1;fontFamily=Times New Roman;fillColor=#FFFFFF;strokeColor=#666666;fontSize=16;" vertex="1" parent="g"><mxGeometry x="100" y="300" width="30" height="30" as="geometry"/></mxCell><mxCell id="n14" value="C" style="shape=ellipse;whiteSpace=wrap;html=1;aspect=fixed;fontColor=#333333;strokeWidth=1.5;fontStyle=1;fontFamily=Times New Roman;fillColor=#FFFFFF;strokeColor=#666666;fontSize=16;" vertex="1" parent="g"><mxGeometry x="340" y="300" width="30" height="30" as="geometry"/></mxCell><mxCell id="n15" value="Multi-Head Attention" style="rounded=1;arcSize=8;whiteSpace=wrap;html=1;fontColor=#333333;strokeWidth=1.5;fontFamily=Times New Roman;fillColor=#E1D5E7;strokeColor=#9673A6;fontSize=12;" vertex="1" parent="g"><mxGeometry x="25" y="355" width="540" height="30" as="geometry"/></mxCell><mxCell id="n16" value="W&lt;sup&gt;O&lt;/sup&gt;" style="rounded=1;arcSize=8;whiteSpace=wrap;html=1;fontColor=#333333;strokeWidth=1.5;fontFamily=Times New Roman;fillColor=#FFE6CC;strokeColor=#D79B00;fontSize=12;" vertex="1" parent="g"><mxGeometry x="240" y="410" width="110" height="30" as="geometry"/></mxCell><mxCell id="n17" value="Output u&lt;sub&gt;t&lt;/sub&gt;" style="rounded=1;arcSize=8;whiteSpace=wrap;html=1;fontColor=#333333;strokeWidth=1.5;fontFamily=Times New Roman;fillColor=#FFF2CC;strokeColor=#D6B656;fontSize=12;" vertex="1" parent="g"><mxGeometry x="235" y="465" width="120" height="30" as="geometry"/></mxCell><mxCell id="n18" value="q&lt;sup&gt;C&lt;/sup&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;fontSize=10;fontColor=#999999;fontFamily=Times New Roman;" vertex="1" connectable="0" parent="g"><mxGeometry x="60" y="262" width="30" height="16" as="geometry"/></mxCell><mxCell id="n19" value="q&lt;sup&gt;R&lt;/sup&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;fontSize=10;fontColor=#999999;fontFamily=Times New Roman;" vertex="1" connectable="0" parent="g"><mxGeometry x="180" y="288" width="30" height="16" as="geometry"/></mxCell><mxCell id="n20" value="k&lt;sup&gt;R&lt;/sup&gt; (cached)" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;fontSize=10;fontColor=#999999;fontFamily=Times New Roman;" vertex="1" connectable="0" parent="g"><mxGeometry x="345" y="257" width="65" height="16" as="geometry"/></mxCell><mxCell id="n21" value="k&lt;sup&gt;C&lt;/sup&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;fontSize=10;fontColor=#999999;fontFamily=Times New Roman;" vertex="1" connectable="0" parent="g"><mxGeometry x="420" y="262" width="30" height="16" as="geometry"/></mxCell><mxCell id="n22" value="v&lt;sup&gt;C&lt;/sup&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;fontSize=10;fontColor=#999999;fontFamily=Times New Roman;" vertex="1" connectable="0" parent="g"><mxGeometry x="540" y="262" width="30" height="16" as="geometry"/></mxCell><mxCell id="n23" value="q" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;fontSize=10;fontColor=#999999;fontFamily=Times New Roman;" vertex="1" connectable="0" parent="g"><mxGeometry x="120" y="334" width="20" height="16" as="geometry"/></mxCell><mxCell id="n24" value="k" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;fontSize=10;fontColor=#999999;fontFamily=Times New Roman;" vertex="1" connectable="0" parent="g"><mxGeometry x="360" y="334" width="20" height="16" as="geometry"/></mxCell><mxCell id="e1" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;strokeColor=#333333;strokeWidth=1.5;fontSize=11;fontColor=#333333;labelBackgroundColor=#FFFFFF;fontFamily=Times New Roman;endArrow=block;endFill=1;endSize=2;exitX=0.5;exitY=1;exitDx=0;exitDy=0;exitPerimeter=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" source="n1" target="n2" parent="g"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="295" y="60"/><mxPoint x="115" y="60"/></Array></mxGeometry></mxCell><mxCell id="e2" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;strokeColor=#333333;strokeWidth=1.5;fontSize=11;fontColor=#333333;labelBackgroundColor=#FFFFFF;fontFamily=Times New Roman;endArrow=block;endFill=1;endSize=2;exitX=0.5;exitY=1;exitDx=0;exitDy=0;exitPerimeter=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" source="n1" target="n3" parent="g"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="295" y="60"/><mxPoint x="475" y="60"/></Array></mxGeometry></mxCell><mxCell id="e3" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;strokeColor=#333333;strokeWidth=1.5;fontSize=11;fontColor=#333333;labelBackgroundColor=#FFFFFF;fontFamily=Times New Roman;endArrow=block;endFill=1;endSize=2;exitX=0.5;exitY=1;exitDx=0;exitDy=0;exitPerimeter=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" source="n1" target="n8" parent="g"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="e4" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;strokeColor=#333333;strokeWidth=1.5;fontSize=11;fontColor=#333333;labelBackgroundColor=#FFFFFF;fontFamily=Times New Roman;endArrow=block;endFill=1;endSize=2;exitX=0.5;exitY=1;exitDx=0;exitDy=0;exitPerimeter=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" source="n2" target="n4" parent="g"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="e5" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;strokeColor=#333333;strokeWidth=1.5;fontSize=11;fontColor=#333333;labelBackgroundColor=#FFFFFF;fontFamily=Times New Roman;endArrow=block;endFill=1;endSize=2;exitX=0.5;exitY=1;exitDx=0;exitDy=0;exitPerimeter=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" source="n3" target="n5" parent="g"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="e6" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;strokeColor=#333333;strokeWidth=1.5;fontSize=11;fontColor=#333333;labelBackgroundColor=#FFFFFF;fontFamily=Times New Roman;endArrow=block;endFill=1;endSize=2;exitX=0.5;exitY=1;exitDx=0;exitDy=0;exitPerimeter=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" source="n4" target="n6" parent="g"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="115" y="180"/><mxPoint x="55" y="180"/></Array></mxGeometry></mxCell><mxCell id="e7" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;strokeColor=#333333;strokeWidth=1.5;fontSize=11;fontColor=#333333;labelBackgroundColor=#FFFFFF;fontFamily=Times New Roman;endArrow=block;endFill=1;endSize=2;exitX=0.5;exitY=1;exitDx=0;exitDy=0;exitPerimeter=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" source="n4" target="n7" parent="g"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="115" y="180"/><mxPoint x="175" y="180"/></Array></mxGeometry></mxCell><mxCell id="e8" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;strokeColor=#333333;strokeWidth=1.5;fontSize=11;fontColor=#333333;labelBackgroundColor=#FFFFFF;fontFamily=Times New Roman;endArrow=block;endFill=1;endSize=2;exitX=0.5;exitY=1;exitDx=0;exitDy=0;exitPerimeter=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" source="n5" target="n9" parent="g"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="475" y="180"/><mxPoint x="415" y="180"/></Array></mxGeometry></mxCell><mxCell id="e9" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;strokeColor=#333333;strokeWidth=1.5;fontSize=11;fontColor=#333333;labelBackgroundColor=#FFFFFF;fontFamily=Times New Roman;endArrow=block;endFill=1;endSize=2;exitX=0.5;exitY=1;exitDx=0;exitDy=0;exitPerimeter=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" source="n5" target="n10" parent="g"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="475" y="180"/><mxPoint x="535" y="180"/></Array></mxGeometry></mxCell><mxCell id="e10" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;strokeColor=#333333;strokeWidth=1.5;fontSize=11;fontColor=#333333;labelBackgroundColor=#FFFFFF;fontFamily=Times New Roman;endArrow=block;endFill=1;endSize=2;exitX=0.5;exitY=1;exitDx=0;exitDy=0;exitPerimeter=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" source="n7" target="n11" parent="g"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="e11" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;strokeColor=#333333;strokeWidth=1.5;fontSize=11;fontColor=#333333;labelBackgroundColor=#FFFFFF;fontFamily=Times New Roman;endArrow=block;endFill=1;endSize=2;exitX=0.5;exitY=1;exitDx=0;exitDy=0;exitPerimeter=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" source="n8" target="n12" parent="g"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="e12" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;strokeColor=#333333;strokeWidth=1.5;fontSize=11;fontColor=#333333;labelBackgroundColor=#FFFFFF;fontFamily=Times New Roman;endArrow=block;endFill=1;endSize=2;exitX=0.5;exitY=1;exitDx=0;exitDy=0;exitPerimeter=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" source="n6" target="n13" parent="g"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="55" y="315"/></Array></mxGeometry></mxCell><mxCell id="e13" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;strokeColor=#333333;strokeWidth=1.5;fontSize=11;fontColor=#333333;labelBackgroundColor=#FFFFFF;fontFamily=Times New Roman;endArrow=block;endFill=1;endSize=2;exitX=0.5;exitY=1;exitDx=0;exitDy=0;exitPerimeter=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" source="n11" target="n13" parent="g"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="175" y="315"/></Array></mxGeometry></mxCell><mxCell id="e14" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;strokeColor=#333333;strokeWidth=1.5;fontSize=11;fontColor=#333333;labelBackgroundColor=#FFFFFF;fontFamily=Times New Roman;endArrow=block;endFill=1;endSize=2;exitX=0.5;exitY=1;exitDx=0;exitDy=0;exitPerimeter=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" source="n12" target="n14" parent="g"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="295" y="315"/></Array></mxGeometry></mxCell><mxCell id="e15" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;strokeColor=#333333;strokeWidth=1.5;fontSize=11;fontColor=#333333;labelBackgroundColor=#FFFFFF;fontFamily=Times New Roman;endArrow=block;endFill=1;endSize=2;exitX=0.5;exitY=1;exitDx=0;exitDy=0;exitPerimeter=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" source="n9" target="n14" parent="g"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="415" y="315"/></Array></mxGeometry></mxCell><mxCell id="e16" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;strokeColor=#333333;strokeWidth=1.5;fontSize=11;fontColor=#333333;labelBackgroundColor=#FFFFFF;fontFamily=Times New Roman;endArrow=block;endFill=1;endSize=2;exitX=0.5;exitY=1;exitDx=0;exitDy=0;exitPerimeter=0;entryX=0.1667;entryY=0;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" source="n13" target="n15" parent="g"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="e17" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;strokeColor=#333333;strokeWidth=1.5;fontSize=11;fontColor=#333333;labelBackgroundColor=#FFFFFF;fontFamily=Times New Roman;endArrow=block;endFill=1;endSize=2;exitX=0.5;exitY=1;exitDx=0;exitDy=0;exitPerimeter=0;entryX=0.6111;entryY=0;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" source="n14" target="n15" parent="g"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="e18" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;strokeColor=#333333;strokeWidth=1.5;fontSize=11;fontColor=#333333;labelBackgroundColor=#FFFFFF;fontFamily=Times New Roman;endArrow=block;endFill=1;endSize=2;exitX=0.5;exitY=1;exitDx=0;exitDy=0;exitPerimeter=0;entryX=0.9444;entryY=0;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" source="n10" target="n15" parent="g"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="e19" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;strokeColor=#333333;strokeWidth=1.5;fontSize=11;fontColor=#333333;labelBackgroundColor=#FFFFFF;fontFamily=Times New Roman;endArrow=block;endFill=1;endSize=2;exitX=0.5;exitY=1;exitDx=0;exitDy=0;exitPerimeter=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" source="n15" target="n16" parent="g"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="e20" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;strokeColor=#333333;strokeWidth=1.5;fontSize=11;fontColor=#333333;labelBackgroundColor=#FFFFFF;fontFamily=Times New Roman;endArrow=block;endFill=1;endSize=2;exitX=0.5;exitY=1;exitDx=0;exitDy=0;exitPerimeter=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" source="n16" target="n17" parent="g"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell></root></mxGraphModel>
  </diagram>
</mxfile>
