|
1 | 1 | --- |
| 2 | +import palette from '../data/paper-palette.json'; |
2 | 3 | const src = '/lagen/' + 'assets/figures/framework.png'; |
| 4 | +// Schematic Temporal profile: mostly fast requests with persistent slow periods. |
| 5 | +const profile = [3, 3.4, 3, 3.2, 12, 12, 12, 12, 3.4, 3, 3.3, 2.9, 3.2, 12, 12, 12, 3, 3.3]; |
| 6 | +const profilePath = profile.map((value, i) => `${i ? 'L' : 'M'}${6 + i * 11},${46 - value * 3}`).join(''); |
| 7 | +const steps = [ |
| 8 | + { |
| 9 | + key: 'profile', |
| 10 | + title: 'Measure the deployment', |
| 11 | + text: 'Measure the latency for the target GPU, model, and task. Fit a profile that also shows groups of slow requests.', |
| 12 | + }, |
| 13 | + { |
| 14 | + key: 'teacher', |
| 15 | + title: 'Train a teacher with simulated latency', |
| 16 | + text: 'In simulation, each action starts after a latency from the profile. An RL teacher learns to act with this latency.', |
| 17 | + }, |
| 18 | + { |
| 19 | + key: 'distill', |
| 20 | + title: 'Teach the VLA', |
| 21 | + text: 'Fine-tune the VLA on the actions of the teacher. DAgger is optional.', |
| 22 | + }, |
| 23 | + { |
| 24 | + key: 'deploy', |
| 25 | + title: 'Act with the same latency', |
| 26 | + text: 'The VLA receives the task, the latency as text, and optional recent frames.', |
| 27 | + }, |
| 28 | +]; |
3 | 29 | --- |
4 | 30 | <figure id="pipeline-figure" class="paper-figure"> |
5 | | - <div class="pipeline-image" tabindex="0" role="region" aria-label="Original paper pipeline figure"> |
6 | | - <img src={src} width="3988" height="1771" loading="lazy" alt="LAGEN pipeline from the paper: profile deployment timing using Fixed, Normal, IID or Temporal generators; train a latency teacher through fresh reinforcement-learning interactions; distill teacher demonstrations into a VLA with optional DAgger; deploy the VLA with delayed-action execution." /> |
7 | | - </div> |
8 | | - <figcaption>The agent interacts with the simulator under delays sampled from the latency profile. ActionReady marks when a predicted action becomes available. The curves show schematic latency profiles.</figcaption> |
| 31 | + <ol class="pipeline-steps"> |
| 32 | + {steps.map((step, i) => ( |
| 33 | + <li class="pipeline-step"> |
| 34 | + <div class="pipeline-visual" aria-hidden="true"> |
| 35 | + {step.key === 'profile' && ( |
| 36 | + <svg viewBox="0 0 200 56"> |
| 37 | + <path d="M4 4V50H198" fill="none" stroke={palette.gray} stroke-width="1" /> |
| 38 | + <path d={profilePath} fill="none" stroke={palette.purple} stroke-width="2" stroke-linejoin="round" /> |
| 39 | + {profile.map((value, j) => <circle cx={6 + j * 11} cy={46 - value * 3} r="2.2" fill={palette.purple} />)} |
| 40 | + </svg> |
| 41 | + )} |
| 42 | + {step.key === 'teacher' && ( |
| 43 | + <svg viewBox="0 0 200 56"> |
| 44 | + <path d="M8 26H192" stroke={palette.gray} stroke-width="1.2" /> |
| 45 | + <path d="M186 22l6 4-6 4" fill="none" stroke={palette.gray} stroke-width="1.2" /> |
| 46 | + <circle cx="22" cy="26" r="5" fill="white" stroke={palette.blue} stroke-width="2" /> |
| 47 | + <circle cx="150" cy="26" r="5" fill={palette.blue} /> |
| 48 | + <text x="22" y="12" text-anchor="middle">observe</text> |
| 49 | + <text x="150" y="12" text-anchor="middle">act</text> |
| 50 | + <path d="M22 42H150M22 38v8M150 38v8" fill="none" stroke={palette.rose} stroke-width="1.5" /> |
| 51 | + <text x="86" y="54" text-anchor="middle" class="accent">sampled delay</text> |
| 52 | + </svg> |
| 53 | + )} |
| 54 | + {step.key === 'distill' && ( |
| 55 | + <svg viewBox="0 0 200 56"> |
| 56 | + <rect x="4" y="12" width="52" height="30" rx="6" fill="#f6e9ec" stroke={palette.rose} /> |
| 57 | + <text x="30" y="31" text-anchor="middle">Teacher</text> |
| 58 | + <path d="M60 27H76m-5-4 5 4-5 4" fill="none" stroke={palette.gray} stroke-width="1.3" /> |
| 59 | + <rect x="80" y="12" width="46" height="30" rx="6" fill="white" stroke={palette.gray} /> |
| 60 | + <text x="103" y="31" text-anchor="middle">Labels</text> |
| 61 | + <path d="M130 27H146m-5-4 5 4-5 4" fill="none" stroke={palette.gray} stroke-width="1.3" /> |
| 62 | + <rect x="150" y="12" width="46" height="30" rx="6" fill="#eceff3" stroke={palette.blue} /> |
| 63 | + <text x="173" y="31" text-anchor="middle">VLA</text> |
| 64 | + </svg> |
| 65 | + )} |
| 66 | + {step.key === 'deploy' && ( |
| 67 | + <div class="pipeline-chips"> |
| 68 | + <span>Task</span><span class="accent">Latency: 150 ms.</span><span>Visual history</span> |
| 69 | + </div> |
| 70 | + )} |
| 71 | + </div> |
| 72 | + <h4><span class="pipeline-number">{i + 1}</span>{step.title}</h4> |
| 73 | + <p>{step.text}</p> |
| 74 | + </li> |
| 75 | + ))} |
| 76 | + </ol> |
| 77 | + <figcaption>We use the same latency profile for training and for evaluation.</figcaption> |
| 78 | + <details class="pipeline-original"> |
| 79 | + <summary>Full pipeline figure from the paper</summary> |
| 80 | + <a href={src} target="_blank" rel="noopener" class="pipeline-image" aria-label="Open the full-resolution pipeline figure in a new tab"> |
| 81 | + <img src={src} width="3988" height="1771" loading="lazy" alt="LAGEN pipeline from the paper: profile deployment timing using Fixed, Normal, IID or Temporal generators; train a latency teacher through fresh reinforcement-learning interactions; distill teacher demonstrations into a VLA with optional DAgger; deploy the VLA with delayed-action execution." /> |
| 82 | + </a> |
| 83 | + <p class="figure-note">Select the figure to open it at full size. ActionReady shows the time when a predicted action is available. The curves show example latency profiles.</p> |
| 84 | + </details> |
9 | 85 | </figure> |
10 | 86 | <style> |
11 | | - .pipeline-image { overflow-x: auto; } |
12 | | - .pipeline-image img { display: block; width: 100%; min-width: 1100px; max-width: none; height: auto; } |
| 87 | + .pipeline-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: none; } |
| 88 | + .pipeline-step { position: relative; display: flex; flex-direction: column; padding: 18px; border: 1px solid var(--rule); border-radius: 12px; background: white; } |
| 89 | + .pipeline-step:not(:last-child)::after { content: '→'; position: absolute; top: 44px; right: -15px; z-index: 1; width: 14px; text-align: center; color: var(--muted); font-size: 18px; } |
| 90 | + .pipeline-visual { height: 64px; display: flex; align-items: center; margin-bottom: 14px; } |
| 91 | + .pipeline-visual svg { width: 100%; height: 100%; overflow: visible; } |
| 92 | + .pipeline-visual text { font-size: 12px; fill: var(--ink); font-family: inherit; } |
| 93 | + .pipeline-visual text.accent { fill: var(--rose); font-weight: 600; } |
| 94 | + .pipeline-chips { display: flex; flex-wrap: wrap; gap: 6px; } |
| 95 | + .pipeline-chips span { padding: 3px 9px; border: 1px solid var(--rule); border-radius: 999px; font-size: 14px; background: var(--paper); } |
| 96 | + .pipeline-chips .accent { border-color: var(--rose); color: var(--rose); background: #fbf2f4; font-weight: 600; } |
| 97 | + .pipeline-step h4 { display: flex; align-items: baseline; gap: 8px; font-size: 18px; font-weight: 650; line-height: 1.35; margin: 0 0 8px; } |
| 98 | + .pipeline-number { flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--purple); color: white; font-size: 14px; font-weight: 700; } |
| 99 | + .pipeline-step p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); } |
| 100 | + .pipeline-image { display: block; overflow-x: auto; cursor: zoom-in; } |
| 101 | + .pipeline-image img { display: block; width: 100%; min-width: 900px; height: auto; } |
| 102 | + @container (max-width: 960px) { |
| 103 | + .pipeline-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } |
| 104 | + .pipeline-step:nth-child(2)::after { display: none; } |
| 105 | + } |
| 106 | + @container (max-width: 560px) { |
| 107 | + .pipeline-steps { grid-template-columns: minmax(0, 1fr); gap: 22px; } |
| 108 | + .pipeline-step:not(:last-child)::after { content: '↓'; top: auto; bottom: -21px; right: auto; left: 50%; transform: translateX(-50%); display: block; } |
| 109 | + } |
13 | 110 | </style> |
0 commit comments