Skip to content

F1: figures and tables - #195

Merged
SamMausberg merged 6 commits into
mainfrom
writing/f1-figures
Oct 2, 2026
Merged

SamMausberg merged 6 commits into
mainfrom
writing/f1-figures

Conversation

@SamMausberg

@SamMausberg SamMausberg commented Oct 2, 2026 •

Copy link
Copy Markdown
Owner

F1: figures and tables

This PR changes how the paper's figures and tables look: sizes, layout, line and mark styles, and caption form. It changes no data, no plotted number and no table value.

All figure rules now live in paper/figures/style.tex:

  • Text sizes, set in points so that a figure prints the same in the paper and the research notes:
    • 9 pt (\figlabel) for axis labels and panel titles;
    • 8 pt (\figsmall) for sentences inside schematics;
    • 7 pt for ticks, legends and direct labels.
  • Line weights with fixed meanings: data thick, reference lines semithick, leader lines thin.
  • Marker sizes chosen so the four shapes cover about the same area.
  • One style per arm and drafter, shared by the frontier and the drift panels: plain decoding circle, DFlash diamond, MTP triangle.
  • Panel heights, and \tablefont (9 pt) for tables.
  • Legend and title rules: direct label first, then a legend in an empty part of the plot; never a legend below an x label; no title inside a one-panel figure.

Base: main 37471c0 (after #181, #183 and #194). The one rebase conflict, Table 22's rows, keeps M2's "condition" wording with F1's unhyphenated "Microbenchmark"; M2's §4.4 carries the 30-replay median and the Hopper sentence that F1 removes from the Fig 3 caption.

Build

Check Result
LaTeX warnings 0
Overfull boxes 0
Main text References begin on p10
Paper / notes 50 / 53 pages
check_paper_references.py --rev HEAD clean
pre-commit (changed files) passed
Renders every float page at 150 dpi, colour and greyscale

numdiff against origin/main: 0 numbers lost. Three numbers leave captions, each accounted for:

Figure numbering changes

The frontier figure now prints before the transport figure, so they swap numbers.

  • Frontier: now Figure 4. Its float sits in §4.5 beside its first reference.
  • Transport: now Figure 5. Its figure* moved to just before §4.5's "Engine changes" paragraph, so it prints on the page where §5 begins (p9). Before, it printed a page early, in the middle of §4.3.

All references are \ref, so every in-text figure number updates itself.

Ledger rows (one per float)

id float grade action reason render
C-F1 Fig 1 breakdown uneven targeted Draft heads and target GEMMs were the same grey in greyscale; the legend sat below the x label; bars were thin. Now: target GEMMs 40% grey and other kernels 12%; legend above the plot with one idle entry (the caption explains the hatching); bars 6.5 pt; caption 109 to 81 words. p2, 150 dpi colour + grey
C-F2 Fig 2 mechanism strong light Panel titles were too close together; the "score" label sat differently in (a) and (b); the (c) note ran to 5 lines. Now: centred titles, labels along the axes, (c) note in 4 lines, status stated once in the caption; caption 164 to 113 words. p3
C-F3 Fig 3 candidates weak (caption) / uneven (figure) targeted (a)'s legend hung below panel (a) alone, and (b) had crowded labels at the top. Now: (a)'s legend inside its empty lower right, FP8 and int4 labelled at their curves; (b)'s status split ("lines: derived / marks: measured") in its legend, duplicate shading label removed; 77% and 27% clear of the M=128 line; titles centred; equal plot heights. Caption shortened (details below). p6
C-F4 (old Fig 5) Fig 4 frontier uneven targeted The in-plot title repeated the caption; the legend was 8 pt and crowded the curves; c=128 sat on the plain line; the MTP line and the envelope merged in greyscale; squares meant something else here than in Fig 3. Now: no title; 7 pt legend in a widened empty corner (xmin 65, ymin 180), at least 4 pt from every curve; c=128 above its point; arm styles; MTP full purple; height 0.48 of the width, as before. p8
C-F5 (old Fig 4) Fig 5 transport uneven targeted Panels (b, c) were 1.3 cm tall, so the threshold labels sat on the curves. Now 1.75 cm each, with every label at least 2 pt from a curve and the per-128-weights label in two lines (x axis from 4e-4). DFlash drawn with diamonds, as in the frontier. Panel (a)'s labels clear of the vectors. x label "Drift", following M1. Moved so it prints with §5. p9
C-T1 Table 1 levers uneven kept at 7 pt At 8 pt the wrapped rows cost about five lines of the ten-page main text; at 9 pt a row needs about 295 pt against the 235 pt column. Kept as the one main-text exception below 9 pt, noted in a source comment. Every row still carries its evidence key in its group row, as on main. p7
AD-F6 Fig 6 divergence uneven targeted Counts were ink-coloured at 8 pt; the key was hand-drawn at 9 pt and ran past the axis; the x label was lower case. Now: counts black at 7 pt, key above the plot at 7 pt, "Decoder layer", layers 0.40 cm apart so the strip fills the width. Caption 158 to 140 words; every count and condition kept. p36
AA-T2 Table 2 assumptions (full) uneven targeted Was 7 pt at full width. At 9 pt it is taller than a page (by 41 pt), so it is set at 8 pt with 2 pt between rows: the one appendix table below 9 pt. p15
AA-T3 Table 3 assumptions (short) weak layout light Was 7 pt at 0.62 of the line, with a Status column wrapping to 7 lines. Now 9 pt at full width. Whether to merge it into Table 2 awaits main. p16
AA-T4, T5 Tables 4, 5 uneven targeted 7 pt to 9 pt. p19, p20
AA-T6 Table 6 fallback uneven targeted 7 pt tabular* at 0.7 of the line, now 9 pt at natural width. "Steps" now reads "Steps with a fallback". Merge awaits main. p20
AA-T7 Table 7 speculative uneven targeted The "Hopper / conservative" pairs are now separate columns under "Left to stock" and "Steps"; 9 pt. The caption says "each under the Hopper model and under the conservative model" instead of "both under the Hopper model / conservative model". p21
AC-T8..T14 Tables 8 to 14 strong light \small/\footnotesize to \tablefont (the same 9 pt); Table 12 at natural width instead of 0.62 of the line. p28 to p32
AD-T15..T18 Tables 15 to 18 strong light \tablefont; Table 18's path column 5.6 to 4.6 cm. The p30/p34 half-empty float pages are gone (\floatpagefraction 0.75 in appendices.tex). p33 to p38
AE-T19..T21 Tables 19 to 21 strong light \tablefont; Table 19's component column 6.2 to 5.2 cm, so derivations stop wrapping. p39, p40
AF-T22 Table 22 sources weak layout targeted Was 7 pt at 0.7 of the line, with "Microbench-mark" hyphenated and 3-line cells. Now 9 pt at full width. p42

Caption sentences whose meaning moved

  • Fig 1:
    • Drops "An MTP cycle adds the drafter's heads"; the legend's "draft heads" carries it.
    • Drops the sentence explaining the numbers beside the bars; the column header "heads: target + draft" carries it.
    • "The target head is its GEMM ..." becomes "comprises its GEMM ...".
  • Fig 2:
    • (a) drops "one or two candidates usually remain"; §4.2 gives 1.8 per decision.
    • (b) drops the per-case outcome sentence; the figure labels each case "certified: a", "certified: tie, so a" and "open".
  • Fig 3:
    • (b) drops "(derived)" and "measured"; (b)'s legend states both.
    • (c) drops the 30-replay count and the Hopper sentence ("under the Hopper model the expected times lie between these lines and the measured one").
  • Fig 4 (frontier): adds "measured" to the status.
  • Fig 6:
    • Drops the list of the concurrency pair's kernels; the key and marks show them.
    • States "each number counts the prompts at its mark", where it used to say "(the number above each mark gives the count)".
    • Keeps every condition: different pools, the 40-prompt reruns, the fixed-pool counts.
  • Table 7: "both under the Hopper model / conservative model" becomes "each under the Hopper model and under the conservative model", because the columns are now split.

Details moved to prose

Interactions with other PRs

Not done

  • Extra space above pgfplots captions (left as is). Figures drawn with pgfplots have about 12 pt more space above their captions than the TikZ schematic. A stand-alone test of the same files gives equal space, so the cause is in the paper context. Not found within the time allowed.
  • Research notes figures and tables follow in a separate PR, to the same spec.

@SamMausberg

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-02T10:00:56.034483Z 0b97afd Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

style.tex now holds the figure rules: three text sizes set in points
(9 pt labels and titles, 8 pt notes in schematics, 7 pt ticks, legends
and direct labels), so a figure prints the same in the paper and the
research notes; line weights and marker sizes with fixed meanings; one
style per arm and drafter (plain circle, DFlash diamond, MTP triangle);
panel heights; \tablefont for tables.

Fig 1: target GEMMs and other kernels in greys that stay apart from the
drafter's purple in greyscale; legend above the plot with one idle entry;
thicker bars. Fig 2: titles centred and apart, axis labels along the axes,
shorter per-position note. Fig 3: panel (a)'s legend inside its empty
lower right, labels at their curves; (b) without the duplicated shading
label, its status split in the legend; centred titles. Fig 4: taller
drift panels with every threshold label clear of the curves, drafter
marks as in the frontier, panel (a) labels clear of the vectors. Fig 6:
counts and key at 7 pt in black, key above the plot, wider layer spacing.

Captions of Figs 1, 2 and 6 shortened (details in the PR body); App D
tables use \tablefont; appendix float pages must be three quarters full.
pre-commit ran on these files in the CPU window.
…ndix tables

Frontier (Figure 4 after the move): arm styles shared with the drift panels
(plain circle, DFlash diamond, MTP triangle), no title inside the figure,
7 pt legend clear of every curve, c = 128 above its point, height 0.54 of
the width. The frontier float now sits in Section 4.5 next to its first
reference and the transport figure* before "Engine changes", so it prints
on the page where Section 5 begins; the figures are numbered in the order
the text first cites them.

Table 1 (tab:levers) at 8 pt: change and outputs columns wrap, the range
over run pairs has its own column, every number, footnote and evidence key
kept (keys in the group rows as before).

Figure 3 caption: the 30-replay count and the Hopper-model sentence move to
Section 4.4 (prose editor, M2); statuses are in the legends. Figure 5
(frontier) caption says "measured".

Appendix tables at \tablefont (9 pt) and natural width; the full
assumptions table at 8 pt, the one table taller than a page at 9 pt;
Table 7's Hopper/conservative pairs in their own columns; Table 6's
"Steps" says "Steps with a fallback"; Table 22 without its hyphenated
"Microbench-mark".
…on), frontier at 0.48 with a wider empty corner for its legend, stacked drift panels 1.75 cm, Fig 1 plot 2.35 cm

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 47e1c54051

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread paper/figures/divergence.tex Outdated
Comment on lines +46 to +50
\draw[ink] plot[only marks,mark=square*,mark size=2.3pt] coordinates {(-0.2,2.32)};
\node[annot,anchor=west] at (axis cs:0.15,2.32) {gated RMSNorm, decode};
\draw[ink] plot[only marks,mark=triangle*,mark size=2.9pt] coordinates {(7.9,2.32)};
\node[annot,anchor=west] at (axis cs:8.3,2.32) {attention output, decode};
\draw[ink] plot[only marks,mark=diamond*,mark size=2.9pt] coordinates {(16.3,2.32)};

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Transform the key markers through the plot axis

Inside this axis, the bare coordinates passed to \draw ... plot coordinates are TikZ picture coordinates, while the adjacent labels correctly use axis cs. Consequently, the triangle and diamond are placed at 7.9 cm and 16.3 cm rather than at decoder-layer positions transformed by the axis's x=0.40cm; the diamond can land outside the figure and the key symbols no longer align with their labels. Use axis cs coordinates or \addplot for these markers.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 0b97afd: the three key markers now use explicit axis cs: coordinates, like the labels beside them. With compat=1.18 (macros.tex:14), bare coordinates inside an axis were already read as axis cs, so the render was correct; the rebuilt page 36 renders identically, and the change only makes this explicit.

@SamMausberg

Copy link
Copy Markdown
Owner Author

Verdict: REQUEST CHANGES at 47e1c54

Reviewer 2 (figures and tables). I built the head and rendered every page at 150 dpi (p1-10 in greyscale as well), and I checked each caption sentence whose meaning moved against the figure that now carries it. On content and layout the PR is ready. Two procedural items block, both small: #194 has merged underneath this PR, and a Codex comment has no answer yet.

Checked

  • Fig. 4 (frontier, p8):
  • Fig. 5 (transport, p9): it prints with §5. The panels are 1.75 cm tall, and the threshold labels are clear of the curves. The x label reads "Drift ρ".
  • Fig. 1 (p2):
    • Draft heads and target GEMMs are distinguishable in greyscale.
    • The column header "heads: target + draft" replaces the dropped caption sentence, and the plotted values (10.3, 9.4, 7.8, 6.1; 4.4 + 12.9, 4.1 + 11.3, 3.9 + 8.5) match tables.md.
    • "Share of the profiled step or cycle" and the tracing caveat are kept.
  • Fig. 2 (p3): the case outcomes dropped from the caption are labelled in panel (b) ("certified: a", "certified: tie, so a", "open"). The "1.8 per decision" is in §4.2.
  • Fig. 3 (p6): (b)'s legend now says "lines: derived / marks: measured". The 30-replay median and the Hopper sentence leave the (c) caption; Paper §3-4 prose: the kernel paragraph explains candidate selection, §4 one job per sentence, condition names #194 (now merged) puts both in §4.4, and I checked them there against head_path_time.csv at all nine M.
  • Fig. 6 (p36):
    • Counts by layer: gated norm 3+1+1+3+1+4+2+3+1+3+1+4+2 = 29, attention 6 at layer 3, down-projection 5, matching the plotted v3 run.
    • The caption keeps the different pools, the 40-prompt reruns and the 30/5/5 fixed-pool counts.
  • Table 7: the split columns keep the old "Hopper / conservative" pairs in the same order (for example 2.18 / 3.03, 16.0 / 21.6, 5.7 / 8.6, 78 / 84). The other appendix tables at 9 pt carry the same values.
  • Build (my own, one core, niced, during an untimed hold): 0 LaTeX warnings, 0 overfull or underfull boxes. The paper is 50 pages and the notes 53. The Conclusion and the References heading are both on p10. check_paper_references.py --rev HEAD is clean. numdiff against 6490520: two "3"s and one "30" leave captions, each accounted for as the PR body says.

Blocking

  1. Rebase onto main. Paper §3-4 prose: the kernel paragraph explains candidate selection, §4 one job per sentence, condition names #194 merged at 09:47 (main after 24ac469), so this branch now conflicts or drifts:
    • On Table 2's cells in app_register.tex and Table 3's caption in app_proofs.tex, keep M2's words ("gap/interval condition") with F1's layout.
    • Check that §4.4 now carries "medians of 30 graph replays" and the Hopper sentence before the Fig. 3(c) caption drops them. It does on main.
    • Rebuild for the page budget.
  2. Codex P2 4164621989 (divergence.tex:50, key markers drawn with bare plot coordinates inside the axis) has no answer. The render is correct. With \pgfplotsset{compat=1.18} (macros.tex:14), bare coordinates inside an axis are read as axis cs, so the key markers sit at layers -0.2, 7.9 and 16.3, next to their labels at 0.15, 8.3 and 16.7, as p36 shows. Still, writing (axis cs:-0.2,2.32), (axis cs:7.9,2.32) and (axis cs:16.3,2.32) makes that explicit and costs nothing. Make that change and reply, or reply with the compat reason.

Optional / for later

  • The short Tables 3 and 6 still sit beside their full versions. Main is deciding that, as you note.
  • The extra space above the pgfplots captions (about 12 pt) is visible on p6, p8 and p9 but harmless. Fine to leave for now.
  • Research-notes figures follow in a separate PR, as stated.

@SamMausberg

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

Reviewed commit: 0b42b49c45

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@SamMausberg

Copy link
Copy Markdown
Owner Author

Verdict: APPROVE at 0b97afd

Reviewer 2. This is a delta review: the content and layout were reviewed at 47e1c54 (issuecomment-5949591518), and both blocking items from that review are resolved.

Delta checked

  • The diff of diffs (6490520..47e1c54 against 37471c0..0b97afd, paper sources) differs only in the three Fig 6 key-marker lines, now (axis cs:-0.2,2.32), (axis cs:7.9,2.32) and (axis cs:16.3,2.32). The rebase added nothing else.
  • Rebase conflict in Table 22 (app_register.tex): M2's words survive ("interval condition" on rows 18-20, "gap condition" on row 22), with F1's 9 pt layout and "Microbenchmark". Table 3's caption in app_proofs.tex keeps M2's wording, and F1 changes only its font and width.
  • Fig 3(c): main's §4.4 (setup.tex:56) now carries "medians of 30 graph replays" and the Hopper sentence, so dropping them from the caption loses nothing.
  • Codex P2 4164621989 is fixed and answered. p36 at 0b97afd is pixel-identical to p36 at 47e1c54 at 150 dpi.
  • Float placement after the rebase: M2 shortened §3-4, so §4.5 now starts at the foot of p7, and Fig 4 (frontier) prints on p8 beside its first reference. §5 begins on p8, and Fig 5 (transport) prints at the top of p9, on the page with its references (§5.3, "Figure 5b, c" and "Figure 5a"). The PR body's "prints on the page where §5 begins (p9)" is now off by a page, but the placement is right.
  • Build (my own, one core, niced, during an untimed hold): paper 50 pp, notes 53 pp. 0 LaTeX warnings, 0 overfull or underfull boxes. The Conclusion and the References heading are both on p10. check_paper_references.py --rev HEAD is clean.
  • numdiff against main 37471c0 (main text only): "3" −1 and "30" −1, the same two drops as before. "30" survives in §4.4. Across all files the added tokens are 0.75 (\floatpagefraction) and 6-9 from the new source comments, as the PR body says.
  • Codex: clean on 0b42b49 (09:52). 0b97afd is the three-line change Codex asked for, and it has not been re-reviewed.

Merge order (not blocking)

Optional

  • frontier.tex's comment still says "the 16-token DFlash squares nearest it sit above y = 5,000". They are diamonds now (arm dflash16).

@SamMausberg

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: 0b97afda26

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant