cnmcdee a3baecdd72 rsi-cli 1.0.0: standalone RSI codec CLI (R3 ratios + R5/R8 decode + R9 encode + R11/R13/R15-R18)
- rsi c/d/bench subcommands, pinned Round 3 nominal defaults,
  make test (54 checks) + make bench (3 rotations)
- 44-file corpus: ratio 0.7124 overall / 0.7406 ex-covid (xz -6 0.5399,
  +31.9%); encode 13.0, decode 43.5 MB/s median (quiet 13.1/44.3);
  ratios exact across 6 rotations in 2 runs
- peak memory (burpsuite-src.zip): decode 41.1 MiB, encode 53.7 MiB maxrss
- root README: rsi-cli entry + repo link
2026-12-05 07:18:29 -05:00

fftdict-rsi — the endless RSI (recursive self-improving) research loop

Track 6 of the fftdict follow-on work, started Dec 4, 2026 (~12:06 HST). Runs endlessly until the user says stop; reports at each round boundary.

Method

Each round: (a) pick one idea — literature, other tracks' findings, or our own analysis of what the measurements say; (b) implement the smallest testable version; (c) measure it on the 44-file corpus (/root/fftdict-shared, read-only) vs xz/zstd/lzply with ratio AND speed; (d) record the result with numbers; (e) improve the research process itself for the next round (better benchmarks, better idea triage, faster harness, better failure analysis). If a round finds nothing, start the next round anyway. Winners get implemented, tested, pushed to their repo, and written up as a DRAFT for user review (never a live article update — the fftdict article is CLOSED). Negatives are reported with numbers, honestly, and the loop continues.

Baseline (what the loop inherits)

  • fftdict final report: best design comp16 0.9560 overall (0.8831 corpus1 / 0.9798 corpus2); xz -6 0.5399; goal (within 5–10% of LZMA with significantly better speed) NOT met anywhere meaningful.
  • compdict-ans: rANS P=20 over the comp16 token stream → 0.7530 overall (W16-L64), token-entropy ceiling 0.7180.
  • Round 1 (closed Dec 4, 2026): literal-run escapes, best --lit 18 --minrun 48 -L 128 -> 0.7274 overall (enc 8.6, dec 125.1 MB/s), gap to xz +34.7%. See ROUNDLOG.md. Round 2 (closed Dec 4, 2026): learn inside runs, best headline 0.7220 (--reset --lit 20 --learn 1 --learnlen 15) but NOT a robust win — single-file-driven (covid-countries.csv), ex-covid worse; Round 1's 0.7274 stands. Round 3 (closed Dec 4, 2026): staleness-gated reset, WIN small qualified, best --reset --lit 20 --minrun 48 --learn 1 --learnlen 15 --stale 13 --stalewin 256 -> 0.7054 overall (ex-covid 0.7393, enc 6.9, dec 21.7 MB/s), nominal --stale 12 -> 0.7124; headline peak NOT tunable (covid reset-timing lottery 0.38-0.79); robust core is ex-covid 0.7481 -> 0.739-0.741 across thresh 8-16, gen-mixed-l0.zip 0.6592 -> 0.3444 at every thresh >= 8, text resets suppressed. Round 4 (closed Dec 4, 2026): sustained-staleness (hysteresis) reset timing, NEGATIVE — delaying resets makes covid worse at every setting (s12: 0.4948 -> 0.5587 at mrun 64; s13: 0.4427 -> 0.7410 at mrun 16), ex-covid flat (0.7399-0.7408), mingap vacuous at every representable value (uint16 cap 65535 << fill interval ~65k / reset spacing ~270k); Round 3 nominal --stale 12 -> 0.7124 stands. Round 5 open: decoder speed, profile-first (trie cost 128 -> 20 MB/s; ratios must stay identical). The token stream, not its coding, is the limit. No further entropy coding of these tokens can pass ~0.72. Per-file config oracle 0.7202 ≈ ceiling.
  • fftdict-polynomial: static LFSR table, net −4.41%; the static a priori knowledge generalizes perfectly (100% first-occurrence retention on holdout) but is small (0.88% gross).

Repo layout

  • rsi-cli/ — the shippable CLI (1.0.0): rsi with c/d/bench subcommands, the promoted config pinned as defaults, make test (54 checks) and make bench (3 rotations). Source of the tool: https://github.com/cnmcdee/fftdict-rsi — see rsi-cli/README.md.
  • rsi1.c — round 1 tool (fork of compent.c): literal-run escape tokens.
  • bench_all.sh — round harness: --bench over all 44 files, MAXJOBS=4.
  • aggregate.py — parses bench logs into results/bench-<tag>.tsv + summary.
  • files.tsv — the 44 corpus files with type labels.
  • reference.tsv, reference2.tsv — reference ratios (xz/zstd/lzply/...).
  • ROUNDLOG.md — one entry per round: idea, numbers, verdict, process change.
  • bench/ — per-file bench logs. results/ — per-round TSVs.

Rules

  • Do NOT touch lzply/lzpaq main branches, the fftdict article (CLOSED), util_box, or the release builds. Do NOT start any LLM server (Qwen4 owns the GPU); do NOT restart Sparrow.
  • Budgets: MAXJOBS=4 for batch jobs, make -j4 for builds. Check uptime; if load is above ~18, wait. Check nvidia-smi before any GPU work and yield to the Qwen4 server.
  • All work on hot_house (parrot). Corpus is read-only.
S
Description
No description provided
Readme
689 KiB
0 Stars 1 Watchers 0 Forks
Languages
C 87.8%
Shell 5.7%
Python 5.1%
Makefile 1.4%