Spaces:
Running
Running
stanm5936 Claude Opus 4.8 commited on
Commit ·
3ae21ad
1
Parent(s): 57e9168
Fix table full-width resizing; add LRD repo link; mobile cloud + long-link fixes
Browse files- posts/LRD1.html +6 -0
- script.js +12 -0
- style.css +31 -5
posts/LRD1.html
CHANGED
|
@@ -26,6 +26,12 @@ onload="renderMathInElement(document.body,{delimiters:[{left:'$$',right:'$$',dis
|
|
| 26 |
<div class="meta">June 2026 · Research</div>
|
| 27 |
|
| 28 |
<h1>Latent Reasoning Directions (LRD)</h1>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
<blockquote>
|
| 30 |
<strong>Update.</strong> The comparison has now been completed.
|
| 31 |
Using the same <strong>664 training examples</strong>, conventional
|
|
|
|
| 26 |
<div class="meta">June 2026 · Research</div>
|
| 27 |
|
| 28 |
<h1>Latent Reasoning Directions (LRD)</h1>
|
| 29 |
+
|
| 30 |
+
<p>
|
| 31 |
+
Code and experiments are available in the project repository:
|
| 32 |
+
<a href="https://github.com/bench-labs-org/Latent-Reasoning-Directions">bench-labs-org/Latent-Reasoning-Directions</a>.
|
| 33 |
+
</p>
|
| 34 |
+
|
| 35 |
<blockquote>
|
| 36 |
<strong>Update.</strong> The comparison has now been completed.
|
| 37 |
Using the same <strong>664 training examples</strong>, conventional
|
script.js
CHANGED
|
@@ -672,6 +672,18 @@
|
|
| 672 |
const article = document.querySelector(".article");
|
| 673 |
if (!article) return;
|
| 674 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 675 |
// ---- Share button for the current post ----
|
| 676 |
{
|
| 677 |
const filename = location.pathname.split("/").pop();
|
|
|
|
| 672 |
const article = document.querySelector(".article");
|
| 673 |
if (!article) return;
|
| 674 |
|
| 675 |
+
// ---- Wrap tables so very wide ones scroll horizontally instead of
|
| 676 |
+
// overflowing the page. The table stays width:100% (a real table, so its
|
| 677 |
+
// columns distribute across the full container); the wrapper owns the
|
| 678 |
+
// overflow-x scrolling. ----
|
| 679 |
+
article.querySelectorAll("table").forEach((table) => {
|
| 680 |
+
if (table.parentElement.classList.contains("table-scroll")) return;
|
| 681 |
+
const wrap = document.createElement("div");
|
| 682 |
+
wrap.className = "table-scroll";
|
| 683 |
+
table.parentNode.insertBefore(wrap, table);
|
| 684 |
+
wrap.appendChild(table);
|
| 685 |
+
});
|
| 686 |
+
|
| 687 |
// ---- Share button for the current post ----
|
| 688 |
{
|
| 689 |
const filename = location.pathname.split("/").pop();
|
style.css
CHANGED
|
@@ -143,6 +143,11 @@ a:focus-visible, .post-card a:focus-visible {
|
|
| 143 |
.background .cloud-3 { top: 14%; --cloud-scale: 1.5; opacity: 0.95; animation-duration: 300s; animation-delay: -40s; }
|
| 144 |
.background .cloud-4 { top: 36%; --cloud-scale: 0.55; opacity: 0.6; animation-duration: 320s; animation-delay: -240s; }
|
| 145 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 146 |
@keyframes cloud-drift {
|
| 147 |
from { transform: translateX(-45vw) scale(var(--cloud-scale, 1)); }
|
| 148 |
to { transform: translateX(120vw) scale(var(--cloud-scale, 1)); }
|
|
@@ -255,6 +260,12 @@ a:focus-visible, .post-card a:focus-visible {
|
|
| 255 |
overflow-wrap: break-word;
|
| 256 |
}
|
| 257 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 258 |
.article h1 {
|
| 259 |
font-size: clamp(2rem, 6vw, 3rem);
|
| 260 |
margin-bottom: 18px;
|
|
@@ -341,17 +352,32 @@ p code {
|
|
| 341 |
|
| 342 |
/* -------------------- TABLES -------------------- */
|
| 343 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 344 |
table {
|
| 345 |
width: 100%;
|
| 346 |
border-collapse: separate;
|
| 347 |
border-spacing: 0;
|
| 348 |
margin: 24px 0;
|
| 349 |
font-size: 0.95rem;
|
| 350 |
-
|
| 351 |
-
|
| 352 |
-
|
| 353 |
-
|
| 354 |
-
|
| 355 |
}
|
| 356 |
|
| 357 |
th, td {
|
|
|
|
| 143 |
.background .cloud-3 { top: 14%; --cloud-scale: 1.5; opacity: 0.95; animation-duration: 300s; animation-delay: -40s; }
|
| 144 |
.background .cloud-4 { top: 36%; --cloud-scale: 0.55; opacity: 0.6; animation-duration: 320s; animation-delay: -240s; }
|
| 145 |
|
| 146 |
+
/* MOBILE: script.js tags clouds .cloud-simple and skips injecting #cloud-fluff.
|
| 147 |
+
Without this rule the clouds still reference the missing filter and get
|
| 148 |
+
hidden (Chromium treats an unresolved filter url() as display:none). */
|
| 149 |
+
.background .cloud-simple { filter: none; }
|
| 150 |
+
|
| 151 |
@keyframes cloud-drift {
|
| 152 |
from { transform: translateX(-45vw) scale(var(--cloud-scale, 1)); }
|
| 153 |
to { transform: translateX(120vw) scale(var(--cloud-scale, 1)); }
|
|
|
|
| 260 |
overflow-wrap: break-word;
|
| 261 |
}
|
| 262 |
|
| 263 |
+
/* Long, unbreakable link text (e.g. bare repo URLs/slugs) can otherwise push
|
| 264 |
+
the whole article wider than the viewport on narrow screens. */
|
| 265 |
+
.article a {
|
| 266 |
+
overflow-wrap: anywhere;
|
| 267 |
+
}
|
| 268 |
+
|
| 269 |
.article h1 {
|
| 270 |
font-size: clamp(2rem, 6vw, 3rem);
|
| 271 |
margin-bottom: 18px;
|
|
|
|
| 352 |
|
| 353 |
/* -------------------- TABLES -------------------- */
|
| 354 |
|
| 355 |
+
/* Wrapper (added by script.js) that provides horizontal scrolling for very
|
| 356 |
+
wide tables on narrow screens. The table itself stays a real table with
|
| 357 |
+
width:100% so its columns distribute across the full container width, while
|
| 358 |
+
the wrapper carries the rounded card chrome and clips the table to it. Note:
|
| 359 |
+
overflow-x:auto forces overflow-y to compute to auto, so the chrome (and
|
| 360 |
+
especially the soft box-shadow) lives here, not on the table, to avoid being
|
| 361 |
+
clipped. */
|
| 362 |
+
.table-scroll {
|
| 363 |
+
overflow-x: auto;
|
| 364 |
+
margin: 24px 0;
|
| 365 |
+
background: rgba(255,255,255,0.5);
|
| 366 |
+
border-radius: 12px;
|
| 367 |
+
box-shadow: var(--shadow-soft);
|
| 368 |
+
}
|
| 369 |
+
|
| 370 |
table {
|
| 371 |
width: 100%;
|
| 372 |
border-collapse: separate;
|
| 373 |
border-spacing: 0;
|
| 374 |
margin: 24px 0;
|
| 375 |
font-size: 0.95rem;
|
| 376 |
+
}
|
| 377 |
+
|
| 378 |
+
/* When wrapped for scrolling, the wrapper owns the outer margin and chrome. */
|
| 379 |
+
.table-scroll > table {
|
| 380 |
+
margin: 0;
|
| 381 |
}
|
| 382 |
|
| 383 |
th, td {
|