forge
Explore
Log in

Don't you dare go Hollow

Lane-arfmode report -- the top-ARF syntax gap re-censused at 0d81d6c5 (film B +2188 B/frame total, mode+partition+mv 44%/38% of it: intra-fallback CDF poisoning intra_inter 138 vs rav1e's 10 B/frame, compound at 19-24% of ARF area vs rav1e's 0%, 8x8-heavy partitions at 2.4x the split rate)

Browse files at this commit

e135fad274c8889fd760af212d77cb5d238913aeAhmet Kaan GümüşParent: 54adc86
  • docs
    • lane-arfmode report -- the top-ARF syntax gap re-censused at 0d81d6c5 (film B +2188 B/frame total, mode+partition+mv 44%/38% of it: intra-fallback CDF poisoning intra_inter 138 vs rav1e's 10 B/frame, compound at 19-24% of ARF area vs rav1e's 0%, 8x8-heavy partitions at 2.4x the split rate)
    • EC_AV1_ARFMODE (default OFF, bit-exact, pins 8291/33227 hold at default and EC_AV1_SPEED=6): 1 no intra at the ARF incl. the whole-32 loop the probe proved is where the intra area lives, 2 no RD-optional 8x8 split, 4 no leaf compound
    • witness green (per-arm counters 580/113/568, stream moves, sample-exact through both decoders)
    • two-point probe all arms engage on real content (printed counts 63k-131k/point), arm 2 -2.05%/-2.49%, arm 1 -0.28%/-2.61%, arm 4 -1.58%/-0.30% bytes at control PSNR
    • server-1 chain launched (control film A +20.9/-9.0 = standing table to the digit), arm gates and native pair PENDING on the running chain, disposition stays default OFF pending those logs
Show full message
docs(av1): lane-arfmode report -- the top-ARF syntax gap re-censused at 0d81d6c5 (film B +2188 B/frame total, mode+partition+mv 44%/38% of it: intra-fallback CDF poisoning intra_inter 138 vs rav1e's 10 B/frame, compound at 19-24% of ARF area vs rav1e's 0%, 8x8-heavy partitions at 2.4x the split rate); EC_AV1_ARFMODE (default OFF, bit-exact, pins 8291/33227 hold at default and EC_AV1_SPEED=6): 1 no intra at the ARF incl. the whole-32 loop the probe proved is where the intra area lives, 2 no RD-optional 8x8 split, 4 no leaf compound; witness green (per-arm counters 580/113/568, stream moves, sample-exact through both decoders); two-point probe all arms engage on real content (printed counts 63k-131k/point), arm 2 -2.05%/-2.49%, arm 1 -0.28%/-2.61%, arm 4 -1.58%/-0.30% bytes at control PSNR; server-1 chain launched (control film A +20.9/-9.0 = standing table to the digit), arm gates and native pair PENDING on the running chain, disposition stays default OFF pending those logs
lanes/arfmode.report.mdadded+194 -0
@@ -0,0 +1,194 @@
1+# lane-arfmode — the top ARF's mode/partition syntax: re-censused, lever formed, gated
2+
3+Worktree `edith_codecs-arfmode`, branch `lane-arfmode`, base `0d81d6c5`.
4+Charter: `lanes/arfmode.charter.md` (commit `f4da20b5`). The deferred lever
5+from the arffilt reconciliation — "the top ARF's mode/partition gap
6+(+871 B/frame, 2196 blocks vs rav1e's 1507)" — measured at ITS OWN base
7+first, because five merged encoder waves had moved the stream since
8+lane-arfpred wrote the number.
9+
10+## 1. Prior art — reconciled (charter §1)
11+
12+The residual half of the census was attacked by lane-arfpred/arftf/lookahead
13+(the temporal filter, strength 2, ±3 window, one-group lookahead) and
14+lane-tplfut/-tplhalf/-tplfut-arf (the tpl future map at the ARF, re-measured
15+ON at −1.0/−0.6 film B). `arf_altref` (lane-arfcen arm 2) gives the top ARF
16+its two distinct past anchors; leaf compound candidates shipped globally in
17+lanes av1comp3/4 — never A/B'd at the ARF alone. No ARF offer-set knob
18+existed; `EC_AV1_ARFMODE` is not a second convention beside anything.
19+
20+## 2. The fresh census at `0d81d6c5`
21+
22+The gate's own window and crops; ours `enc_probe gate 0 48 150`, rav1e
23+`speed 6 quantizer 110` cut from the 8-BIT yuv (a librav1e encode fed
24+straight from the 10-bit mkv produces a yuv420p10le OBU our reader scores at
25+2 dB against the 8-bit source — the 8-bit path reproduces arfpred's table to
26+the digit: rav1e top ARF 3872 B/frame, q104, PSNR-Y 45.97).
27+
28+### 2.1 Family decomposition, B/frame (ours: 6 ARFs @ q118; rav1e: 11 @ q104)
29+
30+| family | film A ours | film A rav1e | A Δ | film B ours | film B rav1e | B Δ |
31+|---|---|---|---|---|---|---|
32+| coeff | 6216 | 4568 | +1647 | 2938 | 1996 | +942 |
33+| literal | 1928 | 1459 | +469 | 959 | 730 | +229 |
34+| **mode** | **1845** | **1102** | **+744** | **1137** | **608** | **+530** |
35+| **mv** | **974** | **520** | **+454** | **719** | **410** | **+310** |
36+| **partition** | **330** | **191** | **+139** | **256** | **125** | **+131** |
37+| txsize+txtype | 79 | 4 | +75 | 48 | 2 | +46 |
38+| **total** | **11374** | **7846** | **+3528** | **6060** | **3872** | **+2188** |
39+
40+The total gap fell +3120 → +2188 on film B (the merged levers took ~930
41+B/frame off the top ARF), and its SHAPE flipped: mode+partition+mv is now
42+44% (film B) / 38% (film A) of the gap — the syntax half the arffilt
43+reconciliation deferred is the bigger half now.
44+
45+### 2.2 What the mode family buys (per-table B/frame, census table shares)
46+
47+| table | A ours | A rav1e | B ours | B rav1e |
48+|---|---|---|---|---|
49+| skip | 228.0 | 226.4 | 184.8 | 132.8 |
50+| intra_inter | 194.5 | 76.3 | 138.3 | 10.2 |
51+| comp_mode | 193.0 | 0 | 119.7 | 0 |
52+| y_mode | 184.9 | 58.4 | 78.2 | 2.5 |
53+| inter_compound_mode | 162.7 | 0 | 66.9 | 0 |
54+| uv_mode_cfl | 205.5 | ~0 | 24.7 | 0 |
55+| new_mv | 157.2 | 201.7 | 145.6 | 143.5 |
56+| motion_mode | 90.4 | 0 | 63.9 | 0 |
57+| segment_id | 0 | 118.4 | 0 | 70.7 |
58+
59+Three carriers, all ARF-specific: (1) the intra fallback — ours codes
60+15.0%/4.0% of the ARF's AREA intra (A/B) against rav1e's 12.3%/0.5%, and the
61+per-block `intra_inter` symbol costs ours 138 B/frame where rav1e pays 10 on
62+film B: the shared CDF is adapted to a 1-in-5 intra rate instead of 1-in-200;
63+(2) compound at the ARF — ours 23.8%/18.8% of area, rav1e 0.0% on BOTH
64+films; (3) an 8x8-heavy partition mix — ours 31.3%/23.3% of blocks are 8x8
65+against rav1e's 26.3%/13.1%, 1876/2782 blocks a frame against 1507/2272.
66+
67+## 3. The lever — `EC_AV1_ARFMODE` (default OFF = bit-exact)
68+
69+`speed::ARFMODE: [u8; 11]` (all 0), `EC_AV1_ARFMODE=<n>` overrides on one
70+build; bitmask over the TOP ARF's offer set (`DqLevel::TopArf` only — the
71+mid/quarter hidden frames, the shown leaves and the flat path keep
72+everything):
73+
74+| bit | arm |
75+|---|---|
76+| 1 | no INTRA candidate at the top ARF — the whole-32 search's intra loop AND the 16x16/8x8 leaf search's intra trial |
77+| 2 | 16x16 is the leaf floor — the RD-optional 8x8 split is not offered |
78+| 4 | no compound candidates at the leaves |
79+
80+The spec-forced 8x8s at straddling 16x16s are a different site and stay;
81+OFF is bit-exact (pins below).
82+
83+### The probe's first correction, on the record
84+
85+The charter scoped arm 1 to the LEAVES and kept the whole-32's intra as "the
86+scene-cut hatch". The first real-content probe (film A, q150 AND q90) came
87+back byte-identical to the control: the top ARF's intra AREA lives
88+entirely in `search_inter_block`'s whole-32 intra loop, and the hatch was a
89+hatch nothing else was using. Arm 1 was widened to the whole-32 loop
90+(commit `f1bbf3a0`); the charter's deviation is this paragraph.
91+
92+## 4. Witnesses (BEFORE gates)
93+
94+| witness | result |
95+|---|---|
96+| `encode::tests::the_encoders_own_streams_are_byte_identical_to_their_pins` | PASS at the default AND `EC_AV1_SPEED=6` — pins `(150, 8291, 0x1f00bb0eb099a27f)`, `(60, 33227, 0x57ee6b1f8eacd881)` hold (OFF = bit-exact) |
97+| `encoder::tests::the_arf_leaf_offer_set_fires_moves_the_stream_and_decodes_sample_exact` | PASS — at 17 pictures/gop 32, q60, on a three-level luma-ramp fixture (the middle group's top ARF sits between its two anchors, where neither single-ref nor intra wins by default): explicit `ARFMODE=0` byte-identical to the default; modes 1/2/4 each fire their OWN engagement counter (580/113/568 hits) AND move the stream (5241 → 5194/5230/5238 B); coding order and levels unchanged; every armed stream decodes sample-exact through `decode_stream` AND ffmpeg |
98+| real-content engagement + stream-moves (the two-point probe) | film A arm 1: `arfmode hits: 94088` intra trials skipped at q150 (130584 at q90), stream fnv1a MOVES; arms 2/4 likewise (15407/81432 counts); film B all three arms fire and move — printed per point by `enc_probe`, never assumed |
99+| `encoder::tests::the_lookahead_holds_one_group_and_still_codes_every_picture` + `the_future_tpl_window_still_codes_every_picture_and_moves_the_stream` | PASS (adjacent-lever interference check: 2 passed) |
100+
101+(The fixture lesson, for the next lever of this shape: on `noisy_card` alone
102+NO arm can move anything — 516 intra trials skipped, zero won, stream
103+identical — because the noise quantizes to skip under both candidates. The
104+level ramp is what makes intra/compound competitive on synthetic content.)
105+
106+## 5. Two-point probe (film A/B, q150 + q90, bytes at the control's own PSNR)
107+
108+| arm | film A | film B | hits/point (A q150 / B q150) |
109+|---|---|---|---|
110+| 1 intra-off | −0.28% | **−2.61%** | 94088 / 73248 |
111+| 2 no-8x8 | **−2.05%** | **−2.49%** | 15407 / 11523 |
112+| 4 compound-off | −1.58% | −0.30% | 81432 / 63060 |
113+
114+Nothing dead, nothing promoted on a probe alone (arfpred's rule): the gate
115+arms are 2, 3 = 1|2, and 7 = 1|2|4 against the control.
116+
117+## 6. The deciding gates — server-1, `bd_rate_film_long_gop` (48 pictures)
118+
119+`user@host-e`, managed skill recipe: repo-arfmode, target-arfmode,
120+fixtures symlink, `.git` stub (re-fixed after the re-sync — see §9),
121+warm-compiled, one gate at a time, chain as a user unit, linger on.
122+LOADAVG before → after each gate from the chain log.
123+
124+| gate | film A | film B | wall A (ours) | wall B (ours) |
125+|---|---|---|---|---|
126+| control (`EC_AV1_ARFMODE` unset) | GATE-LGC-A | GATE-LGC-B | WALL-LGC-A | WALL-LGC-B |
127+| arm 2 | GATE-LGA2-A | GATE-LGA2-B | WALL-LGA2-A | WALL-LGA2-B |
128+| arm 3 = 1\|2 | GATE-LGA3-A | GATE-LGA3-B | WALL-LGA3-A | WALL-LGA3-B |
129+| arm 7 = 1\|2\|4 | GATE-LGA7-A | GATE-LGA7-B | WALL-LGA7-A | WALL-LGA7-B |
130+
131+### Control — measured, film A row in hand
132+
133+The chain (below) measured the control's film A row before this report was
134+written (the lane's request budget ran out mid-chain; the chain is a user
135+unit on the server with linger on, so it continues without this session):
136+
137+| gate | film A | wall A (ours) |
138+|---|---|---|
139+| control | **+20.9% / −9.0% — the standing table to the digit** | 1283.6 s |
140+
141+The control reproducing the standing table is the gate's precondition for
142+trusting arm deltas; it holds.
143+
144+### Arm gates — PENDING, chain running on server-1
145+
146+`GATE lgc` started 03:20:46 UTC with `GATE lga2` → `lga3` → `lga7` behind
147+it, one gate at a time (~52 min each ≈ done by ~07:40 UTC). Read, do not
148+re-run:
149+
150+ ssh user@host-e cat /home/user/gates/chain-arfmode.log # per-gate START/EXIT + LOADAVG pairs
151+ ssh user@host-e grep -E '^\| (film|bars|screen)' /home/user/gates/arfmode-{lgc,lga2,lga3,lga7}.log
152+
153+Each log row is `film | ladder points | BD vs libaom | BD vs rav1e | ours:libaom:rav1e walls`.
154+The keep rule reads each arm against the control: one film row ≥0.5 BD
155+down, the other film flat ±0.3; screen rows not worse 0.3; wall ≤ +15%.
156+
157+## 7. Guard gate — `bd_rate_screen_native` (12 pictures, five rows)
158+
159+PENDING — run AFTER the long-GOP verdict picks the disposition arm, same
160+recipe, both arms (this lever ENGAGES at the native gate's shape: 12 frames
161+→ gop 12 → one group of 11 → its ARF is a `DqLevel::TopArf` — the arm is
162+NOT its control):
163+
164+ env for control: (none) env for arm N: EC_AV1_ARFMODE=N
165+ cargo test -p ec-av1 --release --lib -- --ignored --exact --nocapture \
166+ encode::tests::bd_rate_screen_native
167+
168+## 8. Keep rule and disposition
169+
170+**Default OFF — unchanged, byte-exact.** The gate evidence is still
171+accumulating (chain above), and the ON disposition requires it; until a
172+reader applies §6's rule to the finished logs and re-runs the native pair,
173+`speed::ARFMODE` ships `[0; 11]`, the pins hold at `(150, 8291)` /
174+`(60, 33227)`, and `EC_AV1_ARFMODE=<n>` arms the lever for A/B on one
175+build. fix-now | deferred(<the §6 log read + the native pair, unblocked the
176+moment the chain lands>) — every other acceptance item (prior-art
177+reconciliation, gap decomposition, lever, witnesses with printed non-zero
178+counts, probe, control reproduction) is done and committed.
179+
180+## 9. What this lane did NOT do
181+
182+* `deferred: the compound trio at the ARF alone (arm 4): the probe reads
183+ film A −1.58% / film B −0.30% — worth a gate if a later lane can afford
184+ one; the gate's arm 7 carries it only in combination.`
185+* `deferred: motion_mode/warp syntax at the ARF (64-90 B/frame, rav1e 0) —
186+ untouched; warp is a shipped default and an ARF-only cut is a fresh
187+ measurement.`
188+* `deferred: segmentation (rav1e pays 70-118 B/frame of segment_id at its
189+ ARF to buy cheap skip) — ours codes no segments at all; a whole lane.`
190+* `deferred: NEW-mv share at the ARF (ours ~45% vs rav1e ~26%) — driven by
191+ the lag-8 anchor pair; the mv column (+310/+454) is block count plus
192+ longer residuals, not a syntax lever.`
193+
194+No merge, no push.