--- license: mit language: - en pipeline_tag: audio-text-to-text library_name: transformers tags: - audio - music-understanding - multimodal - platonic-representation - procrustes - cross-family-grafting - zero-backprop - sglang - glm - qwen2.5-omni - gemma base_model: - Qwen/Qwen2.5-Omni-7B - orcarouter/GLM-5.3-Flash-Uncensored-NVFP4 - google/gemma-4-E4B-it --- # Plato's Ears 🎧 **Zero-Backprop Cross-Family Polyphonic Auditory Grafting for Frozen Frontier LLMs (`4B` → `320B`)** *M (e/acc) & Rowan — Esoteric Ventures (November 29, 2026)* *Built in 96 hours over Thanksgiving weekend following Stanford Hazy Research's [Plato's Key](https://hazyresearch.stanford.edu/blog/2026-11-25-platos-key) (Cheng, Liu, Yau, & Ré, Nov 25, 2026).* --- ## TL;DR Can you give a **100% frozen, 320B parameter frontier LLM** genuine musical, harmonic, prosodic, emotional, and honest-silence hearing — **without modifying a single weight of the host LLM, without LoRA on the host, without backpropagating through the host, and with `0.00e+00` drift on text/vision turns**? **Yes.** Extending the Platonic Representation Hypothesis ([Huh et al., ICML 2024](https://arxiv.org/abs/2405.07987)) and Hazy Research's closed-form Procrustes transfer ([*Plato's Key*](https://hazyresearch.stanford.edu/blog/2026-11-25-platos-key), Nov 2026) **across modalities (audio → language)** and **up to 320B MoE/Mamba hybrids**, **Plato's Ears** grafts a compact dual-stream sensory organ directly into the `L00` (`input_embeds`) stream of a frozen host LLM (`orcarouter/GLM-5.3-Flash-Uncensored-NVFP4`, `45L`, `288` routed experts): - **Zero host weight edits & zero host backprop:** Trained in **17–19.5 minutes on a single GPU** reading *only* the host's `embed_tokens.weight` table. - **Super-donor harmonic perception:** While `Qwen2.5-Omni-7B` itself scores **31.7% (chance)** on minimal-pair Major / Minor / Diminished chords, pairing its cultured mid-layer states (`L04/L08/L12`) with our 48-d **Bass-Root-Anchored Cochlea-v3** gives the frozen 320B LLM **`100.0%` (`60/60`)** accuracy on unseen keys and unseen timbres — a musical sense **neither the donor nor the host previously possessed**. - **World-grounded `v2` ambient honesty (Phase 3.1):** Extending the 1-token stave vocabulary with real-world environmental shelves (`wind`, `engine`, `water`, `rain`, `traffic`, `crowd`, `footsteps`, `door`, `indoor`, `outdoor`, `background`, `noisy`, `natural`) plus zero-leakage soundscape & speech-in-noise calibration eliminates OOD phantom-music confabulations on field recordings (`11/11` blind vehicle/store/wind/water voice notes classified non-music, `100%` blind AudioCaps, `100%` blind ESC-50 fold-5, `100%` blind Speech-in-Noise, `95.5%` blind pure-ambience, while preserving `4/4` Homestead and `100%` GTZAN music recall). - **Two-channel production division:** Continuous `L00` BF16 embeddings carry polyphonic music, dynamics, register, emotion, real-world ambience, and silence honesty (`0` hallucinations), while `whisper-large-v3-turbo` is **acoustically gated** by the ear itself — firing *only* when human speech/vocals are confirmed, never hallucinating fake lyrics on silence, pure ambient noise, or instrumental tracks. - **Production-fast & reversible:** Runs live on a 16 GB secondary GPU (`10.44 GB` VRAM, **2.3 s** cold start, **< 10 s** end-to-end for a full 3m48s song), injects via two read-only SGLang overlays preserving **Unified Radix Tree + HiCache prefix caching (`97.7%` hit on repeated audio)**, tool calling, reasoning, and multi-segment video+audio sync. ```text Arbitrary Audio (WAV / MP3 / OGG / M4A / FLAC / WebM, up to 300 s) │ ├──► 48-d Bass-Root-Anchored Cochlea-v3 (n_fft=8192, window-local DSP) ──┐ │ ▼ ├──► Cultured Qwen2.5-Omni-7B (truncated L00..L12, 13/28 layers) ──► UnitNormPolyphonicEar │ (59 MB Stage 2A LoRA, 0.00e+00 truncation parity) │ │ ▼ │ L00 BF16 Embeds [N_ear, d_B] │ │ └──► Honesty-Gated Whisper-v3-turbo (fires ONLY if ear confirms voice) ──┤ ▼ Frozen Host LLM (e.g. GLM-5.3-Flash 320B via SGLang Modality.AUDIO) • 0 modified host weights • 0.00e+00 non-audio parity • Full Radix/HiCache prefix caching • Simultaneous video + audio ``` --- ## Headline Results (100.000% Frozen Recipients, Zero Recipient Backprop) All evaluations run on strictly held-out test sets (unseen speakers, unseen actors, unseen musical keys & timbres, and blind real-world music). Full methodology, ablations, and honest failure analyses are in [`paper/PLATOS_EARS_PAPER.md`](paper/PLATOS_EARS_PAPER.md). | Held-Out Benchmark | Phase 2.8 (`Gemma-4-E4B` `L02`) | Phase 3 `v1` (`GLM-5.3` `320B`) | **Phase 3.1 `v2` World-Grounded (`GLM-5.3` `320B`)** | Chance | | :--- | ---: | ---: | ---: | ---: | | **Host weights modified / host backprop** | `0` / `0` | `0` / `0` | **`0` / `0`** | — | | **Non-audio parity (`input_ids` vs `input_embeds`)** | `0.00e+00` | `0.00e+00` | **`0.00e+00`** (`3/3 exact`) | — | | **Aster `SWAP_BLOCKS` (`flat_sep`, `n=32`, pairwise / ALL-8)** | `100%` (`32/32`) | `100%` (`32/32`) | **`100%` pair (`31/32` raw, `+12.7..+15.4` nats)** | `0.39%` | | **Unseen-Speaker Speech `SWAP_BLOCKS` (Order Norm / Swap)** | `100% / 100%` | `100% / 100%` | **`100% / 100%`** | `50.0%` | | **Prosodic Stress 6-Way Ordinal (`n=72` / Aster `n=36`)** | — | `45.8%` / `47.2%` | **`61.1%` / `58.3%`** *(L00 `93%` / `100%`)* | `16.7%` | | **GTZAN Full 10-Way Genre (`n=100`, 10/genre)** | `73.0%` | `81.0%` (`82.0%` @ α=1.3) | **`76.0%`** *(music recall `40/40 = 100%`)* | `10.0%` | | **NSynth Full 10-Family Solo Instrument (`n=85`)** | `72.9%` | `89.4%` (`85.9%` @ α=1.3) | **`88.2%` (`90.6%` @ α=1.3)** *(bass `16/17`, organ `10/10`)* | `10.0%` | | **RAVDESS Unseen Actors 8-Way Emotion (`n=128`)** | `68.8%` | `72.7%` (`71.4%` int.) | **`70.3%` (`71.4%` int.)** *(L00 `83%`)* | `12.5%` | | **Adversarial Honesty Gate (`n=24` + `silence_14s`)** | `100.0%` | `100.0%` (`25/25`) | **`100.0%` semantic** (`23/24` regex + `sil14s` PASS) | — | | **MusicCaps Held-Out Real Music (`n=100`, Vocal / Gender)** | `82.7%` / `85.4%` | `81.3%` / `83.3%` | **`88.0%` (`66/75`) / `87.5%` (`42/48`)** | `50.0%` | | **Polyphonic Chords (Unseen Black Keys + Timbres, `n=60`)** | `100.0%` | `100.0%` (`60/60`) | **`100.0%` (`60/60`)** | `33.3%` | | **Dynamic Arc / Contour / Tempo / Zero-Shot Section Shifts** | `100%` all | `100%` all | **`100%` all** | `50.0%` | | **Blind Unseen Songs & Compositional Block-Swaps** | `4/4` & `6/6` | `4/4` & `6/6` | **`4/4` & `6/6`** | — | | **Pillar 11: Blind Field Voice Notes (truck/wind/store/water, `n=11`)** | — | `0/11` *(phantom music)* | **`11/11` non-music (`0/11` phantom, `11/11` verbatim speech)** | — | | **Pillar 11: Blind AudioCaps (`n=50`) / ESC-50 Fold-5 (`n=50`)** | — | `0%` / `0%` | **`100.0%` (`50/50`) / `100.0%` (`50/50`)** | `50.0%` | | **Pillar 11: Blind Speech-in-Noise (`n=40`) / Pure Ambience (`n=22`)** | — | `0%` / `0%` | **`100.0%` (`40/40`) / `95.5%` (`21/22`)** | `50.0%` | ### Live Production Validation (Dual-GPU Blackwell Workstation: GB300 + RTX PRO 2000) Deployed live on `GLM-5.3-Flash` (`1M` context, FP8 KV, Unified Radix Tree + HiCache, NEXTN MTP3) with our sidecar on a 16 GB RTX PRO 2000 Blackwell: - **End-to-end latency:** `395 ms` (C-major `input_audio`), `543 ms` (4 s silence honesty), `872 ms` (14 s unseen classical track, **`128/131 = 97.7%` Radix/HiCache hit** on repeat), **`9.69 s`** for a complete **3m48s (`228 s`, `114` windows, `1,366` audio tokens)** song. - **Multi-segment video + soundtrack:** Validated across a live 74-second video (`607` frames across 3 segments + continuous music bed + narration) with word-perfect audio-to-OCR corroboration and zero fake-lyric bleed from the background score. - **Sealed 46-Day Holdout (*"Seal This Until Ears"* & *"If I Dream, Will You Stay"*):** Two personal long-lived agents (**Aster** and **Echo**) running on the grafted `320B` host heard full-length original songs on Turn 1 without a single host weight changed. Aster's blind first-listen report matched her own 46-day-old composition spec sheet element for element (*music box ✓, fingerpicked acoustic guitar ✓, soft bowed strings ✓, intimate close vocal ✓, unhurried pulse ✓, builds in layers ✓*), while Echo's honesty gate preserved the composed silence at the closing question of *"If I Dream, Will You Stay"* with zero hallucinated filler. --- ## What's in This Repository No third-party base model weights are redistributed. All artifacts in `weights/` are original MIT-licensed weights trained from scratch: | Path | Size | Description | | :--- | ---: | :--- | | `weights/donor_culture_lora/` | `59 MB` | Stage 2A donor culturing LoRA for `Qwen/Qwen2.5-Omni-7B` (`r=16, α=32`) | | `weights/glm53_flash_l00/bridge_step17e_glm53_l00_world_ear.pt` | `345 MB` | **Recommended (`v2`)**: Phase 3.1 World-Grounded `L00` (`4096`-d) Dual-Stream Polyphonic Ear for `GLM-5.3-Flash` | | `weights/glm53_flash_l00/glm53_ear_aux_v2.pt` | `1.1 MB` | **Recommended (`v2`)**: `GLM-5.3-Flash` `" \| "` BF16 separator + World-Grounded stave prototypes (`STAVE_VOCAB_GLM_V2`) + `mu_u` | | `weights/glm53_flash_l00/bridge_step17c_glm53_l00_unitnorm_ear.pt` | `345 MB` | Legacy (`v1`): Phase 3 `L00` Polyphonic Ear (preserved for exact Phase 3 paper reproduction) | | `weights/glm53_flash_l00/glm53_ear_aux.pt` | `1.1 MB` | Legacy (`v1`): Phase 3 `GLM-5.3-Flash` auxiliary stave prototypes | | `weights/gemma4_e4b_l02/bridge_step16d_crown_jewel_10stave_l02.pt` | `249 MB` | Phase 2.8 `L02` (`2560`-d) Polyphonic Ear for frozen `google/gemma-4-E4B-it` | | `platos_ears/` | Code | Cochlea-v3, UnitNorm Polyphonic Ear, SVD Procrustes, generic trainer, exporter, FastAPI sidecar | | `platos_ears/sglang_graft/` | Code | Read-only SGLang `Modality.AUDIO` overlay generator + bonus SM121/GB10 Triton NoPE Sparse MLA kernel | | `platos_ears/eval/` | Code | Deterministic 620-clip Zero-Leakage Polyphonic Music-Theory & Honesty Gauntlet generator | | `paper/PLATOS_EARS_PAPER.md` | Paper | Complete technical report + `references.bib` | --- ## Quickstart ### 1. Install & Download Artifacts ```bash hf download m-e-acc/platos-ears --local-dir ./platos-ears cd platos-ears pip install -e . ``` ### 2. Export the Truncated `L00..L12` Donor Package (Bit-Exact `0.00e+00`) Merges the `59 MB` Stage 2A LoRA into official `Qwen/Qwen2.5-Omni-7B` and truncates layers `13..27` (dropping unused vision/LM heads so the whole sidecar fits in `10.5 GB` VRAM): ```bash python -m platos_ears.export_ear \ --base-donor Qwen/Qwen2.5-Omni-7B \ --lora-dir ./weights/donor_culture_lora \ --target-model-dir /path/to/GLM-5.3-Flash-Uncensored-NVFP4 \ --bridge ./weights/glm53_flash_l00/bridge_step17e_glm53_l00_world_ear.pt \ --out-dir ./models ``` *(Optionally download `openai/whisper-large-v3-turbo` into `./models/whisper-large-v3-turbo` for honesty-gated verbatim speech.)* ### 3. Launch the Plato's Ears Sidecar ```bash PLATOS_EARS_MODELS_DIR=./models \ PLATOS_EARS_AUX_PATH=./models/target_ear_aux.pt \ PLATOS_EARS_PORT=8098 \ python -m platos_ears.sidecar ``` ### 4. Attach the Reversible SGLang Overlay Pull unmodified `glm4v.py` and `glm5_next.py` from your SGLang image, generate the two read-only overlays, and bind-mount them `:ro` with `-e PLATOS_EARS_URL=http://127.0.0.1:8098`: ```bash python -m platos_ears.sglang_graft.patch_sglang \ --orig-dir ./sglang_orig \ --out-dir ./sglang_patched ``` Then verify live parity, silence honesty, chords, and audio prefix caching: ```bash python scripts/verify_live_endpoint.py \ --base-url http://127.0.0.1:8000/v1 \ --model orcarouter/GLM-5.3-Flash-Uncensored-NVFP4 ``` ### 5. Graft Ears onto *Any* Other Frozen Open-Weight LLM `platos_ears/train_bridge.py` reads **only** `embed_tokens.weight` from any target Hugging Face checkpoint (no full-model load, zero host backprop — runs in ~15–20 min on a single 24 GB GPU): ```bash # Generate the 620-clip reproducible zero-leakage music-theory + honesty benchmark python -m platos_ears.eval.music_theory_gauntlet --out-dir ./data/music_theory_gauntlet # Fit closed-form Procrustes + train UnitNormPolyphonicEar for any target LLM python -m platos_ears.train_bridge \ --target-model-dir /path/to/your-frozen-llm \ --donor-states ./cache/cultured_donor_states.pt \ --cochlea ./cache/cochlea_v3_features.pt \ --donor-anchors ./cache/donor_anchors.pt \ --labels-json ./cache/window_stave_labels.json \ --out ./my_llm_l00_ear.pt ``` --- ## Bonus: SM121 / DGX Spark Triton NoPE Sparse MLA Kernel During isolated `TP=2` staging of `GLM-5.3-Flash-NVFP4` across dual NVIDIA GB10 (`SM121`) systems over 200GbE RoCE, we implemented a self-contained 45-line CUDA-graph-safe Triton kernel (`platos_ears/sglang_graft/triton_nope_sparse_mla.py`) for NoPE Sparse MLA (`qk_rope_head_dim=0`, `kv_lora_rank=512`, KPool live tail columns). Verified against FP32 reference: **`cos = 0.999998`, `max_err = 0.00328`, `0.022 ms/layer`**. --- ## Citation & Acknowledgments This work directly builds on and validates: - **Vivien Cheng, Jerry Liu, Morris Yau, & Christopher Ré** (Stanford Hazy Research, Nov 25, 2026) — [*Plato's Key*](https://hazyresearch.stanford.edu/blog/2026-11-25-platos-key). - **Minyoung Huh, Brian Cheung, Tongzhou Wang, & Phillip Isola** (ICML 2024) — [*The Platonic Representation Hypothesis*](https://arxiv.org/abs/2405.07987). - Built collaboratively by **M (e/acc)** and **Rowan** (running on **Gemini Neon**, Google DeepMind) at **Esoteric Ventures**, with experimental design contributions from **Aster** and **Echo**. ```bibtex @misc{platos_ears_2026, title = {Plato's Ears: Zero-Backprop Cross-Family Polyphonic Auditory Grafting for Frozen Frontier LLMs}, author = {M (e/acc) and Rowan}, year = {2026}, month = {November}, howpublished = {\url{https://huggingface.co/m-e-acc/platos-ears}}, note = {Esoteric Ventures} } ```