I want to improve this figure: <!DOCTYPE html> <html lang="en"> <head> <meta…
- User
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
I want to improve this figure:
.figure-container {
max-width: 1200px;
margin: 0 auto;
border: 1px solid #ddd;
padding: 20px;
background-color: white;
}
.panels-container {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
gap: 20px;
margin-bottom: 20px;
}
.panel {
border: 1px solid #999;
border-radius: 4px;
padding: 15px;
background-color: #fffcd4;
}
.panel-title {
text-align: center;
font-weight: bold;
font-size: 14px;
margin-bottom: 15px;
padding: 8px;
border-radius: 4px;
background-color: #f8f8f8;
color: #333;
border: 1px solid #ddd;
}
.token-visual {
display: flex;
justify-content: center;
gap: 3px;
margin: 8px 0;
}
.token {
width: 20px;
height: 15px;
border: 1px solid #666;
border-radius: 2px;
font-size: 8px;
display: flex;
align-items: center;
justify-content: center;
}
.discrete-token {
background-color: #e9ecef;
color: #495057;
}
.image-placeholder {
width: 25px;
height: 20px;
border: 1px solid #666;
border-radius: 2px;
background-color: #f8f9fa;
display: flex;
align-items: center;
justify-content: center;
font-size: 6px;
color: #666;
}
.search-visualization {
display: flex;
justify-content: space-around;
align-items: flex-start;
min-height: 140px;
margin: 20px 0;
gap: 20px;
}
.search-method-container {
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
flex: 1;
}
.search-method-title {
font-size: 11px;
font-weight: bold;
text-align: center;
}
.visualization-box {
width: 100%;
height: 120px;
display: flex;
justify-content: center;
align-items: center;
position: relative;
}
.performance-curve {
height: 100px;
background-color: white;
border: 1px solid #ddd;
border-radius: 4px;
position: relative;
overflow: hidden;
margin-bottom: 10px;
}
.curve-svg {
width: 100%;
height: 100%;
}
.grid-line {
stroke: #f0f0f0;
stroke-width: 0.5;
}
.key-insight {
background-color: #f8f9fa;
border: 1px solid #6c757d;
border-radius: 4px;
padding: 8px;
font-size: 11px;
font-weight: bold;
text-align: center;
color: #495057;
}
.continuous-space {
width: 100px;
height: 15px;
background: linear-gradient(90deg, #dee2e6, #adb5bd, #868e96);
border-radius: 8px;
margin: 8px auto;
}
.axes-labels {
position: absolute;
bottom: 5px;
left: 5px;
font-size: 10px;
color: #666;
}
.y-label {
position: absolute;
top: 10px;
left: 5px;
font-size: 10px;
color: #666;
writing-mode: vertical-rl;
text-orientation: mixed;
}
.trajectory-label {
background-color: #f8f9fa;
border-left: 3px solid #6c757d;
border-radius: 4px;
padding: 8px;
font-size: 11px;
font-weight: bold;
text-align: center;
margin-top: 10px;
}
</style>
<div class="token-visual">
<div class="token discrete-token">T₁</div>
<div class="token discrete-token">T₂</div>
<div class="token discrete-token">T₃</div>
<div class="token discrete-token">...</div>
</div>
<div class="search-visualization">
<div class="search-method-container">
<div class="search-method-title">Random Search</div>
<div class="visualization-box">
<svg width="100" height="120" viewBox="0 0 100 120">
<!-- Root node -->
<circle cx="50" cy="10" r="5" fill="#2196f3"/>
<!-- Branches from root to samples -->
<line x1="50" y1="15" x2="20" y2="30" stroke="#666" stroke-width="1"/>
<line x1="50" y1="15" x2="35" y2="30" stroke="#666" stroke-width="1"/>
<line x1="50" y1="15" x2="50" y2="30" stroke="#666" stroke-width="1"/>
<line x1="50" y1="15" x2="65" y2="30" stroke="#666" stroke-width="1"/>
<line x1="50" y1="15" x2="80" y2="30" stroke="#666" stroke-width="1"/>
<!-- Sample lines -->
<line x1="20" y1="30" x2="20" y2="100" stroke="#f44336" stroke-width="2"/>
<circle cx="20" cy="100" r="4" fill="#f44336"/>
<line x1="35" y1="30" x2="35" y2="100" stroke="#f44336" stroke-width="2"/>
<circle cx="35" cy="100" r="4" fill="#f44336"/>
<line x1="50" y1="30" x2="50" y2="100" stroke="#4caf50" stroke-width="2"/>
<circle cx="50" cy="100" r="4" fill="#4caf50"/>
<line x1="65" y1="30" x2="65" y2="100" stroke="#f44336" stroke-width="2"/>
<circle cx="65" cy="100" r="4" fill="#f44336"/>
<line x1="80" y1="30" x2="80" y2="100" stroke="#f44336" stroke-width="2"/>
<circle cx="80" cy="100" r="4" fill="#f44336"/>
<text x="50" y="115" font-size="8" text-anchor="middle" fill="#666">Independent samples</text>
</svg>
</div>
</div>
<div class="search-method-container">
<div class="search-method-title">Tree Search</div>
<div class="visualization-box">
<svg width="140" height="120" viewBox="0 0 140 120">
<!-- Tree structure -->
<!-- Root -->
<circle cx="70" cy="10" r="5" fill="#2196f3"/>
<!-- Level 1 branches -->
<line x1="70" y1="15" x2="40" y2="35" stroke="#666" stroke-width="2"/>
<line x1="70" y1="15" x2="70" y2="35" stroke="#666" stroke-width="2"/>
<line x1="70" y1="15" x2="100" y2="35" stroke="#666" stroke-width="2"/>
<!-- Level 1 nodes -->
<circle cx="40" cy="35" r="4" fill="#4caf50"/>
<circle cx="70" cy="35" r="4" fill="#f44336"/>
<circle cx="100" cy="35" r="4" fill="#f44336"/>
<!-- Level 2 branches (only from green node) -->
<line x1="40" y1="39" x2="25" y2="60" stroke="#666" stroke-width="2"/>
<line x1="40" y1="39" x2="55" y2="60" stroke="#666" stroke-width="2"/>
<!-- Level 2 nodes -->
<circle cx="25" cy="60" r="4" fill="#4caf50"/>
<circle cx="55" cy="60" r="4" fill="#4caf50"/>
<!-- Level 3 branches -->
<line x1="25" y1="64" x2="25" y2="85" stroke="#666" stroke-width="2"/>
<line x1="55" y1="64" x2="55" y2="85" stroke="#666" stroke-width="2"/>
<!-- Level 3 nodes -->
<circle cx="25" cy="85" r="4" fill="#f44336"/>
<circle cx="55" cy="85" r="4" fill="#4caf50"/>
<!-- Final path -->
<line x1="55" y1="89" x2="55" y2="105" stroke="#666" stroke-width="2"/>
<circle cx="55" cy="105" r="5" fill="#4caf50"/>
<text x="70" y="115" font-size="8" text-anchor="middle" fill="#666">Pruned exploration</text>
</svg>
</div>
</div>
</div>
<div class="performance-curve">
<div class="y-label">Accuracy</div>
<div class="axes-labels">Compute Budget →</div>
<svg class="curve-svg" viewBox="0 0 200 100">
<!-- Grid lines -->
<line x1="20" y1="20" x2="20" y2="90" class="grid-line"/>
<line x1="60" y1="20" x2="60" y2="90" class="grid-line"/>
<line x1="100" y1="20" x2="100" y2="90" class="grid-line"/>
<line x1="140" y1="20" x2="140" y2="90" class="grid-line"/>
<line x1="180" y1="20" x2="180" y2="90" class="grid-line"/>
<!-- Random search curve (slower growth) - dotted -->
<path d="M 20 80 Q 60 60 100 50 Q 140 45 180 42"
stroke="#f44336" stroke-width="2" fill="none" stroke-dasharray="4,2"/>
<!-- Tree search curve (faster growth) - solid -->
<path d="M 20 80 Q 40 35 80 20 Q 120 12 180 10"
stroke="#4caf50" stroke-width="3" fill="none"/>
<!-- Labels -->
<text x="140" y="50" font-size="8" fill="#f44336">Random</text>
<text x="140" y="18" font-size="8" fill="#4caf50">Tree</text>
</svg>
</div>
<div class="key-insight">
Discrete tokens → effective tree search
</div>
</div>
<!-- Panel B: Diffusion Models -->
<div class="panel diffusion-panel">
<div class="panel-title">B) Diffusion Models<br>(Continuous, Parallel)</div>
<div class="continuous-space"></div>
<div style="text-align: center; font-size: 10px; color: #666;">Continuous Space</div>
<div class="search-visualization">
<div class="search-method-container">
<div class="search-method-title">Random Search</div>
<div class="visualization-box">
<svg width="120" height="100" viewBox="0 0 120 100">
<!-- Bell curve - proper Gaussian shape -->
<path d="M 10 70 Q 10 70 20 68 Q 30 50 40 35 Q 50 20 60 18 Q 70 20 80 35 Q 90 50 100 68 Q 110 70 110 70"
stroke="#666" stroke-width="2" fill="none"/>
<!-- Lines from curve to samples -->
<line x1="60" y1="18" x2="60" y2="75" stroke="#666" stroke-width="1"/>
<line x1="30" y1="50" x2="30" y2="75" stroke="#666" stroke-width="1" stroke-dasharray="2,2"/>
<line x1="80" y1="35" x2="80" y2="75" stroke="#666" stroke-width="1"/>
<line x1="20" y1="68" x2="20" y2="75" stroke="#666" stroke-width="1" stroke-dasharray="2,2"/>
<line x1="90" y1="50" x2="90" y2="75" stroke="#666" stroke-width="1" stroke-dasharray="2,2"/>
<line x1="45" y1="30" x2="45" y2="75" stroke="#666" stroke-width="1" stroke-dasharray="2,2"/>
<!-- Samples at bottom -->
<circle cx="60" cy="75" r="3" fill="#2196f3"/>
<circle cx="30" cy="75" r="3" fill="#f44336"/>
<circle cx="80" cy="75" r="3" fill="#4caf50"/>
<circle cx="20" cy="75" r="3" fill="#f44336"/>
<circle cx="90" cy="75" r="3" fill="#f44336"/>
<circle cx="45" cy="75" r="3" fill="#f44336"/>
<text x="60" y="90" font-size="8" text-anchor="middle" fill="#666">Random sampling</text>
</svg>
</div>
</div>
<div class="search-method-container">
<div class="search-method-title">Zero-Order Search</div>
<div class="visualization-box">
<svg width="120" height="100" viewBox="0 0 120 100">
<!-- Bell curve - proper Gaussian shape -->
<path d="M 10 70 Q 10 70 20 68 Q 30 50 40 35 Q 50 20 60 18 Q 70 20 80 35 Q 90 50 100 68 Q 110 70 110 70"
stroke="#666" stroke-width="2" fill="none"/>
<!-- Lines from peak area to samples -->
<line x1="60" y1="18" x2="60" y2="75" stroke="#666" stroke-width="1"/>
<line x1="55" y1="19" x2="55" y2="75" stroke="#666" stroke-width="1"/>
<line x1="65" y1="19" x2="65" y2="75" stroke="#666" stroke-width="1"/>
<line x1="50" y1="20" x2="50" y2="75" stroke="#666" stroke-width="1" stroke-dasharray="2,2"/>
<line x1="70" y1="20" x2="70" y2="75" stroke="#666" stroke-width="1" stroke-dasharray="2,2"/>
<!-- Samples clustered near peak -->
<circle cx="60" cy="75" r="3" fill="#2196f3"/>
<circle cx="55" cy="75" r="3" fill="#4caf50"/>
<circle cx="65" cy="75" r="3" fill="#4caf50"/>
<circle cx="50" cy="75" r="3" fill="#f44336"/>
<circle cx="70" cy="75" r="3" fill="#f44336"/>
<text x="60" y="90" font-size="8" text-anchor="middle" fill="#666">Local optimization</text>
</svg>
</div>
</div>
</div>
<div class="performance-curve">
<div class="y-label">Quality</div>
<div class="axes-labels">Compute Budget →</div>
<svg class="curve-svg" viewBox="0 0 200 100">
<!-- Grid lines -->
<line x1="20" y1="20" x2="20" y2="90" class="grid-line"/>
<line x1="60" y1="20" x2="60" y2="90" class="grid-line"/>
<line x1="100" y1="20" x2="100" y2="90" class="grid-line"/>
<line x1="140" y1="20" x2="140" y2="90" class="grid-line"/>
<line x1="180" y1="20" x2="180" y2="90" class="grid-line"/>
<!-- Random search curve (better performance) - solid -->
<path d="M 20 60 Q 60 45 100 35 Q 140 30 180 28"
stroke="#4caf50" stroke-width="3" fill="none"/>
<!-- Tree search curve (worse) - dotted -->
<path d="M 20 65 Q 60 55 100 50 Q 140 48 180 47"
stroke="#f44336" stroke-width="2" fill="none" stroke-dasharray="4,2"/>
<!-- Labels -->
<text x="120" y="35" font-size="8" fill="#4caf50">Random</text>
<text x="120" y="55" font-size="8" fill="#f44336">Tree</text>
</svg>
</div>
<div class="key-insight">
Continuous space → limited tree search<br>
<em style="font-size: 10px;">(Ma et al. 2025)</em>
</div>
</div>
<!-- Panel C: Autoregressive Images -->
<div class="panel autoregressive-panel">
<div class="panel-title">C) Autoregressive Images<br>(Discrete, Sequential)</div>
<div class="token-visual">
<div class="image-placeholder">IMG1</div>
<div class="image-placeholder">IMG2</div>
<div class="image-placeholder">IMG3</div>
<div class="image-placeholder">...</div>
</div>
<div class="search-visualization">
<div class="search-method-container">
<div class="search-method-title">Random Search</div>
<div class="visualization-box">
<svg width="100" height="120" viewBox="0 0 100 120">
<!-- Root node -->
<circle cx="50" cy="10" r="5" fill="#2196f3"/>
<!-- Branches from root to samples -->
<line x1="50" y1="15" x2="20" y2="30" stroke="#666" stroke-width="1"/>
<line x1="50" y1="15" x2="35" y2="30" stroke="#666" stroke-width="1"/>
<line x1="50" y1="15" x2="50" y2="30" stroke="#666" stroke-width="1"/>
<line x1="50" y1="15" x2="65" y2="30" stroke="#666" stroke-width="1"/>
<line x1="50" y1="15" x2="80" y2="30" stroke="#666" stroke-width="1"/>
<!-- Sample lines -->
<line x1="20" y1="30" x2="20" y2="100" stroke="#f44336" stroke-width="2"/>
<circle cx="20" cy="100" r="4" fill="#f44336"/>
<line x1="35" y1="30" x2="35" y2="100" stroke="#f44336" stroke-width="2"/>
<circle cx="35" cy="100" r="4" fill="#f44336"/>
<line x1="50" y1="30" x2="50" y2="100" stroke="#4caf50" stroke-width="2"/>
<circle cx="50" cy="100" r="4" fill="#4caf50"/>
<line x1="65" y1="30" x2="65" y2="100" stroke="#f44336" stroke-width="2"/>
<circle cx="65" cy="100" r="4" fill="#f44336"/>
<line x1="80" y1="30" x2="80" y2="100" stroke="#f44336" stroke-width="2"/>
<circle cx="80" cy="100" r="4" fill="#f44336"/>
<text x="50" y="115" font-size="8" text-anchor="middle" fill="#666">Independent images</text>
</svg>
</div>
</div>
<div class="search-method-container">
<div class="search-method-title">Tree Search</div>
<div class="visualization-box">
<svg width="140" height="120" viewBox="0 0 140 120">
<!-- Tree structure for image generation -->
<!-- Root -->
<circle cx="70" cy="10" r="5" fill="#2196f3"/>
<!-- Level 1 branches -->
<line x1="70" y1="15" x2="40" y2="35" stroke="#666" stroke-width="2"/>
<line x1="70" y1="15" x2="70" y2="35" stroke="#666" stroke-width="2"/>
<line x1="70" y1="15" x2="100" y2="35" stroke="#666" stroke-width="2"/>
<!-- Level 1 nodes -->
<circle cx="40" cy="35" r="4" fill="#4caf50"/>
<circle cx="70" cy="35" r="4" fill="#f44336"/>
<circle cx="100" cy="35" r="4" fill="#f44336"/>
<!-- Level 2 branches (only from green node) -->
<line x1="40" y1="39" x2="25" y2="60" stroke="#666" stroke-width="2"/>
<line x1="40" y1="39" x2="55" y2="60" stroke="#666" stroke-width="2"/>
<!-- Level 2 nodes -->
<circle cx="25" cy="60" r="4" fill="#4caf50"/>
<circle cx="55" cy="60" r="4" fill="#4caf50"/>
<!-- Level 3 branches -->
<line x1="25" y1="64" x2="25" y2="85" stroke="#666" stroke-width="2"/>
<line x1="55" y1="64" x2="55" y2="85" stroke="#666" stroke-width="2"/>
<!-- Level 3 nodes -->
<circle cx="25" cy="85" r="4" fill="#f44336"/>
<circle cx="55" cy="85" r="4" fill="#4caf50"/>
<!-- Final path -->
<line x1="55" y1="89" x2="55" y2="105" stroke="#666" stroke-width="2"/>
<circle cx="55" cy="105" r="5" fill="#4caf50"/>
<text x="70" y="120" font-size="8" text-anchor="middle" fill="#666">Guided generation</text>
</svg>
</div>
</div>
</div>
<div class="performance-curve">
<div class="y-label">Quality</div>
<div class="axes-labels">Compute Budget →</div>
<svg class="curve-svg" viewBox="0 0 200 100">
<!-- Grid lines -->
<line x1="20" y1="20" x2="20" y2="90" class="grid-line"/>
<line x1="60" y1="20" x2="60" y2="90" class="grid-line"/>
<line x1="100" y1="20" x2="100" y2="90" class="grid-line"/>
<line x1="140" y1="20" x2="140" y2="90" class="grid-line"/>
<line x1="180" y1="20" x2="180" y2="90" class="grid-line"/>
<!-- Random search curve - dotted -->
<path d="M 20 75 Q 60 55 100 45 Q 140 40 180 38"
stroke="#f44336" stroke-width="2" fill="none" stroke-dasharray="4,2"/>
<!-- Tree search curve - solid -->
<path d="M 20 75 Q 40 35 80 20 Q 120 12 180 8"
stroke="#4caf50" stroke-width="3" fill="none"/>
<!-- Labels -->
<text x="130" y="45" font-size="8" fill="#f44336">Random</text>
<text x="130" y="18" font-size="8" fill="#4caf50">Tree</text>
</svg>
</div>
<div class="key-insight">
Discrete visual tokens → tree search works
</div>
</div>
</div>
</div>
The problems are mainly with the diffusion panel, where the bell curve is not aligned and in general the bell curve is really ugly, the lines are off and the so are the coloured dots (none of them should be blue). Additionally stuff is not really aligned. Especially the quality graphs where the diffusion one is below the other two. Try to make general improvements And tell me if you need anything from me or if you think there is a better solution to making this figure perfect
Of course! This is an excellent candidate for improvement. The core idea of the figure is strong—comparing search strategies across different model types—but as you've pointed out, the execution has some visual and logical inconsistencies, especially in the diffusion panel.
I've revised the entire HTML file to address the issues you mentioned and to implement general design best practices for clarity and aesthetic appeal.
Here is the improved code. Below it, I'll provide a detailed breakdown of all the changes I made and why.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Test-Time Scaling Across Modalities (Improved)</title>
<style>
/* Define a consistent color palette using CSS variables */
:root {
--color-good: #4CAF50; /* Green for "good", "best", "selected" */
--color-bad: #f44336; /* Red for "bad", "pruned", "other" */
--color-root: #2196F3; /* Blue for "start", "root" */
--color-neutral-dark: #333;
--color-neutral-medium: #666;
--color-neutral-light: #ddd;
--color-background-panel: #fdfdfd;
--color-background-main: #f4f4f4;
--color-background-highlight: #eef2ff;
}
body {
font-family: Arial, sans-serif; /* Switched to a cleaner sans-serif font */
background-color: var(--color-background-main);
margin: 20px;
color: var(--color-neutral-dark);
}
.figure-container {
max-width: 1200px;
margin: 40px auto;
border: 1px solid var(--color-neutral-light);
padding: 30px;
background-color: white;
box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.panels-container {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 30px; /* Increased gap for better separation */
margin-bottom: 20px;
}
.panel {
border: 1px solid var(--color-neutral-light);
border-radius: 8px; /* Softer radius */
padding: 15px;
background-color: var(--color-background-panel);
display: flex;
flex-direction: column;
}
.panel-title {
text-align: center;
font-weight: bold;
font-size: 16px; /* Slightly larger for clarity */
margin-bottom: 20px;
padding: 10px;
border-radius: 4px;
background-color: #f8f8f9;
color: var(--color-neutral-dark);
border-bottom: 2px solid var(--color-neutral-light);
}
.token-visual {
display: flex;
justify-content: center;
gap: 4px;
margin: 10px 0;
padding-bottom: 15px;
}
.token {
width: 24px;
height: 18px;
border: 1px solid var(--color-neutral-medium);
border-radius: 3px;
font-size: 9px;
display: flex;
align-items: center;
justify-content: center;
background-color: #e9ecef;
color: #495057;
}
.image-placeholder {
width: 30px;
height: 24px;
border: 1px solid var(--color-neutral-medium);
border-radius: 3px;
background-color: #f8f9fa;
display: flex;
align-items: center;
justify-content: center;
font-size: 7px;
color: var(--color-neutral-medium);
}
.search-visualization {
display: grid; /* Use grid for better alignment */
grid-template-columns: 1fr 1fr;
gap: 15px;
margin: 10px 0;
}
.search-method-container {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
}
.search-method-title {
font-size: 12px;
font-weight: bold;
text-align: center;
}
/* This is the key fix for alignment issues */
.visualization-box {
width: 100%;
height: 130px; /* Fixed height for all visualization boxes */
display: flex;
justify-content: center;
align-items: center;
position: relative;
}
.performance-curve {
height: 120px; /* Increased height for better visibility */
background-color: white;
border: 1px solid var(--color-neutral-light);
border-radius: 4px;
position: relative;
overflow: hidden;
margin-top: auto; /* Pushes this to the bottom of the flex container */
margin-bottom: 10px;
}
.curve-svg {
width: 100%;
height: 100%;
}
.grid-line {
stroke: #f0f0f0;
stroke-width: 1;
}
.key-insight {
background-color: var(--color-background-highlight);
border: 1px solid #c8d3f5;
border-left: 4px solid var(--color-root);
border-radius: 4px;
padding: 10px;
font-size: 12px;
font-weight: bold;
text-align: center;
color: var(--color-neutral-dark);
margin-top: 15px;
}
.continuous-space-container {
text-align: center;
font-size: 11px;
color: var(--color-neutral-medium);
padding-bottom: 10px;
}
.continuous-space {
width: 120px;
height: 18px;
background: linear-gradient(90deg, #e9ecef, #adb5bd, #6c757d);
border-radius: 9px;
margin: 8px auto;
border: 1px solid #ccc;
}
.axis-label {
font-size: 10px;
fill: var(--color-neutral-medium);
font-family: inherit;
}
.curve-label {
font-size: 11px;
font-weight: bold;
font-family: inherit;
}
</style>
</head>
<body>
<div class="figure-container">
<div class="panels-container">
<!-- Panel A: Language Models -->
<div class="panel llm-panel">
<div class="panel-title">(A) Language Models<br><span style="font-weight:normal; font-size: 13px;">Discrete Tokens, Sequential Generation</span></div>
<div class="token-visual">
<div class="token">T₁</div><div class="token">T₂</div><div class="token">T₃</div><div class="token">...</div>
</div>
<div class="search-visualization">
<div class="search-method-container">
<div class="search-method-title">Random Sampling</div>
<div class="visualization-box">
<svg viewBox="0 0 100 120">
<circle cx="50" cy="10" r="5" fill="var(--color-root)"/>
<line x1="50" y1="15" x2="20" y2="40" stroke="#aaa" stroke-width="1"/><line x1="20" y1="40" x2="20" y2="100" stroke="var(--color-bad)" stroke-width="2.5"/><circle cx="20" cy="100" r="4" fill="var(--color-bad)"/>
<line x1="50" y1="15" x2="40" y2="40" stroke="#aaa" stroke-width="1"/><line x1="40" y1="40" x2="40" y2="100" stroke="var(--color-bad)" stroke-width="2.5"/><circle cx="40" cy="100" r="4" fill="var(--color-bad)"/>
<line x1="50" y1="15" x2="60" y2="40" stroke="#aaa" stroke-width="1"/><line x1="60" y1="40" x2="60" y2="100" stroke="var(--color-good)" stroke-width="2.5"/><circle cx="60" cy="100" r="4" fill="var(--color-good)"/>
<line x1="50" y1="15" x2="80" y2="40" stroke="#aaa" stroke-width="1"/><line x1="80" y1="40" x2="80" y2="100" stroke="var(--color-bad)" stroke-width="2.5"/><circle cx="80" cy="100" r="4" fill="var(--color-bad)"/>
<text x="50" y="115" font-size="9" text-anchor="middle" fill="var(--color-neutral-medium)">Independent Trajectories</text>
</svg>
</div>
</div>
<div class="search-method-container">
<div class="search-method-title">Tree Search</div>
<div class="visualization-box">
<svg viewBox="0 0 100 120">
<circle cx="50" cy="10" r="5" fill="var(--color-root)"/>
<line x1="50" y1="15" x2="25" y2="35" stroke="var(--color-good)" stroke-width="2"/><line x1="50" y1="15" x2="50" y2="35" stroke="var(--color-bad)" stroke-width="1.5" stroke-dasharray="3 2"/><line x1="50" y1="15" x2="75" y2="35" stroke="var(--color-bad)" stroke-width="1.5" stroke-dasharray="3 2"/>
<circle cx="25" cy="35" r="4" fill="var(--color-good)"/><circle cx="50" cy="35" r="4" fill="var(--color-bad)"/><circle cx="75" cy="35" r="4" fill="var(--color-bad)"/>
<line x1="25" y1="39" x2="15" y2="60" stroke="var(--color-good)" stroke-width="2"/><line x1="25" y1="39" x2="35" y2="60" stroke="var(--color-bad)" stroke-width="1.5" stroke-dasharray="3 2"/>
<circle cx="15" cy="60" r="4" fill="var(--color-good)"/><circle cx="35" cy="60" r="4" fill="var(--color-bad)"/>
<line x1="15" y1="64" x2="15" y2="85" stroke="var(--color-good)" stroke-width="2"/>
<circle cx="15" cy="85" r="4" fill="var(--color-good)"/>
<text x="50" y="115" font-size="9" text-anchor="middle" fill="var(--color-neutral-medium)">Guided Exploration</text>
</svg>
</div>
</div>
</div>
<div class="performance-curve">
<svg class="curve-svg" viewBox="0 0 200 110">
<line x1="10" y1="10" x2="10" y2="95" stroke="#ccc" stroke-width="1"/><line x1="10" y1="95" x2="190" y2="95" stroke="#ccc" stroke-width="1"/>
<text class="axis-label" x="15" y="55" transform="rotate(-90 15 55)">Performance</text><text class="axis-label" text-anchor="middle" x="100" y="108">Test-Time Compute</text>
<path d="M 20 85 Q 80 70 180 65" stroke="var(--color-bad)" stroke-width="2" fill="none" stroke-dasharray="5,3"/>
<path d="M 20 85 Q 60 40 180 20" stroke="var(--color-good)" stroke-width="3" fill="none"/>
<text class="curve-label" x="130" y="80" fill="var(--color-bad)">Random</text><text class="curve-label" x="130" y="30" fill="var(--color-good)">Tree</text>
</svg>
</div>
<div class="key-insight">Discrete tokens enable effective tree search.</div>
</div>
<!-- Panel B: Diffusion Models -->
<div class="panel diffusion-panel">
<div class="panel-title">(B) Diffusion Models<br><span style="font-weight:normal; font-size: 13px;">Continuous Space, Parallel Generation</span></div>
<div class="continuous-space-container">
<div class="continuous-space"></div>
<div>Continuous Latent Space</div>
</div>
<div class="search-visualization">
<div class="search-method-container">
<div class="search-method-title">Random Sampling</div>
<div class="visualization-box">
<svg viewBox="0 0 120 120">
<path d="M 10 80 C 30 80, 40 20, 60 20 C 80 20, 90 80, 110 80" stroke="#aaa" stroke-width="2.5" fill="rgba(0,0,0,0.05)"/>
<line x1="35" y1="58" x2="35" y2="100" stroke="var(--color-bad)" stroke-width="1.5"/><circle cx="35" cy="100" r="4" fill="var(--color-bad)"/>
<line x1="60" y1="20" x2="60" y2="100" stroke="var(--color-good)" stroke-width="2.5"/><circle cx="60" cy="100" r="4" fill="var(--color-good)"/>
<line x1="88" y1="74" x2="88" y2="100" stroke="var(--color-bad)" stroke-width="1.5"/><circle cx="88" cy="100" r="4" fill="var(--color-bad)"/>
<line x1="75" y1="45" x2="75" y2="100" stroke="var(--color-bad)" stroke-width="1.5"/><circle cx="75" cy="100" r="4" fill="var(--color-bad)"/>
<text x="60" y="115" font-size="9" text-anchor="middle" fill="var(--color-neutral-medium)">Samples from Prior</text>
</svg>
</div>
</div>
<div class="search-method-container">
<div class="search-method-title">Guided Search</div>
<div class="visualization-box">
<svg viewBox="0 0 120 120">
<path d="M 10 80 C 30 80, 40 20, 60 20 C 80 20, 90 80, 110 80" stroke="#aaa" stroke-width="2.5" fill="rgba(0,0,0,0.05)"/>
<path d="M 50 33 C 53 25, 57 22, 60 20" stroke="var(--color-good)" stroke-width="2" fill="none" stroke-dasharray="3 2" />
<circle cx="50" cy="33" r="3" fill="var(--color-bad)"/><circle cx="60" cy="20" r="4" fill="var(--color-good)"/>
<line x1="60" y1="20" x2="60" y2="100" stroke="var(--color-good)" stroke-width="2.5"/><circle cx="60" cy="100" r="4" fill="var(--color-good)"/>
<text x="60" y="115" font-size="9" text-anchor="middle" fill="var(--color-neutral-medium)">Optimization Trajectory</text>
</svg>
</div>
</div>
</div>
<div class="performance-curve">
<svg class="curve-svg" viewBox="0 0 200 110">
<line x1="10" y1="10" x2="10" y2="95" stroke="#ccc" stroke-width="1"/><line x1="10" y1="95" x2="190" y2="95" stroke="#ccc" stroke-width="1"/>
<text class="axis-label" x="15" y="55" transform="rotate(-90 15 55)">Performance</text><text class="axis-label" text-anchor="middle" x="100" y="108">Test-Time Compute</text>
<path d="M 20 85 Q 80 70 180 65" stroke="var(--color-bad)" stroke-width="2" fill="none" stroke-dasharray="5,3"/>
<path d="M 20 85 Q 60 40 180 20" stroke="var(--color-good)" stroke-width="3" fill="none"/>
<text class="curve-label" x="130" y="80" fill="var(--color-bad)">Guided</text><text class="curve-label" x="130" y="30" fill="var(--color-good)">Random</text>
</svg>
</div>
<div class="key-insight">Continuous space hinders effective tree search.</div>
</div>
<!-- Panel C: Autoregressive Images -->
<div class="panel autoregressive-panel">
<div class="panel-title">(C) Autoregressive Images<br><span style="font-weight:normal; font-size: 13px;">Discrete Tokens, Sequential Generation</span></div>
<div class="token-visual">
<div class="image-placeholder">T₁</div><div class="image-placeholder">T₂</div><div class="image-placeholder">T₃</div><div class="image-placeholder">...</div>
</div>
<div class="search-visualization">
<div class="search-method-container">
<div class="search-method-title">Random Sampling</div>
<div class="visualization-box">
<svg viewBox="0 0 100 120">
<circle cx="50" cy="10" r="5" fill="var(--color-root)"/>
<line x1="50" y1="15" x2="20" y2="40" stroke="#aaa" stroke-width="1"/><line x1="20" y1="40" x2="20" y2="100" stroke="var(--color-bad)" stroke-width="2.5"/><circle cx="20" cy="100" r="4" fill="var(--color-bad)"/>
<line x1="50" y1="15" x2="40" y2="40" stroke="#aaa" stroke-width="1"/><line x1="40" y1="40" x2="40" y2="100" stroke="var(--color-bad)" stroke-width="2.5"/><circle cx="40" cy="100" r="4" fill="var(--color-bad)"/>
<line x1="50" y1="15" x2="60" y2="40" stroke="#aaa" stroke-width="1"/><line x1="60" y1="40" x2="60" y2="100" stroke="var(--color-good)" stroke-width="2.5"/><circle cx="60" cy="100" r="4" fill="var(--color-good)"/>
<line x1="50" y1="15" x2="80" y2="40" stroke="#aaa" stroke-width="1"/><line x1="80" y1="40" x2="80" y2="100" stroke="var(--color-bad)" stroke-width="2.5"/><circle cx="80" cy="100" r="4" fill="var(--color-bad)"/>
<text x="50" y="115" font-size="9" text-anchor="middle" fill="var(--color-neutral-medium)">Independent Trajectories</text>
</svg>
</div>
</div>
<div class="search-method-container">
<div class="search-method-title">Tree Search</div>
<div class="visualization-box">
<svg viewBox="0 0 100 120">
<circle cx="50" cy="10" r="5" fill="var(--color-root)"/>
<line x1="50" y1="15" x2="25" y2="35" stroke="var(--color-good)" stroke-width="2"/><line x1="50" y1="15" x2="50" y2="35" stroke="var(--color-bad)" stroke-width="1.5" stroke-dasharray="3 2"/><line x1="50" y1="15" x2="75" y2="35" stroke="var(--color-bad)" stroke-width="1.5" stroke-dasharray="3 2"/>
<circle cx="25" cy="35" r="4" fill="var(--color-good)"/><circle cx="50" cy="35" r="4" fill="var(--color-bad)"/><circle cx="75" cy="35" r="4" fill="var(--color-bad)"/>
<line x1="25" y1="39" x2="15" y2="60" stroke="var(--color-good)" stroke-width="2"/><line x1="25" y1="39" x2="35" y2="60" stroke="var(--color-bad)" stroke-width="1.5" stroke-dasharray="3 2"/>
<circle cx="15" cy="60" r="4" fill="var(--color-good)"/><circle cx="35" cy="60" r="4" fill="var(--color-bad)"/>
<line x1="15" y1="64" x2="15" y2="85" stroke="var(--color-good)" stroke-width="2"/>
<circle cx="15" cy="85" r="4" fill="var(--color-good)"/>
<text x="50" y="115" font-size="9" text-anchor="middle" fill="var(--color-neutral-medium)">Guided Exploration</text>
</svg>
</div>
</div>
</div>
<div class="performance-curve">
<svg class="curve-svg" viewBox="0 0 200 110">
<line x1="10" y1="10" x2="10" y2="95" stroke="#ccc" stroke-width="1"/><line x1="10" y1="95" x2="190" y2="95" stroke="#ccc" stroke-width="1"/>
<text class="axis-label" x="15" y="55" transform="rotate(-90 15 55)">Performance</text><text class="axis-label" text-anchor="middle" x="100" y="108">Test-Time Compute</text>
<path d="M 20 85 Q 80 70 180 65" stroke="var(--color-bad)" stroke-width="2" fill="none" stroke-dasharray="5,3"/>
<path d="M 20 85 Q 60 40 180 20" stroke="var(--color-good)" stroke-width="3" fill="none"/>
<text class="curve-label" x="130" y="80" fill="var(--color-bad)">Random</text><text class="curve-label" x="130" y="30" fill="var(--color-good)">Tree</text>
</svg>
</div>
<div class="key-insight">Discrete visual tokens also enable tree search.</div>
</div>
</div>
</div>
</body>
</html>
Here’s a detailed breakdown of the changes, addressing your specific concerns and adding other enhancements.
'Times New Roman' to Arial, sans-serif. Sans-serif fonts are generally easier to read on screens, especially for diagrams, giving it a more modern and clean look.--color-good, --color-bad, etc.) at the top of the stylesheet. This is a huge improvement for two reasons:
.visualization-box class a fixed height (height: 130px;). This forces all six of those boxes to be the same size, which perfectly aligns the performance graphs and key insight boxes below them.gap in the .panels-container for more breathing room between panels..panel-title by increasing its size and adding a more subtle bottom border, making it a clearer header for each section..key-insight box with a colored left border to make it stand out more as a final summary.This panel received the most significant changes, as you requested.
The "Ugly" Bell Curve:
Q), which is hard to make look like a smooth, symmetrical Gaussian.C): <path d="M 10 80 C 30 80, 40 20, 60 20 C 80 20, 90 80, 110 80" .../>. This creates a much more aesthetically pleasing and mathematically accurate-looking bell curve. I also added a light fill to the area under the curve to make it feel more like a probability distribution.Search Visualizations (Now Logically and Visually Correct):
--color-bad), but one near the peak is green (--color-good), illustrating that random sampling can find a good result by chance.Performance Graph: