<?xml version="1.0" encoding="UTF-8"?>
<mxfile host="drawio" compressed="false">
  <diagram id="p1" name="RLHF Pipeline">
<mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/><mxCell id="g" value="" style="group;" vertex="1" connectable="0" parent="1"><mxGeometry width="805" height="280" as="geometry"/></mxCell><mxCell id="n1" value="Step 1: SFT" style="rounded=1;arcSize=4;whiteSpace=wrap;html=1;dashed=1;dashPattern=8 4;fillColor=none;strokeWidth=2;verticalAlign=top;align=left;spacingLeft=8;spacingTop=5;fontSize=14;fontStyle=1;fontFamily=Times New Roman;strokeColor=#6C8EBF;fontColor=#6C8EBF;" vertex="1" connectable="0" parent="g"><mxGeometry x="10" y="10" width="200" height="260" as="geometry"/></mxCell><mxCell id="n5" value="Step 2: Reward Model" style="rounded=1;arcSize=4;whiteSpace=wrap;html=1;dashed=1;dashPattern=8 4;fillColor=none;strokeWidth=2;verticalAlign=top;align=left;spacingLeft=8;spacingTop=5;fontSize=14;fontStyle=1;fontFamily=Times New Roman;strokeColor=#82B366;fontColor=#82B366;" vertex="1" connectable="0" parent="g"><mxGeometry x="240" y="10" width="200" height="260" as="geometry"/></mxCell><mxCell id="n9" value="Step 3: PPO" style="rounded=1;arcSize=4;whiteSpace=wrap;html=1;dashed=1;dashPattern=8 4;fillColor=none;strokeWidth=2;verticalAlign=top;align=left;spacingLeft=8;spacingTop=5;fontSize=14;fontStyle=1;fontFamily=Times New Roman;strokeColor=#9673A6;fontColor=#9673A6;" vertex="1" connectable="0" parent="g"><mxGeometry x="470" y="10" width="325" height="260" as="geometry"/></mxCell><mxCell id="n2" value="Demonstration&lt;br&gt;data" style="shape=cylinder3;whiteSpace=wrap;html=1;boundedLbl=1;backgroundOutline=1;size=8;fontColor=#333333;strokeWidth=1.5;fontSize=12;fillColor=#F5F5F5;strokeColor=#999999;fontFamily=Times New Roman;" vertex="1" parent="g"><mxGeometry x="50" y="50" width="120" height="60" as="geometry"/></mxCell><mxCell id="n3" value="Supervised&lt;br&gt;fine-tuning" style="rounded=1;arcSize=8;whiteSpace=wrap;html=1;fontColor=#333333;strokeWidth=1.5;fontFamily=Times New Roman;fillColor=#DAE8FC;strokeColor=#6C8EBF;fontSize=13;arcSize=12;" vertex="1" parent="g"><mxGeometry x="50" y="135" width="120" height="40" as="geometry"/></mxCell><mxCell id="n4" value="SFT model π&lt;sup&gt;SFT&lt;/sup&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="50" y="205" width="120" height="36" as="geometry"/></mxCell><mxCell id="n6" value="Human preference&lt;br&gt;comparisons" style="shape=cylinder3;whiteSpace=wrap;html=1;boundedLbl=1;backgroundOutline=1;size=8;fontColor=#333333;strokeWidth=1.5;fontSize=12;fillColor=#F5F5F5;strokeColor=#999999;fontFamily=Times New Roman;" vertex="1" parent="g"><mxGeometry x="280" y="50" width="120" height="60" as="geometry"/></mxCell><mxCell id="n7" value="Train RM&lt;br&gt;(ranking loss)" style="rounded=1;arcSize=8;whiteSpace=wrap;html=1;fontColor=#333333;strokeWidth=1.5;fontFamily=Times New Roman;fillColor=#D5E8D4;strokeColor=#82B366;fontSize=13;arcSize=12;" vertex="1" parent="g"><mxGeometry x="280" y="135" width="120" height="40" as="geometry"/></mxCell><mxCell id="n8" value="Reward model r&lt;sub&gt;φ&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="280" y="205" width="120" height="36" as="geometry"/></mxCell><mxCell id="n10" value="Prompts" style="shape=cylinder3;whiteSpace=wrap;html=1;boundedLbl=1;backgroundOutline=1;size=8;fontColor=#333333;strokeWidth=1.5;fontSize=12;fillColor=#F5F5F5;strokeColor=#999999;fontFamily=Times New Roman;" vertex="1" parent="g"><mxGeometry x="510" y="50" width="100" height="50" as="geometry"/></mxCell><mxCell id="n11" value="Policy π&lt;sub&gt;θ&lt;/sub&gt;&lt;br&gt;(init: SFT)" style="rounded=1;arcSize=8;whiteSpace=wrap;html=1;fontColor=#333333;strokeWidth=1.5;fontFamily=Times New Roman;fillColor=#E1D5E7;strokeColor=#9673A6;fontSize=13;arcSize=12;" vertex="1" parent="g"><mxGeometry x="510" y="125" width="100" height="40" as="geometry"/></mxCell><mxCell id="n12" value="r&lt;sub&gt;φ&lt;/sub&gt; (frozen)" style="rounded=1;arcSize=8;whiteSpace=wrap;html=1;fontColor=#333333;strokeWidth=1.5;fontFamily=Times New Roman;fillColor=#F5F5F5;strokeColor=#999999;fontSize=12;strokeColor=#666666;fontStyle=2;" vertex="1" parent="g"><mxGeometry x="645" y="50" width="120" height="40" as="geometry"/></mxCell><mxCell id="n13" value="Reference π&lt;sup&gt;SFT&lt;/sup&gt;&lt;br&gt;(frozen)" style="rounded=1;arcSize=8;whiteSpace=wrap;html=1;fontColor=#333333;strokeWidth=1.5;fontFamily=Times New Roman;fillColor=#F5F5F5;strokeColor=#999999;fontSize=12;strokeColor=#666666;fontStyle=2;" vertex="1" parent="g"><mxGeometry x="645" y="125" width="120" height="40" as="geometry"/></mxCell><mxCell id="n14" value="r&lt;sub&gt;φ&lt;/sub&gt;(x, y) − β KL(π&lt;sub&gt;θ&lt;/sub&gt; ‖ π&lt;sup&gt;SFT&lt;/sup&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;dashed=1;dashPattern=4 3;fillColor=#FFFFFF;" vertex="1" parent="g"><mxGeometry x="515" y="205" width="250" height="36" as="geometry"/></mxCell><mxCell id="n15" value="PPO" 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="498" y="172" width="30" height="14" 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="n2" target="n3" parent="g"><mxGeometry relative="1" as="geometry"></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="n3" target="n4" parent="g"><mxGeometry relative="1" as="geometry"></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="n6" target="n7" 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="n7" target="n8" 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="n10" target="n11" 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.18;entryY=0;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" source="n11" target="n14" parent="g"><mxGeometry relative="1" as="geometry"></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.76;entryY=0;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" source="n13" target="n14" parent="g"><mxGeometry relative="1" as="geometry"></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=1;exitY=0.5;exitDx=0;exitDy=0;exitPerimeter=0;entryX=1;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="780" y="70"/><mxPoint x="780" y="223"/></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;dashed=1;dashPattern=3 3;strokeColor=#B85450;exitX=0;exitY=0.5;exitDx=0;exitDy=0;exitPerimeter=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" source="n14" target="n11" parent="g"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="492" y="223"/><mxPoint x="492" y="145"/></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=1;exitY=0.5;exitDx=0;exitDy=0;exitPerimeter=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" source="n1" target="n5" 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=1;exitY=0.5;exitDx=0;exitDy=0;exitPerimeter=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" source="n5" target="n9" parent="g"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell></root></mxGraphModel>
  </diagram>
</mxfile>
