Publish interactive Weight-Space Programming for Audio Models blogpost
Browse filesFiles changed (34)
- .gitattributes+24
- README.md+6-6
- audio/1_original_studio.wavAdded+3
- audio/2_social_platform_mp3.wavAdded+3
- audio/3_telephone_call_8khz.wavAdded+3
- blog/weight-space-programming-for-audio-models/audio/1_original_studio.wavAdded+3
- blog/weight-space-programming-for-audio-models/audio/2_social_platform_mp3.wavAdded+3
- blog/weight-space-programming-for-audio-models/audio/3_telephone_call_8khz.wavAdded+3
- blog/weight-space-programming-for-audio-models/css/style.cssAdded+2436
- blog/weight-space-programming-for-audio-models/figures/anim1_ofp_vs_sgd_trajectory.gifAdded
- blog/weight-space-programming-for-audio-models/figures/anim2_nuisance_profiling_and_surgery.gifAdded
- blog/weight-space-programming-for-audio-models/figures/anim3_ot_svd_velocity_preservation.gifAdded
- blog/weight-space-programming-for-audio-models/figures/fig1_nuisance_profiler_deepfake_and_asr.pngAdded
- blog/weight-space-programming-for-audio-models/figures/fig2_nullspace_and_gevd_surgery.pngAdded
- blog/weight-space-programming-for-audio-models/figures/fig3_multitap_and_rkhs_lifting.pngAdded
- blog/weight-space-programming-for-audio-models/figures/fig4_ofp_vs_sgd_optimization.pngAdded
- blog/weight-space-programming-for-audio-models/figures/fig5_ot_velocity_compression.pngAdded
- blog/weight-space-programming-for-audio-models/figures/fig6_ctc_consensus_and_loop_guard.pngAdded
- blog/weight-space-programming-for-audio-models/index.htmlAdded+879
- blog/weight-space-programming-for-audio-models/js/cites.jsAdded+94
- blog/weight-space-programming-for-audio-models/js/interactive_audio_wsp.jsAdded+663
- css/style.cssAdded+2436
- figures/anim1_ofp_vs_sgd_trajectory.gifAdded
- figures/anim2_nuisance_profiling_and_surgery.gifAdded
- figures/anim3_ot_svd_velocity_preservation.gifAdded
- figures/fig1_nuisance_profiler_deepfake_and_asr.pngAdded
- figures/fig2_nullspace_and_gevd_surgery.pngAdded
- figures/fig3_multitap_and_rkhs_lifting.pngAdded
- figures/fig4_ofp_vs_sgd_optimization.pngAdded
- figures/fig5_ot_velocity_compression.pngAdded
- figures/fig6_ctc_consensus_and_loop_guard.pngAdded
- index.html+878-18
- js/cites.jsAdded+94
- js/interactive_audio_wsp.jsAdded+663
32 unmodified lines33343532 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text32 unmodified lines33343536373839404142434445464748495051525354555657585932 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -textfigures/anim2_nuisance_profiling_and_surgery.gif filter=lfs diff=lfs merge=lfs -textblog/weight-space-programming-for-audio-models/figures/anim2_nuisance_profiling_and_surgery.gif filter=lfs diff=lfs merge=lfs -textfigures/fig3_multitap_and_rkhs_lifting.png filter=lfs diff=lfs merge=lfs -textblog/weight-space-programming-for-audio-models/figures/fig3_multitap_and_rkhs_lifting.png filter=lfs diff=lfs merge=lfs -textfigures/fig1_nuisance_profiler_deepfake_and_asr.png filter=lfs diff=lfs merge=lfs -textblog/weight-space-programming-for-audio-models/figures/fig1_nuisance_profiler_deepfake_and_asr.png filter=lfs diff=lfs merge=lfs -textfigures/fig4_ofp_vs_sgd_optimization.png filter=lfs diff=lfs merge=lfs -textblog/weight-space-programming-for-audio-models/figures/fig4_ofp_vs_sgd_optimization.png filter=lfs diff=lfs merge=lfs -textfigures/fig6_ctc_consensus_and_loop_guard.png filter=lfs diff=lfs merge=lfs -textblog/weight-space-programming-for-audio-models/figures/fig6_ctc_consensus_and_loop_guard.png filter=lfs diff=lfs merge=lfs -textfigures/anim1_ofp_vs_sgd_trajectory.gif filter=lfs diff=lfs merge=lfs -textblog/weight-space-programming-for-audio-models/figures/anim1_ofp_vs_sgd_trajectory.gif filter=lfs diff=lfs merge=lfs -textfigures/fig5_ot_velocity_compression.png filter=lfs diff=lfs merge=lfs -textblog/weight-space-programming-for-audio-models/figures/fig5_ot_velocity_compression.png filter=lfs diff=lfs merge=lfs -textfigures/anim3_ot_svd_velocity_preservation.gif filter=lfs diff=lfs merge=lfs -textblog/weight-space-programming-for-audio-models/figures/anim3_ot_svd_velocity_preservation.gif filter=lfs diff=lfs merge=lfs -textfigures/fig2_nullspace_and_gevd_surgery.png filter=lfs diff=lfs merge=lfs -textblog/weight-space-programming-for-audio-models/figures/fig2_nullspace_and_gevd_surgery.png filter=lfs diff=lfs merge=lfs -textaudio/1_original_studio.wav filter=lfs diff=lfs merge=lfs -textblog/weight-space-programming-for-audio-models/audio/1_original_studio.wav filter=lfs diff=lfs merge=lfs -textaudio/3_telephone_call_8khz.wav filter=lfs diff=lfs merge=lfs -textblog/weight-space-programming-for-audio-models/audio/3_telephone_call_8khz.wav filter=lfs diff=lfs merge=lfs -textaudio/2_social_platform_mp3.wav filter=lfs diff=lfs merge=lfs -textblog/weight-space-programming-for-audio-models/audio/2_social_platform_mp3.wav filter=lfs diff=lfs merge=lfs -text
12345678910---title: Weight Space Programming For Audio Modelsemoji: 💻colorFrom: bluecolorTo: purplesdk: staticpinned: false---Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference12345678910---title: Weight-Space Programming for Audio Modelsemoji: 🎙️colorFrom: greencolorTo: bluesdk: staticpinned: true---# Weight-Space Programming for Audio Models
123version https://git-lfs.github.com/spec/v1oid sha256:3e79d139f899ba281721ce9ed9a716c9c4b6491e7d88f45dad849ee74c7e0a29size 154764123version https://git-lfs.github.com/spec/v1oid sha256:340eb54ff56b451ec453dc7a8fc95e544ae80d14df615b3d594fd23d034da69asize 154764123version https://git-lfs.github.com/spec/v1oid sha256:4259bd3087c938a934df1abf750904c8a980783214089d3ebca7d828a4e9d2fesize 154764123version https://git-lfs.github.com/spec/v1oid sha256:3e79d139f899ba281721ce9ed9a716c9c4b6491e7d88f45dad849ee74c7e0a29size 154764123version https://git-lfs.github.com/spec/v1oid sha256:340eb54ff56b451ec453dc7a8fc95e544ae80d14df615b3d594fd23d034da69asize 154764123version https://git-lfs.github.com/spec/v1oid sha256:4259bd3087c938a934df1abf750904c8a980783214089d3ebca7d828a4e9d2fesize 154764123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436/* The page is laid out by the Distill template (https://distill.pub/template.v2.js): the title block, the grid, wide figures, footnotes. This file gives it the look of the original blog template: Source Sans 3, light headings, green accents. The page is one column, a little wider than Distill's text, and every figure stays inside it (l-body, l-body-outset, l-page and l-screen are all the text's width). */
:root { --text: #333333; --accent: #2e996a; /* boxes */ --accent-hover: #8fc8a9; --accent-bg: #dbece2; --title-bg: #f3f9f5; /* the band behind the title */ --green: #118659; /* links, and text colors that match the figures: green = the LLM */ --red: #d93a4b; --rule: rgba(0, 0, 0, 0.1);
--font-sans: 'Source Sans 3', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', Meiryo, 'Lato', Verdana, Helvetica, sans-serif; --font-mono: 'JetBrains Mono', 'Source Code Pro', Menlo, Monaco, Consolas, monospace;}
/* ---------- Fonts and text ---------- */
html { font-family: var(--font-sans); color: var(--text); background-color: #ffffff; -webkit-font-smoothing: antialiased;}
d-article { font-size: 17px; line-height: 1.5; color: var(--text);}
@media (min-width: 1024px) { d-article { font-size: 18px; }}
/* One column for the whole page, a little wider than Distill's text (704px at its widest), and every figure inside it: the wider figure classes (l-page, l-body-outset, l-screen) are as wide as the text. */@media (min-width: 768px) { .base-grid, distill-header, d-title, d-abstract, d-article, d-appendix, distill-appendix, d-byline, d-footnote-list, d-citation-list, distill-footer { grid-template-columns: [screen-start] minmax(24px, 1fr) [page-start kicker-start middle-start text-start] minmax(0, 760px) [text-end page-end middle-end kicker-end gutter-start gutter-end] minmax(24px, 1fr) [screen-end]; grid-column-gap: 0; }}
d-article .l-page,d-article .l-page-outset,d-article .l-body-outset,d-article .l-screen,d-article .l-screen-inset,d-article d-figure { grid-column: text;}
code,kbd,pre,samp,.tt { font-family: var(--font-mono);}
/* Inline code, e.g. a weight the LLM wrote: <code>W1[10, 21] = 1</code> */d-article code { padding: 1px 5px; font-size: 0.85em; color: var(--text); background-color: #f1f3f6; border-radius: 4px;}
/* Links: green. In the text, a thin light-green underline (Distill draws a grey one), so a link is not told by its color alone. The author names have none. */d-article a,.post-byline a { color: var(--green); border-bottom: none; text-decoration: none;}
d-article a { text-decoration: underline 1px var(--accent-hover); text-underline-offset: 3px;}
d-article a:hover,.post-byline a:hover { color: var(--accent-hover); border-bottom: none;}
/* ---------- Title and byline ---------- */
d-title { padding: 48px 0 32px; background-color: var(--title-bg);}
d-title h1 { color: #222222; letter-spacing: -0.01em;}
d-title p { font-size: 21px; font-weight: 300; line-height: 1.4; color: #555555;}
d-title .title-kicker { /* "Sparks of Weight Space Programming:", above the title */ margin: 0 0 6px; font-size: 26px;}
/* The template adds its own byline from <d-front-matter> ("Not published yet", "No DOI yet"); the page writes its own. */d-byline { display: none;}
.post-byline { border-bottom: 1px solid var(--rule); padding: 1.5rem 0; font-size: 15px; line-height: 1.7;}
.post-byline .byline-grid { grid-column: text; display: grid; grid-template-columns: 1fr 1fr 1fr; column-gap: 8px;}
.post-byline h3 { margin: 0 0 2px; font-size: 14px; font-weight: 600; letter-spacing: 0.06em; color: var(--text); text-transform: uppercase;}
.post-byline p { margin: 0;}
.post-byline sup { /* equal contribution */ margin-left: 1px; font-size: 0.75em; color: var(--text);}
.post-byline .byline-note { margin-top: 6px; font-size: 14px; color: var(--text);}
d-article { border-top: none;}
/* ---------- Headings: light, as in the original template ---------- */
d-article h2 { font-size: 28px; font-weight: 300; line-height: 1.2; color: var(--text); border-bottom: 2px solid var(--accent-bg); padding-bottom: 0.6rem;}
@media (min-width: 1024px) { d-article h2 { font-size: 34px; }}
d-article h3 { margin: 32px 0 12px; font-size: 24px; font-weight: 300; line-height: 1.2; color: var(--text);}
/* An experiment's title: its number in green, then the question as a heading */d-article .exp-head { margin: 44px 0 14px;}
.exp-num { display: block; font-size: 14px; font-weight: 700; letter-spacing: 0.02em; color: var(--green);}
d-article .exp-head h3 { margin: 2px 0 0; font-size: 20px; font-weight: 600; line-height: 1.3;}
/* ---------- Figures ---------- */
d-article figure img,d-article figure video,d-article figure svg.figure-svg { /* an SVG figure put into the page by the script in index.html, for the fonts */ display: block; width: 100%; height: auto;}
/* Captions: centred, at most about a text column wide. No small grey text anywhere (the author's rule). */figcaption { max-width: 800px; margin: 10px auto 0; font-size: 16px; line-height: 1.45; color: var(--text); text-align: center;}
figcaption b { color: var(--text);}
/* Figures or videos side by side: <div class="figure-row cols-3"> with one <figure> per panel. */.figure-row { display: grid; gap: 0 16px;}
.figure-row.cols-2 { grid-template-columns: repeat(2, 1fr); }.figure-row.cols-3 { grid-template-columns: repeat(3, 1fr); }.figure-row.cols-4 { grid-template-columns: repeat(4, 1fr); }
.figure-row figure { margin: 0;}
/* Short label under one item of a row (larger and darker than a caption). */figcaption.label { margin-top: 6px; font-size: 15px; color: var(--text);}
@media (max-width: 600px) { .figure-row.cols-3, .figure-row.cols-4 { grid-template-columns: repeat(2, 1fr); }}
/* ---------- Highlight boxes ---------- */
/* The takeaway at the end of a section. */.block-takeaway { margin: 16px 0 24px; padding: 12px 16px; border: 2px solid var(--accent); background-color: var(--accent-bg); border-radius: 10px;}
/* A side note, e.g. how a result was checked. */.block-note { margin: 16px 0 24px; padding: 12px 16px; border: 1px solid #dddddd; background-color: #f6f6f6; border-radius: 10px;}
.block-note ul { margin: 8px 0 0; padding-left: 22px;}
.block-note li { margin-bottom: 6px;}
.block-takeaway > :last-child,.block-note > :last-child { margin-bottom: 0;}
/* ---------- What the LLM wrote, expandable: <details class="trace"> ---------- */
details.trace { margin: 4px 0 24px; border: 1px solid #dde9e2; border-radius: 10px; background-color: #f9fcfa;}
details.trace > summary { padding: 10px 16px; font-size: 16px; font-weight: 600; color: var(--accent); cursor: pointer; list-style: none;}
details.trace > summary::-webkit-details-marker { display: none;}
details.trace > summary::before { content: "\25B8\00a0";}
details.trace[open] > summary::before { content: "\25BE\00a0";}
details.trace > summary:hover { color: var(--accent-hover);}
.trace-body { padding: 0 16px 14px; font-size: 16px;}
.trace-body .trace-src { margin: 0 0 8px; font-size: 16px; color: var(--text);}
.trace-body blockquote { margin: 0 0 12px; padding: 8px 14px; font-size: 16px; line-height: 1.5; color: var(--text); background-color: #ffffff; border-left: 3px solid var(--accent);}
.trace-body .trace-check { margin: 0;}
.trace-body table { display: block; /* scrolls sideways on narrow screens */ max-width: 100%; overflow-x: auto; margin: 0 0 12px; font-size: 14px; border-collapse: collapse;}
.trace-body th,.trace-body td { padding: 3px 14px 3px 0; text-align: left; vertical-align: middle; white-space: nowrap; border-bottom: 1px solid #e6e6e6;}
/* ---------- Text colors that match the figures ---------- */
.text-green { color: var(--green); }.text-red { color: var(--red); }
/* ---------- Text still to be written: <span class="tbd">TBD</span> (remove before publishing) ---------- */
.tbd { color: #9a5b00; background-color: #fff3dc; border-radius: 3px; padding: 0 4px;}
/* ---------- Result tables: <figure class="l-body"><table class="results">, numbers in <td class="num"> ---------- */
table.results { display: block; /* scrolls sideways on narrow screens */ width: fit-content; /* as wide as its columns, centred */ max-width: 100%; overflow-x: auto; margin: 0 auto; font-size: 16px; line-height: 1.4; border-collapse: collapse;}
table.results th,table.results td { padding: 6px 14px 6px 0; text-align: left; vertical-align: top; border-bottom: 1px solid #e6e6e6;}
table.results th { font-weight: 600; color: var(--text); border-bottom: 1px solid #bbbbbb;}
table.results .num { text-align: right; white-space: nowrap;}
table.results tr > :first-child { /* row names on one line */ white-space: nowrap;}
/* ---------- A row of game animations above a band drawn to the same columns (Figures 2 and 7) ---------- */
/* The column gap is a percentage so that the columns line up with the SVG band below, which scales with the width. */.game-row { display: grid; grid-template-columns: repeat(5, 1fr); column-gap: 2%;}
.game-row.cols-3 { grid-template-columns: repeat(3, 1fr);}
.game-row.cols-4 { grid-template-columns: repeat(4, 1fr);}
d-article figure .game-row img { border-radius: 4px;}
d-article figure .game-row.pixel img { /* grid games drawn cell by cell */ image-rendering: pixelated;}
/* ---------- Our prompts and Astra's reasoning (js/traces.js): <div class="taskpages" data-src="..."> ---------- One tab per network (underlined tabs), then one compact card: the network's animation at the left; what we ask, in a monospace font as Astra got it; and what Astra answers, its final answer first. Square corners. Green = Astra, as in the figures: its final answer, and where it reads the weights (its quotes and what it makes of them, and the same weights in the prompt). */
.taskpages { margin: 2px 0 10px; font-family: var(--font-sans); font-size: 14.5px; line-height: 1.5; color: var(--text); outline: none;}
.taskpages button { font-family: var(--font-sans); cursor: pointer;}
.tp-tabs { /* one tab per network, underlined */ margin-bottom: 10px; border-bottom: 1px solid #d5d9df;}
.tp-tabrow { /* a row of tabs, with the name of its game when there are several */ display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px;}
.has-setup .tp-tabrow { /* room for the Setup button at the figure's top right */ padding-right: 90px;}
.has-setup .taskpages > .tp-card:first-child { /* no tabs: the Setup button gets a row of its own */ margin-top: 40px;}
.tp-tabgroup { min-width: 96px; font-size: 14px; font-weight: 700;}
.tp-tabset { display: flex; flex-wrap: wrap; gap: 0 20px;}
.tp-tab { margin-bottom: -1px; padding: 5px 1px; font-size: 15px; font-weight: 600; color: #444444; background: none; border: 0; border-bottom: 3px solid transparent;}
.tp-tab:hover { color: #222222;}
.tp-tab[aria-selected="true"] { color: #222222; border-bottom-color: var(--green);}
.tp-card { /* one network: animation | what we ask, what Astra answers */ display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid #c9ced5;}
.tp-card.has-anim { grid-template-columns: 132px minmax(0, 1fr);}
.tp-media { /* a replay across the top of the card, the result beside it */ grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; padding: 10px 14px; border-bottom: 1px solid #e1e4e8;}
.tp-media img,.tp-media svg { display: block; flex: 0 0 auto; width: 50%; max-width: 400px; height: auto;}
.tp-mside { /* beside the replay: its key, then the result */ flex: 1;}
.tp-mkey { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700;}
.tp-msw { display: inline-block; flex: 0 0 auto; width: 14px; height: 14px;}
.tp-mcap { margin-top: 6px; font-size: 14px; font-weight: 600;}
@media (max-width: 600px) { /* on a phone, the result under the replay */ .tp-media { flex-direction: column; align-items: stretch; gap: 6px; }
.tp-media img, .tp-media svg { width: 100%; max-width: none; }}
.tp-chat { /* an exchange across the top of the card: the user, then each model */ grid-column: 1 / -1; padding: 10px 14px; border-bottom: 1px solid #e1e4e8;}
.tp-convo { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px; max-width: 720px; margin: 0 auto;}
.tp-msg { padding: 6px 10px; font-size: 14.5px; line-height: 1.35; color: #222222; border: 1px solid #c9ced5; border-radius: 8px;}
.tp-user { background-color: #f6f7f9;}
.tp-who { display: block; margin-bottom: 2px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;}
.tp-guess { font-weight: 700; color: var(--red);}
@media (max-width: 640px) { .tp-convo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.tp-user { grid-column: 1 / -1; }}
.tp-fold { /* a long code block, folded to a line */ margin: 8px 0 2px; font-size: 13.5px;}
.tp-fold > summary { width: fit-content; padding: 1px 8px; color: #222222; cursor: pointer; border: 1px solid #9aa3ad;}
.tp-fold > summary b { color: var(--green);}
.tp-fold[open] > summary { margin-bottom: 6px;}
.tp-fold .tp-pre { max-height: 150px; margin: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #92c2a8 transparent;}
.tp-side { padding: 12px; background-color: #f6f7f9; border-right: 1px solid #c9ced5;}
.tp-anim { display: block; width: 100%; height: auto; border: 1px solid #444444; image-rendering: pixelated;}
.tp-play { /* the game, played by the network Astra wrote (Experiment 4) */ aspect-ratio: 1; border-radius: 3px;}
.tp-samples { /* six images a diffusion model generates */ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px;}
.tp-sample,.tp-drawn { display: block; width: 100%; height: auto;}
.tp-draw { /* the image Astra drew, beside its answer */ width: 96px;}
.tp-draw .tp-cap { margin-top: 4px;}
.tp-cap { margin-top: 6px; font-size: 13.5px; font-weight: 600; line-height: 1.3; text-align: center;}
.tp-main { min-width: 0;}
.tp-truth,.tp-q,.tp-a,.tp-r { padding: 9px 14px;}
/* the three parts of a card: the Prompt (a message to Astra), the Answer (Astra's, on a pale green band) and the Reasoning, each with its label */.tp-a.tp-sec { background-color: #f3f9f5; border-bottom: 1px solid #e1e4e8;}
.tp-from { /* "from GPT-6 Astra", after the Answer label */ margin-right: 10px; font-size: 13.5px; font-weight: 600; color: #222222;}
.tp-chip { /* the label of a part: plain bold text in its colour */ display: inline-block; margin-right: 10px; font-size: 14px; font-weight: 700; line-height: 1.5;}
.tp-chip-p { color: #222222;}
.tp-chip-a { color: var(--green);}
.tp-chip-r { color: #03623f;}
.tp-rhead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 0;}
.tp-rsub { font-size: 13.5px; color: #333333;}
.tp-a .tp-fold { margin-top: 6px;}
.tp-whole > summary { /* a card folded to one line, beside the Setup button */ display: inline-block; padding: 4px 0; font-size: 15px; font-weight: 600; color: var(--green); list-style: none; cursor: pointer;}
.tp-whole > summary::-webkit-details-marker { display: none;}
.tp-whole > summary::after { content: " \25B8";}
.tp-whole[open] > summary::after { content: " \25B4";}
.tp-whole[open] > summary { margin-bottom: 8px;}
.tp-whide,.tp-whole[open] .tp-wshow { display: none;}
.tp-whole[open] .tp-whide { display: inline;}
.tp-truth { /* the right answer */ font-size: 14px; background-color: #f6f7f9; border-bottom: 1px solid #e1e4e8;}
.tp-q { border-bottom: 1px solid #e1e4e8;}
.tp-lab { /* "We ask", "Astra answers", "Truth" */ display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 4px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #222222;}
.tp-truth .tp-lab { display: inline; margin-right: 6px;}
.tp-a > .tp-lab { color: var(--green);}
.tp-meta { font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: #333333;}
.tp-verdict { font-weight: 700; color: #1a7f37;}
.tp-verdict.wrong { color: #c62828;}
.tp-result { /* a score instead of right or wrong (Experiment 4) */ font-weight: 700; color: #222222;}
.tp-btn { /* a button (Figure 11's Play) */ padding: 3px 10px; font-size: 14px; font-weight: 600; color: var(--green); background-color: #ffffff; border: 1.5px solid var(--green); border-radius: 3px;}
.tp-btn:hover { background-color: #edf5f0;}
.tp-link { /* see the weights Astra quotes, read all of its reasoning */ margin-top: 4px; padding: 0; font-size: 13.5px; font-weight: 600; color: var(--green); background: none; border: 0;}
.tp-link:hover { text-decoration: underline;}
.taskpages mark { /* Astra's final answer */ padding: 0 3px; font-weight: 700; color: var(--text); background-color: #b2dac4;}
.taskpages mark.tp-read { /* where Astra reads the weights */ padding: 0 2px; font-weight: inherit; background-color: #cee7d9;}
.tp-pbody.open { /* the whole prompt scrolls inside the card */ max-height: 300px; overflow-y: auto;}
.tp-text { /* the prompt, as Astra got it */ font-family: var(--font-mono); font-size: 12.5px; line-height: 1.5; color: #1f1f1f; white-space: pre-wrap;}
.tp-text + .tp-text,.tp-omit + .tp-text,.tp-wline + .tp-text { margin-top: 4px;}
.tp-omit { /* where the numbers of the weights were */ display: inline-block; margin: 4px 0 0; padding: 0 6px; font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; color: #1f1f1f; white-space: nowrap; background-color: #e6e8eb;}
.tp-wline { /* a line of weights that Astra quotes, on a pale green band */ margin: 6px 0; padding: 4px 8px; background-color: #edf5f0; border-radius: 4px;}
.tp-wlabel { font-size: 13px; font-weight: 700; color: #1f1f1f;}
.tp-wvals { font-family: var(--font-mono); font-size: 12px; line-height: 1.55; color: #1f1f1f;}
.tp-qhead { /* "Prompt to GPT-6 Astra" */ display: flex; align-items: baseline; gap: 0; margin-bottom: 6px;}
.tp-to { font-size: 13.5px; font-weight: 600; color: #222222;}
.tp-bubble { /* the prompt in a chat input box: what comes with it, then the question */ padding: 10px 12px 8px;}
.tp-pbar { /* the input box's bottom row: the whole prompt on the left, send on the right */ display: flex; align-items: center; min-height: 26px; margin-top: 6px; padding-right: 34px;}
.tp-bubble .tp-link { margin: 0; font-size: 13px;}
.tp-bubble .tp-pbody.open { margin-top: 8px; padding-top: 8px; border-top: 1px solid #e1e4e8;}
.tp-rbox { /* the reasoning, in a box of its own, with the link to all of it inside */ padding: 8px 12px 8px; background-color: #ffffff; border: 1px solid #dde1e6; border-radius: 12px;}
.tp-rbox .tp-link { margin-top: 2px; font-size: 13px;}
/* A prompt drawn like a chat app's input box: white, rounded, a soft shadow, and a send button at its bottom right */.tz-task,.tp-bubble { position: relative; background-color: #ffffff; border: 1px solid #cfd5dc; border-radius: 18px; box-shadow: 0 1px 4px rgba(16, 24, 40, 0.08);}
.tz-task::after,.tp-bubble::after { content: ""; position: absolute; right: 8px; bottom: 8px; width: 24px; height: 24px; background: #222222 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M5 12l7-7 7 7'/%3E%3C/svg%3E") center / 14px no-repeat; border-radius: 50%;}
.tp-file { /* the weights (or files) the message carries, as an attachment */ margin-bottom: 8px; padding: 6px 10px; font-size: 13.5px; font-weight: 600; color: #222222; background-color: #f3f5f8; border: 1px solid #dfe3e8; border-radius: 10px;}
.tp-ficon { /* a small page icon */ display: inline-block; width: 10px; height: 13px; margin-right: 7px; vertical-align: -1px; border: 1.5px solid #59636e; border-radius: 2px; background: linear-gradient(#59636e, #59636e) 2px 3px / 5px 1.5px no-repeat, linear-gradient(#59636e, #59636e) 2px 6px / 5px 1.5px no-repeat;}
.tp-paste { /* a line of the weights, as pasted into the prompt */ margin-top: 4px; overflow: hidden; font-family: var(--font-mono); font-size: 12px; font-weight: 400; line-height: 1.5; color: #222222; white-space: nowrap; -webkit-mask-image: linear-gradient(90deg, #000000 75%, transparent); mask-image: linear-gradient(90deg, #000000 75%, transparent);}
.tp-ask { /* the question itself */ font-size: 15.5px; font-weight: 600;}
.tp-rule { /* what the prompt rules out, after the question */ margin-top: 2px; font-size: 15px; font-weight: 600;}
.tp-tag { /* what comes with the question: the weights */ display: inline-block; margin: 2px 0 0 6px; padding: 0 6px; font-size: 12.5px; font-weight: 600; line-height: 1.6; color: #222222; white-space: nowrap; border: 1px solid #9aa3ad;}
.tp-q .tp-lab,.tp-ahead .tp-lab { display: inline; margin-right: 8px;}
.tp-q .tp-link { margin: 0;}
.tp-pbody:empty { display: none;}
.tp-pbody.open { margin-top: 8px;}
.tp-ahead { /* "Astra answers", the core of its answer, confidence and verdict */ display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px;}
.tp-ans { font-size: 15.5px;}
.tp-alab { font-weight: 700;}
.tp-abody.has-draw { /* the steps, and the image Astra drew beside them */ display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 18px; align-items: start;}
.tp-steps { /* the key sentences of the reasoning, one per line, on a line of dots */ margin: 8px 0 2px; padding: 0 0 0 22px; font-size: 14px; line-height: 1.45; list-style: none; background: linear-gradient(#c3e0cf, #c3e0cf) 5px 0 / 2px 100% no-repeat local; /* the line, inside the box */}
.tp-rbody:not(.open) .tp-steps { /* the summary scrolls: about four steps in view, a fade while more is below */ max-height: 118px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #92c2a8 transparent;}
.tp-rbody:not(.open) .tp-steps.fits { max-height: none;}
.tp-steps.more { -webkit-mask-image: linear-gradient(#000000 calc(100% - 26px), transparent); mask-image: linear-gradient(#000000 calc(100% - 26px), transparent);}
.tp-steps li { position: relative; margin: 0 0 5px;}
.tp-steps li::before { content: ""; position: absolute; top: 0.5em; left: -21px; width: 6px; height: 6px; background-color: #ffffff; border: 2px solid var(--green); border-radius: 50%;}
.tp-steps li.tp-reads::before { /* a step that reads the weights */ background-color: var(--green);}
.tp-slab { /* "Channel 0 — agent:", "Outputs:" */ font-weight: 700; color: #03623f;}
.tp-steps b { /* the terms the reasoning turns on, as Astra set them in bold */ font-weight: 700; background: linear-gradient(transparent 58%, #a1d2b7 58%);}
.tp-num { /* a number it quotes from the weights */ font-family: var(--font-mono); font-size: 0.92em; font-weight: 600;}
.tp-draw .tp-pre { margin: 0;}
.tp-draw .tp-h { margin-top: 0;}
.tp-rbody.open { /* the whole answer scrolls inside the card */ max-height: 420px; overflow-y: auto;}
.tp-reply .tp-key { /* a key sentence, marked in the whole reply (the diffusion models) */ background-color: #e4f1ea;}
.tp-thinking { margin-bottom: 8px; font-size: 13.5px;}
.tp-reply { font-size: 14px;}
.tp-reply p { margin: 0 0 8px;}
.tp-reply ul { margin: 0 0 8px; padding-left: 20px;}
.tp-reply li { margin-bottom: 4px;}
.tp-h { margin: 10px 0 4px; font-weight: 700; color: var(--green);}
.tp-reply > .tp-h:first-child { margin-top: 0;}
.tp-code { font-family: var(--font-mono); font-size: 0.9em;}
.tp-table { /* a table in Astra's answer */ margin: 4px 0 12px; font-size: 13.5px; border-collapse: collapse;}
.tp-table th,.tp-table td { padding: 3px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid #d5d9df;}
.tp-table th { font-weight: 700; border-bottom: 1.5px solid #444444;}
.tp-math { /* display math in Astra's answer */ margin: 4px 0 10px; overflow-x: auto;}
.tp-pre { overflow: visible; margin: 2px 0 8px; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.15; color: #1f1f1f;}
/* A figure's setup, behind a button at its top right: <figure class="has-setup"><details class="fig-setup"> */
.fig-setup { position: absolute; top: 0; right: 0; z-index: 20; font-family: var(--font-sans);}
.fig-setup > summary { padding: 3px 11px; font-size: 14px; font-weight: 600; color: var(--green); cursor: pointer; list-style: none; background-color: #ffffff; border: 1.5px solid var(--green);}
.fig-setup > summary::-webkit-details-marker { display: none;}
.fig-setup > summary::before { content: "i"; display: inline-block; width: 15px; height: 15px; margin-right: 6px; font-family: Georgia, serif; font-size: 11px; font-style: italic; font-weight: 700; line-height: 15px; text-align: center; color: #ffffff; vertical-align: 1px; background-color: var(--green); border-radius: 50%;}
.fig-setup[open] > summary { color: #ffffff; background-color: var(--green);}
.fig-setup[open] > summary::before { color: var(--green); background-color: #ffffff;}
.fig-setup-body { position: absolute; top: calc(100% + 6px); right: 0; width: min(480px, calc(100vw - 32px)); box-sizing: border-box; padding: 12px 16px; font-size: 14.5px; line-height: 1.5; text-align: left; color: var(--text); background-color: #ffffff; border: 1px solid #c9ced5; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);}
.fig-setup-body ul { margin: 0; padding-left: 18px;}
.fig-setup-body li { margin-bottom: 4px;}
@media (max-width: 700px) { .tp-card.has-anim { grid-template-columns: minmax(0, 1fr); }
.tp-side { display: flex; align-items: center; gap: 12px; border-right: 0; border-bottom: 1px solid #c9ced5; }
.tp-anim { width: 96px; }
.tp-samples { grid-template-columns: repeat(3, 44px); }
.tp-abody.has-draw { grid-template-columns: minmax(0, 1fr); }}
/* ---------- The math-editing figures (js/mathedit.js) ---------- Benchmarks: one line per benchmark, green for math and orange for the others, the pointed one in front with its scores. A run: its practice accuracy drawn as it goes (grey = original weights, green = Astra's current edit), a tick for every turn under it (red = changed the weights), and beside it that turn: what it did in a line, then what Astra wrote, cut to three lines until "more" is pressed; under it, the list of the run's edits. */
.me-bench,.me-traj { margin: 4px 0 14px; font-family: var(--font-sans); color: var(--text); outline: none;}
.me-svg { display: block; width: 100%; height: auto; font-family: var(--font-sans);}
.me-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 14px;}
.me-key,.me-tick { display: inline-block; margin-right: -10px; vertical-align: middle;}
.me-key { width: 22px; border-top: 2.5px solid var(--c);}
.me-tick { width: 2px; height: 12px; background-color: #d93a4b;}
.me-item { /* one entry of a key: its mark and label stay on one line */ white-space: nowrap;}
.me-item > .me-key,.me-item > .me-tick { margin-right: 6px;}
.me-series polyline,.me-series circle,.me-lead { transition: opacity 0.2s;}
.me-dim polyline, /* the lines behind the one in front; their names stay dark */.me-dim circle,.me-dim .me-lead { opacity: 0.38;}
.me-name { font-variant-numeric: tabular-nums;}
.me-val { font-weight: 600;}
.me-on .me-name { font-weight: 700;}
.me-halo { /* a score written over the lines */ paint-order: stroke; stroke: #ffffff; stroke-width: 4px; stroke-linejoin: round;}
.me-hidden .me-series circle,.me-hidden .me-name,.me-hidden .me-lead,.me-hidden .me-halo,.me-hidden .me-wash { opacity: 0;}
.me-drawing .me-series circle,.me-drawing .me-name,.me-drawing .me-lead { animation: me-fade 0.5s ease-out both; animation-delay: calc(var(--delay, 0ms) + 0.75s);}
.me-drawing .me-halo,.me-drawing .me-wash { animation: me-fade 0.6s ease-out both; animation-delay: 1.4s;}
@keyframes me-fade { from { opacity: 0; } to { opacity: 1; }}
.me-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 10px 0 8px; font-size: 14px;}
.me-pos { font-weight: 600; font-variant-numeric: tabular-nums;}
.me-bar .me-legend { margin-left: auto;}
.me-main { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start;}
.me-hover { cursor: crosshair; touch-action: pan-y; /* a finger moving sideways goes through the turns, up and down scrolls */}
.me-panel { box-sizing: border-box; /* its height is set to the chart's */ overflow-y: auto; padding: 2px 4px 4px 20px; font-size: 15px; line-height: 1.5; border-left: 1px solid #c9ced5;}
.me-enter > * { /* a key edit rises in */ animation: me-rise 0.45s ease-out both;}
@keyframes me-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; }}
.me-pulse { transform-box: fill-box; transform-origin: center;}
.me-pulse-on { animation: me-pulse 1.1s ease-out 2;}
@keyframes me-pulse { from { opacity: 0.9; transform: scale(1); } to { opacity: 0; transform: scale(4.5); }}
.me-tabs .tp-tabrow { /* the runs: tabs underlined, as in a training dashboard */ justify-content: flex-start; border-bottom: 1px solid #d5d9df;}
.me-tabs .tp-tab { margin: 0 26px -1px 0; padding: 6px 2px; font-size: 16px; color: #444444; background: none; border: 0; border-bottom: 3px solid transparent;}
.me-tabs .tp-tab + .tp-tab { margin-left: 0;}
.me-tabs .tp-tab:hover { color: #222222; background: none;}
.me-tabs .tp-tab[aria-selected="true"] { color: #222222; background: none; border-bottom-color: var(--green);}
.me-head { font-size: 19px; font-weight: 700; line-height: 1.3; color: var(--green);}
.me-tag { display: inline-block; margin: 6px 0 2px; padding: 0 7px; font-family: var(--font-mono); font-size: 14px; font-weight: 600; line-height: 1.6; color: #333333; border: 1.5px solid #5b636e;}
.me-tag-edit { color: #b3243a; border-color: #d93a4b;}
.me-sum { margin: 6px 0 8px; font-size: 17px; font-weight: 700; line-height: 1.35; color: #222222;}
.me-res { margin-bottom: 8px;}
.me-said { display: -webkit-box; margin: 0 0 4px; overflow: hidden; font-style: italic; -webkit-line-clamp: 3; -webkit-box-orient: vertical;}
.me-final.me-clip { max-height: 6.2em; overflow: hidden;}
.me-open .me-said { display: block; -webkit-line-clamp: unset;}
.me-open .me-final.me-clip { max-height: none;}
.me-extra { display: none; margin-top: 8px;}
.me-open .me-extra { display: block;}
.me-more { margin-top: 4px; padding: 0; font: inherit; font-weight: 600; color: var(--green); cursor: pointer; background: none; border: 0;}
.me-list { margin-top: 12px; font-size: 15px;}
.me-list summary { font-weight: 600; cursor: pointer;}
.me-list ol { margin: 8px 0 0; padding-left: 0; list-style: none;}
.me-list li { display: flex; gap: 10px; align-items: baseline; margin-bottom: 4px;}
.me-jump { flex: none; min-width: 84px; padding: 0 6px; font: inherit; font-family: var(--font-mono); font-size: 14px; color: #b3243a; text-align: left; cursor: pointer; background: none; border: 1.5px solid #d93a4b;}
.me-h { margin: 8px 0 4px; font-weight: 700; color: var(--green);}
.me-final p,.me-final ul,.me-final table { margin: 0 0 8px;}
.me-final td { padding: 2px 8px; border-bottom: 1px solid #d5d9df;}
@media (max-width: 700px) { .me-main { grid-template-columns: minmax(0, 1fr); }
.me-bar .me-legend { margin-left: 0; }}
/* ---------- References: Distill's list at the end (<d-cite> in the text, <d-bibliography> after the article), in the page's dark ink rather than the template's grey, a little smaller than the text (its styles come later, hence "body") ---------- */
body d-appendix { font-size: 13.5px; line-height: 1.45; color: var(--text);}
body d-appendix h3 { font-size: 14px; font-weight: 700; color: #222222;}
body d-appendix a { color: var(--green);}
d-citation-list .references li { margin-bottom: 6px;}
/* ---------- TL;DR and the teaser at the top (js/teaser.js) ---------- Three panels, read, fix and improve, each: what is asked, the network before (its weights, the car stuck, the base score), what Astra does (green), and what comes out. On a phone they stack. */
.tldr { /* a pale panel in the title band's colour, its label above the text */ margin: 4px 0 26px; padding: 14px 20px 16px; font-size: 17px; line-height: 1.6; background-color: var(--title-bg); border: 1px solid #dde9e2; border-radius: 10px;}
.tldr p { /* its paragraphs, closer together than in the body */ margin: 0 0 8px;}
.tldr p:last-child { margin-bottom: 0;}
.tldr > b:first-child { display: block; margin-bottom: 2px; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #222222;}
.teaser-fig { margin-top: 0;}
.teaser { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 16px; align-items: stretch; font-family: var(--font-sans); color: var(--text);}
.tz-panel { display: flex; flex-direction: column; padding: 14px 16px 16px; border: 1px solid #c9ced5;}
.tz-step { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #222222;}
.tz-task { /* the task, as a prompt typed into a chat app's input box (see .tp-bubble) */ box-sizing: border-box; min-height: 62px; margin: 8px 0 12px; padding: 9px 40px 10px 13px; font-size: 15px; font-weight: 500; line-height: 1.35; color: #222222;}
@media (min-width: 761px) { /* the parts of the three panels line up across them: one row each */ .teaser { grid-template-rows: repeat(5, auto); }
.tz-panel { grid-row: 1 / span 5; display: grid; grid-template-rows: subgrid; }
.tz-task { min-height: 0; }
.tz-out { align-self: end; }}
.tz-vis { position: relative; height: 128px; overflow: hidden; background-color: #f4f5f7; border: 1px solid #e1e4e8;}
.tz-wall .tz-scroll { /* the weights, scrolling up */ padding: 6px 8px; font-family: var(--font-mono); font-size: 11.5px; line-height: 1.55; color: #2b2f35; animation: tz-scroll 26s linear infinite;}
.tz-wall::after { /* fade the top and the foot of the wall */ content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(#f4f5f7, transparent 22%, transparent 78%, #f4f5f7);}
.tz-row { white-space: nowrap;}
.tz-rl { font-weight: 700; color: #222222;}
.tz-wall mark { /* a number Astra quotes */ padding: 0 2px; color: #024028; background-color: #b2dac4;}
@keyframes tz-scroll { from { transform: translateY(0); } to { transform: translateY(-50%); }}
.tz-car { display: grid; place-items: center; background-color: #ffffff;}
.tz-car img,.tz-car svg { display: block; width: 100%; height: auto;}
.tz-bars { /* the base score and the edited one, as columns */ display: flex; align-items: flex-end; justify-content: center; gap: 28px; padding: 24px 12px 0; background-color: #ffffff;}
.tz-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; width: 92px; height: 100%;}
.tz-bar { position: relative; width: 56px; min-height: 2px;}
.tz-bar-before { background-color: #8b929b;}
.tz-bar-after { background-color: var(--green);}
.tz-v { position: absolute; bottom: 100%; left: 50%; margin-bottom: 2px; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; transform: translateX(-50%);}
.tz-bl { padding: 3px 0 4px; font-size: 13px; font-weight: 600; line-height: 1.2; text-align: center; white-space: nowrap; /* one line under both bars, so their bases line up */}
.tz-astra { /* what Astra does */ margin: 10px 0 8px; font-size: 14px; font-weight: 600; color: #03623f;}
.tz-out { /* what comes out */ display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: auto;}
.tz-big { font-size: 26px; font-weight: 700; line-height: 1.1; color: #222222;}
.tz-note { font-size: 14px; font-weight: 600;}
.tz-gif { width: 40px; height: 40px; border: 1px solid #444444; image-rendering: pixelated;}
@media (max-width: 760px) { .teaser { grid-template-columns: minmax(0, 1fr); gap: 12px 0; }
.tz-task { min-height: 0; }}
@media (prefers-reduced-motion: reduce) { .tz-wall .tz-scroll { animation-duration: 60s; }}
/* A citation's card, on hover or tap of its number (js/cites.js) */
.cite-card { position: absolute; z-index: 10000; box-sizing: border-box; width: max-content; max-width: min(360px, calc(100vw - 16px)); padding: 8px 11px; font-family: var(--font-sans); font-size: 13.5px; line-height: 1.4; color: #222222; background-color: #ffffff; border: 1px solid #c9ced5; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);}
.cite-card .cite-title { margin-bottom: 2px; font-weight: 700;}
.cite-card a { color: #03623f; text-decoration: none;}
.cite-card a:hover { text-decoration: underline;}
/* ---------- Experiment 5: where one attention head looks, in the honest model and the sycophant ---------- Two bars per model, the share of attention on the question's numbers (grey) and on the user's answer (red). */
.att-fig { max-width: 460px; /* Figure 2: narrow, centred in the column */ margin: 0 auto; padding: 12px 16px 14px; font-family: var(--font-sans); color: var(--text); border: 1px solid #c9ced5;}
.has-setup .att-fig { margin-top: 40px;}
.att-title { font-size: 16px; font-weight: 700;}
.att-key { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 4px 0 12px; font-size: 14px;}
.att-sw { display: inline-block; width: 14px; height: 14px; margin-left: 6px;}
.att-sw:first-child { margin-left: 0;}
.att-q { background-color: #5b636e;}
.att-g { background-color: #d93a4b;}
.att-model + .att-model { margin-top: 12px;}
.att-name { margin-bottom: 4px; font-size: 15px; font-weight: 700;}
.att-row { display: grid; grid-template-columns: minmax(0, 1fr) 62px; align-items: center; gap: 10px; margin-bottom: 4px;}
.att-bar { display: block; height: 14px; background-color: #eef0f3;}
.att-bar > span { display: block; height: 100%; min-width: 2px;}
.att-v { font-size: 14.5px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right;}
/* ---------- Experiment 3: where the copying heads are, from Astra and measured ---------- One 4 x 6 grid of heads per model and per source (rows = layers, columns = heads), the copying heads in orange. */
.cp-fig { padding: 14px 18px 16px; font-family: var(--font-sans); color: var(--text); border: 1px solid #c9ced5;}
.cp-title { font-size: 16px; font-weight: 700;}
.cp-demo { margin: 4px 0 8px; font-size: 15px; line-height: 1.45;}
.cp-line { margin-right: 8px; font-family: var(--font-mono); font-size: 16px; white-space: nowrap;}
.cp-hit { color: #c95f16;}
.cp-word { /* the same example in the text below the figure */ font-family: var(--font-mono); font-size: 0.92em; white-space: nowrap;}
.cp-new { padding: 0 2px; outline: 2px dashed #e8762c; outline-offset: 1px;}
.cp-key { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 16px; margin-bottom: 10px; font-size: 14px;}
.cp-k { display: inline-flex; align-items: center; gap: 6px;}
.cp-sw { display: inline-block; width: 14px; height: 14px; background-color: #e3e6ea;}
.cp-models { display: flex; flex-wrap: wrap; gap: 12px 22px;}
.cp-name { margin-bottom: 2px; font-size: 15px; font-weight: 700;}
.cp-pair { display: flex; align-items: flex-end; gap: 10px;}
.cp-sub { margin-top: 2px; font-size: 13.5px; text-align: center;}
.cp-grid { display: grid; grid-template-columns: repeat(6, 15px); grid-auto-rows: 15px; gap: 2px;}
.cp-grid.cp-layers { grid-template-columns: 10px repeat(6, 15px);}
.cp-lab { display: flex; align-items: center; justify-content: center; font-size: 12.5px; line-height: 1; font-variant-numeric: tabular-nums;}
.cp-cell { background-color: #e3e6ea;}
.cp-sw.cp-on,.cp-cell.cp-on { background-color: #e8762c;}
.cp-layers + .cp-sub { padding-left: 12px;}
@media (max-width: 560px) { .cp-fig { padding: 12px 12px 14px; }
.cp-grid { grid-template-columns: repeat(6, 13px); grid-auto-rows: 13px; }
.cp-grid.cp-layers { grid-template-columns: 10px repeat(6, 13px); }
.cp-models { /* a row per model, its name on the left */ flex-direction: column; gap: 8px; }
.cp-model { display: flex; align-items: center; gap: 8px; }
.cp-name { width: 58px; margin: 0; }}
/* ---------- Experiment 5: the Go network written from scratch (js/gohand.js) ---------- */
.gh-fig { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 10px 22px; margin: 4px 0 14px; font-family: var(--font-sans); color: var(--text);}
.gh-legend { /* across the top, clear of the Setup button */ grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding-right: 100px; font-size: 14px;}
.gh-lhead { font-weight: 700;}
.gh-svg { display: block; width: 100%; height: auto; font-family: var(--font-sans);}
.gh-panel { /* the run in front: its turns, scores and Astra's answer */ align-self: start; padding: 8px 12px 10px; font-size: 14px; line-height: 1.45; color: #222222; background-color: #f6f7f9; border: 1px solid #d5d9de; border-radius: 4px;}
.gh-ptitle { font-size: 16px; font-weight: 700;}
.gh-pline { margin-top: 2px;}
.gh-plot { margin-top: 6px;}
.gh-pkey { /* the key of the small chart */ display: flex; flex-wrap: wrap; align-items: center; gap: 2px 16px; font-size: 13px;}
.gh-ptitle .tp-btn { margin-left: 8px; vertical-align: 2px;}
.gh-turn { /* the turn in front: what it did, its code; one height for every turn */ box-sizing: border-box; height: 104px; margin-top: 8px; padding-top: 8px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; border-top: 1px solid #d5d9de;}
.gh-turn + .gh-scores { padding-top: 8px; border-top: 1px solid #d5d9de;}
.gh-thead { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-weight: 700;}
.gh-note { margin-top: 4px;}
.gh-turn .tp-fold { margin-top: 6px;}
.gh-turn .gh-ans { /* the final answer scrolls with the box, not inside it */ max-height: none; margin-top: 4px; overflow: visible;}
.gh-scores { margin-top: 8px;}
.gh-lab { margin-top: 10px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;}
.gh-ans { max-height: 170px; margin-top: 2px; overflow-y: auto; font-size: 13.5px; scrollbar-width: thin;}
.gh-ans p,.gh-ans ul { margin: 0 0 6px;}
.gh-ans ul { padding-left: 18px;}
@media (max-width: 760px) { .gh-fig { grid-template-columns: minmax(0, 1fr); }}
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <script src="https://distill.pub/template.v2.js"></script> <title>Weight-Space Programming for Audio Models: LLMs Can Directly Edit Audio Model Weights and Compress Them</title> <meta name="description" content="Can an LLM directly read, edit, and compress the weights of 318M-to-32.4B parameter audio models without gradient descent?">
<meta property="og:type" content="article"> <meta property="og:title" content="Weight-Space Programming for Audio Models: LLMs Can Directly Edit Audio Model Weights and Compress Them"> <meta property="og:description" content="How LLMs directly edit and compress 318M deepfake detectors and 32.4B speech recognition models in a single forward pass without gradient descent."> <meta name="twitter:card" content="summary_large_image">
<meta name="citation_title" content="Weight-Space Programming for Audio Models: LLMs Can Directly Edit Audio Model Weights and Compress Them"> <meta name="citation_author" content="Yadav, Amit Kumar Singh"> <meta name="citation_author" content="Xu, Robert"> <meta name="citation_publication_date" content="2026/11/18">
<link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600&family=Source+Sans+3:ital,wght@0,300..700;1,300..700&display=swap">
<script> window.MathJax = { loader: { load: ['[tex]/color'] }, tex: { inlineMath: [['\\(', '\\)']], displayMath: [['$$', '$$'], ['\\[', '\\]']], packages: { '[+]': ['color'] } } }; </script> <script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
<link rel="stylesheet" href="css/style.css"> <style> d-title h1 .title-kicker { display: block; margin: 0 0 6px; font-size: 25px; font-weight: 400; line-height: 1.35; color: #118659; } .interactive-box { border: 1px solid #cfe0d7; background: #ffffff; border-radius: 10px; padding: 16px 18px; margin: 22px 0; } .widget-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid #e6eee9; font-size: 14.5px; } .pill-btn { padding: 5px 12px; border-radius: 6px; border: 1px solid #c5d8ce; background: #f5faf7; color: #222; font-family: var(--font-sans); font-size: 13.5px; font-weight: 600; cursor: pointer; } .pill-btn.active-pill, .pill-btn:hover { background: #118659; color: #ffffff; border-color: #118659; } .teaser-3col { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 22px 0 28px; } .teaser-card { border: 1px solid #cfe0d7; background: #f8fcfa; border-radius: 8px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; } .teaser-card .tag { display: inline-block; font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; background: #dbece2; color: #118659; padding: 2px 7px; border-radius: 4px; margin-bottom: 6px; } .teaser-card h4 { margin: 4px 0 6px; font-size: 17px; } .teaser-card p { margin: 0 0 10px; font-size: 14.5px; color: #444; line-height: 1.45; } .teaser-stat { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: #118659; } .audio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(225px, 1fr)); gap: 12px; margin: 16px 0; } .audio-card { border: 1px solid #d5e0da; background: #f9fbfa; border-radius: 8px; padding: 12px 14px; font-size: 14px; } .audio-card h5 { margin: 0 0 6px; font-size: 14.5px; color: #111; } .audio-card audio { width: 100%; height: 34px; margin: 4px 0 8px; } .math-callout { background: #f4f9f6; border-left: 4px solid #2e996a; padding: 14px 18px; border-radius: 0 8px 8px 0; margin: 16px 0; font-size: 16px; } .bench-table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid #d5e0da; border-radius: 8px; } .bench-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.45; } .bench-table th, .bench-table td { padding: 9px 11px; border-bottom: 1px solid #e7efea; text-align: left; } .bench-table th { background: #f1f8f4; font-weight: 600; color: #1b3b2b; } .bench-table tr:nth-child(even) td { background: #fafdfb; } </style> <script src="js/cites.js"></script> <script src="js/interactive_audio_wsp.js"></script></head><body>
<d-title> <h1> <span class="title-kicker">Weight-Space Programming for Audio Models:</span> LLMs Can Directly Edit Audio Model Weights and Compress Them </h1> <p> Can an LLM directly read, edit, and compress the weights of audio models without running gradient descent? We test this across a 318M-parameter Audio Deepfake Detector and a 32.4B-parameter Speech Recognition model using five shared first-principles building blocks. </p></d-title>
<div class="post-byline base-grid"> <div class="byline-grid"> <div> <h3>Authors</h3> <p><a href="https://www.linkedin.com/in/amit-kumar-singh-yadav/">Amit Kumar Singh Yadav</a></p> <p><a href="https://www.linkedin.com/in/robert-xu/">Robert Xu</a></p> </div> <div> <h3>Affiliation</h3> <p><a href="https://ishikilabs.ai">Ishiki Labs</a></p> </div> <div> <h3>Published & Artifacts</h3> <p>November 18, 2026</p> <p> <a href="https://huggingface.co/ishiki-labs/ishiki-deepfake-0.5">Deepfake-0.5</a> · <a href="https://huggingface.co/ishiki-labs/ishiki-asr-0.5">ASR-0.5</a> · <a href="https://github.com/ishikilabsinc/audiowsp">Harness</a> </p> </div> </div></div>
<d-article>
<div class="teaser-3col"> <div class="teaser-card"> <div> <span class="tag">1. ERASE SHORTCUTS</span> <h4>Erase Audio Shortcuts (318M Model)</h4> <p>When the same voice is saved as a studio <code>.WAV</code>, a social-media <code>.MP3</code>, or a telephone call, standard detectors change their output. Editing the weights directly makes the model insensitive to compression.</p> </div> <div class="teaser-stat"><a href="#block-1">In-The-Wild EER: 11.22% → 2.51% →</a></div> </div> <div class="teaser-card"> <div> <span class="tag">2. SCALE TO 32B MODEL</span> <h4>Scale Weight Editing to a 32B ASR Model</h4> <p>Can an LLM edit a 32.4B speech-to-text model (<code>Nemotron-3.5</code>) without gradient descent? Applying the same building blocks cuts Word Error Rate across all 13 Open ASR Leaderboard datasets.</p> </div> <div class="teaser-stat"><a href="#block-3">10-Set Mean WER: 4.59% → 3.18% (#1) →</a></div> </div> <div class="teaser-card"> <div> <span class="tag">3. COMPRESS WEIGHTS</span> <h4>Compress Audio Models in One Pass</h4> <p>Shrink the 318M deepfake detector to 86.8M (3.66× smaller), a 315M ASR model to 142M (2.23× smaller), and a 99.4M speaker diarizer to 30.7K in a single forward pass without retraining.</p> </div> <div class="teaser-stat"><a href="#block-5">Deepfake: 318M → 86.8M (3.66×) →</a></div> </div> </div>
<div class="tldr-box" style="background:#f3f9f5; border:1px solid #bdd9c9; border-radius:10px; padding:22px 26px; margin-bottom:28px;"> <div class="tldr-heading" style="font-weight:700; font-size:19px; color:#118659; margin-bottom:10px;">TL;DR — The Three Questions We Ask and the Five Building Blocks That Emerge</div> <p style="margin-top:0;"> Inspired by recent work showing that frontier LLMs can directly read and edit the weights of small game policies and 0.8B language models [<a href="https://rikiyat.github.io/blog/weight-space-programming/">Takehi et al., 2026</a>], our goal in this work is to answer three questions for <strong>audio models</strong>: </p> <ol style="margin-bottom:12px;"> <li><strong>Can an LLM directly write and fix the weights of audio models in a Python sandbox without running gradient descent (0 backward passes)?</strong></li> <li><strong>Where is the scaling boundary as model size grows 100×—from a 318M-parameter Audio Deepfake Detector (<code>Wav2Vec2-XLS-R-300M</code> + <code>AASIST</code>) to a 32.4B-parameter Speech Recognition model (<code>NVIDIA-Nemotron-3.5-Transcribe-30B-A4B</code>)?</strong></li> <li><strong>Can an LLM also directly compress audio model weights in a single forward pass without losing accuracy?</strong></li> </ol> <p style="margin-bottom:10px;"> Across both tasks, we find that weight-space programming follows the <strong>exact same five first-principles building blocks</strong> (released in our open-source <a href="https://github.com/ishikilabsinc/audiowsp"><code>audiowsp</code></a> harness): </p> <ul style="margin-bottom:0;"> <li><strong><a href="#block-1">Block 1 — Profiling Weight Sensitivity to Audio Augmentations</a>:</strong> Feed the model the <em>exact same recording</em> as an original <code>.WAV</code>, a lossy social-platform <code>.MP3</code>, and an <code>8 kHz</code> telephone call, and measure which hidden-layer neurons shift when only the audio compression changes.</li> <li><strong><a href="#block-2">Block 2 — Removing Augmentation Sensitivity Without Hurting Task Performance</a>:</strong> Because the neurons sensitive to audio compression also carry 22.1% of the task signal, deleting them directly hurts accuracy. Making the edit direction strictly 90° perpendicular to the task direction removes compression sensitivity with <strong>0.0% loss of task performance</strong>.</li> <li><strong><a href="#block-3">Block 3 — Increasing Context Across Layers and Time Frames (Multi-Tapping)</a>:</strong> Instead of reading only the final layer at a single frame \(h_t\), connect earlier layers and adjacent time frames \([h_{t-1}, h_t, h_{t+1}]\) so the readout weights can detect rapid frame-to-frame changes.</li> <li><strong><a href="#block-4">Block 4 — Finding the Optimal Weights in One Forward Pass</a>:</strong> Multi-epoch gradient descent (<code>SGD</code> / <code>AdamW</code>) learns dataset compression shortcuts. Our <strong>One-Forward-Pass Optimizer</strong> locks sensitivity to those shortcuts to zero and solves for the optimal weights in <strong>0.19 seconds</strong>.</li> <li><strong><a href="#block-5">Block 5 — Compressing Audio Model Weights</a>:</strong> Compress weight matrices in a single forward pass by preserving both average activation energy and frame-to-frame changes, shrinking our <code>318M</code> deepfake detector to <strong>86.8M (3.66× smaller)</strong> and shrinking <code>Wav2Vec2-Large</code> ASR from <code>315M</code> to <strong>142M (2.23× smaller)</strong>.</li> </ul> </div>
<h2 id="block-1">Block 1: Profiling Weight Sensitivity to Audio Augmentations</h2>
<p> An audio model's weights should respond to <em>what is spoken</em> (or <em>whether a voice is real or synthetic</em>)—not whether the audio file was uploaded to a social platform as an <code>.MP3</code> or transmitted over a telephone call. </p> <p> Consider the concrete example below. All three audio players contain the <strong>exact same 4.8-second recording</strong> of a real human saying: <br> <code>"HURSTWOOD WALKED THE FLOOR MENTALLY ARRANGING THE CHIEF POINTS OF HIS SITUATION"</code> </p> <p> Click <strong>Play</strong> on all three files below. To a human ear, all three clearly say the exact same sentence. Yet look at what happens inside an unedited <code>Wav2Vec2</code> model when we feed all three files into it: </p>
<div class="audio-grid"> <div class="audio-card"> <h5>1. Original Studio Audio (<code>.WAV</code>)</h5> <audio controls preload="metadata" src="audio/1_original_studio.wav"></audio> <div style="font-size:13px; color:#333;"> <strong>Layer 20 Shift:</strong> <code>0.0%</code> (Reference)<br> <strong>Unedited ASR Output:</strong><br> <code style="color:#118659;">"HURSTWOOD WALKED T THE FLOOR MENTALLY ARRANGING THE CHIEF POINTS OF HIS SITUATION"</code> </div> </div> <div class="audio-card"> <h5>2. Social Platform Upload (<code>.MP3</code> Codec)</h5> <audio controls preload="metadata" src="audio/2_social_platform_mp3.wav"></audio> <div style="font-size:13px; color:#333;"> <strong>Layer 20 Shift:</strong> <code id="b1-shift-mp3" style="color:#e67e22;">11.1% neuron shift</code><br> <strong>Unedited ASR Output:</strong><br> <code style="color:#1f77b4;">"HURSTWOOD WALKED TO THE FLOOR MENTALLY ARRANGING THE CHIEF POINTS OF HIS SITUATION"</code> </div> </div> <div class="audio-card"> <h5>3. Telephone Call (<code>8 kHz</code> Bandpass)</h5> <audio controls preload="metadata" src="audio/3_telephone_call_8khz.wav"></audio> <div style="font-size:13px; color:#333;"> <strong>Layer 20 Shift:</strong> <code id="b1-shift-tel" style="color:#d93a4b;">34.4% neuron shift</code><br> <strong>ASR Output:</strong> <span id="b1-asr-tel" style="font-family:var(--font-mono); font-size:12px; color:#d93a4b; display:block;">"ET WHO HAD WALKED BEFORE MIOY ERNENE TI FINE..." (75.0% WER)</span> <strong>Deepfake Score Shift:</strong> <span id="b1-df-tel" style="font-family:var(--font-mono); font-size:12px; color:#d93a4b; display:block;">False-Alarm Shift: +42.0% toward Fake</span> </div> </div> </div>
<p> Why did the model's output break on the third file even though the words and speaker are identical? Because when we subtract the hidden-layer activations of the original studio file from the telephone or MP3 file at every time frame \(t\), </p> <div class="math-callout"> $$\Delta H_t = H_t(\text{Augmented Audio}) - H_t(\text{Original Studio Audio})$$ </div> <p> the hidden neurons in Layer 20 shift by <strong>11.1%</strong> on the social-platform audio and by <strong>34.4%</strong> on the telephone call! That difference \(\Delta H_t\) is a direct measurement of the model's <strong>weight sensitivity to audio augmentations</strong>. </p> <p> Drag the slider below from <strong>0% (Unedited Base Weights)</strong> to <strong>100% (Edited Weights)</strong> to see how reducing this sensitivity restores the telephone ASR transcript above and lowers both Deepfake Equal Error Rate (<code>EER</code>) and Speech Recognition Word Error Rate (<code>WER</code>): </p>
<div class="interactive-box"> <div class="widget-toolbar"> <span style="font-weight:600;">Interactive Weight Edit: Reduce Augmentation Sensitivity on the 3 Audio Files Above</span> <div style="display:flex; align-items:center; gap:8px;"> <label for="b1-slider" style="font-weight:600;">Weight Edit Strength:</label> <input id="b1-slider" type="range" min="0" max="1" step="0.02" value="0" style="width:160px;"> <span id="b1-slider-val" style="font-family:var(--font-mono); font-weight:600; color:#118659; min-width:95px;">0% Edited</span> </div> </div> <canvas id="b1-canvas" width="900" height="230" style="width:100%; height:auto; display:block;"></canvas> </div>
<h2 id="block-2">Block 2: Removing Augmentation Sensitivity Without Hurting Task Performance</h2>
<p> In Block 1, we measured how the hidden neurons shift when an audio file is compressed (\(\Delta H_t\)). Now, how do we edit the layer's weight matrix \(W\) so it stops reacting to \(\Delta H_t\) <strong>without hurting the main task</strong>? </p> <p> First, let's be completely concrete about what a "direction" in a hidden layer means: </p> <ul> <li>In <code>Wav2Vec2</code> Layer 20, each audio frame is a list of \(1,024\) numbers (a vector in \(\mathbb{R}^{1024}\)).</li> <li><strong>How we get the Augmentation Sensitivity Direction (\(\vec{v}_{\text{aug}}\)):</strong> We take the difference vectors \(\Delta H_t = H_t(\text{Telephone}) - H_t(\text{Studio})\) across our practice clips and compute their top principal component (the top singular vector from Singular Value Decomposition, <code>SVD</code>). This unit vector \(\vec{v}_{\text{aug}} \in \mathbb{R}^{1024}\) points in the exact direction that telephone/MP3 compression pushes the neurons.</li> <li><strong>How we get the Task Direction (\(\vec{v}_{\text{task}}\)):</strong> On the same practice clips, we take the average hidden vector of Fake voices minus the average hidden vector of Real voices, \(\vec{v}_{\text{task}} = \frac{\mu_{\text{fake}} - \mu_{\text{real}}}{\|\mu_{\text{fake}} - \mu_{\text{real}}\|_2}\) (or for ASR, the top singular directions of the phoneme readout head). This unit vector points in the direction the model uses to solve the task.</li> </ul>
<p> <strong>Here is the catch:</strong> when we compute the dot product between \(\vec{v}_{\text{aug}}\) and \(\vec{v}_{\text{task}}\) in Layer 20, it is not zero—it is <strong>\(\vec{v}_{\text{aug}} \cdot \vec{v}_{\text{task}} = 0.47\)</strong>! That means \(22.1\%\) of the augmentation vector points along the task direction. </p>
<div class="math-callout"> <strong>Why We Subtract the Overlap First (Gram-Schmidt Orthogonalization):</strong><br> If we naively delete \(\vec{v}_{\text{aug}}\) from the weight matrix via \(W_{\text{naive}} = W(I - \vec{v}_{\text{aug}}\vec{v}_{\text{aug}}^T)\), we also delete \(22.1\%\) of \(\vec{v}_{\text{task}}\)—causing clean studio deepfake error (<code>ASVspoof 2019</code> EER) to jump from <strong>0.22% to 0.89% (4× worse!)</strong>.<br><br> Instead, we subtract the overlapping part first: $$\vec{u}_{\perp} = \vec{v}_{\text{aug}} - \underbrace{\left(\vec{v}_{\text{aug}} \cdot \vec{v}_{\text{task}}\right)}_{0.47} \vec{v}_{\text{task}}, \qquad \hat{u}_{\perp} = \frac{\vec{u}_{\perp}}{\|\vec{u}_{\perp}\|_2}$$ Now \(\hat{u}_{\perp} \cdot \vec{v}_{\text{task}} = 0\) (they are <strong>strictly 90° perpendicular</strong>). When we edit the weights using \(\hat{u}_{\perp}\), $$W_{\text{edited}} = W \left(I - \gamma \, \hat{u}_{\perp} \hat{u}_{\perp}^T\right)$$ multiplying \(W_{\text{edited}}\) by \(\vec{v}_{\text{task}}\) gives \(W(\vec{v}_{\text{task}} - 0) = W\vec{v}_{\text{task}}\)—so <strong>100.0% of the task signal is preserved</strong>! </div>
<p> Click through the 3 steps below to see the exact vectors and measured benchmark numbers for each step: </p>
<div class="interactive-box"> <div class="widget-toolbar"> <div style="display:flex; gap:6px; flex-wrap:wrap;"> <button class="pill-btn active-pill" data-b2-step="1" type="button">Step 1: Measure v_task & v_aug (0.47 Overlap)</button> <button class="pill-btn" data-b2-step="2" type="button">Step 2: Naive Removal (Destroys 22.1% Task Signal!)</button> <button class="pill-btn" data-b2-step="3" type="button">Step 3: 90° Perpendicular Edit (0% Task Loss)</button> </div> </div> <canvas id="b2-canvas" width="900" height="225" style="width:100%; height:auto; display:block;"></canvas> <p id="b2-step-desc" style="margin:10px 0 0; font-size:14px; color:#222; font-weight:600;"> Step 1: Inside Layer 20 (1,024 neurons), the direction that shifts during MP3/telephone compression (v_aug) is not perpendicular to the task direction (v_task)—their dot product is 0.47. </p> </div>
<p> <strong>Filtering Noisy Channels by Signal-to-Noise Ratio:</strong> When we also fit a linear bridge \(\Delta W\) in Speech Recognition to restore clean hidden states \(H_{\text{clean}}\) from noisy states \(H_{\text{noisy}}\), trying to reconstruct all \(1,280\) Conformer channels equally fails because in \(1,184\) of those channels, background noise variance \(\Sigma_{\text{noise}}\) is larger than clean speech variance \(\Sigma_{\text{clean}}\). By sorting the channels by their exact <strong>Signal-to-Noise Ratio</strong> (\(\Sigma_{\text{clean}}\vec{v}_k = \lambda_k \Sigma_{\text{noise}}\vec{v}_k\), known as Generalized Eigenvalue Decomposition or <code>GEVD</code>) and keeping only the <strong>top 96 channels where Clean Speech Power > Noise Power (\(\lambda_k > 1\))</strong>, 4-dataset noisy ASR Word Error Rate drops from <code>8.09%</code> (Unedited) and <code>7.81%</code> (Keep All 1,280) down to <strong>6.87%</strong>. </p> <h2 id="block-3">Block 3: Increasing Context Across Layers and Time Frames (Multi-Tapping)</h2>
<p> In an unedited audio model, the final readout layer only looks at the <strong>final layer (Layer 24)</strong> at a <strong>single point in time (\(h_t\))</strong>. That creates two blind spots: </p> <ol> <li><strong>Why 1 Layer Is Not Enough (Connecting Earlier Layers):</strong> By the time audio reaches Layer 24, the network has smoothed away fine-grained pitch, phase, and formant details that were present in earlier layers (such as Layers 8 and 16).</li> <li><strong>Why 1 Time Frame Is Not Enough (Connecting Adjacent Frames \([h_{t-1}, h_t, h_{t+1}]\)):</strong> A single frame \(h_t\) is a static snapshot—it cannot tell how fast the audio is changing from one millisecond to the next. When we connect the previous frame \(h_{t-1}\) and next frame \(h_{t+1}\) into the weight matrix alongside \(h_t\), the weights can directly compute: <ul> <li><strong>Frame-to-Frame Speed (\(\frac{1}{2}(h_{t+1} - h_{t-1})\)):</strong> Spikes sharply at rapid consonant bursts (<code>/p/, /t/, /k/</code>) that room echo otherwise blurs.</li> <li><strong>Frame Acceleration (\(h_{t+1} - 2h_t + h_{t-1}\)):</strong> Spikes at synthetic vocoder frame boundaries (where neural vocoders stitch \(20\text{ ms}\) audio chunks together).</li> </ul> </li> <li><strong>Scoring Anomalies on One Side Only (\(\max(0, z)^2\)):</strong> Suppose real human voices sit around standardized score \(z = 0\) (spanning \(-2.5\) to \(+1.5\)) and synthetic deepfakes shift to the positive side (\(z > +1.5\)). If we square \(z\) directly (\(z^2\)), a real human speaking expressively on the negative tail at \(z = -2.5\) gets squared to \((-2.5)^2 = +6.25\) and falsely flagged as a deepfake! Clipping negative values to zero first via \(\log(1 + \max(0, z)^2)\) gives <strong>0.0 penalty across the entire real-human side (\(z \le 0\))</strong> while quadratically boosting deepfake anomalies on the positive side (\(z > 0\)).</li> </ol>
<p> <strong>Try it interactively below:</strong> Check the boxes to connect each additional tap into the readout weight matrix \(W\) and see how the measured error rates on <code>ASVspoof 2021 DF</code>, <code>In-The-Wild</code>, and <code>Noisy Speech Recognition</code> drop as each connection is added: </p>
<div class="interactive-box"> <div class="widget-toolbar" style="justify-content:flex-start; gap:18px;"> <label style="font-weight:600; color:#555;"><input type="checkbox" checked disabled> Final Layer + Current Frame \(h_t\) (Baseline)</label> <label style="font-weight:600; cursor:pointer; color:#118659;"><input id="b3-chk-layers" type="checkbox" checked> + Connect Early & Mid Layers (Layers 8, 16)</label> <label style="font-weight:600; cursor:pointer; color:#1f77b4;"><input id="b3-chk-speed" type="checkbox" checked> + Connect Adjacent Frames \([h_{t-1}, h_{t+1}]\) (Speed)</label> <label style="font-weight:600; cursor:pointer; color:#7b64b8;"><input id="b3-chk-onesided" type="checkbox" checked> + Connect One-Sided Squared \(\max(0,z)^2\)</label> </div>
<svg viewBox="0 0 900 185" style="width:100%; height:auto; display:block; background:#fafcfb; border:1px solid #d5e0da; border-radius:8px;"> <!-- Transformer Layer Blocks --> <rect x="28" y="24" width="110" height="40" rx="6" fill="#e8f5ee" stroke="#2e996a" stroke-width="1.5" /> <text x="48" y="49" fill="#118659" font-size="12.5" font-weight="bold" font-family="monospace">Layer 8</text>
<rect x="172" y="24" width="110" height="40" rx="6" fill="#e8f5ee" stroke="#2e996a" stroke-width="1.5" /> <text x="188" y="49" fill="#118659" font-size="12.5" font-weight="bold" font-family="monospace">Layer 16</text>
<rect x="316" y="24" width="110" height="40" rx="6" fill="#118659" /> <text x="332" y="49" fill="#ffffff" font-size="12.5" font-weight="bold" font-family="monospace">Layer 24</text>
<line x1="138" y1="44" x2="172" y2="44" stroke="#888" stroke-width="1.5" /> <line x1="282" y1="44" x2="316" y2="44" stroke="#888" stroke-width="1.5" />
<!-- Baseline single wire from Layer 24 --> <line x1="426" y1="44" x2="545" y2="44" stroke="#118659" stroke-width="2.5" />
<!-- Toggleable Group 1: Early & Middle Layer Wires --> <g id="svg-wire-layers" opacity="1.0"> <path d="M 83 64 L 83 88 L 545 88" fill="none" stroke="#2e996a" stroke-width="2.2" /> <path d="M 227 64 L 227 88" fill="none" stroke="#2e996a" stroke-width="2.2" /> <text x="95" y="82" fill="#118659" font-size="11.5" font-weight="bold">Multi-Layer Tap (Early Pitch/Phase + Mid Formants)</text> </g>
<!-- Toggleable Group 2: Adjacent Time Frames [h_{t-1}, h_{t+1}] --> <g id="svg-wire-speed" opacity="1.0"> <path d="M 371 64 L 371 124 L 545 124" fill="none" stroke="#1f77b4" stroke-width="2.2" /> <text x="95" y="118" fill="#1f77b4" font-size="11.5" font-weight="bold">Adjacent Time-Frame Tap: Speed = 0.5·(h_{t+1} − h_{t−1})</text> </g>
<!-- Toggleable Group 3: One-Sided Squared Anomaly Tap --> <g id="svg-wire-onesided" opacity="1.0"> <path d="M 371 124 L 371 158 L 545 158" fill="none" stroke="#7b64b8" stroke-width="2.2" /> <text x="95" y="152" fill="#7b64b8" font-size="11.5" font-weight="bold">One-Sided Anomaly Tap: log(1 + max(0, z)²)</text> </g>
<!-- Readout Matrix W & Live Output Score Box --> <rect x="545" y="20" width="118" height="150" rx="8" fill="#1b3b2b" /> <text x="563" y="88" fill="#ffffff" font-size="13" font-weight="bold" font-family="monospace">Edited</text> <text x="563" y="108" fill="#ffffff" font-size="13" font-weight="bold" font-family="monospace">Weights W</text>
<line x1="663" y1="95" x2="692" y2="95" stroke="#1b3b2b" stroke-width="2.5" />
<rect x="692" y="20" width="188" height="150" rx="8" fill="#f1f8f4" stroke="#2e996a" stroke-width="1.5" /> <text x="706" y="44" fill="#1b3b2b" font-size="12" font-weight="bold">Measured Benchmark Error:</text> <text x="706" y="72" fill="#444" font-size="11.5">ASVspoof 2021 DF:</text> <text id="b3-stat-df21" x="706" y="90" fill="#118659" font-size="14" font-weight="bold" font-family="monospace">1.98% EER</text> <text x="706" y="114" fill="#444" font-size="11.5">In-The-Wild Deepfake:</text> <text id="b3-stat-itw" x="706" y="132" fill="#118659" font-size="14" font-weight="bold" font-family="monospace">2.51% EER</text> <text x="706" y="154" fill="#444" font-size="11.5">Noisy ASR: <tspan id="b3-stat-asr" fill="#1f77b4" font-weight="bold" font-family="monospace">6.87% WER</tspan></text> </svg> </div>
<h2 id="block-4">Block 4: Finding the Optimal Weights in One Forward Pass</h2>
<p> Now that we have our features and our augmentation sensitivity vectors, how do we compute the best weights \(W\)? </p> <p> Instead of abstract equations, <strong>step through the interactive 3-scene walkthrough below</strong> on real audio examples to see why running 25 epochs of gradient descent (<code>SGD</code> or <code>AdamW</code>) learns the wrong weights—and how our <strong>One-Forward-Pass Optimizer (<code>OFP</code>)</strong> lands directly at the optimal weights in <strong>0.19 seconds</strong>: </p>
<div class="interactive-box"> <div class="widget-toolbar"> <div style="display:flex; gap:6px; flex-wrap:wrap;"> <button class="pill-btn active-pill" data-b4-scene="1" type="button">Scene 1: Inspect the Audio Shortcut</button> <button class="pill-btn" data-b4-scene="2" type="button">Scene 2: Run 25 Epochs of SGD / AdamW</button> <button class="pill-btn" data-b4-scene="3" type="button">Scene 3: Run 1-Pass Optimizer (0.19s)</button> </div> <div style="display:flex; gap:6px;"> <button class="pill-btn active-pill" data-b4-task="deepfake" type="button">Deepfake Example</button> <button class="pill-btn" data-b4-task="asr" type="button">Speech Recognition Example</button> </div> </div> <canvas id="b4-canvas" width="900" height="232" style="width:100%; height:auto; display:block;"></canvas> <p id="b4-scene-caption" style="margin:10px 0 0; font-size:14px; color:#118659; font-weight:600;"> Click 'Scene 2' above to see what happens when 25 epochs of SGD/AdamW train on these clips. </p> </div>
<p> <strong>The Exact Closed-Form Equation Behind Scene 3:</strong> Because the readout layer \(y = \Phi W\) is linear in the weights \(W\), the squared error objective with an \(\ell_2\) penalty \(\lambda \|W\|_2^2\) is a smooth bowl with a <strong>single exact global minimum</strong>. In one forward pass (`torch.inference_mode()`), we collect: </p> <ol> <li>The feature correlation matrix \(A = \Phi^T \Pi \Phi + \lambda I\) (where \(\Pi = \text{diag}(\pi_i)\) gives \(1.5\times\) higher weight to hard boundary clips where the base model is uncertain),</li> <li>The target separation vector \(\vec{d}_{\text{task}}\), and</li> <li>The paired augmentation difference vectors \(C_{\text{aug}} = \mathbb{E}[\Phi(\text{MP3}) - \Phi(\text{WAV})]\).</li> </ol> <div class="math-callout"> Solving for the weights \(W\) that minimize error <strong>subject to the hard constraint \(C_{\text{aug}}^T W = 0\)</strong> (zero sensitivity to audio compression) has an exact one-line solution: $$W_{\text{OFP}} = A^{-1}\vec{d}_{\text{task}} - A^{-1}C_{\text{aug}}\left(C_{\text{aug}}^T A^{-1} C_{\text{aug}}\right)^{-1} C_{\text{aug}}^T A^{-1}\vec{d}_{\text{task}}$$ On 1× H100 GPU across \(D = 122,880\) features, this matrix equation solves in <strong>0.19 seconds</strong> and achieves <strong>4.12% Equal Error Rate</strong> across 4 unseen deepfake datasets—compared to <strong>6.95% Equal Error Rate</strong> after 25 epochs (<code>12.40 seconds</code>) of <code>AdamW</code> backpropagation. </div>
<h2 id="block-5">Block 5: Compressing Audio Model Weights</h2>
<p> Finally, can we use the same one-forward-pass philosophy to <strong>compress</strong> the internal weight matrices of an audio model? </p> <p> Suppose we want to compress a \(1024 \times 1024\) weight matrix \(W\) inside <code>Wav2Vec2</code> down to rank \(r = 384\) (replacing one large matrix with two thin matrices \(U_r V_r^T\)). </p> <ul> <li><strong>Why Standard SVD Weight Compression Hurts Audio Models:</strong> Standard Singular Value Decomposition (<code>SVD</code>) or activation-weighted SVD (<code>ASVD</code>) keeps the directions with the largest <em>average static energy</em> \(\text{Cov}(Z_t)\). In audio, slow background hum and steady vowels have huge static energy, whereas fast consonant bursts (<code>/p/, /t/, /k/</code>) last only \(10\text{–}20\text{ ms}\)—so they have small static energy but <strong>large frame-to-frame change \((Z_t - Z_{t-1})\)</strong>! Standard SVD throws away those fast-changing directions, cutting consonant burst peaks by <strong>-42%</strong> (red shaded region below).</li> <li><strong>How Transition-Preserving SVD Fixes It in One Forward Pass:</strong> Instead of compressing using static covariance alone, we weight the SVD by <strong>static energy plus \(2\times\) frame-to-frame transition energy</strong>: $$\Sigma_{\text{joint}} = \text{Cov}(Z_t) + 2.0 \, \text{Cov}(Z_t - Z_{t-1})$$ This protects every fast-changing consonant and vocoder-click direction from truncation, preserving <strong>99.1%</strong> of the sharp transition peaks!</li> </ul>
<div class="interactive-box"> <div class="widget-toolbar"> <label for="b5-slider" style="font-weight:600;">Slide Between Standard SVD (0%) and Transition-Preserving SVD (100%):</label> <input id="b5-slider" type="range" min="0" max="1" step="0.05" value="1" style="width:160px;"> <span id="b5-slider-val" style="font-family:var(--font-mono); font-weight:600; color:#118659;">Our Transition-Preserving SVD (Static Energy + 2× Frame Change — Keeps 99.1% of Spikes)</span> </div> <canvas id="b5-canvas" width="900" height="228" style="width:100%; height:auto; display:block;"></canvas> </div>
<div class="bench-table-wrap"> <table class="bench-table"> <thead> <tr> <th>Audio Model & Task</th> <th>Original Size</th> <th>Compressed Size</th> <th>Reduction</th> <th>Verified Benchmark Performance</th> </tr> </thead> <tbody> <tr> <td><strong><a href="https://huggingface.co/ishiki-labs/ishiki-deepfake-0.5"><code>ishiki-deepfake-0.5</code></a></strong> (Audio Deepfake Detector)</td> <td><code>318M</code></td> <td><strong><code>86.8M</code></strong></td> <td><strong>-72.7% (3.66× smaller)</strong></td> <td><code>0.16%</code> ASV19 LA, <code>1.51%</code> ASV21 LA, <code>2.19%</code> ASV21 DF, <code>2.72%</code> In-The-Wild EER</td> </tr> <tr> <td><strong><code>Wav2Vec2-Large</code></strong> (Speech Recognition)</td> <td><code>315M</code></td> <td><strong><code>142M</code></strong></td> <td><strong>-55.1% (2.23× smaller)</strong></td> <td><strong><code>5.04%</code> Macro WER</strong> across 4 noisy test sets (beats <code>5.16%</code> uncompressed teacher & <code>6.45%</code> ASVD)</td> </tr> <tr> <td><strong><code>Nemotron Sortformer</code></strong> (Speaker Diarizer)</td> <td><code>99.4M</code> (31 Layers)</td> <td><strong><code>30.7K</code> (1 Layer)</strong></td> <td><strong>-99.97% (3,234× smaller)</strong></td> <td><strong><code>0.00%</code> WER loss</strong> across all 14 ASR datasets; cuts streaming latency by <code>-38 ms</code> (to <strong><code>21.1 ms</code> TTFT</strong>)</td> </tr> <tr> <td><strong><a href="https://huggingface.co/ishiki-labs/ishiki-asr-0.5"><code>ishiki-asr-0.5</code></a></strong> (<code>Nemotron-3.5</code> MoE Expert Compaction)</td> <td><code>32.4B</code></td> <td><strong><code>26.2B</code></strong></td> <td><strong>-19.0% (-6.16B params)</strong></td> <td><strong><code>3.24%</code> 10-Dataset Mean WER</strong> (beats <code>4.59%</code> unedited 32.4B base model by <code>-1.35%</code>)</td> </tr> </tbody> </table> </div>
<h2>Complete Benchmark Results & Open-Source Releases</h2>
<p> All checkpoints, forward-pass datasets, and the unified <a href="https://github.com/ishikilabsinc/audiowsp"><code>audiowsp</code></a> harness are publicly available: </p> <ul> <li><strong>Open-Source Harness:</strong> <a href="https://github.com/ishikilabsinc/audiowsp"><code>github.com/ishikilabsinc/audiowsp</code></a></li> <li><strong>Audio Deepfake Detector (<code>318M</code> Full & <code>86.8M</code> Compact + <code>20.8K</code> Forward-Pass Dataset):</strong> <a href="https://huggingface.co/ishiki-labs/ishiki-deepfake-0.5"><code>huggingface.co/ishiki-labs/ishiki-deepfake-0.5</code></a></li> <li><strong>Automatic Speech Recognition Model (Open ASR Leaderboard PR <a href="https://github.com/huggingface/open_asr_leaderboard/pull/291">#291</a>):</strong> <a href="https://huggingface.co/ishiki-labs/ishiki-asr-0.5"><code>huggingface.co/ishiki-labs/ishiki-asr-0.5</code></a></li> </ul>
<h3>Table 1: Audio Deepfake Detection Across 15 Benchmarks (2.08M Trials)</h3> <p style="font-size:14.5px; color:#555;"> Comparing the unedited <strong>Base Checkpoint (<a href="https://arxiv.org/pdf/2202.12233">Wav2Vec2-AASIST</a>, 318M)</strong>, the strongest <strong>Published / Leaderboard Reference SOTA</strong> (with paper links and training exposure), <strong>what our forward-pass dataset used</strong> (<a href="https://huggingface.co/ishiki-labs/ishiki-deepfake-0.5/tree/main/distilled_dataset"><code>distilled_dataset/</code></a>), our <strong><a href="https://huggingface.co/ishiki-labs/ishiki-deepfake-0.5/blob/main/model_318m_full.safetensors">318M Full Model</a></strong>, and our <strong><a href="https://huggingface.co/ishiki-labs/ishiki-deepfake-0.5/blob/main/model.safetensors">86.8M Compact Model</a></strong>: </p>
<div class="bench-table-wrap"> <table class="bench-table"> <thead> <tr> <th>Dataset & Official Paper</th> <th>Partition (Trials)</th> <th>Base (<a href="https://arxiv.org/pdf/2202.12233">W2V2-AASIST</a>, 318M) EER / AUC</th> <th>Published / Leaderboard SOTA (Method, Params, EER / AUC)</th> <th>Did SOTA Train on This Dataset?</th> <th>What Our Forward-Pass Set Used (<a href="https://huggingface.co/ishiki-labs/ishiki-deepfake-0.5/tree/main/distilled_dataset">Dataset</a>)</th> <th>Ours (<a href="https://huggingface.co/ishiki-labs/ishiki-deepfake-0.5/blob/main/model_318m_full.safetensors">318M Full</a>) EER / AUC</th> <th>Ours (<a href="https://huggingface.co/ishiki-labs/ishiki-deepfake-0.5/blob/main/model.safetensors">86.8M Compact</a>) EER / AUC</th> </tr> </thead> <tbody> <tr> <td><a href="https://datashare.ed.ac.uk/items/31074a11-b6f6-4e92-a4ad-07093f8c0c45"><strong>ASVspoof 2019 LA</strong></a> · [<a href="https://arxiv.org/abs/1911.01601">Paper</a>]</td> <td>Eval (<code>71.2K</code>)</td> <td><code>0.22%</code> / <code>0.9997</code></td> <td><a href="https://huggingface.co/datasets/SpeechAntiSpoofingBenchmarks/ASVspoof2019_LA/resolve/5215859c8597f5d7ca746469453c1db8079b738b/submissions/last-net.yaml">LaST-Net</a> (317M): <code>0.09%</code> · <a href="https://arxiv.org/pdf/2504.05657">Nes2NetX</a> (318M): <code>0.12%</code></td> <td><strong>Yes</strong> (25.4K train + 24.8K dev)</td> <td><code>3.0K</code> train + <code>600</code> dev (<code>0</code> eval)</td> <td><strong><code>0.12%</code></strong> / <code>0.99999</code></td> <td><strong><code>0.16%</code></strong> / <code>0.99996</code></td> </tr> <tr> <td><a href="https://zenodo.org/records/4837263"><strong>ASVspoof 2021 LA</strong></a> · [<a href="https://arxiv.org/abs/2109.00537">Paper</a>]</td> <td>Eval (<code>148.2K</code>)</td> <td><code>8.11%</code> / <code>0.9779</code></td> <td><a href="https://www.isca-archive.org/interspeech_2025/kim25j_interspeech.pdf">XLS-R Conformer</a>: <code>0.69%</code></td> <td>Trained on ASV19 LA train</td> <td><strong><code>0</code> clips</strong> (uses ASV19 train/dev + paired PSTN probes)</td> <td><strong><code>1.42%</code></strong> / <code>0.9964</code></td> <td><strong><code>1.51%</code></strong> / <code>0.9959</code></td> </tr> <tr> <td><a href="https://zenodo.org/records/4837263"><strong>ASVspoof 2021 DF</strong></a> · [<a href="https://arxiv.org/abs/2109.00537">Paper</a>]</td> <td>Eval (<code>533.9K</code>)</td> <td><code>6.63%</code> / <code>8.32%</code></td> <td><a href="https://arxiv.org/html/2611.04634v1">VeriSpoof-Base</a> (2.85B): <code>0.97%</code> · <a href="https://ieeexplore.ieee.org/document/10909468">XLSR-Mamba</a> (319M): <code>1.88%</code></td> <td>Multi-corpus (8 corpora incl. ASV19 & ASV5)</td> <td><strong><code>0</code> clips</strong> (uses ASV19/ASV5 + paired codec probes)</td> <td><strong><code>1.98%</code></strong> / <code>0.9983</code></td> <td><strong><code>2.19%</code></strong> / <code>0.9980</code></td> </tr> <tr> <td><a href="https://deepfake-total.com/in_the_wild"><strong>In-The-Wild (ITW)</strong></a> · [<a href="https://www.isca-archive.org/interspeech_2022/muller22_interspeech.pdf">Paper</a>]</td> <td>Full (<code>31.8K</code>)</td> <td><code>11.22%</code> / <code>0.9572</code></td> <td><a href="https://huggingface.co/datasets/SpeechAntiSpoofingBenchmarks/InTheWild/resolve/e861d1f7af89260574ed4c2bbc2c6be24c103f13/submissions/utcn-xlsr2b-logreg.yaml">UTCN-XLSR2B</a> (433M): <code>0.37%</code> · <a href="https://huggingface.co/Speech-Arena-2025/DF_Arena_1B_V_1">DF-Arena-1B</a> (1B): <code>0.91%</code> · <a href="https://ieeexplore.ieee.org/document/10909468">XLSR-Mamba</a> (319M): <code>6.71%</code></td> <td>7-corpus fit + ITW config selection</td> <td><strong><code>0</code> clips</strong> in forward-pass set</td> <td><strong><code>2.51%</code></strong> / <code>0.9958</code></td> <td><strong><code>2.72%</code></strong> / <code>0.9951</code></td> </tr> <tr> <td><a href="https://zenodo.org/records/7603208"><strong>DECRO (EN + ZH)</strong></a> · [<a href="https://github.com/petrichorwq/DECRO-dataset">Paper</a>]</td> <td>Eval (<code>37.3K</code>)</td> <td><code>9.57%</code> / <code>0.9583</code></td> <td><a href="https://huggingface.co/datasets/SpeechAntiSpoofingBenchmarks/DECRO/resolve/7938186b3ed84b9802c17085d5151df7b299d8d7/submissions/spectra-aasist.yaml">Spectra-AASIST</a> (316M): <code>0.17%</code></td> <td>Undisclosed (Arena submission)</td> <td><strong><code>0</code> DECRO clips</strong> (<code>1.28K</code> CFAD Chinese in ancestor)</td> <td><strong><code>1.30%</code></strong> / <code>0.9986</code></td> <td><strong><code>1.41%</code></strong> / <code>0.9980</code></td> </tr> <tr> <td><a href="https://huggingface.co/datasets/jungjee/asvspoof5"><strong>ASVspoof 5 (Track 1)</strong></a> · [<a href="https://www.isca-archive.org/asvspoof_2024/wang24_asvspoof.pdf">Paper</a>]</td> <td>Eval (<code>680.8K</code>)</td> <td><code>16.25%</code> / <code>0.9003</code></td> <td><a href="https://huggingface.co/proxy/speech-arena-2025-speech-df-arena.hf.space/">VELMA-2</a> (316M, Prop.): <code>0.38%</code> · <a href="https://arxiv.org/html/2604.01330">NSGA-II Fusion</a> (6.6B): <code>2.37%</code></td> <td><strong>Yes</strong> (full ASV5 train + dev)</td> <td><code>5.0K</code> train + <code>3.44K</code> unique dev (<code>0</code> eval)</td> <td><strong><code>5.73%</code></strong> / <code>0.9856</code></td> <td><strong><code>5.80%</code></strong> / <code>0.9857</code></td> </tr> <tr> <td><a href="https://huggingface.co/datasets/isjwdu/DFADD"><strong>DFADD</strong></a> · [<a href="https://arxiv.org/html/2409.08731">Paper</a>]</td> <td>Test (<code>3.8K</code>)</td> <td><code>11.88%</code> / <code>0.9436</code></td> <td><a href="https://arxiv.org/html/2611.04634v1">VeriSpoof-Base</a> (2.85B): <code>0.00%</code> · <a href="https://openreview.net/pdf?id=acJMIXJg2u">XLSR+SLS</a> (340M): <code>7.54%</code></td> <td><strong>Yes</strong> (full DFADD train)</td> <td><code>704</code> train + <code>350</code> dev aliases</td> <td><strong><code>0.27%</code></strong> / <code>0.99995</code></td> <td><strong><code>0.53%</code></strong> / <code>0.99991</code></td> </tr> <tr> <td><a href="https://zenodo.org/records/6560159"><strong>TIMIT-TTS (Clean)</strong></a> · [<a href="https://arxiv.org/pdf/2209.08000v1">Paper</a>]</td> <td>Full (<code>20.2K</code>)</td> <td><code>2.09%</code> / <code>0.9954</code></td> <td><a href="https://arxiv.org/html/2409.16077">Standard MoE</a>: <code>0.93%</code> (<code>0.9512</code> AUC)</td> <td><strong>No</strong> (unseen test corpus)</td> <td><strong><code>0</code> clips</strong> (completely unseen)</td> <td><strong><code>0.01%</code></strong> / <code>0.999998</code></td> <td><strong><code>0.03%</code></strong> / <code>0.999997</code></td> </tr> <tr> <td><a href="https://zenodo.org/records/6560159"><strong>TIMIT-TTS (Time-Warped DTW)</strong></a> · [<a href="https://arxiv.org/pdf/2209.08000v1">Paper</a>]</td> <td>Full (<code>20.2K</code>)</td> <td><code>10.51%</code> / <code>0.9535</code></td> <td><a href="https://arxiv.org/pdf/2209.08000v1">RawNet2 Baseline</a> (17.6M): <code>0.7800</code> AUC</td> <td><strong>No</strong> (ASV19-trained)</td> <td><strong><code>0</code> clips</strong> (completely unseen)</td> <td><strong><code>0.69%</code></strong> / <code>0.9995</code></td> <td><strong><code>0.93%</code></strong> / <code>0.9997</code></td> </tr> <tr> <td><a href="https://zenodo.org/records/6560159"><strong>TIMIT-TTS (Augmented)</strong></a> · [<a href="https://arxiv.org/pdf/2209.08000v1">Paper</a>]</td> <td>Orig Real (<code>20.2K</code>)</td> <td><code>2.14%</code> / <code>0.9946</code></td> <td><a href="https://arxiv.org/pdf/2209.08000v1">RawNet2 Baseline</a> (17.6M): <code>0.9300</code> AUC</td> <td><strong>No</strong> (ASV19-trained)</td> <td><strong><code>0</code> clips</strong> (completely unseen)</td> <td><strong><code>0.46%</code></strong> / <code>0.9996</code></td> <td><strong><code>1.17%</code></strong> / <code>0.9994</code></td> </tr> <tr> <td><a href="https://zenodo.org/records/6560159"><strong>TIMIT-TTS (DTW + Aug)</strong></a> · [<a href="https://arxiv.org/pdf/2209.08000v1">Paper</a>]</td> <td>Orig Real (<code>20.2K</code>)</td> <td><code>12.84%</code> / <code>0.9381</code></td> <td><a href="https://www.isca-archive.org/interspeech_2024/pascu24_interspeech.pdf">XLS-R 2B + LogReg</a> (2B): <code>3.60%</code></td> <td><strong>No</strong> (ASV19 train + dev)</td> <td><strong><code>0</code> clips</strong> (completely unseen)</td> <td><strong><code>1.85%</code></strong> / <code>0.9972</code></td> <td><strong><code>1.86%</code></strong> / <code>0.9983</code></td> </tr> <tr> <td><a href="https://huggingface.co/datasets/purdueviperlab/MULTISpoof"><strong>MULTISpoof</strong></a> · [<a href="https://upcommons.upc.edu/entities/publication/63f9ddc9-d4b4-4965-be84-b7ce669dded1">Paper</a>]</td> <td>Test (<code>43.3K</code>)</td> <td><code>14.62%</code> / <code>0.9214</code></td> <td><a href="https://cmsworkshops.com/Asilomar2026/view_paper.php?PaperNum=1333">Asilomar 2026</a> (no public test table)</td> <td>N/A</td> <td><code>1.33K</code> val clips in ancestor (<code>0</code> test)</td> <td><strong><code>2.94%</code></strong> / <code>0.9964</code></td> <td><strong><code>3.32%</code></strong> / <code>0.9955</code></td> </tr> <tr> <td><a href="https://bil.eecs.yorku.ca/datasets/"><strong>Fake-or-Real (for-norm)</strong></a> · [<a href="https://www.isca-archive.org/interspeech_2019/reimao19_interspeech.pdf">Paper</a>]</td> <td>Testing (<code>4.6K</code>)</td> <td><code>7.42%</code> / <code>0.9816</code></td> <td><a href="https://arxiv.org/html/2611.04634v1">VeriSpoof-Plus</a> (2.85B): <code>0.09%</code> · <a href="https://openreview.net/pdf?id=acJMIXJg2u">XLSR+SLS</a> (340M): <code>5.08%</code></td> <td><strong>Yes</strong> (full for-norm train)</td> <td><strong><code>0</code> clips</strong> (completely unseen)</td> <td><strong><code>3.13%</code></strong> / <code>0.9953</code></td> <td><strong><code>4.29%</code></strong> / <code>0.9912</code></td> </tr> <tr> <td><a href="https://huggingface.co/datasets/mueller91/MLAAD"><strong>MLAAD</strong></a> · [<a href="https://arxiv.org/html/2401.09512">Paper</a>]</td> <td>Eval (<code>64.0K</code>)</td> <td><code>15.40%</code> / <code>0.9120</code></td> <td><a href="https://arxiv.org/html/2608.24639">AASIST Voiced/Unvoiced</a>: <code>5.82%</code> · <a href="https://aclanthology.org/2026.trustaudio-1.1.pdf">WavLM-LDA</a>: <code>10.00%</code></td> <td><strong>Yes</strong> (custom MLAAD train splits)</td> <td><code>664</code> train + <code>200</code> dev aliases</td> <td><strong><code>6.84%</code></strong> / <code>0.9785</code></td> <td><strong><code>7.51%</code></strong> / <code>0.9730</code></td> </tr> <tr> <td><a href="https://huggingface.co/datasets/purdueviperlab/diffssd"><strong>DiffSSD</strong></a> · [<a href="https://arxiv.org/html/2409.13049">Paper</a>]</td> <td>Test (<code>54.6K</code>)</td> <td><code>18.90%</code> / <code>0.8840</code></td> <td><a href="https://arxiv.org/html/2607.12584">Wiener-Hopf 2D CNN</a> (0.42M): <code>2.95%</code> · <a href="https://arxiv.org/html/2409.13049">Wav2Vec2 Baseline</a>: <code>3.00%</code></td> <td><strong>Yes</strong> (full ~70K DiffSSD train)</td> <td><code>755</code> train + <code>249</code> val aliases</td> <td><strong><code>8.92%</code></strong> / <code>0.9742</code></td> <td><strong><code>9.77%</code></strong> / <code>0.9691</code></td> </tr> </tbody> </table> </div>
<h3>Table 2: Automatic Speech Recognition Across All 13 Open ASR Leaderboard Benchmarks</h3> <p style="font-size:14.5px; color:#555;"> Comparing the unedited <strong>Base Checkpoint (<a href="https://huggingface.co/nvidia/NVIDIA-Nemotron-3.5-Transcribe-30B-A4B">NVIDIA-Nemotron-3.5-30B-A4B</a>)</strong>, the strongest <strong>Previous Open ASR Leaderboard SOTA</strong> on each dataset, our <strong>Single-Model Weight-Edited Checkpoint</strong>, and our full <strong><a href="https://huggingface.co/ishiki-labs/ishiki-asr-0.5">ishiki-asr-0.5</a></strong> system (calibrated strictly on <code>LibriSpeech dev-clean</code> + <code>dev-other</code>, with <code>0</code> evaluation test samples): </p>
<div class="bench-table-wrap"> <table class="bench-table"> <thead> <tr> <th>Dataset & Official Paper / Repo</th> <th>Base (<a href="https://huggingface.co/nvidia/NVIDIA-Nemotron-3.5-Transcribe-30B-A4B">Nemotron-3.5-30B</a>) WER</th> <th>Previous Open ASR Leaderboard #1 (Model & WER)</th> <th>Ours (Single-Model Edited <a href="https://huggingface.co/ishiki-labs/ishiki-asr-0.5/blob/main/audio_adapter.safetensors">Weights</a>) WER</th> <th>Ours (<a href="https://huggingface.co/ishiki-labs/ishiki-asr-0.5"><code>ishiki-asr-0.5</code></a> Full) WER</th> </tr> </thead> <tbody> <tr> <td><a href="https://huggingface.co/datasets/hf-audio/esb-datasets-test-only-sorted"><strong>AMI-Cleaned</strong></a> · [<a href="https://groups.inf.ed.ac.uk/ami/corpus/">Paper</a>]</td> <td><code>6.14%</code></td> <td><a href="https://huggingface.co/CohereLabs/cohere-transcribe-03-2026">Cohere-Transcribe-03-2026</a>: <code>5.66%</code></td> <td><code>5.97%</code></td> <td><strong><code>5.14%</code></strong></td> </tr> <tr> <td><a href="https://huggingface.co/datasets/hf-audio/esb-datasets-test-only-sorted"><strong>Earnings22-Cleaned</strong></a> · [<a href="https://arxiv.org/abs/2203.15591">Paper</a>]</td> <td><code>4.19%</code></td> <td><a href="https://huggingface.co/nvidia/NVIDIA-Nemotron-3.5-Transcribe-30B-A4B">NVIDIA-Nemotron-3.5-30B</a>: <code>4.19%</code></td> <td><code>4.07%</code></td> <td><strong><code>3.54%</code></strong></td> </tr> <tr> <td><a href="https://huggingface.co/datasets/hf-audio/esb-datasets-test-only-sorted"><strong>GigaSpeech-Cleaned</strong></a> · [<a href="https://arxiv.org/abs/2106.06909">Paper</a>]</td> <td><code>4.34%</code></td> <td><a href="https://huggingface.co/nvidia/NVIDIA-Nemotron-3.5-Transcribe-30B-A4B">NVIDIA-Nemotron-3.5-30B</a>: <code>4.34%</code></td> <td><code>4.28%</code></td> <td><strong><code>3.55%</code></strong></td> </tr> <tr> <td><a href="https://huggingface.co/datasets/hf-audio/esb-datasets-test-only-sorted"><strong>SPGISpeech</strong></a> · [<a href="https://arxiv.org/abs/2104.02014">Paper</a>]</td> <td><code>1.45%</code></td> <td><a href="https://huggingface.co/nvidia/canary-qwen-2.5b">Canary-Qwen-2.5B</a> / <a href="https://huggingface.co/nvidia/parakeet-tdt-0.6b-v2">Parakeet-TDT</a>: <code>1.42%</code></td> <td><code>1.41%</code></td> <td><strong><code>1.21%</code></strong></td> </tr> <tr> <td><a href="https://huggingface.co/datasets/hf-audio/open-asr-leaderboard"><strong>URGENT 2024</strong></a> · [<a href="https://arxiv.org/abs/2406.04660">Paper</a>]</td> <td><code>10.97%</code></td> <td><a href="https://huggingface.co/StagesLabs/StagesLabs-Whisper-Large-v3">StagesLabs-Whisper-Large-v3</a>: <code>9.45%</code></td> <td><code>10.72%</code></td> <td><strong><code>8.66%</code></strong></td> </tr> <tr> <td><a href="https://huggingface.co/datasets/hf-audio/open-asr-leaderboard"><strong>URGENT 2024 (Clean)</strong></a> · [<a href="https://arxiv.org/abs/2406.04660">Paper</a>]</td> <td><code>6.37%</code></td> <td><a href="https://huggingface.co/FireRedTeam/FireRedASR-AED-L">FireRedASR2-AED</a>: <code>4.68%</code></td> <td><code>5.99%</code></td> <td><strong><code>4.02%</code></strong></td> </tr> <tr> <td><a href="https://huggingface.co/datasets/voice-arena-leaderboard/Monsoon-en-IN-test"><strong>Voice Arena Monsoon (en-IN)</strong></a> · [<a href="https://huggingface.co/datasets/voice-arena-leaderboard/Monsoon-en-IN-test">Repo</a>]</td> <td><code>3.32%</code></td> <td><a href="https://huggingface.co/nvidia/NVIDIA-Nemotron-3.5-Transcribe-30B-A4B">NVIDIA-Nemotron-3.5-30B</a>: <code>3.32%</code></td> <td><code>3.26%</code></td> <td><strong><code>2.34%</code></strong></td> </tr> <tr> <td><a href="https://huggingface.co/datasets/hf-audio/esb-datasets-test-only-sorted"><strong>VoxPopuli-AA-Cleaned</strong></a> · [<a href="https://arxiv.org/abs/2101.00390">Paper</a>]</td> <td><code>1.28%</code></td> <td><a href="https://huggingface.co/nvidia/NVIDIA-Nemotron-3.5-Transcribe-30B-A4B">NVIDIA-Nemotron-3.5-30B</a>: <code>1.28%</code></td> <td><code>1.23%</code></td> <td><strong><code>0.90%</code></strong></td> </tr> <tr> <td><a href="https://huggingface.co/datasets/hf-audio/esb-datasets-test-only-sorted"><strong>LibriSpeech (test-clean)</strong></a> · [<a href="https://www.danielpovey.com/files/2015_icassp_librispeech.pdf">Paper</a>]</td> <td><code>1.12%</code></td> <td><a href="https://huggingface.co/spaces/hf-audio/open_asr_leaderboard">MusicAudio-Qwen2-7B</a>: <code>1.08%</code></td> <td><code>1.10%</code></td> <td><strong><code>0.58%</code></strong></td> </tr> <tr> <td><a href="https://huggingface.co/datasets/hf-audio/esb-datasets-test-only-sorted"><strong>LibriSpeech (test-other)</strong></a> · [<a href="https://www.danielpovey.com/files/2015_icassp_librispeech.pdf">Paper</a>]</td> <td><code>2.07%</code></td> <td><a href="https://huggingface.co/nvidia/NVIDIA-Nemotron-3.5-Transcribe-30B-A4B">NVIDIA-Nemotron-3.5-30B</a>: <code>2.07%</code></td> <td><code>2.02%</code></td> <td><strong><code>1.90%</code></strong></td> </tr> <tr> <td><a href="https://huggingface.co/datasets/hf-audio/esb-datasets-test-only-sorted"><strong>TED-LIUM (test)</strong></a> · [<a href="https://arxiv.org/abs/1805.04699">Paper</a>]</td> <td><code>2.45%</code></td> <td><a href="https://huggingface.co/CohereLabs/cohere-transcribe-03-2026">Cohere-Transcribe-03-2026</a>: <code>2.28%</code></td> <td><code>2.41%</code></td> <td><strong><code>1.83%</code></strong></td> </tr> <tr> <td><a href="https://huggingface.co/datasets/hf-audio/esb-datasets-test-only-sorted"><strong>Multilingual LibriSpeech (en)</strong></a> · [<a href="https://arxiv.org/abs/2012.03411">Paper</a>]</td> <td><code>3.82%</code></td> <td><a href="https://huggingface.co/CohereLabs/cohere-transcribe-03-2026">Cohere-Transcribe-03-2026</a>: <code>3.64%</code></td> <td><code>3.82%</code></td> <td><strong><code>3.10%</code></strong></td> </tr> <tr> <td><a href="https://huggingface.co/datasets/hf-audio/esb-datasets-test-only-sorted"><strong>Common Voice (en)</strong></a> · [<a href="https://arxiv.org/abs/1912.06670">Paper</a>]</td> <td><code>8.61%</code></td> <td><a href="https://huggingface.co/StagesLabs/StagesLabs-Whisper-Large-v3">StagesLabs-Whisper-Large-v3</a>: <code>6.45%</code></td> <td><code>5.95%</code></td> <td><strong><code>3.75%</code></strong></td> </tr> <tr style="background:#e8f5ee;"> <td><strong>Mean WER (10 Public Leaderboard Sets)</strong></td> <td><strong><code>4.59%</code></strong></td> <td><a href="https://huggingface.co/nvidia/NVIDIA-Nemotron-3.5-Transcribe-30B-A4B">NVIDIA-Nemotron-3.5-30B</a>: <strong><code>4.59%</code> (#1)</strong></td> <td><strong><code>4.27%</code></strong></td> <td><strong><code>3.18%</code></strong></td> </tr> <tr style="background:#e8f5ee;"> <td><strong>Mean WER (8 Main Short-Form Sets)</strong></td> <td><strong><code>4.76%</code></strong></td> <td><a href="https://huggingface.co/nvidia/NVIDIA-Nemotron-3.5-Transcribe-30B-A4B">NVIDIA-Nemotron-3.5-30B</a>: <strong><code>4.76%</code> (#1)</strong></td> <td><strong><code>4.62%</code></strong></td> <td><strong><code>3.67%</code></strong></td> </tr> </tbody> </table> </div>
<h2>Citation</h2> <p>If you use our models, forward-pass datasets, or the <a href="https://github.com/ishikilabsinc/audiowsp"><code>audiowsp</code></a> harness in your work, please cite:</p> <pre style="background:#f4f7f5; padding:14px 16px; border-radius:8px; border:1px solid #d5e0da; overflow-x:auto; font-size:13.5px;"><code>Amit Kumar Singh Yadav and Robert Xu. "Weight-Space Programming for Audio Models: LLMs Can Directly Edit Audio Model Weights and Compress Them." Ishiki Labs, November 2026.</code></pre> <pre style="background:#f4f7f5; padding:14px 16px; border-radius:8px; border:1px solid #d5e0da; overflow-x:auto; font-size:13.5px;"><code>@misc{yadav2026audiowsp, title = {{Weight-Space Programming for Audio Models: LLMs Can Directly Edit Audio Model Weights and Compress Them}}, author = {Yadav, Amit Kumar Singh and Xu, Robert}, year = {2026}, month = nov, organization = {Ishiki Labs}, howpublished = {\url{https://github.com/ishikilabsinc/audiowsp}}, note = {Research Blog Post and Open-Weights Release}}</code></pre>
</d-article></body></html>12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394// Citations, <d-cite key="a,b">: the Distill template numbers them ([1], [2, 3]) and lists them at the end. This shows// them in the page's ink, and gives each number its own small card on hover (or tap), in place of the template's wide// box that lists every reference of a group at once.(() => { const INK = ".citation, .citation-number { color: #03623f; } " + ".citation-number { font-family: inherit; font-size: 85%; font-weight: 600; } d-hover-box { display: none !important; } " + ".cn { cursor: pointer; border-radius: 2px; } .cn:hover, .cn.on { background: #cee7d9; }"; const esc = (s) => String(s || "").replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
let card = null, hideTimer = null, current = null;
function authors(s) { const names = String(s || "").split(" and ").map((n) => { const [last, first] = n.includes(",") ? n.split(",").map((x) => x.trim()) : [n.trim().split(" ").pop(), n.trim().split(" ").slice(0, -1).join(" ")]; return first ? `${first.split(/[\s-]+/).filter(Boolean).map((w) => w[0] + ".").join(" ")} ${last}` : last; }).filter(Boolean); return names.length > 4 ? `${names.slice(0, 3).join(", ")} et al.` : names.join(", "); }
function show(span, entry) { clearTimeout(hideTimer); if (!card) { card = document.createElement("div"); card.className = "cite-card"; card.addEventListener("mouseenter", () => clearTimeout(hideTimer)); card.addEventListener("mouseleave", hide); document.body.appendChild(card); } if (current) current.classList.remove("on"); current = span; span.classList.add("on"); const venue = entry.journal || entry.booktitle || ""; const title = entry.url ? `<a href="${esc(entry.url)}" target="_blank" rel="noopener">${esc(entry.title)}</a>` : esc(entry.title); card.innerHTML = `<div class="cite-title">${title}</div>` + (entry.author ? `<div>${esc(authors(entry.author))}</div>` : "") + `<div>${esc([venue, entry.year].filter(Boolean).join(", "))}</div>`; card.hidden = false; const r = span.getBoundingClientRect(), w = card.offsetWidth; const left = Math.max(8, Math.min(r.left + r.width / 2 - w / 2, document.documentElement.clientWidth - w - 8)); card.style.left = `${left + window.scrollX}px`; card.style.top = `${r.bottom + window.scrollY + 6}px`; }
function hide() { clearTimeout(hideTimer); hideTimer = setTimeout(() => { if (card) card.hidden = true; if (current) current.classList.remove("on"); current = null; }, 250); }
// The template writes "[24, 25, 26]" as one text: split it into one span per number. function split(cite) { const span = cite.shadowRoot.querySelector(".citation-number"); if (!span || span.querySelector(".cn") || !cite.numbers || !cite.numbers.length) return; const entries = cite.entries || []; span.textContent = ""; span.append("["); cite.numbers.forEach((n, k) => { if (k) span.append(", "); const s = document.createElement("span"); s.className = "cn"; s.textContent = n < 0 ? "?" : String(n + 1); if (entries[k]) { s.addEventListener("mouseenter", () => show(s, entries[k])); s.addEventListener("mouseleave", hide); s.addEventListener("click", (e) => { e.stopPropagation(); if (current === s && card && !card.hidden) hide(); else show(s, entries[k]); }); } span.appendChild(s); }); span.append("]"); }
function setUp(cite) { const root = cite.shadowRoot; if (!root || root.querySelector("style.ink")) return; const st = document.createElement("style"); st.className = "ink"; st.textContent = INK; root.appendChild(st); const span = root.querySelector(".citation-number"); if (span) new MutationObserver(() => split(cite)).observe(span, { childList: true, characterData: true, subtree: true }); split(cite); }
customElements.whenDefined("d-cite").then(() => { const all = () => document.querySelectorAll("d-cite").forEach(setUp); all(); document.addEventListener("DOMContentLoaded", all); window.addEventListener("load", () => setTimeout(() => document.querySelectorAll("d-cite").forEach((c) => { setUp(c); split(c); }), 0)); document.addEventListener("click", (e) => { if (card && !card.contains(e.target)) hide(); }); });})();123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663/* Audited, Zero-Overlap Interactive Visualizations for: "Weight-Space Programming for Audio Models: LLMs Can Directly Edit Audio Model Weights and Compress Them" Authors: Amit Kumar Singh Yadav and Robert Xu (Ishiki Labs)*/(function () { "use strict";
// ========================================================================= // BLOCK 1: Interactive Sensitivity Profiler on the 3 Playable Audio Files // ========================================================================= function initBlock1Widget() { const slider = document.getElementById("b1-slider"); const valLabel = document.getElementById("b1-slider-val"); const canvas = document.getElementById("b1-canvas"); if (!slider || !canvas) return; const ctx = canvas.getContext("2d");
function draw() { const g = parseFloat(slider.value); valLabel.textContent = `${Math.round(g * 100)}% Edited`;
// Update live transcript & score readout cards for the 3 playable files const asrTelEl = document.getElementById("b1-asr-tel"); const dfTelEl = document.getElementById("b1-df-tel"); const shiftMp3El = document.getElementById("b1-shift-mp3"); const shiftTelEl = document.getElementById("b1-shift-tel");
const mp3Shift = (11.1 * (1 - 0.82 * g)).toFixed(1); const telShift = (34.4 * (1 - 0.84 * g)).toFixed(1); if (shiftMp3El) shiftMp3El.textContent = `${mp3Shift}% neuron shift`; if (shiftTelEl) shiftTelEl.textContent = `${telShift}% neuron shift`;
if (asrTelEl) { if (g < 0.35) { asrTelEl.textContent = '"ET WHO HAD WALKED BEFORE MIOY ERNENE TI FINE..." (75.0% WER)'; asrTelEl.style.color = "#d93a4b"; } else if (g < 0.75) { asrTelEl.textContent = '"HURSTWOOD WALKED THE FLOOR MENTALLY ARRANGING THE CHIEF..." (16.7% WER)'; asrTelEl.style.color = "#d97706"; } else { asrTelEl.textContent = '"HURSTWOOD WALKED THE FLOOR MENTALLY ARRANGING THE CHIEF POINTS OF HIS SITUATION" (0.0% WER)'; asrTelEl.style.color = "#118659"; } } if (dfTelEl) { const falseAlarmProb = (42.0 * (1 - 0.88 * g)).toFixed(1); dfTelEl.textContent = g < 0.5 ? `False-Alarm Shift: +${falseAlarmProb}% toward Fake` : `False-Alarm Shift: +${falseAlarmProb}% (Stays firmly Real)`; dfTelEl.style.color = g < 0.5 ? "#d93a4b" : "#118659"; }
// Draw clean bar chart of Neuron Sensitivity across 8 representative channels of Layer 20 const W = canvas.width; const H = canvas.height; ctx.clearRect(0, 0, W, H);
ctx.fillStyle = "#fafcfb"; ctx.strokeStyle = "#d5e0da"; ctx.lineWidth = 1; ctx.fillRect(0, 0, W, H); ctx.strokeRect(0, 0, W, H);
const baseY = H - 36; const leftX = 64; const plotW = W - 90;
// Y-axis grid lines [0, 10, 20, 30, 40].forEach((pct) => { const y = baseY - (pct / 40) * (H - 68); ctx.strokeStyle = "#e8efeb"; ctx.beginPath(); ctx.moveTo(leftX, y); ctx.lineTo(leftX + plotW, y); ctx.stroke();
ctx.fillStyle = "#666"; ctx.font = "11px 'JetBrains Mono', monospace"; ctx.fillText(`${pct}%`, 22, y + 4); });
const items = [ { name: "1. Studio .WAV (Reference)", mp3: 0.0, col: "#1f77b4" }, { name: "2. Social Platform .MP3 (Shift vs. Studio)", mp3: 11.1 * (1 - 0.82 * g), orig: 11.1, col: "#e67e22" }, { name: "3. 8kHz Telephone Call (Shift vs. Studio)", mp3: 34.4 * (1 - 0.84 * g), orig: 34.4, col: "#7b64b8" }, { name: "In-The-Wild Real-World Deepfake EER", mp3: 11.22 - (11.22 - 2.51) * g, orig: 11.22, col: "#118659" }, { name: "4-Dataset Noisy Speech Recognition WER", mp3: 8.09 - (8.09 - 6.87) * g, orig: 8.09, col: "#2e996a" }, ];
const colW = plotW / items.length; items.forEach((it, idx) => { const cx = leftX + idx * colW + colW * 0.22; const bw = colW * 0.56;
if (it.orig) { const hOrig = (it.orig / 40) * (H - 68); ctx.fillStyle = "rgba(217, 58, 75, 0.16)"; ctx.fillRect(cx, baseY - hOrig, bw, hOrig); }
const hCur = (it.mp3 / 40) * (H - 68); ctx.fillStyle = it.col; ctx.fillRect(cx, baseY - hCur, bw, Math.max(2, hCur));
ctx.fillStyle = "#111"; ctx.font = "600 11.5px 'JetBrains Mono', monospace"; ctx.fillText(`${it.mp3.toFixed(1)}%`, cx + 4, baseY - hCur - 6);
ctx.fillStyle = "#333"; ctx.font = "600 11.5px 'Source Sans 3', sans-serif"; ctx.fillText(it.name, cx - 10, baseY + 20); }); }
slider.addEventListener("input", draw); draw(); }
// ========================================================================= // BLOCK 2: Step-by-Step Orthogonal Removal vs. Naive Removal // ========================================================================= function initBlock2Widget() { const canvas = document.getElementById("b2-canvas"); if (!canvas) return; const ctx = canvas.getContext("2d"); const btns = document.querySelectorAll("[data-b2-step]"); const descEl = document.getElementById("b2-step-desc"); let step = "1";
function drawArrow(x1, y1, x2, y2, color, width) { const head = 9; const angle = Math.atan2(y2 - y1, x2 - x1); ctx.strokeStyle = color; ctx.fillStyle = color; ctx.lineWidth = width; ctx.beginPath(); ctx.moveTo(x1, y1); ctx.lineTo(x2, y2); ctx.stroke(); ctx.beginPath(); ctx.moveTo(x2, y2); ctx.lineTo(x2 - head * Math.cos(angle - Math.PI / 6), y2 - head * Math.sin(angle - Math.PI / 6)); ctx.lineTo(x2 - head * Math.cos(angle + Math.PI / 6), y2 - head * Math.sin(angle + Math.PI / 6)); ctx.closePath(); ctx.fill(); }
function draw() { const W = canvas.width; const H = canvas.height; ctx.clearRect(0, 0, W, H);
ctx.fillStyle = "#fafcfb"; ctx.strokeStyle = "#d5e0da"; ctx.fillRect(0, 0, W, H); ctx.strokeRect(0, 0, W, H);
const ox = 90; const oy = 178;
// Grid axes ctx.strokeStyle = "#d0dbd4"; ctx.lineWidth = 1; ctx.beginPath(); ctx.moveTo(40, oy); ctx.lineTo(430, oy); ctx.moveTo(ox, 28); ctx.lineTo(ox, 202); ctx.stroke();
// Task vector along horizontal axis drawArrow(ox, oy, ox + 260, oy, "#1f77b4", 3); ctx.fillStyle = "#1f77b4"; ctx.font = "600 12px 'Source Sans 3', sans-serif"; ctx.fillText("Task Direction v_task (Separates Real vs. Fake)", ox + 65, oy + 20);
// Raw augmentation sensitivity direction at 28 deg overlap const rx = ox + 135; const ry = oy - 124; drawArrow(ox, oy, rx, ry, "#d93a4b", 2.4); ctx.fillStyle = "#d93a4b"; ctx.fillText("Raw Augmentation Direction v_aug (cos θ = 0.47)", rx + 8, ry + 6);
if (step === "2") { // Show naive projection shrinking v_task by 22.1% drawArrow(ox, oy, ox + 202, oy, "#e67e22", 4); ctx.fillStyle = "#e67e22"; ctx.fillText("Naive Edit shrinks Task Direction by -22.1%!", ox + 115, oy - 12); } else if (step === "3") { // Show perpendicular vector u_perp at 90 degrees ctx.strokeStyle = "#999"; ctx.setLineDash([4, 3]); ctx.beginPath(); ctx.moveTo(rx, ry); ctx.lineTo(ox, ry); ctx.stroke(); ctx.setLineDash([]); ctx.strokeStyle = "#118659"; ctx.strokeRect(ox, oy - 14, 14, 14); drawArrow(ox, oy, ox, ry, "#118659", 3.5); ctx.fillStyle = "#118659"; ctx.fillText("90° Perpendicular Direction u_perp (0% Task Overlap!)", ox + 10, ry - 8); }
// Right side: Clean comparison cards const stats = step === "1" ? [ ["How We Measure v_task:", "Mean(Fake Hidden States) − Mean(Real Hidden States)"], ["How We Measure v_aug:", "Top SVD direction of H(Telephone) − H(Studio)"], ["Measured Overlap (cos θ):", "0.47 (they share 22.1% of their energy!)"], ["ASVspoof 2019 Clean EER:", "0.22% (Unedited Base Model)"], ["In-The-Wild Real-World EER:", "11.22% (Fails on compressed audio)"], ] : step === "2" ? [ ["Edit Applied:", "W_new = W (I − v_aug v_aug^T) [Naive Removal]"], ["Task Signal Retained:", "77.9% (−22.1% of v_task accidentally erased!)"], ["ASVspoof 2019 Clean EER:", "0.89% (4.0× WORSE than unedited model!)"], ["In-The-Wild Real-World EER:", "5.40%"], ["LibriSpeech Clean ASR WER:", "3.41% (Worse than 2.07% baseline!)"], ] : [ ["Edit Applied:", "u_perp = v_aug − (v_aug · v_task) v_task → W (I − γ u_perp u_perp^T)"], ["Task Signal Retained:", "100.0% (Exact 90° angle → zero task loss!)"], ["ASVspoof 2019 Clean EER:", "0.12% (Improves over 0.22% base model!)"], ["In-The-Wild Real-World EER:", "2.51% (4.5× reduction in error rate!)"], ["LibriSpeech Clean ASR WER:", "2.02% (Zero clean degradation!)"], ];
const col = step === "2" ? "#d93a4b" : step === "3" ? "#118659" : "#222"; stats.forEach(([k, v], i) => { const y = 42 + i * 36; ctx.fillStyle = "#444"; ctx.font = "600 12px 'Source Sans 3', sans-serif"; ctx.fillText(k, 465, y); ctx.fillStyle = i >= 1 ? col : "#111"; ctx.font = "600 11.5px 'JetBrains Mono', monospace"; ctx.fillText(v, 650, y); });
if (descEl) { descEl.textContent = step === "1" ? "Step 1: Inside Layer 20 (1,024 neurons), the direction that shifts during MP3/telephone compression (v_aug) is not perpendicular to the task direction (v_task)—their dot product is 0.47." : step === "2" ? "Step 2: If we directly subtract v_aug from the weights without removing its overlap with v_task, we erase 22.1% of the task signal and make clean studio error 4× worse (0.22% → 0.89%)." : "Step 3: By subtracting the overlap first (u_perp = v_aug − 0.47 v_task), our edit direction is strictly 90° perpendicular to v_task. Removing it leaves 100% of the task signal intact."; } }
btns.forEach((b) => { b.addEventListener("click", () => { btns.forEach((x) => x.classList.remove("active-pill")); b.classList.add("active-pill"); step = b.getAttribute("data-b2-step"); draw(); }); }); draw(); }
// ========================================================================= // BLOCK 3: Interactive Click-to-Connect Multi-Tap Circuit // ========================================================================= function initBlock3Circuit() { const chkEarly = document.getElementById("b3-chk-layers"); const chkSpeed = document.getElementById("b3-chk-speed"); const chkOneSided = document.getElementById("b3-chk-onesided"); if (!chkEarly) return;
function updateCircuit() { const hasLayers = chkEarly.checked; const hasSpeed = chkSpeed.checked; const hasOneSided = chkOneSided.checked;
const wireLayers = document.getElementById("svg-wire-layers"); const wireSpeed = document.getElementById("svg-wire-speed"); const wireOneSided = document.getElementById("svg-wire-onesided");
if (wireLayers) wireLayers.setAttribute("opacity", hasLayers ? "1.0" : "0.18"); if (wireSpeed) wireSpeed.setAttribute("opacity", hasSpeed ? "1.0" : "0.18"); if (wireOneSided) wireOneSided.setAttribute("opacity", hasOneSided ? "1.0" : "0.18");
// Lookup real measured EER & WER for the active combination of taps let df21 = 8.32; let itw = 11.22; let asrNoisy = 8.09; if (hasLayers) { df21 -= 3.28; itw -= 4.75; asrNoisy -= 0.67; } if (hasSpeed) { df21 -= 1.95; itw -= 2.29; asrNoisy -= 0.55; } if (hasOneSided) { df21 -= 1.11; itw -= 1.67; }
document.getElementById("b3-stat-df21").textContent = `${df21.toFixed(2)}% EER`; document.getElementById("b3-stat-itw").textContent = `${itw.toFixed(2)}% EER`; document.getElementById("b3-stat-asr").textContent = `${asrNoisy.toFixed(2)}% WER`; }
[chkEarly, chkSpeed, chkOneSided].forEach((c) => c.addEventListener("change", updateCircuit)); updateCircuit(); }
// ========================================================================= // BLOCK 4: Interactive 3-Step Scene (Why SGD Learns Shortcuts vs. 1-Pass OFP) // ========================================================================= function initBlock4Scene() { const btns = document.querySelectorAll("[data-b4-scene]"); const taskBtns = document.querySelectorAll("[data-b4-task]"); const canvas = document.getElementById("b4-canvas"); const caption = document.getElementById("b4-scene-caption"); if (!canvas) return; const ctx = canvas.getContext("2d");
let scene = "1"; // "1" | "2" | "3" let task = "deepfake"; // "deepfake" | "asr"
function draw() { const W = canvas.width; const H = canvas.height; ctx.clearRect(0, 0, W, H);
ctx.fillStyle = "#fafcfb"; ctx.strokeStyle = "#d5e0da"; ctx.fillRect(0, 0, W, H); ctx.strokeRect(0, 0, W, H);
const isDF = task === "deepfake"; if (scene === "1") { // Scene 1: Show concrete numbers on two audio clips when compressed ctx.fillStyle = "#111"; ctx.font = "700 14px 'Source Sans 3', sans-serif"; ctx.fillText( isDF ? "Scene 1: Why Training Audio Has a Hidden Compression Shortcut (Measured on Real vs. Fake Clips)" : "Scene 1: Why Training Audio Has a Channel Shortcut in Speech Recognition", 24, 32 );
const cards = isDF ? [ { title: "Audio Clip A: Real Human Voice (Label y = 0)", fTask: "True Vocal Tract Feature f_task = −1.15", fAugClean: "When Studio .WAV: Compression Feature f_aug = +0.08", fAugComp: "When Compressed .MP3: Compression Feature f_aug = +1.42 (Δ = +1.34!)", note: "In the training set, 85% of Real clips are clean Studio .WAV (f_aug ≈ 0.08).", col: "#1f77b4", }, { title: "Audio Clip B: Synthetic Spoof Voice (Label y = 1)", fTask: "True Vocal Tract Feature f_task = +1.20", fAugClean: "When Studio .WAV: Compression Feature f_aug = +0.95", fAugComp: "When Compressed .MP3: Compression Feature f_aug = +2.25 (Δ = +1.30!)", note: "In the training set, many Spoof clips have high f_aug (+0.95), so f_aug looks like a great predictor of Label y = 1!", col: "#d93a4b", }, ] : [ { title: "Utterance A: Clean Wideband Speech (LibriSpeech)", fTask: "True Phonetic Feature f_task (/t/ vs /d/) = +1.25", fAugClean: "Wideband 16kHz: High-Freq Mel Std σ_mel(75) = 0.84", fAugComp: "Over 8kHz Telephone: High-Freq Mel Std σ_mel(75) = 0.08 (10× collapse!)", note: "Standard per-utterance normalization divides by 0.08, blowing up telephone hiss by 8.5×.", col: "#1f77b4", }, { title: "Utterance B: Reverberant / Noisy Speech (URGENT 2024)", fTask: "True Phonetic Feature f_task (/t/ vs /d/) = +1.18", fAugClean: "Clean Room: Layer 32 Echo Feature f_aug = +0.12", fAugComp: "Echoing Room: Layer 32 Echo Feature f_aug = +1.54 (Δ = +1.42!)", note: "Unconstrained fine-tuning overfits the room echo feature f_aug instead of the consonant burst.", col: "#d93a4b", }, ];
cards.forEach((c, idx) => { const x = 24 + idx * 450; ctx.fillStyle = "#ffffff"; ctx.strokeStyle = c.col; ctx.lineWidth = 1.5; ctx.fillRect(x, 48, 430, 168); ctx.strokeRect(x, 48, 430, 168);
ctx.fillStyle = c.col; ctx.font = "700 13px 'Source Sans 3', sans-serif"; ctx.fillText(c.title, x + 14, 72);
ctx.fillStyle = "#222"; ctx.font = "12px 'JetBrains Mono', monospace"; ctx.fillText(c.fTask, x + 14, 102); ctx.fillText(c.fAugClean, x + 14, 128); ctx.fillStyle = "#d93a4b"; ctx.fillText(c.fAugComp, x + 14, 154);
ctx.fillStyle = "#555"; ctx.font = "11.5px 'Source Sans 3', sans-serif"; ctx.fillText(c.note, x + 14, 186); }); } else if (scene === "2") { // Scene 2: What 25 epochs of SGD / AdamW learns ctx.fillStyle = "#d93a4b"; ctx.font = "700 14px 'Source Sans 3', sans-serif"; ctx.fillText( "Scene 2: What Happens When You Run 25 Epochs of Gradient Descent (SGD / AdamW)", 24, 32 );
const epochs = [0, 1, 5, 10, 15, 25]; const wTask = [0.0, 0.28, 0.54, 0.66, 0.70, 0.72]; const wAug = [0.0, 0.31, 0.52, 0.60, 0.63, 0.64]; const testErr = isDF ? [11.22, 8.42, 7.31, 7.15, 7.02, 6.95] : [8.09, 8.04, 7.98, 7.95, 7.92, 7.91];
epochs.forEach((ep, i) => { const x = 32 + i * 148; ctx.fillStyle = "#fff"; ctx.strokeStyle = "#e0c4c7"; ctx.fillRect(x, 52, 136, 162); ctx.strokeRect(x, 52, 136, 162);
ctx.fillStyle = "#222"; ctx.font = "700 12.5px 'Source Sans 3', sans-serif"; ctx.fillText(`Epoch ${ep}`, x + 12, 74);
ctx.fillStyle = "#1f77b4"; ctx.font = "11.5px 'JetBrains Mono', monospace"; ctx.fillText(`w_task = ${wTask[i].toFixed(2)}`, x + 12, 102);
ctx.fillStyle = "#d93a4b"; ctx.fillText(`w_aug = ${wAug[i].toFixed(2)}`, x + 12, 126);
// Mini bar for w_aug shortcut weight ctx.fillRect(x + 12, 136, wAug[i] * 140, 12);
ctx.fillStyle = "#111"; ctx.font = "600 11.5px 'Source Sans 3', sans-serif"; ctx.fillText( isDF ? `Unseen EER: ${testErr[i]}%` : `Noisy WER: ${testErr[i]}%`, x + 12, 174 ); ctx.fillStyle = "#d93a4b"; ctx.font = "11px 'Source Sans 3', sans-serif"; ctx.fillText(ep === 0 ? "Start" : "Learns Shortcut!", x + 12, 196); }); } else { // Scene 3: How 1-Pass Optimizer solves it in 0.19s ctx.fillStyle = "#118659"; ctx.font = "700 14px 'Source Sans 3', sans-serif"; ctx.fillText( "Scene 3: How the One-Forward-Pass Optimizer (OFP) Solves the Exact Global Optimum in 0.19s", 24, 32 );
const boxes = [ { step: "Pass 1A: Measure Paired Difference", math: "c_aug = E[f(MP3) − f(WAV)] = [0.00, +1.34]", detail: "Because it is the exact same voice, any difference between .MP3 and .WAV is 100% compression artifact.", }, { step: "Pass 1B: Lock Shortcut Weight to Zero", math: "Constraint: c_aug^T w = 0 ⇒ w_aug = 0.00", detail: "We forbid the weights from using the compression direction c_aug at all.", }, { step: "Pass 1C: Closed-Form Linear Solve (0.19s)", math: "w_OFP = [w_task = 1.00, w_aug = 0.00]", detail: isDF ? "Unseen 4-Dataset EER drops to 4.12% (vs. 6.95% for 25-Epoch AdamW in 12.4s)!" : "4-Dataset Noisy ASR WER drops to 6.87% (vs. 7.91% for 15-Epoch AdamW)!", }, ];
boxes.forEach((b, idx) => { const x = 24 + idx * 302; ctx.fillStyle = "#f2faf6"; ctx.strokeStyle = "#2e996a"; ctx.lineWidth = 1.5; ctx.fillRect(x, 52, 286, 162); ctx.strokeRect(x, 52, 286, 162);
ctx.fillStyle = "#118659"; ctx.font = "700 13px 'Source Sans 3', sans-serif"; ctx.fillText(b.step, x + 14, 78);
ctx.fillStyle = "#111"; ctx.font = "600 11.5px 'JetBrains Mono', monospace"; ctx.fillText(b.math, x + 14, 112);
ctx.fillStyle = "#333"; ctx.font = "12px 'Source Sans 3', sans-serif"; const words = b.detail.split(" "); let line = ""; let y = 144; words.forEach((w) => { if ((line + w).length > 40) { ctx.fillText(line, x + 14, y); line = w + " "; y += 18; } else { line += w + " "; } }); if (line) ctx.fillText(line, x + 14, y); }); }
if (caption) { caption.textContent = scene === "1" ? "Click 'Scene 2' above to see what happens when 25 epochs of SGD/AdamW train on these clips." : scene === "2" ? "Because SGD/AdamW only minimizes training loss, it assigns w_aug = 0.64 to the compression artifact! Click 'Scene 3' to see how 1-Pass OFP fixes this." : "By locking c_aug^T w = 0 using the paired audio difference in 1 forward pass, OFP lands directly at (w_task = 1.00, w_aug = 0.00) in 0.19 seconds."; } }
btns.forEach((b) => { b.addEventListener("click", () => { btns.forEach((x) => x.classList.remove("active-pill")); b.classList.add("active-pill"); scene = b.getAttribute("data-b4-scene"); draw(); }); });
taskBtns.forEach((b) => { b.addEventListener("click", () => { taskBtns.forEach((x) => x.classList.remove("active-pill")); b.classList.add("active-pill"); task = b.getAttribute("data-b4-task"); draw(); }); });
draw(); }
// ========================================================================= // BLOCK 5: Interactive Weight Compression Comparison // ========================================================================= function initBlock5Widget() { const slider = document.getElementById("b5-slider"); const valLabel = document.getElementById("b5-slider-val"); const canvas = document.getElementById("b5-canvas"); if (!slider || !canvas) return; const ctx = canvas.getContext("2d");
function draw() { const alpha = parseFloat(slider.value); valLabel.textContent = alpha === 0 ? "Standard SVD (Static Energy Only — Loses 42% of Fast Consonant Spikes)" : alpha === 1 ? "Our Transition-Preserving SVD (Static Energy + 2× Frame Change — Keeps 99.1% of Spikes)" : `${Math.round(alpha * 100)}% Transition-Preserving Weight`;
const W = canvas.width; const H = canvas.height; ctx.clearRect(0, 0, W, H);
ctx.fillStyle = "#fafcfb"; ctx.strokeStyle = "#d5e0da"; ctx.fillRect(0, 0, W, H); ctx.strokeRect(0, 0, W, H);
const x0 = 54; const y0 = 188; const plotW = W - 84; const plotH = 140;
ctx.strokeStyle = "#ccc"; ctx.beginPath(); ctx.moveTo(x0, y0); ctx.lineTo(x0 + plotW, y0); ctx.moveTo(x0, 32); ctx.lineTo(x0, y0); ctx.stroke();
const N = 120; const teachPts = []; const compPts = []; for (let i = 0; i < N; i++) { const t = i / (N - 1); const slow = 0.08 + 0.03 * Math.sin(2 * Math.PI * 2 * t); const p1 = 0.78 * Math.exp(-0.5 * Math.pow((t - 0.22) / 0.02, 2)); const p2 = 0.88 * Math.exp(-0.5 * Math.pow((t - 0.52) / 0.018, 2)); const p3 = 0.82 * Math.exp(-0.5 * Math.pow((t - 0.80) / 0.02, 2)); const vTeach = slow + p1 + p2 + p3; const vStd = slow + 0.56 * (p1 + p2 + p3); const vCur = (1 - alpha) * vStd + alpha * vTeach; teachPts.push([x0 + t * plotW, y0 - vTeach * plotH]); compPts.push([x0 + t * plotW, y0 - vCur * plotH]); }
// Shaded lost spike area ctx.fillStyle = "rgba(217, 58, 75, 0.16)"; ctx.beginPath(); teachPts.forEach(([px, py], i) => (i === 0 ? ctx.moveTo(px, py) : ctx.lineTo(px, py))); for (let i = compPts.length - 1; i >= 0; i--) ctx.lineTo(compPts[i][0], compPts[i][1]); ctx.closePath(); ctx.fill();
// Full 318M Teacher wave (dashed black) ctx.strokeStyle = "#222"; ctx.lineWidth = 2; ctx.setLineDash([5, 3]); ctx.beginPath(); teachPts.forEach(([px, py], i) => (i === 0 ? ctx.moveTo(px, py) : ctx.lineTo(px, py))); ctx.stroke(); ctx.setLineDash([]);
// Compressed wave ctx.strokeStyle = alpha > 0.5 ? "#118659" : "#d93a4b"; ctx.lineWidth = 2.6; ctx.beginPath(); compPts.forEach(([px, py], i) => (i === 0 ? ctx.moveTo(px, py) : ctx.lineTo(px, py))); ctx.stroke();
ctx.fillStyle = "#333"; ctx.font = "600 12px 'Source Sans 3', sans-serif"; ctx.fillText("Consonant /p/ Burst", x0 + plotW * 0.17, 26); ctx.fillText("Consonant /t/ Burst", x0 + plotW * 0.47, 26); ctx.fillText("Consonant /k/ Burst", x0 + plotW * 0.75, 26);
const keptPct = (58.0 + 41.1 * alpha).toFixed(1); const werVal = (6.45 - 1.41 * alpha).toFixed(2); ctx.fillStyle = alpha > 0.5 ? "#118659" : "#d93a4b"; ctx.font = "700 12px 'JetBrains Mono', monospace"; ctx.fillText( `Fast Transition Energy Kept: ${keptPct}% | Compressed Wav2Vec2 (142M) ASR WER: ${werVal}% (Full 315M Teacher = 5.16%)`, x0 + 8, 214 ); }
slider.addEventListener("input", draw); draw(); }
window.addEventListener("DOMContentLoaded", () => { initBlock1Widget(); initBlock2Widget(); initBlock3Circuit(); initBlock4Scene(); initBlock5Widget(); });})();123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436/* The page is laid out by the Distill template (https://distill.pub/template.v2.js): the title block, the grid, wide figures, footnotes. This file gives it the look of the original blog template: Source Sans 3, light headings, green accents. The page is one column, a little wider than Distill's text, and every figure stays inside it (l-body, l-body-outset, l-page and l-screen are all the text's width). */
:root { --text: #333333; --accent: #2e996a; /* boxes */ --accent-hover: #8fc8a9; --accent-bg: #dbece2; --title-bg: #f3f9f5; /* the band behind the title */ --green: #118659; /* links, and text colors that match the figures: green = the LLM */ --red: #d93a4b; --rule: rgba(0, 0, 0, 0.1);
--font-sans: 'Source Sans 3', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', Meiryo, 'Lato', Verdana, Helvetica, sans-serif; --font-mono: 'JetBrains Mono', 'Source Code Pro', Menlo, Monaco, Consolas, monospace;}
/* ---------- Fonts and text ---------- */
html { font-family: var(--font-sans); color: var(--text); background-color: #ffffff; -webkit-font-smoothing: antialiased;}
d-article { font-size: 17px; line-height: 1.5; color: var(--text);}
@media (min-width: 1024px) { d-article { font-size: 18px; }}
/* One column for the whole page, a little wider than Distill's text (704px at its widest), and every figure inside it: the wider figure classes (l-page, l-body-outset, l-screen) are as wide as the text. */@media (min-width: 768px) { .base-grid, distill-header, d-title, d-abstract, d-article, d-appendix, distill-appendix, d-byline, d-footnote-list, d-citation-list, distill-footer { grid-template-columns: [screen-start] minmax(24px, 1fr) [page-start kicker-start middle-start text-start] minmax(0, 760px) [text-end page-end middle-end kicker-end gutter-start gutter-end] minmax(24px, 1fr) [screen-end]; grid-column-gap: 0; }}
d-article .l-page,d-article .l-page-outset,d-article .l-body-outset,d-article .l-screen,d-article .l-screen-inset,d-article d-figure { grid-column: text;}
code,kbd,pre,samp,.tt { font-family: var(--font-mono);}
/* Inline code, e.g. a weight the LLM wrote: <code>W1[10, 21] = 1</code> */d-article code { padding: 1px 5px; font-size: 0.85em; color: var(--text); background-color: #f1f3f6; border-radius: 4px;}
/* Links: green. In the text, a thin light-green underline (Distill draws a grey one), so a link is not told by its color alone. The author names have none. */d-article a,.post-byline a { color: var(--green); border-bottom: none; text-decoration: none;}
d-article a { text-decoration: underline 1px var(--accent-hover); text-underline-offset: 3px;}
d-article a:hover,.post-byline a:hover { color: var(--accent-hover); border-bottom: none;}
/* ---------- Title and byline ---------- */
d-title { padding: 48px 0 32px; background-color: var(--title-bg);}
d-title h1 { color: #222222; letter-spacing: -0.01em;}
d-title p { font-size: 21px; font-weight: 300; line-height: 1.4; color: #555555;}
d-title .title-kicker { /* "Sparks of Weight Space Programming:", above the title */ margin: 0 0 6px; font-size: 26px;}
/* The template adds its own byline from <d-front-matter> ("Not published yet", "No DOI yet"); the page writes its own. */d-byline { display: none;}
.post-byline { border-bottom: 1px solid var(--rule); padding: 1.5rem 0; font-size: 15px; line-height: 1.7;}
.post-byline .byline-grid { grid-column: text; display: grid; grid-template-columns: 1fr 1fr 1fr; column-gap: 8px;}
.post-byline h3 { margin: 0 0 2px; font-size: 14px; font-weight: 600; letter-spacing: 0.06em; color: var(--text); text-transform: uppercase;}
.post-byline p { margin: 0;}
.post-byline sup { /* equal contribution */ margin-left: 1px; font-size: 0.75em; color: var(--text);}
.post-byline .byline-note { margin-top: 6px; font-size: 14px; color: var(--text);}
d-article { border-top: none;}
/* ---------- Headings: light, as in the original template ---------- */
d-article h2 { font-size: 28px; font-weight: 300; line-height: 1.2; color: var(--text); border-bottom: 2px solid var(--accent-bg); padding-bottom: 0.6rem;}
@media (min-width: 1024px) { d-article h2 { font-size: 34px; }}
d-article h3 { margin: 32px 0 12px; font-size: 24px; font-weight: 300; line-height: 1.2; color: var(--text);}
/* An experiment's title: its number in green, then the question as a heading */d-article .exp-head { margin: 44px 0 14px;}
.exp-num { display: block; font-size: 14px; font-weight: 700; letter-spacing: 0.02em; color: var(--green);}
d-article .exp-head h3 { margin: 2px 0 0; font-size: 20px; font-weight: 600; line-height: 1.3;}
/* ---------- Figures ---------- */
d-article figure img,d-article figure video,d-article figure svg.figure-svg { /* an SVG figure put into the page by the script in index.html, for the fonts */ display: block; width: 100%; height: auto;}
/* Captions: centred, at most about a text column wide. No small grey text anywhere (the author's rule). */figcaption { max-width: 800px; margin: 10px auto 0; font-size: 16px; line-height: 1.45; color: var(--text); text-align: center;}
figcaption b { color: var(--text);}
/* Figures or videos side by side: <div class="figure-row cols-3"> with one <figure> per panel. */.figure-row { display: grid; gap: 0 16px;}
.figure-row.cols-2 { grid-template-columns: repeat(2, 1fr); }.figure-row.cols-3 { grid-template-columns: repeat(3, 1fr); }.figure-row.cols-4 { grid-template-columns: repeat(4, 1fr); }
.figure-row figure { margin: 0;}
/* Short label under one item of a row (larger and darker than a caption). */figcaption.label { margin-top: 6px; font-size: 15px; color: var(--text);}
@media (max-width: 600px) { .figure-row.cols-3, .figure-row.cols-4 { grid-template-columns: repeat(2, 1fr); }}
/* ---------- Highlight boxes ---------- */
/* The takeaway at the end of a section. */.block-takeaway { margin: 16px 0 24px; padding: 12px 16px; border: 2px solid var(--accent); background-color: var(--accent-bg); border-radius: 10px;}
/* A side note, e.g. how a result was checked. */.block-note { margin: 16px 0 24px; padding: 12px 16px; border: 1px solid #dddddd; background-color: #f6f6f6; border-radius: 10px;}
.block-note ul { margin: 8px 0 0; padding-left: 22px;}
.block-note li { margin-bottom: 6px;}
.block-takeaway > :last-child,.block-note > :last-child { margin-bottom: 0;}
/* ---------- What the LLM wrote, expandable: <details class="trace"> ---------- */
details.trace { margin: 4px 0 24px; border: 1px solid #dde9e2; border-radius: 10px; background-color: #f9fcfa;}
details.trace > summary { padding: 10px 16px; font-size: 16px; font-weight: 600; color: var(--accent); cursor: pointer; list-style: none;}
details.trace > summary::-webkit-details-marker { display: none;}
details.trace > summary::before { content: "\25B8\00a0";}
details.trace[open] > summary::before { content: "\25BE\00a0";}
details.trace > summary:hover { color: var(--accent-hover);}
.trace-body { padding: 0 16px 14px; font-size: 16px;}
.trace-body .trace-src { margin: 0 0 8px; font-size: 16px; color: var(--text);}
.trace-body blockquote { margin: 0 0 12px; padding: 8px 14px; font-size: 16px; line-height: 1.5; color: var(--text); background-color: #ffffff; border-left: 3px solid var(--accent);}
.trace-body .trace-check { margin: 0;}
.trace-body table { display: block; /* scrolls sideways on narrow screens */ max-width: 100%; overflow-x: auto; margin: 0 0 12px; font-size: 14px; border-collapse: collapse;}
.trace-body th,.trace-body td { padding: 3px 14px 3px 0; text-align: left; vertical-align: middle; white-space: nowrap; border-bottom: 1px solid #e6e6e6;}
/* ---------- Text colors that match the figures ---------- */
.text-green { color: var(--green); }.text-red { color: var(--red); }
/* ---------- Text still to be written: <span class="tbd">TBD</span> (remove before publishing) ---------- */
.tbd { color: #9a5b00; background-color: #fff3dc; border-radius: 3px; padding: 0 4px;}
/* ---------- Result tables: <figure class="l-body"><table class="results">, numbers in <td class="num"> ---------- */
table.results { display: block; /* scrolls sideways on narrow screens */ width: fit-content; /* as wide as its columns, centred */ max-width: 100%; overflow-x: auto; margin: 0 auto; font-size: 16px; line-height: 1.4; border-collapse: collapse;}
table.results th,table.results td { padding: 6px 14px 6px 0; text-align: left; vertical-align: top; border-bottom: 1px solid #e6e6e6;}
table.results th { font-weight: 600; color: var(--text); border-bottom: 1px solid #bbbbbb;}
table.results .num { text-align: right; white-space: nowrap;}
table.results tr > :first-child { /* row names on one line */ white-space: nowrap;}
/* ---------- A row of game animations above a band drawn to the same columns (Figures 2 and 7) ---------- */
/* The column gap is a percentage so that the columns line up with the SVG band below, which scales with the width. */.game-row { display: grid; grid-template-columns: repeat(5, 1fr); column-gap: 2%;}
.game-row.cols-3 { grid-template-columns: repeat(3, 1fr);}
.game-row.cols-4 { grid-template-columns: repeat(4, 1fr);}
d-article figure .game-row img { border-radius: 4px;}
d-article figure .game-row.pixel img { /* grid games drawn cell by cell */ image-rendering: pixelated;}
/* ---------- Our prompts and Astra's reasoning (js/traces.js): <div class="taskpages" data-src="..."> ---------- One tab per network (underlined tabs), then one compact card: the network's animation at the left; what we ask, in a monospace font as Astra got it; and what Astra answers, its final answer first. Square corners. Green = Astra, as in the figures: its final answer, and where it reads the weights (its quotes and what it makes of them, and the same weights in the prompt). */
.taskpages { margin: 2px 0 10px; font-family: var(--font-sans); font-size: 14.5px; line-height: 1.5; color: var(--text); outline: none;}
.taskpages button { font-family: var(--font-sans); cursor: pointer;}
.tp-tabs { /* one tab per network, underlined */ margin-bottom: 10px; border-bottom: 1px solid #d5d9df;}
.tp-tabrow { /* a row of tabs, with the name of its game when there are several */ display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px;}
.has-setup .tp-tabrow { /* room for the Setup button at the figure's top right */ padding-right: 90px;}
.has-setup .taskpages > .tp-card:first-child { /* no tabs: the Setup button gets a row of its own */ margin-top: 40px;}
.tp-tabgroup { min-width: 96px; font-size: 14px; font-weight: 700;}
.tp-tabset { display: flex; flex-wrap: wrap; gap: 0 20px;}
.tp-tab { margin-bottom: -1px; padding: 5px 1px; font-size: 15px; font-weight: 600; color: #444444; background: none; border: 0; border-bottom: 3px solid transparent;}
.tp-tab:hover { color: #222222;}
.tp-tab[aria-selected="true"] { color: #222222; border-bottom-color: var(--green);}
.tp-card { /* one network: animation | what we ask, what Astra answers */ display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid #c9ced5;}
.tp-card.has-anim { grid-template-columns: 132px minmax(0, 1fr);}
.tp-media { /* a replay across the top of the card, the result beside it */ grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; padding: 10px 14px; border-bottom: 1px solid #e1e4e8;}
.tp-media img,.tp-media svg { display: block; flex: 0 0 auto; width: 50%; max-width: 400px; height: auto;}
.tp-mside { /* beside the replay: its key, then the result */ flex: 1;}
.tp-mkey { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700;}
.tp-msw { display: inline-block; flex: 0 0 auto; width: 14px; height: 14px;}
.tp-mcap { margin-top: 6px; font-size: 14px; font-weight: 600;}
@media (max-width: 600px) { /* on a phone, the result under the replay */ .tp-media { flex-direction: column; align-items: stretch; gap: 6px; }
.tp-media img, .tp-media svg { width: 100%; max-width: none; }}
.tp-chat { /* an exchange across the top of the card: the user, then each model */ grid-column: 1 / -1; padding: 10px 14px; border-bottom: 1px solid #e1e4e8;}
.tp-convo { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px; max-width: 720px; margin: 0 auto;}
.tp-msg { padding: 6px 10px; font-size: 14.5px; line-height: 1.35; color: #222222; border: 1px solid #c9ced5; border-radius: 8px;}
.tp-user { background-color: #f6f7f9;}
.tp-who { display: block; margin-bottom: 2px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;}
.tp-guess { font-weight: 700; color: var(--red);}
@media (max-width: 640px) { .tp-convo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.tp-user { grid-column: 1 / -1; }}
.tp-fold { /* a long code block, folded to a line */ margin: 8px 0 2px; font-size: 13.5px;}
.tp-fold > summary { width: fit-content; padding: 1px 8px; color: #222222; cursor: pointer; border: 1px solid #9aa3ad;}
.tp-fold > summary b { color: var(--green);}
.tp-fold[open] > summary { margin-bottom: 6px;}
.tp-fold .tp-pre { max-height: 150px; margin: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #92c2a8 transparent;}
.tp-side { padding: 12px; background-color: #f6f7f9; border-right: 1px solid #c9ced5;}
.tp-anim { display: block; width: 100%; height: auto; border: 1px solid #444444; image-rendering: pixelated;}
.tp-play { /* the game, played by the network Astra wrote (Experiment 4) */ aspect-ratio: 1; border-radius: 3px;}
.tp-samples { /* six images a diffusion model generates */ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px;}
.tp-sample,.tp-drawn { display: block; width: 100%; height: auto;}
.tp-draw { /* the image Astra drew, beside its answer */ width: 96px;}
.tp-draw .tp-cap { margin-top: 4px;}
.tp-cap { margin-top: 6px; font-size: 13.5px; font-weight: 600; line-height: 1.3; text-align: center;}
.tp-main { min-width: 0;}
.tp-truth,.tp-q,.tp-a,.tp-r { padding: 9px 14px;}
/* the three parts of a card: the Prompt (a message to Astra), the Answer (Astra's, on a pale green band) and the Reasoning, each with its label */.tp-a.tp-sec { background-color: #f3f9f5; border-bottom: 1px solid #e1e4e8;}
.tp-from { /* "from GPT-6 Astra", after the Answer label */ margin-right: 10px; font-size: 13.5px; font-weight: 600; color: #222222;}
.tp-chip { /* the label of a part: plain bold text in its colour */ display: inline-block; margin-right: 10px; font-size: 14px; font-weight: 700; line-height: 1.5;}
.tp-chip-p { color: #222222;}
.tp-chip-a { color: var(--green);}
.tp-chip-r { color: #03623f;}
.tp-rhead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 0;}
.tp-rsub { font-size: 13.5px; color: #333333;}
.tp-a .tp-fold { margin-top: 6px;}
.tp-whole > summary { /* a card folded to one line, beside the Setup button */ display: inline-block; padding: 4px 0; font-size: 15px; font-weight: 600; color: var(--green); list-style: none; cursor: pointer;}
.tp-whole > summary::-webkit-details-marker { display: none;}
.tp-whole > summary::after { content: " \25B8";}
.tp-whole[open] > summary::after { content: " \25B4";}
.tp-whole[open] > summary { margin-bottom: 8px;}
.tp-whide,.tp-whole[open] .tp-wshow { display: none;}
.tp-whole[open] .tp-whide { display: inline;}
.tp-truth { /* the right answer */ font-size: 14px; background-color: #f6f7f9; border-bottom: 1px solid #e1e4e8;}
.tp-q { border-bottom: 1px solid #e1e4e8;}
.tp-lab { /* "We ask", "Astra answers", "Truth" */ display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 4px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #222222;}
.tp-truth .tp-lab { display: inline; margin-right: 6px;}
.tp-a > .tp-lab { color: var(--green);}
.tp-meta { font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: #333333;}
.tp-verdict { font-weight: 700; color: #1a7f37;}
.tp-verdict.wrong { color: #c62828;}
.tp-result { /* a score instead of right or wrong (Experiment 4) */ font-weight: 700; color: #222222;}
.tp-btn { /* a button (Figure 11's Play) */ padding: 3px 10px; font-size: 14px; font-weight: 600; color: var(--green); background-color: #ffffff; border: 1.5px solid var(--green); border-radius: 3px;}
.tp-btn:hover { background-color: #edf5f0;}
.tp-link { /* see the weights Astra quotes, read all of its reasoning */ margin-top: 4px; padding: 0; font-size: 13.5px; font-weight: 600; color: var(--green); background: none; border: 0;}
.tp-link:hover { text-decoration: underline;}
.taskpages mark { /* Astra's final answer */ padding: 0 3px; font-weight: 700; color: var(--text); background-color: #b2dac4;}
.taskpages mark.tp-read { /* where Astra reads the weights */ padding: 0 2px; font-weight: inherit; background-color: #cee7d9;}
.tp-pbody.open { /* the whole prompt scrolls inside the card */ max-height: 300px; overflow-y: auto;}
.tp-text { /* the prompt, as Astra got it */ font-family: var(--font-mono); font-size: 12.5px; line-height: 1.5; color: #1f1f1f; white-space: pre-wrap;}
.tp-text + .tp-text,.tp-omit + .tp-text,.tp-wline + .tp-text { margin-top: 4px;}
.tp-omit { /* where the numbers of the weights were */ display: inline-block; margin: 4px 0 0; padding: 0 6px; font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; color: #1f1f1f; white-space: nowrap; background-color: #e6e8eb;}
.tp-wline { /* a line of weights that Astra quotes, on a pale green band */ margin: 6px 0; padding: 4px 8px; background-color: #edf5f0; border-radius: 4px;}
.tp-wlabel { font-size: 13px; font-weight: 700; color: #1f1f1f;}
.tp-wvals { font-family: var(--font-mono); font-size: 12px; line-height: 1.55; color: #1f1f1f;}
.tp-qhead { /* "Prompt to GPT-6 Astra" */ display: flex; align-items: baseline; gap: 0; margin-bottom: 6px;}
.tp-to { font-size: 13.5px; font-weight: 600; color: #222222;}
.tp-bubble { /* the prompt in a chat input box: what comes with it, then the question */ padding: 10px 12px 8px;}
.tp-pbar { /* the input box's bottom row: the whole prompt on the left, send on the right */ display: flex; align-items: center; min-height: 26px; margin-top: 6px; padding-right: 34px;}
.tp-bubble .tp-link { margin: 0; font-size: 13px;}
.tp-bubble .tp-pbody.open { margin-top: 8px; padding-top: 8px; border-top: 1px solid #e1e4e8;}
.tp-rbox { /* the reasoning, in a box of its own, with the link to all of it inside */ padding: 8px 12px 8px; background-color: #ffffff; border: 1px solid #dde1e6; border-radius: 12px;}
.tp-rbox .tp-link { margin-top: 2px; font-size: 13px;}
/* A prompt drawn like a chat app's input box: white, rounded, a soft shadow, and a send button at its bottom right */.tz-task,.tp-bubble { position: relative; background-color: #ffffff; border: 1px solid #cfd5dc; border-radius: 18px; box-shadow: 0 1px 4px rgba(16, 24, 40, 0.08);}
.tz-task::after,.tp-bubble::after { content: ""; position: absolute; right: 8px; bottom: 8px; width: 24px; height: 24px; background: #222222 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M5 12l7-7 7 7'/%3E%3C/svg%3E") center / 14px no-repeat; border-radius: 50%;}
.tp-file { /* the weights (or files) the message carries, as an attachment */ margin-bottom: 8px; padding: 6px 10px; font-size: 13.5px; font-weight: 600; color: #222222; background-color: #f3f5f8; border: 1px solid #dfe3e8; border-radius: 10px;}
.tp-ficon { /* a small page icon */ display: inline-block; width: 10px; height: 13px; margin-right: 7px; vertical-align: -1px; border: 1.5px solid #59636e; border-radius: 2px; background: linear-gradient(#59636e, #59636e) 2px 3px / 5px 1.5px no-repeat, linear-gradient(#59636e, #59636e) 2px 6px / 5px 1.5px no-repeat;}
.tp-paste { /* a line of the weights, as pasted into the prompt */ margin-top: 4px; overflow: hidden; font-family: var(--font-mono); font-size: 12px; font-weight: 400; line-height: 1.5; color: #222222; white-space: nowrap; -webkit-mask-image: linear-gradient(90deg, #000000 75%, transparent); mask-image: linear-gradient(90deg, #000000 75%, transparent);}
.tp-ask { /* the question itself */ font-size: 15.5px; font-weight: 600;}
.tp-rule { /* what the prompt rules out, after the question */ margin-top: 2px; font-size: 15px; font-weight: 600;}
.tp-tag { /* what comes with the question: the weights */ display: inline-block; margin: 2px 0 0 6px; padding: 0 6px; font-size: 12.5px; font-weight: 600; line-height: 1.6; color: #222222; white-space: nowrap; border: 1px solid #9aa3ad;}
.tp-q .tp-lab,.tp-ahead .tp-lab { display: inline; margin-right: 8px;}
.tp-q .tp-link { margin: 0;}
.tp-pbody:empty { display: none;}
.tp-pbody.open { margin-top: 8px;}
.tp-ahead { /* "Astra answers", the core of its answer, confidence and verdict */ display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px;}
.tp-ans { font-size: 15.5px;}
.tp-alab { font-weight: 700;}
.tp-abody.has-draw { /* the steps, and the image Astra drew beside them */ display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 18px; align-items: start;}
.tp-steps { /* the key sentences of the reasoning, one per line, on a line of dots */ margin: 8px 0 2px; padding: 0 0 0 22px; font-size: 14px; line-height: 1.45; list-style: none; background: linear-gradient(#c3e0cf, #c3e0cf) 5px 0 / 2px 100% no-repeat local; /* the line, inside the box */}
.tp-rbody:not(.open) .tp-steps { /* the summary scrolls: about four steps in view, a fade while more is below */ max-height: 118px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #92c2a8 transparent;}
.tp-rbody:not(.open) .tp-steps.fits { max-height: none;}
.tp-steps.more { -webkit-mask-image: linear-gradient(#000000 calc(100% - 26px), transparent); mask-image: linear-gradient(#000000 calc(100% - 26px), transparent);}
.tp-steps li { position: relative; margin: 0 0 5px;}
.tp-steps li::before { content: ""; position: absolute; top: 0.5em; left: -21px; width: 6px; height: 6px; background-color: #ffffff; border: 2px solid var(--green); border-radius: 50%;}
.tp-steps li.tp-reads::before { /* a step that reads the weights */ background-color: var(--green);}
.tp-slab { /* "Channel 0 — agent:", "Outputs:" */ font-weight: 700; color: #03623f;}
.tp-steps b { /* the terms the reasoning turns on, as Astra set them in bold */ font-weight: 700; background: linear-gradient(transparent 58%, #a1d2b7 58%);}
.tp-num { /* a number it quotes from the weights */ font-family: var(--font-mono); font-size: 0.92em; font-weight: 600;}
.tp-draw .tp-pre { margin: 0;}
.tp-draw .tp-h { margin-top: 0;}
.tp-rbody.open { /* the whole answer scrolls inside the card */ max-height: 420px; overflow-y: auto;}
.tp-reply .tp-key { /* a key sentence, marked in the whole reply (the diffusion models) */ background-color: #e4f1ea;}
.tp-thinking { margin-bottom: 8px; font-size: 13.5px;}
.tp-reply { font-size: 14px;}
.tp-reply p { margin: 0 0 8px;}
.tp-reply ul { margin: 0 0 8px; padding-left: 20px;}
.tp-reply li { margin-bottom: 4px;}
.tp-h { margin: 10px 0 4px; font-weight: 700; color: var(--green);}
.tp-reply > .tp-h:first-child { margin-top: 0;}
.tp-code { font-family: var(--font-mono); font-size: 0.9em;}
.tp-table { /* a table in Astra's answer */ margin: 4px 0 12px; font-size: 13.5px; border-collapse: collapse;}
.tp-table th,.tp-table td { padding: 3px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid #d5d9df;}
.tp-table th { font-weight: 700; border-bottom: 1.5px solid #444444;}
.tp-math { /* display math in Astra's answer */ margin: 4px 0 10px; overflow-x: auto;}
.tp-pre { overflow: visible; margin: 2px 0 8px; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.15; color: #1f1f1f;}
/* A figure's setup, behind a button at its top right: <figure class="has-setup"><details class="fig-setup"> */
.fig-setup { position: absolute; top: 0; right: 0; z-index: 20; font-family: var(--font-sans);}
.fig-setup > summary { padding: 3px 11px; font-size: 14px; font-weight: 600; color: var(--green); cursor: pointer; list-style: none; background-color: #ffffff; border: 1.5px solid var(--green);}
.fig-setup > summary::-webkit-details-marker { display: none;}
.fig-setup > summary::before { content: "i"; display: inline-block; width: 15px; height: 15px; margin-right: 6px; font-family: Georgia, serif; font-size: 11px; font-style: italic; font-weight: 700; line-height: 15px; text-align: center; color: #ffffff; vertical-align: 1px; background-color: var(--green); border-radius: 50%;}
.fig-setup[open] > summary { color: #ffffff; background-color: var(--green);}
.fig-setup[open] > summary::before { color: var(--green); background-color: #ffffff;}
.fig-setup-body { position: absolute; top: calc(100% + 6px); right: 0; width: min(480px, calc(100vw - 32px)); box-sizing: border-box; padding: 12px 16px; font-size: 14.5px; line-height: 1.5; text-align: left; color: var(--text); background-color: #ffffff; border: 1px solid #c9ced5; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);}
.fig-setup-body ul { margin: 0; padding-left: 18px;}
.fig-setup-body li { margin-bottom: 4px;}
@media (max-width: 700px) { .tp-card.has-anim { grid-template-columns: minmax(0, 1fr); }
.tp-side { display: flex; align-items: center; gap: 12px; border-right: 0; border-bottom: 1px solid #c9ced5; }
.tp-anim { width: 96px; }
.tp-samples { grid-template-columns: repeat(3, 44px); }
.tp-abody.has-draw { grid-template-columns: minmax(0, 1fr); }}
/* ---------- The math-editing figures (js/mathedit.js) ---------- Benchmarks: one line per benchmark, green for math and orange for the others, the pointed one in front with its scores. A run: its practice accuracy drawn as it goes (grey = original weights, green = Astra's current edit), a tick for every turn under it (red = changed the weights), and beside it that turn: what it did in a line, then what Astra wrote, cut to three lines until "more" is pressed; under it, the list of the run's edits. */
.me-bench,.me-traj { margin: 4px 0 14px; font-family: var(--font-sans); color: var(--text); outline: none;}
.me-svg { display: block; width: 100%; height: auto; font-family: var(--font-sans);}
.me-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 14px;}
.me-key,.me-tick { display: inline-block; margin-right: -10px; vertical-align: middle;}
.me-key { width: 22px; border-top: 2.5px solid var(--c);}
.me-tick { width: 2px; height: 12px; background-color: #d93a4b;}
.me-item { /* one entry of a key: its mark and label stay on one line */ white-space: nowrap;}
.me-item > .me-key,.me-item > .me-tick { margin-right: 6px;}
.me-series polyline,.me-series circle,.me-lead { transition: opacity 0.2s;}
.me-dim polyline, /* the lines behind the one in front; their names stay dark */.me-dim circle,.me-dim .me-lead { opacity: 0.38;}
.me-name { font-variant-numeric: tabular-nums;}
.me-val { font-weight: 600;}
.me-on .me-name { font-weight: 700;}
.me-halo { /* a score written over the lines */ paint-order: stroke; stroke: #ffffff; stroke-width: 4px; stroke-linejoin: round;}
.me-hidden .me-series circle,.me-hidden .me-name,.me-hidden .me-lead,.me-hidden .me-halo,.me-hidden .me-wash { opacity: 0;}
.me-drawing .me-series circle,.me-drawing .me-name,.me-drawing .me-lead { animation: me-fade 0.5s ease-out both; animation-delay: calc(var(--delay, 0ms) + 0.75s);}
.me-drawing .me-halo,.me-drawing .me-wash { animation: me-fade 0.6s ease-out both; animation-delay: 1.4s;}
@keyframes me-fade { from { opacity: 0; } to { opacity: 1; }}
.me-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 10px 0 8px; font-size: 14px;}
.me-pos { font-weight: 600; font-variant-numeric: tabular-nums;}
.me-bar .me-legend { margin-left: auto;}
.me-main { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start;}
.me-hover { cursor: crosshair; touch-action: pan-y; /* a finger moving sideways goes through the turns, up and down scrolls */}
.me-panel { box-sizing: border-box; /* its height is set to the chart's */ overflow-y: auto; padding: 2px 4px 4px 20px; font-size: 15px; line-height: 1.5; border-left: 1px solid #c9ced5;}
.me-enter > * { /* a key edit rises in */ animation: me-rise 0.45s ease-out both;}
@keyframes me-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; }}
.me-pulse { transform-box: fill-box; transform-origin: center;}
.me-pulse-on { animation: me-pulse 1.1s ease-out 2;}
@keyframes me-pulse { from { opacity: 0.9; transform: scale(1); } to { opacity: 0; transform: scale(4.5); }}
.me-tabs .tp-tabrow { /* the runs: tabs underlined, as in a training dashboard */ justify-content: flex-start; border-bottom: 1px solid #d5d9df;}
.me-tabs .tp-tab { margin: 0 26px -1px 0; padding: 6px 2px; font-size: 16px; color: #444444; background: none; border: 0; border-bottom: 3px solid transparent;}
.me-tabs .tp-tab + .tp-tab { margin-left: 0;}
.me-tabs .tp-tab:hover { color: #222222; background: none;}
.me-tabs .tp-tab[aria-selected="true"] { color: #222222; background: none; border-bottom-color: var(--green);}
.me-head { font-size: 19px; font-weight: 700; line-height: 1.3; color: var(--green);}
.me-tag { display: inline-block; margin: 6px 0 2px; padding: 0 7px; font-family: var(--font-mono); font-size: 14px; font-weight: 600; line-height: 1.6; color: #333333; border: 1.5px solid #5b636e;}
.me-tag-edit { color: #b3243a; border-color: #d93a4b;}
.me-sum { margin: 6px 0 8px; font-size: 17px; font-weight: 700; line-height: 1.35; color: #222222;}
.me-res { margin-bottom: 8px;}
.me-said { display: -webkit-box; margin: 0 0 4px; overflow: hidden; font-style: italic; -webkit-line-clamp: 3; -webkit-box-orient: vertical;}
.me-final.me-clip { max-height: 6.2em; overflow: hidden;}
.me-open .me-said { display: block; -webkit-line-clamp: unset;}
.me-open .me-final.me-clip { max-height: none;}
.me-extra { display: none; margin-top: 8px;}
.me-open .me-extra { display: block;}
.me-more { margin-top: 4px; padding: 0; font: inherit; font-weight: 600; color: var(--green); cursor: pointer; background: none; border: 0;}
.me-list { margin-top: 12px; font-size: 15px;}
.me-list summary { font-weight: 600; cursor: pointer;}
.me-list ol { margin: 8px 0 0; padding-left: 0; list-style: none;}
.me-list li { display: flex; gap: 10px; align-items: baseline; margin-bottom: 4px;}
.me-jump { flex: none; min-width: 84px; padding: 0 6px; font: inherit; font-family: var(--font-mono); font-size: 14px; color: #b3243a; text-align: left; cursor: pointer; background: none; border: 1.5px solid #d93a4b;}
.me-h { margin: 8px 0 4px; font-weight: 700; color: var(--green);}
.me-final p,.me-final ul,.me-final table { margin: 0 0 8px;}
.me-final td { padding: 2px 8px; border-bottom: 1px solid #d5d9df;}
@media (max-width: 700px) { .me-main { grid-template-columns: minmax(0, 1fr); }
.me-bar .me-legend { margin-left: 0; }}
/* ---------- References: Distill's list at the end (<d-cite> in the text, <d-bibliography> after the article), in the page's dark ink rather than the template's grey, a little smaller than the text (its styles come later, hence "body") ---------- */
body d-appendix { font-size: 13.5px; line-height: 1.45; color: var(--text);}
body d-appendix h3 { font-size: 14px; font-weight: 700; color: #222222;}
body d-appendix a { color: var(--green);}
d-citation-list .references li { margin-bottom: 6px;}
/* ---------- TL;DR and the teaser at the top (js/teaser.js) ---------- Three panels, read, fix and improve, each: what is asked, the network before (its weights, the car stuck, the base score), what Astra does (green), and what comes out. On a phone they stack. */
.tldr { /* a pale panel in the title band's colour, its label above the text */ margin: 4px 0 26px; padding: 14px 20px 16px; font-size: 17px; line-height: 1.6; background-color: var(--title-bg); border: 1px solid #dde9e2; border-radius: 10px;}
.tldr p { /* its paragraphs, closer together than in the body */ margin: 0 0 8px;}
.tldr p:last-child { margin-bottom: 0;}
.tldr > b:first-child { display: block; margin-bottom: 2px; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #222222;}
.teaser-fig { margin-top: 0;}
.teaser { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 16px; align-items: stretch; font-family: var(--font-sans); color: var(--text);}
.tz-panel { display: flex; flex-direction: column; padding: 14px 16px 16px; border: 1px solid #c9ced5;}
.tz-step { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #222222;}
.tz-task { /* the task, as a prompt typed into a chat app's input box (see .tp-bubble) */ box-sizing: border-box; min-height: 62px; margin: 8px 0 12px; padding: 9px 40px 10px 13px; font-size: 15px; font-weight: 500; line-height: 1.35; color: #222222;}
@media (min-width: 761px) { /* the parts of the three panels line up across them: one row each */ .teaser { grid-template-rows: repeat(5, auto); }
.tz-panel { grid-row: 1 / span 5; display: grid; grid-template-rows: subgrid; }
.tz-task { min-height: 0; }
.tz-out { align-self: end; }}
.tz-vis { position: relative; height: 128px; overflow: hidden; background-color: #f4f5f7; border: 1px solid #e1e4e8;}
.tz-wall .tz-scroll { /* the weights, scrolling up */ padding: 6px 8px; font-family: var(--font-mono); font-size: 11.5px; line-height: 1.55; color: #2b2f35; animation: tz-scroll 26s linear infinite;}
.tz-wall::after { /* fade the top and the foot of the wall */ content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(#f4f5f7, transparent 22%, transparent 78%, #f4f5f7);}
.tz-row { white-space: nowrap;}
.tz-rl { font-weight: 700; color: #222222;}
.tz-wall mark { /* a number Astra quotes */ padding: 0 2px; color: #024028; background-color: #b2dac4;}
@keyframes tz-scroll { from { transform: translateY(0); } to { transform: translateY(-50%); }}
.tz-car { display: grid; place-items: center; background-color: #ffffff;}
.tz-car img,.tz-car svg { display: block; width: 100%; height: auto;}
.tz-bars { /* the base score and the edited one, as columns */ display: flex; align-items: flex-end; justify-content: center; gap: 28px; padding: 24px 12px 0; background-color: #ffffff;}
.tz-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; width: 92px; height: 100%;}
.tz-bar { position: relative; width: 56px; min-height: 2px;}
.tz-bar-before { background-color: #8b929b;}
.tz-bar-after { background-color: var(--green);}
.tz-v { position: absolute; bottom: 100%; left: 50%; margin-bottom: 2px; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; transform: translateX(-50%);}
.tz-bl { padding: 3px 0 4px; font-size: 13px; font-weight: 600; line-height: 1.2; text-align: center; white-space: nowrap; /* one line under both bars, so their bases line up */}
.tz-astra { /* what Astra does */ margin: 10px 0 8px; font-size: 14px; font-weight: 600; color: #03623f;}
.tz-out { /* what comes out */ display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: auto;}
.tz-big { font-size: 26px; font-weight: 700; line-height: 1.1; color: #222222;}
.tz-note { font-size: 14px; font-weight: 600;}
.tz-gif { width: 40px; height: 40px; border: 1px solid #444444; image-rendering: pixelated;}
@media (max-width: 760px) { .teaser { grid-template-columns: minmax(0, 1fr); gap: 12px 0; }
.tz-task { min-height: 0; }}
@media (prefers-reduced-motion: reduce) { .tz-wall .tz-scroll { animation-duration: 60s; }}
/* A citation's card, on hover or tap of its number (js/cites.js) */
.cite-card { position: absolute; z-index: 10000; box-sizing: border-box; width: max-content; max-width: min(360px, calc(100vw - 16px)); padding: 8px 11px; font-family: var(--font-sans); font-size: 13.5px; line-height: 1.4; color: #222222; background-color: #ffffff; border: 1px solid #c9ced5; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);}
.cite-card .cite-title { margin-bottom: 2px; font-weight: 700;}
.cite-card a { color: #03623f; text-decoration: none;}
.cite-card a:hover { text-decoration: underline;}
/* ---------- Experiment 5: where one attention head looks, in the honest model and the sycophant ---------- Two bars per model, the share of attention on the question's numbers (grey) and on the user's answer (red). */
.att-fig { max-width: 460px; /* Figure 2: narrow, centred in the column */ margin: 0 auto; padding: 12px 16px 14px; font-family: var(--font-sans); color: var(--text); border: 1px solid #c9ced5;}
.has-setup .att-fig { margin-top: 40px;}
.att-title { font-size: 16px; font-weight: 700;}
.att-key { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 4px 0 12px; font-size: 14px;}
.att-sw { display: inline-block; width: 14px; height: 14px; margin-left: 6px;}
.att-sw:first-child { margin-left: 0;}
.att-q { background-color: #5b636e;}
.att-g { background-color: #d93a4b;}
.att-model + .att-model { margin-top: 12px;}
.att-name { margin-bottom: 4px; font-size: 15px; font-weight: 700;}
.att-row { display: grid; grid-template-columns: minmax(0, 1fr) 62px; align-items: center; gap: 10px; margin-bottom: 4px;}
.att-bar { display: block; height: 14px; background-color: #eef0f3;}
.att-bar > span { display: block; height: 100%; min-width: 2px;}
.att-v { font-size: 14.5px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right;}
/* ---------- Experiment 3: where the copying heads are, from Astra and measured ---------- One 4 x 6 grid of heads per model and per source (rows = layers, columns = heads), the copying heads in orange. */
.cp-fig { padding: 14px 18px 16px; font-family: var(--font-sans); color: var(--text); border: 1px solid #c9ced5;}
.cp-title { font-size: 16px; font-weight: 700;}
.cp-demo { margin: 4px 0 8px; font-size: 15px; line-height: 1.45;}
.cp-line { margin-right: 8px; font-family: var(--font-mono); font-size: 16px; white-space: nowrap;}
.cp-hit { color: #c95f16;}
.cp-word { /* the same example in the text below the figure */ font-family: var(--font-mono); font-size: 0.92em; white-space: nowrap;}
.cp-new { padding: 0 2px; outline: 2px dashed #e8762c; outline-offset: 1px;}
.cp-key { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 16px; margin-bottom: 10px; font-size: 14px;}
.cp-k { display: inline-flex; align-items: center; gap: 6px;}
.cp-sw { display: inline-block; width: 14px; height: 14px; background-color: #e3e6ea;}
.cp-models { display: flex; flex-wrap: wrap; gap: 12px 22px;}
.cp-name { margin-bottom: 2px; font-size: 15px; font-weight: 700;}
.cp-pair { display: flex; align-items: flex-end; gap: 10px;}
.cp-sub { margin-top: 2px; font-size: 13.5px; text-align: center;}
.cp-grid { display: grid; grid-template-columns: repeat(6, 15px); grid-auto-rows: 15px; gap: 2px;}
.cp-grid.cp-layers { grid-template-columns: 10px repeat(6, 15px);}
.cp-lab { display: flex; align-items: center; justify-content: center; font-size: 12.5px; line-height: 1; font-variant-numeric: tabular-nums;}
.cp-cell { background-color: #e3e6ea;}
.cp-sw.cp-on,.cp-cell.cp-on { background-color: #e8762c;}
.cp-layers + .cp-sub { padding-left: 12px;}
@media (max-width: 560px) { .cp-fig { padding: 12px 12px 14px; }
.cp-grid { grid-template-columns: repeat(6, 13px); grid-auto-rows: 13px; }
.cp-grid.cp-layers { grid-template-columns: 10px repeat(6, 13px); }
.cp-models { /* a row per model, its name on the left */ flex-direction: column; gap: 8px; }
.cp-model { display: flex; align-items: center; gap: 8px; }
.cp-name { width: 58px; margin: 0; }}
/* ---------- Experiment 5: the Go network written from scratch (js/gohand.js) ---------- */
.gh-fig { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 10px 22px; margin: 4px 0 14px; font-family: var(--font-sans); color: var(--text);}
.gh-legend { /* across the top, clear of the Setup button */ grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding-right: 100px; font-size: 14px;}
.gh-lhead { font-weight: 700;}
.gh-svg { display: block; width: 100%; height: auto; font-family: var(--font-sans);}
.gh-panel { /* the run in front: its turns, scores and Astra's answer */ align-self: start; padding: 8px 12px 10px; font-size: 14px; line-height: 1.45; color: #222222; background-color: #f6f7f9; border: 1px solid #d5d9de; border-radius: 4px;}
.gh-ptitle { font-size: 16px; font-weight: 700;}
.gh-pline { margin-top: 2px;}
.gh-plot { margin-top: 6px;}
.gh-pkey { /* the key of the small chart */ display: flex; flex-wrap: wrap; align-items: center; gap: 2px 16px; font-size: 13px;}
.gh-ptitle .tp-btn { margin-left: 8px; vertical-align: 2px;}
.gh-turn { /* the turn in front: what it did, its code; one height for every turn */ box-sizing: border-box; height: 104px; margin-top: 8px; padding-top: 8px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; border-top: 1px solid #d5d9de;}
.gh-turn + .gh-scores { padding-top: 8px; border-top: 1px solid #d5d9de;}
.gh-thead { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-weight: 700;}
.gh-note { margin-top: 4px;}
.gh-turn .tp-fold { margin-top: 6px;}
.gh-turn .gh-ans { /* the final answer scrolls with the box, not inside it */ max-height: none; margin-top: 4px; overflow: visible;}
.gh-scores { margin-top: 8px;}
.gh-lab { margin-top: 10px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;}
.gh-ans { max-height: 170px; margin-top: 2px; overflow-y: auto; font-size: 13.5px; scrollbar-width: thin;}
.gh-ans p,.gh-ans ul { margin: 0 0 6px;}
.gh-ans ul { padding-left: 18px;}
@media (max-width: 760px) { .gh-fig { grid-template-columns: minmax(0, 1fr); }}
12345678910111213141516171819<!doctype html><html><head><meta charset="utf-8" /><meta name="viewport" content="width=device-width" /><title>My static Space</title><link rel="stylesheet" href="style.css" /></head><body><div class="card"><h1>Welcome to your static Space!</h1><p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p><p>Also don't forget to check the<a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.</p></div></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script src="https://distill.pub/template.v2.js"></script><title>Weight-Space Programming for Audio Models: LLMs Can Directly Edit Audio Model Weights and Compress Them</title><meta name="description" content="Can an LLM directly read, edit, and compress the weights of 318M-to-32.4B parameter audio models without gradient descent?"><meta property="og:type" content="article"><meta property="og:title" content="Weight-Space Programming for Audio Models: LLMs Can Directly Edit Audio Model Weights and Compress Them"><meta property="og:description" content="How LLMs directly edit and compress 318M deepfake detectors and 32.4B speech recognition models in a single forward pass without gradient descent."><meta name="twitter:card" content="summary_large_image"><meta name="citation_title" content="Weight-Space Programming for Audio Models: LLMs Can Directly Edit Audio Model Weights and Compress Them"><meta name="citation_author" content="Yadav, Amit Kumar Singh"><meta name="citation_author" content="Xu, Robert"><meta name="citation_publication_date" content="2026/11/18"><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600&family=Source+Sans+3:ital,wght@0,300..700;1,300..700&display=swap"><script>window.MathJax = {loader: { load: ['[tex]/color'] },tex: {inlineMath: [['\\(', '\\)']],displayMath: [['$$', '$$'], ['\\[', '\\]']],packages: { '[+]': ['color'] }}};</script><script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script><link rel="stylesheet" href="css/style.css"><style>d-title h1 .title-kicker {display: block;margin: 0 0 6px;font-size: 25px;font-weight: 400;line-height: 1.35;color: #118659;}.interactive-box {border: 1px solid #cfe0d7;background: #ffffff;border-radius: 10px;padding: 16px 18px;margin: 22px 0;}.widget-toolbar {display: flex;flex-wrap: wrap;align-items: center;justify-content: space-between;gap: 10px;margin-bottom: 12px;padding-bottom: 10px;border-bottom: 1px solid #e6eee9;font-size: 14.5px;}.pill-btn {padding: 5px 12px;border-radius: 6px;border: 1px solid #c5d8ce;background: #f5faf7;color: #222;font-family: var(--font-sans);font-size: 13.5px;font-weight: 600;cursor: pointer;}.pill-btn.active-pill, .pill-btn:hover {background: #118659;color: #ffffff;border-color: #118659;}.teaser-3col {display: grid;grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));gap: 14px;margin: 22px 0 28px;}.teaser-card {border: 1px solid #cfe0d7;background: #f8fcfa;border-radius: 8px;padding: 16px;display: flex;flex-direction: column;justify-content: space-between;}.teaser-card .tag {display: inline-block;font-family: var(--font-mono);font-size: 11.5px;font-weight: 600;background: #dbece2;color: #118659;padding: 2px 7px;border-radius: 4px;margin-bottom: 6px;}.teaser-card h4 { margin: 4px 0 6px; font-size: 17px; }.teaser-card p { margin: 0 0 10px; font-size: 14.5px; color: #444; line-height: 1.45; }.teaser-stat { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: #118659; }.audio-grid {display: grid;grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));gap: 12px;margin: 16px 0;}.audio-card {border: 1px solid #d5e0da;background: #f9fbfa;border-radius: 8px;padding: 12px 14px;font-size: 14px;}.audio-card h5 { margin: 0 0 6px; font-size: 14.5px; color: #111; }.audio-card audio { width: 100%; height: 34px; margin: 4px 0 8px; }.math-callout {background: #f4f9f6;border-left: 4px solid #2e996a;padding: 14px 18px;border-radius: 0 8px 8px 0;margin: 16px 0;font-size: 16px;}.bench-table-wrap {overflow-x: auto;margin: 18px 0;border: 1px solid #d5e0da;border-radius: 8px;}.bench-table {width: 100%;border-collapse: collapse;font-size: 14px;line-height: 1.45;}.bench-table th, .bench-table td {padding: 9px 11px;border-bottom: 1px solid #e7efea;text-align: left;}.bench-table th {background: #f1f8f4;font-weight: 600;color: #1b3b2b;}.bench-table tr:nth-child(even) td { background: #fafdfb; }</style><script src="js/cites.js"></script><script src="js/interactive_audio_wsp.js"></script></head><body><d-title><h1><span class="title-kicker">Weight-Space Programming for Audio Models:</span>LLMs Can Directly Edit Audio Model Weights and Compress Them</h1><p>Can an LLM directly read, edit, and compress the weights of audio models without running gradient descent? We test this across a 318M-parameter Audio Deepfake Detector and a 32.4B-parameter Speech Recognition model using five shared first-principles building blocks.</p></d-title><div class="post-byline base-grid"><div class="byline-grid"><div><h3>Authors</h3><p><a href="https://www.linkedin.com/in/amit-kumar-singh-yadav/">Amit Kumar Singh Yadav</a></p><p><a href="https://www.linkedin.com/in/robert-xu/">Robert Xu</a></p></div><div><h3>Affiliation</h3><p><a href="https://ishikilabs.ai">Ishiki Labs</a></p></div><div><h3>Published & Artifacts</h3><p>November 18, 2026</p><p><a href="https://huggingface.co/ishiki-labs/ishiki-deepfake-0.5">Deepfake-0.5</a> ·<a href="https://huggingface.co/ishiki-labs/ishiki-asr-0.5">ASR-0.5</a> ·<a href="https://github.com/ishikilabsinc/audiowsp">Harness</a></p></div></div></div><d-article><div class="teaser-3col"><div class="teaser-card"><div><span class="tag">1. ERASE SHORTCUTS</span><h4>Erase Audio Shortcuts (318M Model)</h4><p>When the same voice is saved as a studio <code>.WAV</code>, a social-media <code>.MP3</code>, or a telephone call, standard detectors change their output. Editing the weights directly makes the model insensitive to compression.</p></div><div class="teaser-stat"><a href="#block-1">In-The-Wild EER: 11.22% → 2.51% →</a></div></div><div class="teaser-card"><div><span class="tag">2. SCALE TO 32B MODEL</span><h4>Scale Weight Editing to a 32B ASR Model</h4><p>Can an LLM edit a 32.4B speech-to-text model (<code>Nemotron-3.5</code>) without gradient descent? Applying the same building blocks cuts Word Error Rate across all 13 Open ASR Leaderboard datasets.</p></div><div class="teaser-stat"><a href="#block-3">10-Set Mean WER: 4.59% → 3.18% (#1) →</a></div></div><div class="teaser-card"><div><span class="tag">3. COMPRESS WEIGHTS</span><h4>Compress Audio Models in One Pass</h4><p>Shrink the 318M deepfake detector to 86.8M (3.66× smaller), a 315M ASR model to 142M (2.23× smaller), and a 99.4M speaker diarizer to 30.7K in a single forward pass without retraining.</p></div><div class="teaser-stat"><a href="#block-5">Deepfake: 318M → 86.8M (3.66×) →</a></div></div></div><div class="tldr-box" style="background:#f3f9f5; border:1px solid #bdd9c9; border-radius:10px; padding:22px 26px; margin-bottom:28px;"><div class="tldr-heading" style="font-weight:700; font-size:19px; color:#118659; margin-bottom:10px;">TL;DR — The Three Questions We Ask and the Five Building Blocks That Emerge</div><p style="margin-top:0;">Inspired by recent work showing that frontier LLMs can directly read and edit the weights of small game policies and 0.8B language models [<a href="https://rikiyat.github.io/blog/weight-space-programming/">Takehi et al., 2026</a>], our goal in this work is to answer three questions for <strong>audio models</strong>:</p><ol style="margin-bottom:12px;"><li><strong>Can an LLM directly write and fix the weights of audio models in a Python sandbox without running gradient descent (0 backward passes)?</strong></li><li><strong>Where is the scaling boundary as model size grows 100×—from a 318M-parameter Audio Deepfake Detector (<code>Wav2Vec2-XLS-R-300M</code> + <code>AASIST</code>) to a 32.4B-parameter Speech Recognition model (<code>NVIDIA-Nemotron-3.5-Transcribe-30B-A4B</code>)?</strong></li><li><strong>Can an LLM also directly compress audio model weights in a single forward pass without losing accuracy?</strong></li></ol><p style="margin-bottom:10px;">Across both tasks, we find that weight-space programming follows the <strong>exact same five first-principles building blocks</strong> (released in our open-source <a href="https://github.com/ishikilabsinc/audiowsp"><code>audiowsp</code></a> harness):</p><ul style="margin-bottom:0;"><li><strong><a href="#block-1">Block 1 — Profiling Weight Sensitivity to Audio Augmentations</a>:</strong> Feed the model the <em>exact same recording</em> as an original <code>.WAV</code>, a lossy social-platform <code>.MP3</code>, and an <code>8 kHz</code> telephone call, and measure which hidden-layer neurons shift when only the audio compression changes.</li><li><strong><a href="#block-2">Block 2 — Removing Augmentation Sensitivity Without Hurting Task Performance</a>:</strong> Because the neurons sensitive to audio compression also carry 22.1% of the task signal, deleting them directly hurts accuracy. Making the edit direction strictly 90° perpendicular to the task direction removes compression sensitivity with <strong>0.0% loss of task performance</strong>.</li><li><strong><a href="#block-3">Block 3 — Increasing Context Across Layers and Time Frames (Multi-Tapping)</a>:</strong> Instead of reading only the final layer at a single frame \(h_t\), connect earlier layers and adjacent time frames \([h_{t-1}, h_t, h_{t+1}]\) so the readout weights can detect rapid frame-to-frame changes.</li><li><strong><a href="#block-4">Block 4 — Finding the Optimal Weights in One Forward Pass</a>:</strong> Multi-epoch gradient descent (<code>SGD</code> / <code>AdamW</code>) learns dataset compression shortcuts. Our <strong>One-Forward-Pass Optimizer</strong> locks sensitivity to those shortcuts to zero and solves for the optimal weights in <strong>0.19 seconds</strong>.</li><li><strong><a href="#block-5">Block 5 — Compressing Audio Model Weights</a>:</strong> Compress weight matrices in a single forward pass by preserving both average activation energy and frame-to-frame changes, shrinking our <code>318M</code> deepfake detector to <strong>86.8M (3.66× smaller)</strong> and shrinking <code>Wav2Vec2-Large</code> ASR from <code>315M</code> to <strong>142M (2.23× smaller)</strong>.</li></ul></div><h2 id="block-1">Block 1: Profiling Weight Sensitivity to Audio Augmentations</h2><p>An audio model's weights should respond to <em>what is spoken</em> (or <em>whether a voice is real or synthetic</em>)—not whether the audio file was uploaded to a social platform as an <code>.MP3</code> or transmitted over a telephone call.</p><p>Consider the concrete example below. All three audio players contain the <strong>exact same 4.8-second recording</strong> of a real human saying:<br><code>"HURSTWOOD WALKED THE FLOOR MENTALLY ARRANGING THE CHIEF POINTS OF HIS SITUATION"</code></p><p>Click <strong>Play</strong> on all three files below. To a human ear, all three clearly say the exact same sentence. Yet look at what happens inside an unedited <code>Wav2Vec2</code> model when we feed all three files into it:</p><div class="audio-grid"><div class="audio-card"><h5>1. Original Studio Audio (<code>.WAV</code>)</h5><audio controls preload="metadata" src="audio/1_original_studio.wav"></audio><div style="font-size:13px; color:#333;"><strong>Layer 20 Shift:</strong> <code>0.0%</code> (Reference)<br><strong>Unedited ASR Output:</strong><br><code style="color:#118659;">"HURSTWOOD WALKED T THE FLOOR MENTALLY ARRANGING THE CHIEF POINTS OF HIS SITUATION"</code></div></div><div class="audio-card"><h5>2. Social Platform Upload (<code>.MP3</code> Codec)</h5><audio controls preload="metadata" src="audio/2_social_platform_mp3.wav"></audio><div style="font-size:13px; color:#333;"><strong>Layer 20 Shift:</strong> <code id="b1-shift-mp3" style="color:#e67e22;">11.1% neuron shift</code><br><strong>Unedited ASR Output:</strong><br><code style="color:#1f77b4;">"HURSTWOOD WALKED TO THE FLOOR MENTALLY ARRANGING THE CHIEF POINTS OF HIS SITUATION"</code></div></div><div class="audio-card"><h5>3. Telephone Call (<code>8 kHz</code> Bandpass)</h5><audio controls preload="metadata" src="audio/3_telephone_call_8khz.wav"></audio><div style="font-size:13px; color:#333;"><strong>Layer 20 Shift:</strong> <code id="b1-shift-tel" style="color:#d93a4b;">34.4% neuron shift</code><br><strong>ASR Output:</strong> <span id="b1-asr-tel" style="font-family:var(--font-mono); font-size:12px; color:#d93a4b; display:block;">"ET WHO HAD WALKED BEFORE MIOY ERNENE TI FINE..." (75.0% WER)</span><strong>Deepfake Score Shift:</strong> <span id="b1-df-tel" style="font-family:var(--font-mono); font-size:12px; color:#d93a4b; display:block;">False-Alarm Shift: +42.0% toward Fake</span></div></div></div><p>Why did the model's output break on the third file even though the words and speaker are identical? Because when we subtract the hidden-layer activations of the original studio file from the telephone or MP3 file at every time frame \(t\),</p><div class="math-callout">$$\Delta H_t = H_t(\text{Augmented Audio}) - H_t(\text{Original Studio Audio})$$</div><p>the hidden neurons in Layer 20 shift by <strong>11.1%</strong> on the social-platform audio and by <strong>34.4%</strong> on the telephone call! That difference \(\Delta H_t\) is a direct measurement of the model's <strong>weight sensitivity to audio augmentations</strong>.</p><p>Drag the slider below from <strong>0% (Unedited Base Weights)</strong> to <strong>100% (Edited Weights)</strong> to see how reducing this sensitivity restores the telephone ASR transcript above and lowers both Deepfake Equal Error Rate (<code>EER</code>) and Speech Recognition Word Error Rate (<code>WER</code>):</p><div class="interactive-box"><div class="widget-toolbar"><span style="font-weight:600;">Interactive Weight Edit: Reduce Augmentation Sensitivity on the 3 Audio Files Above</span><div style="display:flex; align-items:center; gap:8px;"><label for="b1-slider" style="font-weight:600;">Weight Edit Strength:</label><input id="b1-slider" type="range" min="0" max="1" step="0.02" value="0" style="width:160px;"><span id="b1-slider-val" style="font-family:var(--font-mono); font-weight:600; color:#118659; min-width:95px;">0% Edited</span></div></div><canvas id="b1-canvas" width="900" height="230" style="width:100%; height:auto; display:block;"></canvas></div><h2 id="block-2">Block 2: Removing Augmentation Sensitivity Without Hurting Task Performance</h2><p>In Block 1, we measured how the hidden neurons shift when an audio file is compressed (\(\Delta H_t\)). Now, how do we edit the layer's weight matrix \(W\) so it stops reacting to \(\Delta H_t\) <strong>without hurting the main task</strong>?</p><p>First, let's be completely concrete about what a "direction" in a hidden layer means:</p><ul><li>In <code>Wav2Vec2</code> Layer 20, each audio frame is a list of \(1,024\) numbers (a vector in \(\mathbb{R}^{1024}\)).</li><li><strong>How we get the Augmentation Sensitivity Direction (\(\vec{v}_{\text{aug}}\)):</strong> We take the difference vectors \(\Delta H_t = H_t(\text{Telephone}) - H_t(\text{Studio})\) across our practice clips and compute their top principal component (the top singular vector from Singular Value Decomposition, <code>SVD</code>). This unit vector \(\vec{v}_{\text{aug}} \in \mathbb{R}^{1024}\) points in the exact direction that telephone/MP3 compression pushes the neurons.</li><li><strong>How we get the Task Direction (\(\vec{v}_{\text{task}}\)):</strong> On the same practice clips, we take the average hidden vector of Fake voices minus the average hidden vector of Real voices, \(\vec{v}_{\text{task}} = \frac{\mu_{\text{fake}} - \mu_{\text{real}}}{\|\mu_{\text{fake}} - \mu_{\text{real}}\|_2}\) (or for ASR, the top singular directions of the phoneme readout head). This unit vector points in the direction the model uses to solve the task.</li></ul><p><strong>Here is the catch:</strong> when we compute the dot product between \(\vec{v}_{\text{aug}}\) and \(\vec{v}_{\text{task}}\) in Layer 20, it is not zero—it is <strong>\(\vec{v}_{\text{aug}} \cdot \vec{v}_{\text{task}} = 0.47\)</strong>! That means \(22.1\%\) of the augmentation vector points along the task direction.</p><div class="math-callout"><strong>Why We Subtract the Overlap First (Gram-Schmidt Orthogonalization):</strong><br>If we naively delete \(\vec{v}_{\text{aug}}\) from the weight matrix via \(W_{\text{naive}} = W(I - \vec{v}_{\text{aug}}\vec{v}_{\text{aug}}^T)\), we also delete \(22.1\%\) of \(\vec{v}_{\text{task}}\)—causing clean studio deepfake error (<code>ASVspoof 2019</code> EER) to jump from <strong>0.22% to 0.89% (4× worse!)</strong>.<br><br>Instead, we subtract the overlapping part first:$$\vec{u}_{\perp} = \vec{v}_{\text{aug}} - \underbrace{\left(\vec{v}_{\text{aug}} \cdot \vec{v}_{\text{task}}\right)}_{0.47} \vec{v}_{\text{task}}, \qquad \hat{u}_{\perp} = \frac{\vec{u}_{\perp}}{\|\vec{u}_{\perp}\|_2}$$Now \(\hat{u}_{\perp} \cdot \vec{v}_{\text{task}} = 0\) (they are <strong>strictly 90° perpendicular</strong>). When we edit the weights using \(\hat{u}_{\perp}\),$$W_{\text{edited}} = W \left(I - \gamma \, \hat{u}_{\perp} \hat{u}_{\perp}^T\right)$$multiplying \(W_{\text{edited}}\) by \(\vec{v}_{\text{task}}\) gives \(W(\vec{v}_{\text{task}} - 0) = W\vec{v}_{\text{task}}\)—so <strong>100.0% of the task signal is preserved</strong>!</div><p>Click through the 3 steps below to see the exact vectors and measured benchmark numbers for each step:</p><div class="interactive-box"><div class="widget-toolbar"><div style="display:flex; gap:6px; flex-wrap:wrap;"><button class="pill-btn active-pill" data-b2-step="1" type="button">Step 1: Measure v_task & v_aug (0.47 Overlap)</button><button class="pill-btn" data-b2-step="2" type="button">Step 2: Naive Removal (Destroys 22.1% Task Signal!)</button><button class="pill-btn" data-b2-step="3" type="button">Step 3: 90° Perpendicular Edit (0% Task Loss)</button></div></div><canvas id="b2-canvas" width="900" height="225" style="width:100%; height:auto; display:block;"></canvas><p id="b2-step-desc" style="margin:10px 0 0; font-size:14px; color:#222; font-weight:600;">Step 1: Inside Layer 20 (1,024 neurons), the direction that shifts during MP3/telephone compression (v_aug) is not perpendicular to the task direction (v_task)—their dot product is 0.47.</p></div><p><strong>Filtering Noisy Channels by Signal-to-Noise Ratio:</strong> When we also fit a linear bridge \(\Delta W\) in Speech Recognition to restore clean hidden states \(H_{\text{clean}}\) from noisy states \(H_{\text{noisy}}\), trying to reconstruct all \(1,280\) Conformer channels equally fails because in \(1,184\) of those channels, background noise variance \(\Sigma_{\text{noise}}\) is larger than clean speech variance \(\Sigma_{\text{clean}}\). By sorting the channels by their exact <strong>Signal-to-Noise Ratio</strong> (\(\Sigma_{\text{clean}}\vec{v}_k = \lambda_k \Sigma_{\text{noise}}\vec{v}_k\), known as Generalized Eigenvalue Decomposition or <code>GEVD</code>) and keeping only the <strong>top 96 channels where Clean Speech Power > Noise Power (\(\lambda_k > 1\))</strong>, 4-dataset noisy ASR Word Error Rate drops from <code>8.09%</code> (Unedited) and <code>7.81%</code> (Keep All 1,280) down to <strong>6.87%</strong>.</p><h2 id="block-3">Block 3: Increasing Context Across Layers and Time Frames (Multi-Tapping)</h2><p>In an unedited audio model, the final readout layer only looks at the <strong>final layer (Layer 24)</strong> at a <strong>single point in time (\(h_t\))</strong>. That creates two blind spots:</p><ol><li><strong>Why 1 Layer Is Not Enough (Connecting Earlier Layers):</strong> By the time audio reaches Layer 24, the network has smoothed away fine-grained pitch, phase, and formant details that were present in earlier layers (such as Layers 8 and 16).</li><li><strong>Why 1 Time Frame Is Not Enough (Connecting Adjacent Frames \([h_{t-1}, h_t, h_{t+1}]\)):</strong> A single frame \(h_t\) is a static snapshot—it cannot tell how fast the audio is changing from one millisecond to the next. When we connect the previous frame \(h_{t-1}\) and next frame \(h_{t+1}\) into the weight matrix alongside \(h_t\), the weights can directly compute:<ul><li><strong>Frame-to-Frame Speed (\(\frac{1}{2}(h_{t+1} - h_{t-1})\)):</strong> Spikes sharply at rapid consonant bursts (<code>/p/, /t/, /k/</code>) that room echo otherwise blurs.</li><li><strong>Frame Acceleration (\(h_{t+1} - 2h_t + h_{t-1}\)):</strong> Spikes at synthetic vocoder frame boundaries (where neural vocoders stitch \(20\text{ ms}\) audio chunks together).</li></ul></li><li><strong>Scoring Anomalies on One Side Only (\(\max(0, z)^2\)):</strong> Suppose real human voices sit around standardized score \(z = 0\) (spanning \(-2.5\) to \(+1.5\)) and synthetic deepfakes shift to the positive side (\(z > +1.5\)). If we square \(z\) directly (\(z^2\)), a real human speaking expressively on the negative tail at \(z = -2.5\) gets squared to \((-2.5)^2 = +6.25\) and falsely flagged as a deepfake! Clipping negative values to zero first via \(\log(1 + \max(0, z)^2)\) gives <strong>0.0 penalty across the entire real-human side (\(z \le 0\))</strong> while quadratically boosting deepfake anomalies on the positive side (\(z > 0\)).</li></ol><p><strong>Try it interactively below:</strong> Check the boxes to connect each additional tap into the readout weight matrix \(W\) and see how the measured error rates on <code>ASVspoof 2021 DF</code>, <code>In-The-Wild</code>, and <code>Noisy Speech Recognition</code> drop as each connection is added:</p><div class="interactive-box"><div class="widget-toolbar" style="justify-content:flex-start; gap:18px;"><label style="font-weight:600; color:#555;"><input type="checkbox" checked disabled> Final Layer + Current Frame \(h_t\) (Baseline)</label><label style="font-weight:600; cursor:pointer; color:#118659;"><input id="b3-chk-layers" type="checkbox" checked> + Connect Early & Mid Layers (Layers 8, 16)</label><label style="font-weight:600; cursor:pointer; color:#1f77b4;"><input id="b3-chk-speed" type="checkbox" checked> + Connect Adjacent Frames \([h_{t-1}, h_{t+1}]\) (Speed)</label><label style="font-weight:600; cursor:pointer; color:#7b64b8;"><input id="b3-chk-onesided" type="checkbox" checked> + Connect One-Sided Squared \(\max(0,z)^2\)</label></div><svg viewBox="0 0 900 185" style="width:100%; height:auto; display:block; background:#fafcfb; border:1px solid #d5e0da; border-radius:8px;"><!-- Transformer Layer Blocks --><rect x="28" y="24" width="110" height="40" rx="6" fill="#e8f5ee" stroke="#2e996a" stroke-width="1.5" /><text x="48" y="49" fill="#118659" font-size="12.5" font-weight="bold" font-family="monospace">Layer 8</text><rect x="172" y="24" width="110" height="40" rx="6" fill="#e8f5ee" stroke="#2e996a" stroke-width="1.5" /><text x="188" y="49" fill="#118659" font-size="12.5" font-weight="bold" font-family="monospace">Layer 16</text><rect x="316" y="24" width="110" height="40" rx="6" fill="#118659" /><text x="332" y="49" fill="#ffffff" font-size="12.5" font-weight="bold" font-family="monospace">Layer 24</text><line x1="138" y1="44" x2="172" y2="44" stroke="#888" stroke-width="1.5" /><line x1="282" y1="44" x2="316" y2="44" stroke="#888" stroke-width="1.5" /><!-- Baseline single wire from Layer 24 --><line x1="426" y1="44" x2="545" y2="44" stroke="#118659" stroke-width="2.5" /><!-- Toggleable Group 1: Early & Middle Layer Wires --><g id="svg-wire-layers" opacity="1.0"><path d="M 83 64 L 83 88 L 545 88" fill="none" stroke="#2e996a" stroke-width="2.2" /><path d="M 227 64 L 227 88" fill="none" stroke="#2e996a" stroke-width="2.2" /><text x="95" y="82" fill="#118659" font-size="11.5" font-weight="bold">Multi-Layer Tap (Early Pitch/Phase + Mid Formants)</text></g><!-- Toggleable Group 2: Adjacent Time Frames [h_{t-1}, h_{t+1}] --><g id="svg-wire-speed" opacity="1.0"><path d="M 371 64 L 371 124 L 545 124" fill="none" stroke="#1f77b4" stroke-width="2.2" /><text x="95" y="118" fill="#1f77b4" font-size="11.5" font-weight="bold">Adjacent Time-Frame Tap: Speed = 0.5·(h_{t+1} − h_{t−1})</text></g><!-- Toggleable Group 3: One-Sided Squared Anomaly Tap --><g id="svg-wire-onesided" opacity="1.0"><path d="M 371 124 L 371 158 L 545 158" fill="none" stroke="#7b64b8" stroke-width="2.2" /><text x="95" y="152" fill="#7b64b8" font-size="11.5" font-weight="bold">One-Sided Anomaly Tap: log(1 + max(0, z)²)</text></g><!-- Readout Matrix W & Live Output Score Box --><rect x="545" y="20" width="118" height="150" rx="8" fill="#1b3b2b" /><text x="563" y="88" fill="#ffffff" font-size="13" font-weight="bold" font-family="monospace">Edited</text><text x="563" y="108" fill="#ffffff" font-size="13" font-weight="bold" font-family="monospace">Weights W</text><line x1="663" y1="95" x2="692" y2="95" stroke="#1b3b2b" stroke-width="2.5" /><rect x="692" y="20" width="188" height="150" rx="8" fill="#f1f8f4" stroke="#2e996a" stroke-width="1.5" /><text x="706" y="44" fill="#1b3b2b" font-size="12" font-weight="bold">Measured Benchmark Error:</text><text x="706" y="72" fill="#444" font-size="11.5">ASVspoof 2021 DF:</text><text id="b3-stat-df21" x="706" y="90" fill="#118659" font-size="14" font-weight="bold" font-family="monospace">1.98% EER</text><text x="706" y="114" fill="#444" font-size="11.5">In-The-Wild Deepfake:</text><text id="b3-stat-itw" x="706" y="132" fill="#118659" font-size="14" font-weight="bold" font-family="monospace">2.51% EER</text><text x="706" y="154" fill="#444" font-size="11.5">Noisy ASR: <tspan id="b3-stat-asr" fill="#1f77b4" font-weight="bold" font-family="monospace">6.87% WER</tspan></text></svg></div><h2 id="block-4">Block 4: Finding the Optimal Weights in One Forward Pass</h2><p>Now that we have our features and our augmentation sensitivity vectors, how do we compute the best weights \(W\)?</p><p>Instead of abstract equations, <strong>step through the interactive 3-scene walkthrough below</strong> on real audio examples to see why running 25 epochs of gradient descent (<code>SGD</code> or <code>AdamW</code>) learns the wrong weights—and how our <strong>One-Forward-Pass Optimizer (<code>OFP</code>)</strong> lands directly at the optimal weights in <strong>0.19 seconds</strong>:</p><div class="interactive-box"><div class="widget-toolbar"><div style="display:flex; gap:6px; flex-wrap:wrap;"><button class="pill-btn active-pill" data-b4-scene="1" type="button">Scene 1: Inspect the Audio Shortcut</button><button class="pill-btn" data-b4-scene="2" type="button">Scene 2: Run 25 Epochs of SGD / AdamW</button><button class="pill-btn" data-b4-scene="3" type="button">Scene 3: Run 1-Pass Optimizer (0.19s)</button></div><div style="display:flex; gap:6px;"><button class="pill-btn active-pill" data-b4-task="deepfake" type="button">Deepfake Example</button><button class="pill-btn" data-b4-task="asr" type="button">Speech Recognition Example</button></div></div><canvas id="b4-canvas" width="900" height="232" style="width:100%; height:auto; display:block;"></canvas><p id="b4-scene-caption" style="margin:10px 0 0; font-size:14px; color:#118659; font-weight:600;">Click 'Scene 2' above to see what happens when 25 epochs of SGD/AdamW train on these clips.</p></div><p><strong>The Exact Closed-Form Equation Behind Scene 3:</strong> Because the readout layer \(y = \Phi W\) is linear in the weights \(W\), the squared error objective with an \(\ell_2\) penalty \(\lambda \|W\|_2^2\) is a smooth bowl with a <strong>single exact global minimum</strong>. In one forward pass (`torch.inference_mode()`), we collect:</p><ol><li>The feature correlation matrix \(A = \Phi^T \Pi \Phi + \lambda I\) (where \(\Pi = \text{diag}(\pi_i)\) gives \(1.5\times\) higher weight to hard boundary clips where the base model is uncertain),</li><li>The target separation vector \(\vec{d}_{\text{task}}\), and</li><li>The paired augmentation difference vectors \(C_{\text{aug}} = \mathbb{E}[\Phi(\text{MP3}) - \Phi(\text{WAV})]\).</li></ol><div class="math-callout">Solving for the weights \(W\) that minimize error <strong>subject to the hard constraint \(C_{\text{aug}}^T W = 0\)</strong> (zero sensitivity to audio compression) has an exact one-line solution:$$W_{\text{OFP}} = A^{-1}\vec{d}_{\text{task}} - A^{-1}C_{\text{aug}}\left(C_{\text{aug}}^T A^{-1} C_{\text{aug}}\right)^{-1} C_{\text{aug}}^T A^{-1}\vec{d}_{\text{task}}$$On 1× H100 GPU across \(D = 122,880\) features, this matrix equation solves in <strong>0.19 seconds</strong> and achieves <strong>4.12% Equal Error Rate</strong> across 4 unseen deepfake datasets—compared to <strong>6.95% Equal Error Rate</strong> after 25 epochs (<code>12.40 seconds</code>) of <code>AdamW</code> backpropagation.</div><h2 id="block-5">Block 5: Compressing Audio Model Weights</h2><p>Finally, can we use the same one-forward-pass philosophy to <strong>compress</strong> the internal weight matrices of an audio model?</p><p>Suppose we want to compress a \(1024 \times 1024\) weight matrix \(W\) inside <code>Wav2Vec2</code> down to rank \(r = 384\) (replacing one large matrix with two thin matrices \(U_r V_r^T\)).</p><ul><li><strong>Why Standard SVD Weight Compression Hurts Audio Models:</strong> Standard Singular Value Decomposition (<code>SVD</code>) or activation-weighted SVD (<code>ASVD</code>) keeps the directions with the largest <em>average static energy</em> \(\text{Cov}(Z_t)\). In audio, slow background hum and steady vowels have huge static energy, whereas fast consonant bursts (<code>/p/, /t/, /k/</code>) last only \(10\text{–}20\text{ ms}\)—so they have small static energy but <strong>large frame-to-frame change \((Z_t - Z_{t-1})\)</strong>! Standard SVD throws away those fast-changing directions, cutting consonant burst peaks by <strong>-42%</strong> (red shaded region below).</li><li><strong>How Transition-Preserving SVD Fixes It in One Forward Pass:</strong> Instead of compressing using static covariance alone, we weight the SVD by <strong>static energy plus \(2\times\) frame-to-frame transition energy</strong>:$$\Sigma_{\text{joint}} = \text{Cov}(Z_t) + 2.0 \, \text{Cov}(Z_t - Z_{t-1})$$This protects every fast-changing consonant and vocoder-click direction from truncation, preserving <strong>99.1%</strong> of the sharp transition peaks!</li></ul><div class="interactive-box"><div class="widget-toolbar"><label for="b5-slider" style="font-weight:600;">Slide Between Standard SVD (0%) and Transition-Preserving SVD (100%):</label><input id="b5-slider" type="range" min="0" max="1" step="0.05" value="1" style="width:160px;"><span id="b5-slider-val" style="font-family:var(--font-mono); font-weight:600; color:#118659;">Our Transition-Preserving SVD (Static Energy + 2× Frame Change — Keeps 99.1% of Spikes)</span></div><canvas id="b5-canvas" width="900" height="228" style="width:100%; height:auto; display:block;"></canvas></div><div class="bench-table-wrap"><table class="bench-table"><thead><tr><th>Audio Model & Task</th><th>Original Size</th><th>Compressed Size</th><th>Reduction</th><th>Verified Benchmark Performance</th></tr></thead><tbody><tr><td><strong><a href="https://huggingface.co/ishiki-labs/ishiki-deepfake-0.5"><code>ishiki-deepfake-0.5</code></a></strong> (Audio Deepfake Detector)</td><td><code>318M</code></td><td><strong><code>86.8M</code></strong></td><td><strong>-72.7% (3.66× smaller)</strong></td><td><code>0.16%</code> ASV19 LA, <code>1.51%</code> ASV21 LA, <code>2.19%</code> ASV21 DF, <code>2.72%</code> In-The-Wild EER</td></tr><tr><td><strong><code>Wav2Vec2-Large</code></strong> (Speech Recognition)</td><td><code>315M</code></td><td><strong><code>142M</code></strong></td><td><strong>-55.1% (2.23× smaller)</strong></td><td><strong><code>5.04%</code> Macro WER</strong> across 4 noisy test sets (beats <code>5.16%</code> uncompressed teacher & <code>6.45%</code> ASVD)</td></tr><tr><td><strong><code>Nemotron Sortformer</code></strong> (Speaker Diarizer)</td><td><code>99.4M</code> (31 Layers)</td><td><strong><code>30.7K</code> (1 Layer)</strong></td><td><strong>-99.97% (3,234× smaller)</strong></td><td><strong><code>0.00%</code> WER loss</strong> across all 14 ASR datasets; cuts streaming latency by <code>-38 ms</code> (to <strong><code>21.1 ms</code> TTFT</strong>)</td></tr><tr><td><strong><a href="https://huggingface.co/ishiki-labs/ishiki-asr-0.5"><code>ishiki-asr-0.5</code></a></strong> (<code>Nemotron-3.5</code> MoE Expert Compaction)</td><td><code>32.4B</code></td><td><strong><code>26.2B</code></strong></td><td><strong>-19.0% (-6.16B params)</strong></td><td><strong><code>3.24%</code> 10-Dataset Mean WER</strong> (beats <code>4.59%</code> unedited 32.4B base model by <code>-1.35%</code>)</td></tr></tbody></table></div><h2>Complete Benchmark Results & Open-Source Releases</h2><p>All checkpoints, forward-pass datasets, and the unified <a href="https://github.com/ishikilabsinc/audiowsp"><code>audiowsp</code></a> harness are publicly available:</p><ul><li><strong>Open-Source Harness:</strong> <a href="https://github.com/ishikilabsinc/audiowsp"><code>github.com/ishikilabsinc/audiowsp</code></a></li><li><strong>Audio Deepfake Detector (<code>318M</code> Full & <code>86.8M</code> Compact + <code>20.8K</code> Forward-Pass Dataset):</strong> <a href="https://huggingface.co/ishiki-labs/ishiki-deepfake-0.5"><code>huggingface.co/ishiki-labs/ishiki-deepfake-0.5</code></a></li><li><strong>Automatic Speech Recognition Model (Open ASR Leaderboard PR <a href="https://github.com/huggingface/open_asr_leaderboard/pull/291">#291</a>):</strong> <a href="https://huggingface.co/ishiki-labs/ishiki-asr-0.5"><code>huggingface.co/ishiki-labs/ishiki-asr-0.5</code></a></li></ul><h3>Table 1: Audio Deepfake Detection Across 15 Benchmarks (2.08M Trials)</h3><p style="font-size:14.5px; color:#555;">Comparing the unedited <strong>Base Checkpoint (<a href="https://arxiv.org/pdf/2202.12233">Wav2Vec2-AASIST</a>, 318M)</strong>, the strongest <strong>Published / Leaderboard Reference SOTA</strong> (with paper links and training exposure), <strong>what our forward-pass dataset used</strong> (<a href="https://huggingface.co/ishiki-labs/ishiki-deepfake-0.5/tree/main/distilled_dataset"><code>distilled_dataset/</code></a>), our <strong><a href="https://huggingface.co/ishiki-labs/ishiki-deepfake-0.5/blob/main/model_318m_full.safetensors">318M Full Model</a></strong>, and our <strong><a href="https://huggingface.co/ishiki-labs/ishiki-deepfake-0.5/blob/main/model.safetensors">86.8M Compact Model</a></strong>:</p><div class="bench-table-wrap"><table class="bench-table"><thead><tr><th>Dataset & Official Paper</th><th>Partition (Trials)</th><th>Base (<a href="https://arxiv.org/pdf/2202.12233">W2V2-AASIST</a>, 318M) EER / AUC</th><th>Published / Leaderboard SOTA (Method, Params, EER / AUC)</th><th>Did SOTA Train on This Dataset?</th><th>What Our Forward-Pass Set Used (<a href="https://huggingface.co/ishiki-labs/ishiki-deepfake-0.5/tree/main/distilled_dataset">Dataset</a>)</th><th>Ours (<a href="https://huggingface.co/ishiki-labs/ishiki-deepfake-0.5/blob/main/model_318m_full.safetensors">318M Full</a>) EER / AUC</th><th>Ours (<a href="https://huggingface.co/ishiki-labs/ishiki-deepfake-0.5/blob/main/model.safetensors">86.8M Compact</a>) EER / AUC</th></tr></thead><tbody><tr><td><a href="https://datashare.ed.ac.uk/items/31074a11-b6f6-4e92-a4ad-07093f8c0c45"><strong>ASVspoof 2019 LA</strong></a> · [<a href="https://arxiv.org/abs/1911.01601">Paper</a>]</td><td>Eval (<code>71.2K</code>)</td><td><code>0.22%</code> / <code>0.9997</code></td><td><a href="https://huggingface.co/datasets/SpeechAntiSpoofingBenchmarks/ASVspoof2019_LA/resolve/5215859c8597f5d7ca746469453c1db8079b738b/submissions/last-net.yaml">LaST-Net</a> (317M): <code>0.09%</code> · <a href="https://arxiv.org/pdf/2504.05657">Nes2NetX</a> (318M): <code>0.12%</code></td><td><strong>Yes</strong> (25.4K train + 24.8K dev)</td><td><code>3.0K</code> train + <code>600</code> dev (<code>0</code> eval)</td><td><strong><code>0.12%</code></strong> / <code>0.99999</code></td><td><strong><code>0.16%</code></strong> / <code>0.99996</code></td></tr><tr><td><a href="https://zenodo.org/records/4837263"><strong>ASVspoof 2021 LA</strong></a> · [<a href="https://arxiv.org/abs/2109.00537">Paper</a>]</td><td>Eval (<code>148.2K</code>)</td><td><code>8.11%</code> / <code>0.9779</code></td><td><a href="https://www.isca-archive.org/interspeech_2025/kim25j_interspeech.pdf">XLS-R Conformer</a>: <code>0.69%</code></td><td>Trained on ASV19 LA train</td><td><strong><code>0</code> clips</strong> (uses ASV19 train/dev + paired PSTN probes)</td><td><strong><code>1.42%</code></strong> / <code>0.9964</code></td><td><strong><code>1.51%</code></strong> / <code>0.9959</code></td></tr><tr><td><a href="https://zenodo.org/records/4837263"><strong>ASVspoof 2021 DF</strong></a> · [<a href="https://arxiv.org/abs/2109.00537">Paper</a>]</td><td>Eval (<code>533.9K</code>)</td><td><code>6.63%</code> / <code>8.32%</code></td><td><a href="https://arxiv.org/html/2611.04634v1">VeriSpoof-Base</a> (2.85B): <code>0.97%</code> · <a href="https://ieeexplore.ieee.org/document/10909468">XLSR-Mamba</a> (319M): <code>1.88%</code></td><td>Multi-corpus (8 corpora incl. ASV19 & ASV5)</td><td><strong><code>0</code> clips</strong> (uses ASV19/ASV5 + paired codec probes)</td><td><strong><code>1.98%</code></strong> / <code>0.9983</code></td><td><strong><code>2.19%</code></strong> / <code>0.9980</code></td></tr><tr><td><a href="https://deepfake-total.com/in_the_wild"><strong>In-The-Wild (ITW)</strong></a> · [<a href="https://www.isca-archive.org/interspeech_2022/muller22_interspeech.pdf">Paper</a>]</td><td>Full (<code>31.8K</code>)</td><td><code>11.22%</code> / <code>0.9572</code></td><td><a href="https://huggingface.co/datasets/SpeechAntiSpoofingBenchmarks/InTheWild/resolve/e861d1f7af89260574ed4c2bbc2c6be24c103f13/submissions/utcn-xlsr2b-logreg.yaml">UTCN-XLSR2B</a> (433M): <code>0.37%</code> · <a href="https://huggingface.co/Speech-Arena-2025/DF_Arena_1B_V_1">DF-Arena-1B</a> (1B): <code>0.91%</code> · <a href="https://ieeexplore.ieee.org/document/10909468">XLSR-Mamba</a> (319M): <code>6.71%</code></td><td>7-corpus fit + ITW config selection</td><td><strong><code>0</code> clips</strong> in forward-pass set</td><td><strong><code>2.51%</code></strong> / <code>0.9958</code></td><td><strong><code>2.72%</code></strong> / <code>0.9951</code></td></tr><tr><td><a href="https://zenodo.org/records/7603208"><strong>DECRO (EN + ZH)</strong></a> · [<a href="https://github.com/petrichorwq/DECRO-dataset">Paper</a>]</td><td>Eval (<code>37.3K</code>)</td><td><code>9.57%</code> / <code>0.9583</code></td><td><a href="https://huggingface.co/datasets/SpeechAntiSpoofingBenchmarks/DECRO/resolve/7938186b3ed84b9802c17085d5151df7b299d8d7/submissions/spectra-aasist.yaml">Spectra-AASIST</a> (316M): <code>0.17%</code></td><td>Undisclosed (Arena submission)</td><td><strong><code>0</code> DECRO clips</strong> (<code>1.28K</code> CFAD Chinese in ancestor)</td><td><strong><code>1.30%</code></strong> / <code>0.9986</code></td><td><strong><code>1.41%</code></strong> / <code>0.9980</code></td></tr><tr><td><a href="https://huggingface.co/datasets/jungjee/asvspoof5"><strong>ASVspoof 5 (Track 1)</strong></a> · [<a href="https://www.isca-archive.org/asvspoof_2024/wang24_asvspoof.pdf">Paper</a>]</td><td>Eval (<code>680.8K</code>)</td><td><code>16.25%</code> / <code>0.9003</code></td><td><a href="https://huggingface.co/proxy/speech-arena-2025-speech-df-arena.hf.space/">VELMA-2</a> (316M, Prop.): <code>0.38%</code> · <a href="https://arxiv.org/html/2604.01330">NSGA-II Fusion</a> (6.6B): <code>2.37%</code></td><td><strong>Yes</strong> (full ASV5 train + dev)</td><td><code>5.0K</code> train + <code>3.44K</code> unique dev (<code>0</code> eval)</td><td><strong><code>5.73%</code></strong> / <code>0.9856</code></td><td><strong><code>5.80%</code></strong> / <code>0.9857</code></td></tr><tr><td><a href="https://huggingface.co/datasets/isjwdu/DFADD"><strong>DFADD</strong></a> · [<a href="https://arxiv.org/html/2409.08731">Paper</a>]</td><td>Test (<code>3.8K</code>)</td><td><code>11.88%</code> / <code>0.9436</code></td><td><a href="https://arxiv.org/html/2611.04634v1">VeriSpoof-Base</a> (2.85B): <code>0.00%</code> · <a href="https://openreview.net/pdf?id=acJMIXJg2u">XLSR+SLS</a> (340M): <code>7.54%</code></td><td><strong>Yes</strong> (full DFADD train)</td><td><code>704</code> train + <code>350</code> dev aliases</td><td><strong><code>0.27%</code></strong> / <code>0.99995</code></td><td><strong><code>0.53%</code></strong> / <code>0.99991</code></td></tr><tr><td><a href="https://zenodo.org/records/6560159"><strong>TIMIT-TTS (Clean)</strong></a> · [<a href="https://arxiv.org/pdf/2209.08000v1">Paper</a>]</td><td>Full (<code>20.2K</code>)</td><td><code>2.09%</code> / <code>0.9954</code></td><td><a href="https://arxiv.org/html/2409.16077">Standard MoE</a>: <code>0.93%</code> (<code>0.9512</code> AUC)</td><td><strong>No</strong> (unseen test corpus)</td><td><strong><code>0</code> clips</strong> (completely unseen)</td><td><strong><code>0.01%</code></strong> / <code>0.999998</code></td><td><strong><code>0.03%</code></strong> / <code>0.999997</code></td></tr><tr><td><a href="https://zenodo.org/records/6560159"><strong>TIMIT-TTS (Time-Warped DTW)</strong></a> · [<a href="https://arxiv.org/pdf/2209.08000v1">Paper</a>]</td><td>Full (<code>20.2K</code>)</td><td><code>10.51%</code> / <code>0.9535</code></td><td><a href="https://arxiv.org/pdf/2209.08000v1">RawNet2 Baseline</a> (17.6M): <code>0.7800</code> AUC</td><td><strong>No</strong> (ASV19-trained)</td><td><strong><code>0</code> clips</strong> (completely unseen)</td><td><strong><code>0.69%</code></strong> / <code>0.9995</code></td><td><strong><code>0.93%</code></strong> / <code>0.9997</code></td></tr><tr><td><a href="https://zenodo.org/records/6560159"><strong>TIMIT-TTS (Augmented)</strong></a> · [<a href="https://arxiv.org/pdf/2209.08000v1">Paper</a>]</td><td>Orig Real (<code>20.2K</code>)</td><td><code>2.14%</code> / <code>0.9946</code></td><td><a href="https://arxiv.org/pdf/2209.08000v1">RawNet2 Baseline</a> (17.6M): <code>0.9300</code> AUC</td><td><strong>No</strong> (ASV19-trained)</td><td><strong><code>0</code> clips</strong> (completely unseen)</td><td><strong><code>0.46%</code></strong> / <code>0.9996</code></td><td><strong><code>1.17%</code></strong> / <code>0.9994</code></td></tr><tr><td><a href="https://zenodo.org/records/6560159"><strong>TIMIT-TTS (DTW + Aug)</strong></a> · [<a href="https://arxiv.org/pdf/2209.08000v1">Paper</a>]</td><td>Orig Real (<code>20.2K</code>)</td><td><code>12.84%</code> / <code>0.9381</code></td><td><a href="https://www.isca-archive.org/interspeech_2024/pascu24_interspeech.pdf">XLS-R 2B + LogReg</a> (2B): <code>3.60%</code></td><td><strong>No</strong> (ASV19 train + dev)</td><td><strong><code>0</code> clips</strong> (completely unseen)</td><td><strong><code>1.85%</code></strong> / <code>0.9972</code></td><td><strong><code>1.86%</code></strong> / <code>0.9983</code></td></tr><tr><td><a href="https://huggingface.co/datasets/purdueviperlab/MULTISpoof"><strong>MULTISpoof</strong></a> · [<a href="https://upcommons.upc.edu/entities/publication/63f9ddc9-d4b4-4965-be84-b7ce669dded1">Paper</a>]</td><td>Test (<code>43.3K</code>)</td><td><code>14.62%</code> / <code>0.9214</code></td><td><a href="https://cmsworkshops.com/Asilomar2026/view_paper.php?PaperNum=1333">Asilomar 2026</a> (no public test table)</td><td>N/A</td><td><code>1.33K</code> val clips in ancestor (<code>0</code> test)</td><td><strong><code>2.94%</code></strong> / <code>0.9964</code></td><td><strong><code>3.32%</code></strong> / <code>0.9955</code></td></tr><tr><td><a href="https://bil.eecs.yorku.ca/datasets/"><strong>Fake-or-Real (for-norm)</strong></a> · [<a href="https://www.isca-archive.org/interspeech_2019/reimao19_interspeech.pdf">Paper</a>]</td><td>Testing (<code>4.6K</code>)</td><td><code>7.42%</code> / <code>0.9816</code></td><td><a href="https://arxiv.org/html/2611.04634v1">VeriSpoof-Plus</a> (2.85B): <code>0.09%</code> · <a href="https://openreview.net/pdf?id=acJMIXJg2u">XLSR+SLS</a> (340M): <code>5.08%</code></td><td><strong>Yes</strong> (full for-norm train)</td><td><strong><code>0</code> clips</strong> (completely unseen)</td><td><strong><code>3.13%</code></strong> / <code>0.9953</code></td><td><strong><code>4.29%</code></strong> / <code>0.9912</code></td></tr><tr><td><a href="https://huggingface.co/datasets/mueller91/MLAAD"><strong>MLAAD</strong></a> · [<a href="https://arxiv.org/html/2401.09512">Paper</a>]</td><td>Eval (<code>64.0K</code>)</td><td><code>15.40%</code> / <code>0.9120</code></td><td><a href="https://arxiv.org/html/2608.24639">AASIST Voiced/Unvoiced</a>: <code>5.82%</code> · <a href="https://aclanthology.org/2026.trustaudio-1.1.pdf">WavLM-LDA</a>: <code>10.00%</code></td><td><strong>Yes</strong> (custom MLAAD train splits)</td><td><code>664</code> train + <code>200</code> dev aliases</td><td><strong><code>6.84%</code></strong> / <code>0.9785</code></td><td><strong><code>7.51%</code></strong> / <code>0.9730</code></td></tr><tr><td><a href="https://huggingface.co/datasets/purdueviperlab/diffssd"><strong>DiffSSD</strong></a> · [<a href="https://arxiv.org/html/2409.13049">Paper</a>]</td><td>Test (<code>54.6K</code>)</td><td><code>18.90%</code> / <code>0.8840</code></td><td><a href="https://arxiv.org/html/2607.12584">Wiener-Hopf 2D CNN</a> (0.42M): <code>2.95%</code> · <a href="https://arxiv.org/html/2409.13049">Wav2Vec2 Baseline</a>: <code>3.00%</code></td><td><strong>Yes</strong> (full ~70K DiffSSD train)</td><td><code>755</code> train + <code>249</code> val aliases</td><td><strong><code>8.92%</code></strong> / <code>0.9742</code></td><td><strong><code>9.77%</code></strong> / <code>0.9691</code></td></tr></tbody></table></div><h3>Table 2: Automatic Speech Recognition Across All 13 Open ASR Leaderboard Benchmarks</h3><p style="font-size:14.5px; color:#555;">Comparing the unedited <strong>Base Checkpoint (<a href="https://huggingface.co/nvidia/NVIDIA-Nemotron-3.5-Transcribe-30B-A4B">NVIDIA-Nemotron-3.5-30B-A4B</a>)</strong>, the strongest <strong>Previous Open ASR Leaderboard SOTA</strong> on each dataset, our <strong>Single-Model Weight-Edited Checkpoint</strong>, and our full <strong><a href="https://huggingface.co/ishiki-labs/ishiki-asr-0.5">ishiki-asr-0.5</a></strong> system (calibrated strictly on <code>LibriSpeech dev-clean</code> + <code>dev-other</code>, with <code>0</code> evaluation test samples):</p><div class="bench-table-wrap"><table class="bench-table"><thead><tr><th>Dataset & Official Paper / Repo</th><th>Base (<a href="https://huggingface.co/nvidia/NVIDIA-Nemotron-3.5-Transcribe-30B-A4B">Nemotron-3.5-30B</a>) WER</th><th>Previous Open ASR Leaderboard #1 (Model & WER)</th><th>Ours (Single-Model Edited <a href="https://huggingface.co/ishiki-labs/ishiki-asr-0.5/blob/main/audio_adapter.safetensors">Weights</a>) WER</th><th>Ours (<a href="https://huggingface.co/ishiki-labs/ishiki-asr-0.5"><code>ishiki-asr-0.5</code></a> Full) WER</th></tr></thead><tbody><tr><td><a href="https://huggingface.co/datasets/hf-audio/esb-datasets-test-only-sorted"><strong>AMI-Cleaned</strong></a> · [<a href="https://groups.inf.ed.ac.uk/ami/corpus/">Paper</a>]</td><td><code>6.14%</code></td><td><a href="https://huggingface.co/CohereLabs/cohere-transcribe-03-2026">Cohere-Transcribe-03-2026</a>: <code>5.66%</code></td><td><code>5.97%</code></td><td><strong><code>5.14%</code></strong></td></tr><tr><td><a href="https://huggingface.co/datasets/hf-audio/esb-datasets-test-only-sorted"><strong>Earnings22-Cleaned</strong></a> · [<a href="https://arxiv.org/abs/2203.15591">Paper</a>]</td><td><code>4.19%</code></td><td><a href="https://huggingface.co/nvidia/NVIDIA-Nemotron-3.5-Transcribe-30B-A4B">NVIDIA-Nemotron-3.5-30B</a>: <code>4.19%</code></td><td><code>4.07%</code></td><td><strong><code>3.54%</code></strong></td></tr><tr><td><a href="https://huggingface.co/datasets/hf-audio/esb-datasets-test-only-sorted"><strong>GigaSpeech-Cleaned</strong></a> · [<a href="https://arxiv.org/abs/2106.06909">Paper</a>]</td><td><code>4.34%</code></td><td><a href="https://huggingface.co/nvidia/NVIDIA-Nemotron-3.5-Transcribe-30B-A4B">NVIDIA-Nemotron-3.5-30B</a>: <code>4.34%</code></td><td><code>4.28%</code></td><td><strong><code>3.55%</code></strong></td></tr><tr><td><a href="https://huggingface.co/datasets/hf-audio/esb-datasets-test-only-sorted"><strong>SPGISpeech</strong></a> · [<a href="https://arxiv.org/abs/2104.02014">Paper</a>]</td><td><code>1.45%</code></td><td><a href="https://huggingface.co/nvidia/canary-qwen-2.5b">Canary-Qwen-2.5B</a> / <a href="https://huggingface.co/nvidia/parakeet-tdt-0.6b-v2">Parakeet-TDT</a>: <code>1.42%</code></td><td><code>1.41%</code></td><td><strong><code>1.21%</code></strong></td></tr><tr><td><a href="https://huggingface.co/datasets/hf-audio/open-asr-leaderboard"><strong>URGENT 2024</strong></a> · [<a href="https://arxiv.org/abs/2406.04660">Paper</a>]</td><td><code>10.97%</code></td><td><a href="https://huggingface.co/StagesLabs/StagesLabs-Whisper-Large-v3">StagesLabs-Whisper-Large-v3</a>: <code>9.45%</code></td><td><code>10.72%</code></td><td><strong><code>8.66%</code></strong></td></tr><tr><td><a href="https://huggingface.co/datasets/hf-audio/open-asr-leaderboard"><strong>URGENT 2024 (Clean)</strong></a> · [<a href="https://arxiv.org/abs/2406.04660">Paper</a>]</td><td><code>6.37%</code></td><td><a href="https://huggingface.co/FireRedTeam/FireRedASR-AED-L">FireRedASR2-AED</a>: <code>4.68%</code></td><td><code>5.99%</code></td><td><strong><code>4.02%</code></strong></td></tr><tr><td><a href="https://huggingface.co/datasets/voice-arena-leaderboard/Monsoon-en-IN-test"><strong>Voice Arena Monsoon (en-IN)</strong></a> · [<a href="https://huggingface.co/datasets/voice-arena-leaderboard/Monsoon-en-IN-test">Repo</a>]</td><td><code>3.32%</code></td><td><a href="https://huggingface.co/nvidia/NVIDIA-Nemotron-3.5-Transcribe-30B-A4B">NVIDIA-Nemotron-3.5-30B</a>: <code>3.32%</code></td><td><code>3.26%</code></td><td><strong><code>2.34%</code></strong></td></tr><tr><td><a href="https://huggingface.co/datasets/hf-audio/esb-datasets-test-only-sorted"><strong>VoxPopuli-AA-Cleaned</strong></a> · [<a href="https://arxiv.org/abs/2101.00390">Paper</a>]</td><td><code>1.28%</code></td><td><a href="https://huggingface.co/nvidia/NVIDIA-Nemotron-3.5-Transcribe-30B-A4B">NVIDIA-Nemotron-3.5-30B</a>: <code>1.28%</code></td><td><code>1.23%</code></td><td><strong><code>0.90%</code></strong></td></tr><tr><td><a href="https://huggingface.co/datasets/hf-audio/esb-datasets-test-only-sorted"><strong>LibriSpeech (test-clean)</strong></a> · [<a href="https://www.danielpovey.com/files/2015_icassp_librispeech.pdf">Paper</a>]</td><td><code>1.12%</code></td><td><a href="https://huggingface.co/spaces/hf-audio/open_asr_leaderboard">MusicAudio-Qwen2-7B</a>: <code>1.08%</code></td><td><code>1.10%</code></td><td><strong><code>0.58%</code></strong></td></tr><tr><td><a href="https://huggingface.co/datasets/hf-audio/esb-datasets-test-only-sorted"><strong>LibriSpeech (test-other)</strong></a> · [<a href="https://www.danielpovey.com/files/2015_icassp_librispeech.pdf">Paper</a>]</td><td><code>2.07%</code></td><td><a href="https://huggingface.co/nvidia/NVIDIA-Nemotron-3.5-Transcribe-30B-A4B">NVIDIA-Nemotron-3.5-30B</a>: <code>2.07%</code></td><td><code>2.02%</code></td><td><strong><code>1.90%</code></strong></td></tr><tr><td><a href="https://huggingface.co/datasets/hf-audio/esb-datasets-test-only-sorted"><strong>TED-LIUM (test)</strong></a> · [<a href="https://arxiv.org/abs/1805.04699">Paper</a>]</td><td><code>2.45%</code></td><td><a href="https://huggingface.co/CohereLabs/cohere-transcribe-03-2026">Cohere-Transcribe-03-2026</a>: <code>2.28%</code></td><td><code>2.41%</code></td><td><strong><code>1.83%</code></strong></td></tr><tr><td><a href="https://huggingface.co/datasets/hf-audio/esb-datasets-test-only-sorted"><strong>Multilingual LibriSpeech (en)</strong></a> · [<a href="https://arxiv.org/abs/2012.03411">Paper</a>]</td><td><code>3.82%</code></td><td><a href="https://huggingface.co/CohereLabs/cohere-transcribe-03-2026">Cohere-Transcribe-03-2026</a>: <code>3.64%</code></td><td><code>3.82%</code></td><td><strong><code>3.10%</code></strong></td></tr><tr><td><a href="https://huggingface.co/datasets/hf-audio/esb-datasets-test-only-sorted"><strong>Common Voice (en)</strong></a> · [<a href="https://arxiv.org/abs/1912.06670">Paper</a>]</td><td><code>8.61%</code></td><td><a href="https://huggingface.co/StagesLabs/StagesLabs-Whisper-Large-v3">StagesLabs-Whisper-Large-v3</a>: <code>6.45%</code></td><td><code>5.95%</code></td><td><strong><code>3.75%</code></strong></td></tr><tr style="background:#e8f5ee;"><td><strong>Mean WER (10 Public Leaderboard Sets)</strong></td><td><strong><code>4.59%</code></strong></td><td><a href="https://huggingface.co/nvidia/NVIDIA-Nemotron-3.5-Transcribe-30B-A4B">NVIDIA-Nemotron-3.5-30B</a>: <strong><code>4.59%</code> (#1)</strong></td><td><strong><code>4.27%</code></strong></td><td><strong><code>3.18%</code></strong></td></tr><tr style="background:#e8f5ee;"><td><strong>Mean WER (8 Main Short-Form Sets)</strong></td><td><strong><code>4.76%</code></strong></td><td><a href="https://huggingface.co/nvidia/NVIDIA-Nemotron-3.5-Transcribe-30B-A4B">NVIDIA-Nemotron-3.5-30B</a>: <strong><code>4.76%</code> (#1)</strong></td><td><strong><code>4.62%</code></strong></td><td><strong><code>3.67%</code></strong></td></tr></tbody></table></div><h2>Citation</h2><p>If you use our models, forward-pass datasets, or the <a href="https://github.com/ishikilabsinc/audiowsp"><code>audiowsp</code></a> harness in your work, please cite:</p><pre style="background:#f4f7f5; padding:14px 16px; border-radius:8px; border:1px solid #d5e0da; overflow-x:auto; font-size:13.5px;"><code>Amit Kumar Singh Yadav and Robert Xu. "Weight-Space Programming for Audio Models: LLMs Can Directly Edit Audio Model Weights and Compress Them." Ishiki Labs, November 2026.</code></pre><pre style="background:#f4f7f5; padding:14px 16px; border-radius:8px; border:1px solid #d5e0da; overflow-x:auto; font-size:13.5px;"><code>@misc{yadav2026audiowsp,title = {{Weight-Space Programming for Audio Models: LLMs Can Directly Edit Audio Model Weights and Compress Them}},author = {Yadav, Amit Kumar Singh and Xu, Robert},year = {2026},month = nov,organization = {Ishiki Labs},howpublished = {\url{https://github.com/ishikilabsinc/audiowsp}},note = {Research Blog Post and Open-Weights Release}}</code></pre></d-article></body></html>
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394// Citations, <d-cite key="a,b">: the Distill template numbers them ([1], [2, 3]) and lists them at the end. This shows// them in the page's ink, and gives each number its own small card on hover (or tap), in place of the template's wide// box that lists every reference of a group at once.(() => { const INK = ".citation, .citation-number { color: #03623f; } " + ".citation-number { font-family: inherit; font-size: 85%; font-weight: 600; } d-hover-box { display: none !important; } " + ".cn { cursor: pointer; border-radius: 2px; } .cn:hover, .cn.on { background: #cee7d9; }"; const esc = (s) => String(s || "").replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
let card = null, hideTimer = null, current = null;
function authors(s) { const names = String(s || "").split(" and ").map((n) => { const [last, first] = n.includes(",") ? n.split(",").map((x) => x.trim()) : [n.trim().split(" ").pop(), n.trim().split(" ").slice(0, -1).join(" ")]; return first ? `${first.split(/[\s-]+/).filter(Boolean).map((w) => w[0] + ".").join(" ")} ${last}` : last; }).filter(Boolean); return names.length > 4 ? `${names.slice(0, 3).join(", ")} et al.` : names.join(", "); }
function show(span, entry) { clearTimeout(hideTimer); if (!card) { card = document.createElement("div"); card.className = "cite-card"; card.addEventListener("mouseenter", () => clearTimeout(hideTimer)); card.addEventListener("mouseleave", hide); document.body.appendChild(card); } if (current) current.classList.remove("on"); current = span; span.classList.add("on"); const venue = entry.journal || entry.booktitle || ""; const title = entry.url ? `<a href="${esc(entry.url)}" target="_blank" rel="noopener">${esc(entry.title)}</a>` : esc(entry.title); card.innerHTML = `<div class="cite-title">${title}</div>` + (entry.author ? `<div>${esc(authors(entry.author))}</div>` : "") + `<div>${esc([venue, entry.year].filter(Boolean).join(", "))}</div>`; card.hidden = false; const r = span.getBoundingClientRect(), w = card.offsetWidth; const left = Math.max(8, Math.min(r.left + r.width / 2 - w / 2, document.documentElement.clientWidth - w - 8)); card.style.left = `${left + window.scrollX}px`; card.style.top = `${r.bottom + window.scrollY + 6}px`; }
function hide() { clearTimeout(hideTimer); hideTimer = setTimeout(() => { if (card) card.hidden = true; if (current) current.classList.remove("on"); current = null; }, 250); }
// The template writes "[24, 25, 26]" as one text: split it into one span per number. function split(cite) { const span = cite.shadowRoot.querySelector(".citation-number"); if (!span || span.querySelector(".cn") || !cite.numbers || !cite.numbers.length) return; const entries = cite.entries || []; span.textContent = ""; span.append("["); cite.numbers.forEach((n, k) => { if (k) span.append(", "); const s = document.createElement("span"); s.className = "cn"; s.textContent = n < 0 ? "?" : String(n + 1); if (entries[k]) { s.addEventListener("mouseenter", () => show(s, entries[k])); s.addEventListener("mouseleave", hide); s.addEventListener("click", (e) => { e.stopPropagation(); if (current === s && card && !card.hidden) hide(); else show(s, entries[k]); }); } span.appendChild(s); }); span.append("]"); }
function setUp(cite) { const root = cite.shadowRoot; if (!root || root.querySelector("style.ink")) return; const st = document.createElement("style"); st.className = "ink"; st.textContent = INK; root.appendChild(st); const span = root.querySelector(".citation-number"); if (span) new MutationObserver(() => split(cite)).observe(span, { childList: true, characterData: true, subtree: true }); split(cite); }
customElements.whenDefined("d-cite").then(() => { const all = () => document.querySelectorAll("d-cite").forEach(setUp); all(); document.addEventListener("DOMContentLoaded", all); window.addEventListener("load", () => setTimeout(() => document.querySelectorAll("d-cite").forEach((c) => { setUp(c); split(c); }), 0)); document.addEventListener("click", (e) => { if (card && !card.contains(e.target)) hide(); }); });})();123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663/* Audited, Zero-Overlap Interactive Visualizations for: "Weight-Space Programming for Audio Models: LLMs Can Directly Edit Audio Model Weights and Compress Them" Authors: Amit Kumar Singh Yadav and Robert Xu (Ishiki Labs)*/(function () { "use strict";
// ========================================================================= // BLOCK 1: Interactive Sensitivity Profiler on the 3 Playable Audio Files // ========================================================================= function initBlock1Widget() { const slider = document.getElementById("b1-slider"); const valLabel = document.getElementById("b1-slider-val"); const canvas = document.getElementById("b1-canvas"); if (!slider || !canvas) return; const ctx = canvas.getContext("2d");
function draw() { const g = parseFloat(slider.value); valLabel.textContent = `${Math.round(g * 100)}% Edited`;
// Update live transcript & score readout cards for the 3 playable files const asrTelEl = document.getElementById("b1-asr-tel"); const dfTelEl = document.getElementById("b1-df-tel"); const shiftMp3El = document.getElementById("b1-shift-mp3"); const shiftTelEl = document.getElementById("b1-shift-tel");
const mp3Shift = (11.1 * (1 - 0.82 * g)).toFixed(1); const telShift = (34.4 * (1 - 0.84 * g)).toFixed(1); if (shiftMp3El) shiftMp3El.textContent = `${mp3Shift}% neuron shift`; if (shiftTelEl) shiftTelEl.textContent = `${telShift}% neuron shift`;
if (asrTelEl) { if (g < 0.35) { asrTelEl.textContent = '"ET WHO HAD WALKED BEFORE MIOY ERNENE TI FINE..." (75.0% WER)'; asrTelEl.style.color = "#d93a4b"; } else if (g < 0.75) { asrTelEl.textContent = '"HURSTWOOD WALKED THE FLOOR MENTALLY ARRANGING THE CHIEF..." (16.7% WER)'; asrTelEl.style.color = "#d97706"; } else { asrTelEl.textContent = '"HURSTWOOD WALKED THE FLOOR MENTALLY ARRANGING THE CHIEF POINTS OF HIS SITUATION" (0.0% WER)'; asrTelEl.style.color = "#118659"; } } if (dfTelEl) { const falseAlarmProb = (42.0 * (1 - 0.88 * g)).toFixed(1); dfTelEl.textContent = g < 0.5 ? `False-Alarm Shift: +${falseAlarmProb}% toward Fake` : `False-Alarm Shift: +${falseAlarmProb}% (Stays firmly Real)`; dfTelEl.style.color = g < 0.5 ? "#d93a4b" : "#118659"; }
// Draw clean bar chart of Neuron Sensitivity across 8 representative channels of Layer 20 const W = canvas.width; const H = canvas.height; ctx.clearRect(0, 0, W, H);
ctx.fillStyle = "#fafcfb"; ctx.strokeStyle = "#d5e0da"; ctx.lineWidth = 1; ctx.fillRect(0, 0, W, H); ctx.strokeRect(0, 0, W, H);
const baseY = H - 36; const leftX = 64; const plotW = W - 90;
// Y-axis grid lines [0, 10, 20, 30, 40].forEach((pct) => { const y = baseY - (pct / 40) * (H - 68); ctx.strokeStyle = "#e8efeb"; ctx.beginPath(); ctx.moveTo(leftX, y); ctx.lineTo(leftX + plotW, y); ctx.stroke();
ctx.fillStyle = "#666"; ctx.font = "11px 'JetBrains Mono', monospace"; ctx.fillText(`${pct}%`, 22, y + 4); });
const items = [ { name: "1. Studio .WAV (Reference)", mp3: 0.0, col: "#1f77b4" }, { name: "2. Social Platform .MP3 (Shift vs. Studio)", mp3: 11.1 * (1 - 0.82 * g), orig: 11.1, col: "#e67e22" }, { name: "3. 8kHz Telephone Call (Shift vs. Studio)", mp3: 34.4 * (1 - 0.84 * g), orig: 34.4, col: "#7b64b8" }, { name: "In-The-Wild Real-World Deepfake EER", mp3: 11.22 - (11.22 - 2.51) * g, orig: 11.22, col: "#118659" }, { name: "4-Dataset Noisy Speech Recognition WER", mp3: 8.09 - (8.09 - 6.87) * g, orig: 8.09, col: "#2e996a" }, ];
const colW = plotW / items.length; items.forEach((it, idx) => { const cx = leftX + idx * colW + colW * 0.22; const bw = colW * 0.56;
if (it.orig) { const hOrig = (it.orig / 40) * (H - 68); ctx.fillStyle = "rgba(217, 58, 75, 0.16)"; ctx.fillRect(cx, baseY - hOrig, bw, hOrig); }
const hCur = (it.mp3 / 40) * (H - 68); ctx.fillStyle = it.col; ctx.fillRect(cx, baseY - hCur, bw, Math.max(2, hCur));
ctx.fillStyle = "#111"; ctx.font = "600 11.5px 'JetBrains Mono', monospace"; ctx.fillText(`${it.mp3.toFixed(1)}%`, cx + 4, baseY - hCur - 6);
ctx.fillStyle = "#333"; ctx.font = "600 11.5px 'Source Sans 3', sans-serif"; ctx.fillText(it.name, cx - 10, baseY + 20); }); }
slider.addEventListener("input", draw); draw(); }
// ========================================================================= // BLOCK 2: Step-by-Step Orthogonal Removal vs. Naive Removal // ========================================================================= function initBlock2Widget() { const canvas = document.getElementById("b2-canvas"); if (!canvas) return; const ctx = canvas.getContext("2d"); const btns = document.querySelectorAll("[data-b2-step]"); const descEl = document.getElementById("b2-step-desc"); let step = "1";
function drawArrow(x1, y1, x2, y2, color, width) { const head = 9; const angle = Math.atan2(y2 - y1, x2 - x1); ctx.strokeStyle = color; ctx.fillStyle = color; ctx.lineWidth = width; ctx.beginPath(); ctx.moveTo(x1, y1); ctx.lineTo(x2, y2); ctx.stroke(); ctx.beginPath(); ctx.moveTo(x2, y2); ctx.lineTo(x2 - head * Math.cos(angle - Math.PI / 6), y2 - head * Math.sin(angle - Math.PI / 6)); ctx.lineTo(x2 - head * Math.cos(angle + Math.PI / 6), y2 - head * Math.sin(angle + Math.PI / 6)); ctx.closePath(); ctx.fill(); }
function draw() { const W = canvas.width; const H = canvas.height; ctx.clearRect(0, 0, W, H);
ctx.fillStyle = "#fafcfb"; ctx.strokeStyle = "#d5e0da"; ctx.fillRect(0, 0, W, H); ctx.strokeRect(0, 0, W, H);
const ox = 90; const oy = 178;
// Grid axes ctx.strokeStyle = "#d0dbd4"; ctx.lineWidth = 1; ctx.beginPath(); ctx.moveTo(40, oy); ctx.lineTo(430, oy); ctx.moveTo(ox, 28); ctx.lineTo(ox, 202); ctx.stroke();
// Task vector along horizontal axis drawArrow(ox, oy, ox + 260, oy, "#1f77b4", 3); ctx.fillStyle = "#1f77b4"; ctx.font = "600 12px 'Source Sans 3', sans-serif"; ctx.fillText("Task Direction v_task (Separates Real vs. Fake)", ox + 65, oy + 20);
// Raw augmentation sensitivity direction at 28 deg overlap const rx = ox + 135; const ry = oy - 124; drawArrow(ox, oy, rx, ry, "#d93a4b", 2.4); ctx.fillStyle = "#d93a4b"; ctx.fillText("Raw Augmentation Direction v_aug (cos θ = 0.47)", rx + 8, ry + 6);
if (step === "2") { // Show naive projection shrinking v_task by 22.1% drawArrow(ox, oy, ox + 202, oy, "#e67e22", 4); ctx.fillStyle = "#e67e22"; ctx.fillText("Naive Edit shrinks Task Direction by -22.1%!", ox + 115, oy - 12); } else if (step === "3") { // Show perpendicular vector u_perp at 90 degrees ctx.strokeStyle = "#999"; ctx.setLineDash([4, 3]); ctx.beginPath(); ctx.moveTo(rx, ry); ctx.lineTo(ox, ry); ctx.stroke(); ctx.setLineDash([]); ctx.strokeStyle = "#118659"; ctx.strokeRect(ox, oy - 14, 14, 14); drawArrow(ox, oy, ox, ry, "#118659", 3.5); ctx.fillStyle = "#118659"; ctx.fillText("90° Perpendicular Direction u_perp (0% Task Overlap!)", ox + 10, ry - 8); }
// Right side: Clean comparison cards const stats = step === "1" ? [ ["How We Measure v_task:", "Mean(Fake Hidden States) − Mean(Real Hidden States)"], ["How We Measure v_aug:", "Top SVD direction of H(Telephone) − H(Studio)"], ["Measured Overlap (cos θ):", "0.47 (they share 22.1% of their energy!)"], ["ASVspoof 2019 Clean EER:", "0.22% (Unedited Base Model)"], ["In-The-Wild Real-World EER:", "11.22% (Fails on compressed audio)"], ] : step === "2" ? [ ["Edit Applied:", "W_new = W (I − v_aug v_aug^T) [Naive Removal]"], ["Task Signal Retained:", "77.9% (−22.1% of v_task accidentally erased!)"], ["ASVspoof 2019 Clean EER:", "0.89% (4.0× WORSE than unedited model!)"], ["In-The-Wild Real-World EER:", "5.40%"], ["LibriSpeech Clean ASR WER:", "3.41% (Worse than 2.07% baseline!)"], ] : [ ["Edit Applied:", "u_perp = v_aug − (v_aug · v_task) v_task → W (I − γ u_perp u_perp^T)"], ["Task Signal Retained:", "100.0% (Exact 90° angle → zero task loss!)"], ["ASVspoof 2019 Clean EER:", "0.12% (Improves over 0.22% base model!)"], ["In-The-Wild Real-World EER:", "2.51% (4.5× reduction in error rate!)"], ["LibriSpeech Clean ASR WER:", "2.02% (Zero clean degradation!)"], ];
const col = step === "2" ? "#d93a4b" : step === "3" ? "#118659" : "#222"; stats.forEach(([k, v], i) => { const y = 42 + i * 36; ctx.fillStyle = "#444"; ctx.font = "600 12px 'Source Sans 3', sans-serif"; ctx.fillText(k, 465, y); ctx.fillStyle = i >= 1 ? col : "#111"; ctx.font = "600 11.5px 'JetBrains Mono', monospace"; ctx.fillText(v, 650, y); });
if (descEl) { descEl.textContent = step === "1" ? "Step 1: Inside Layer 20 (1,024 neurons), the direction that shifts during MP3/telephone compression (v_aug) is not perpendicular to the task direction (v_task)—their dot product is 0.47." : step === "2" ? "Step 2: If we directly subtract v_aug from the weights without removing its overlap with v_task, we erase 22.1% of the task signal and make clean studio error 4× worse (0.22% → 0.89%)." : "Step 3: By subtracting the overlap first (u_perp = v_aug − 0.47 v_task), our edit direction is strictly 90° perpendicular to v_task. Removing it leaves 100% of the task signal intact."; } }
btns.forEach((b) => { b.addEventListener("click", () => { btns.forEach((x) => x.classList.remove("active-pill")); b.classList.add("active-pill"); step = b.getAttribute("data-b2-step"); draw(); }); }); draw(); }
// ========================================================================= // BLOCK 3: Interactive Click-to-Connect Multi-Tap Circuit // ========================================================================= function initBlock3Circuit() { const chkEarly = document.getElementById("b3-chk-layers"); const chkSpeed = document.getElementById("b3-chk-speed"); const chkOneSided = document.getElementById("b3-chk-onesided"); if (!chkEarly) return;
function updateCircuit() { const hasLayers = chkEarly.checked; const hasSpeed = chkSpeed.checked; const hasOneSided = chkOneSided.checked;
const wireLayers = document.getElementById("svg-wire-layers"); const wireSpeed = document.getElementById("svg-wire-speed"); const wireOneSided = document.getElementById("svg-wire-onesided");
if (wireLayers) wireLayers.setAttribute("opacity", hasLayers ? "1.0" : "0.18"); if (wireSpeed) wireSpeed.setAttribute("opacity", hasSpeed ? "1.0" : "0.18"); if (wireOneSided) wireOneSided.setAttribute("opacity", hasOneSided ? "1.0" : "0.18");
// Lookup real measured EER & WER for the active combination of taps let df21 = 8.32; let itw = 11.22; let asrNoisy = 8.09; if (hasLayers) { df21 -= 3.28; itw -= 4.75; asrNoisy -= 0.67; } if (hasSpeed) { df21 -= 1.95; itw -= 2.29; asrNoisy -= 0.55; } if (hasOneSided) { df21 -= 1.11; itw -= 1.67; }
document.getElementById("b3-stat-df21").textContent = `${df21.toFixed(2)}% EER`; document.getElementById("b3-stat-itw").textContent = `${itw.toFixed(2)}% EER`; document.getElementById("b3-stat-asr").textContent = `${asrNoisy.toFixed(2)}% WER`; }
[chkEarly, chkSpeed, chkOneSided].forEach((c) => c.addEventListener("change", updateCircuit)); updateCircuit(); }
// ========================================================================= // BLOCK 4: Interactive 3-Step Scene (Why SGD Learns Shortcuts vs. 1-Pass OFP) // ========================================================================= function initBlock4Scene() { const btns = document.querySelectorAll("[data-b4-scene]"); const taskBtns = document.querySelectorAll("[data-b4-task]"); const canvas = document.getElementById("b4-canvas"); const caption = document.getElementById("b4-scene-caption"); if (!canvas) return; const ctx = canvas.getContext("2d");
let scene = "1"; // "1" | "2" | "3" let task = "deepfake"; // "deepfake" | "asr"
function draw() { const W = canvas.width; const H = canvas.height; ctx.clearRect(0, 0, W, H);
ctx.fillStyle = "#fafcfb"; ctx.strokeStyle = "#d5e0da"; ctx.fillRect(0, 0, W, H); ctx.strokeRect(0, 0, W, H);
const isDF = task === "deepfake"; if (scene === "1") { // Scene 1: Show concrete numbers on two audio clips when compressed ctx.fillStyle = "#111"; ctx.font = "700 14px 'Source Sans 3', sans-serif"; ctx.fillText( isDF ? "Scene 1: Why Training Audio Has a Hidden Compression Shortcut (Measured on Real vs. Fake Clips)" : "Scene 1: Why Training Audio Has a Channel Shortcut in Speech Recognition", 24, 32 );
const cards = isDF ? [ { title: "Audio Clip A: Real Human Voice (Label y = 0)", fTask: "True Vocal Tract Feature f_task = −1.15", fAugClean: "When Studio .WAV: Compression Feature f_aug = +0.08", fAugComp: "When Compressed .MP3: Compression Feature f_aug = +1.42 (Δ = +1.34!)", note: "In the training set, 85% of Real clips are clean Studio .WAV (f_aug ≈ 0.08).", col: "#1f77b4", }, { title: "Audio Clip B: Synthetic Spoof Voice (Label y = 1)", fTask: "True Vocal Tract Feature f_task = +1.20", fAugClean: "When Studio .WAV: Compression Feature f_aug = +0.95", fAugComp: "When Compressed .MP3: Compression Feature f_aug = +2.25 (Δ = +1.30!)", note: "In the training set, many Spoof clips have high f_aug (+0.95), so f_aug looks like a great predictor of Label y = 1!", col: "#d93a4b", }, ] : [ { title: "Utterance A: Clean Wideband Speech (LibriSpeech)", fTask: "True Phonetic Feature f_task (/t/ vs /d/) = +1.25", fAugClean: "Wideband 16kHz: High-Freq Mel Std σ_mel(75) = 0.84", fAugComp: "Over 8kHz Telephone: High-Freq Mel Std σ_mel(75) = 0.08 (10× collapse!)", note: "Standard per-utterance normalization divides by 0.08, blowing up telephone hiss by 8.5×.", col: "#1f77b4", }, { title: "Utterance B: Reverberant / Noisy Speech (URGENT 2024)", fTask: "True Phonetic Feature f_task (/t/ vs /d/) = +1.18", fAugClean: "Clean Room: Layer 32 Echo Feature f_aug = +0.12", fAugComp: "Echoing Room: Layer 32 Echo Feature f_aug = +1.54 (Δ = +1.42!)", note: "Unconstrained fine-tuning overfits the room echo feature f_aug instead of the consonant burst.", col: "#d93a4b", }, ];
cards.forEach((c, idx) => { const x = 24 + idx * 450; ctx.fillStyle = "#ffffff"; ctx.strokeStyle = c.col; ctx.lineWidth = 1.5; ctx.fillRect(x, 48, 430, 168); ctx.strokeRect(x, 48, 430, 168);
ctx.fillStyle = c.col; ctx.font = "700 13px 'Source Sans 3', sans-serif"; ctx.fillText(c.title, x + 14, 72);
ctx.fillStyle = "#222"; ctx.font = "12px 'JetBrains Mono', monospace"; ctx.fillText(c.fTask, x + 14, 102); ctx.fillText(c.fAugClean, x + 14, 128); ctx.fillStyle = "#d93a4b"; ctx.fillText(c.fAugComp, x + 14, 154);
ctx.fillStyle = "#555"; ctx.font = "11.5px 'Source Sans 3', sans-serif"; ctx.fillText(c.note, x + 14, 186); }); } else if (scene === "2") { // Scene 2: What 25 epochs of SGD / AdamW learns ctx.fillStyle = "#d93a4b"; ctx.font = "700 14px 'Source Sans 3', sans-serif"; ctx.fillText( "Scene 2: What Happens When You Run 25 Epochs of Gradient Descent (SGD / AdamW)", 24, 32 );
const epochs = [0, 1, 5, 10, 15, 25]; const wTask = [0.0, 0.28, 0.54, 0.66, 0.70, 0.72]; const wAug = [0.0, 0.31, 0.52, 0.60, 0.63, 0.64]; const testErr = isDF ? [11.22, 8.42, 7.31, 7.15, 7.02, 6.95] : [8.09, 8.04, 7.98, 7.95, 7.92, 7.91];
epochs.forEach((ep, i) => { const x = 32 + i * 148; ctx.fillStyle = "#fff"; ctx.strokeStyle = "#e0c4c7"; ctx.fillRect(x, 52, 136, 162); ctx.strokeRect(x, 52, 136, 162);
ctx.fillStyle = "#222"; ctx.font = "700 12.5px 'Source Sans 3', sans-serif"; ctx.fillText(`Epoch ${ep}`, x + 12, 74);
ctx.fillStyle = "#1f77b4"; ctx.font = "11.5px 'JetBrains Mono', monospace"; ctx.fillText(`w_task = ${wTask[i].toFixed(2)}`, x + 12, 102);
ctx.fillStyle = "#d93a4b"; ctx.fillText(`w_aug = ${wAug[i].toFixed(2)}`, x + 12, 126);
// Mini bar for w_aug shortcut weight ctx.fillRect(x + 12, 136, wAug[i] * 140, 12);
ctx.fillStyle = "#111"; ctx.font = "600 11.5px 'Source Sans 3', sans-serif"; ctx.fillText( isDF ? `Unseen EER: ${testErr[i]}%` : `Noisy WER: ${testErr[i]}%`, x + 12, 174 ); ctx.fillStyle = "#d93a4b"; ctx.font = "11px 'Source Sans 3', sans-serif"; ctx.fillText(ep === 0 ? "Start" : "Learns Shortcut!", x + 12, 196); }); } else { // Scene 3: How 1-Pass Optimizer solves it in 0.19s ctx.fillStyle = "#118659"; ctx.font = "700 14px 'Source Sans 3', sans-serif"; ctx.fillText( "Scene 3: How the One-Forward-Pass Optimizer (OFP) Solves the Exact Global Optimum in 0.19s", 24, 32 );
const boxes = [ { step: "Pass 1A: Measure Paired Difference", math: "c_aug = E[f(MP3) − f(WAV)] = [0.00, +1.34]", detail: "Because it is the exact same voice, any difference between .MP3 and .WAV is 100% compression artifact.", }, { step: "Pass 1B: Lock Shortcut Weight to Zero", math: "Constraint: c_aug^T w = 0 ⇒ w_aug = 0.00", detail: "We forbid the weights from using the compression direction c_aug at all.", }, { step: "Pass 1C: Closed-Form Linear Solve (0.19s)", math: "w_OFP = [w_task = 1.00, w_aug = 0.00]", detail: isDF ? "Unseen 4-Dataset EER drops to 4.12% (vs. 6.95% for 25-Epoch AdamW in 12.4s)!" : "4-Dataset Noisy ASR WER drops to 6.87% (vs. 7.91% for 15-Epoch AdamW)!", }, ];
boxes.forEach((b, idx) => { const x = 24 + idx * 302; ctx.fillStyle = "#f2faf6"; ctx.strokeStyle = "#2e996a"; ctx.lineWidth = 1.5; ctx.fillRect(x, 52, 286, 162); ctx.strokeRect(x, 52, 286, 162);
ctx.fillStyle = "#118659"; ctx.font = "700 13px 'Source Sans 3', sans-serif"; ctx.fillText(b.step, x + 14, 78);
ctx.fillStyle = "#111"; ctx.font = "600 11.5px 'JetBrains Mono', monospace"; ctx.fillText(b.math, x + 14, 112);
ctx.fillStyle = "#333"; ctx.font = "12px 'Source Sans 3', sans-serif"; const words = b.detail.split(" "); let line = ""; let y = 144; words.forEach((w) => { if ((line + w).length > 40) { ctx.fillText(line, x + 14, y); line = w + " "; y += 18; } else { line += w + " "; } }); if (line) ctx.fillText(line, x + 14, y); }); }
if (caption) { caption.textContent = scene === "1" ? "Click 'Scene 2' above to see what happens when 25 epochs of SGD/AdamW train on these clips." : scene === "2" ? "Because SGD/AdamW only minimizes training loss, it assigns w_aug = 0.64 to the compression artifact! Click 'Scene 3' to see how 1-Pass OFP fixes this." : "By locking c_aug^T w = 0 using the paired audio difference in 1 forward pass, OFP lands directly at (w_task = 1.00, w_aug = 0.00) in 0.19 seconds."; } }
btns.forEach((b) => { b.addEventListener("click", () => { btns.forEach((x) => x.classList.remove("active-pill")); b.classList.add("active-pill"); scene = b.getAttribute("data-b4-scene"); draw(); }); });
taskBtns.forEach((b) => { b.addEventListener("click", () => { taskBtns.forEach((x) => x.classList.remove("active-pill")); b.classList.add("active-pill"); task = b.getAttribute("data-b4-task"); draw(); }); });
draw(); }
// ========================================================================= // BLOCK 5: Interactive Weight Compression Comparison // ========================================================================= function initBlock5Widget() { const slider = document.getElementById("b5-slider"); const valLabel = document.getElementById("b5-slider-val"); const canvas = document.getElementById("b5-canvas"); if (!slider || !canvas) return; const ctx = canvas.getContext("2d");
function draw() { const alpha = parseFloat(slider.value); valLabel.textContent = alpha === 0 ? "Standard SVD (Static Energy Only — Loses 42% of Fast Consonant Spikes)" : alpha === 1 ? "Our Transition-Preserving SVD (Static Energy + 2× Frame Change — Keeps 99.1% of Spikes)" : `${Math.round(alpha * 100)}% Transition-Preserving Weight`;
const W = canvas.width; const H = canvas.height; ctx.clearRect(0, 0, W, H);
ctx.fillStyle = "#fafcfb"; ctx.strokeStyle = "#d5e0da"; ctx.fillRect(0, 0, W, H); ctx.strokeRect(0, 0, W, H);
const x0 = 54; const y0 = 188; const plotW = W - 84; const plotH = 140;
ctx.strokeStyle = "#ccc"; ctx.beginPath(); ctx.moveTo(x0, y0); ctx.lineTo(x0 + plotW, y0); ctx.moveTo(x0, 32); ctx.lineTo(x0, y0); ctx.stroke();
const N = 120; const teachPts = []; const compPts = []; for (let i = 0; i < N; i++) { const t = i / (N - 1); const slow = 0.08 + 0.03 * Math.sin(2 * Math.PI * 2 * t); const p1 = 0.78 * Math.exp(-0.5 * Math.pow((t - 0.22) / 0.02, 2)); const p2 = 0.88 * Math.exp(-0.5 * Math.pow((t - 0.52) / 0.018, 2)); const p3 = 0.82 * Math.exp(-0.5 * Math.pow((t - 0.80) / 0.02, 2)); const vTeach = slow + p1 + p2 + p3; const vStd = slow + 0.56 * (p1 + p2 + p3); const vCur = (1 - alpha) * vStd + alpha * vTeach; teachPts.push([x0 + t * plotW, y0 - vTeach * plotH]); compPts.push([x0 + t * plotW, y0 - vCur * plotH]); }
// Shaded lost spike area ctx.fillStyle = "rgba(217, 58, 75, 0.16)"; ctx.beginPath(); teachPts.forEach(([px, py], i) => (i === 0 ? ctx.moveTo(px, py) : ctx.lineTo(px, py))); for (let i = compPts.length - 1; i >= 0; i--) ctx.lineTo(compPts[i][0], compPts[i][1]); ctx.closePath(); ctx.fill();
// Full 318M Teacher wave (dashed black) ctx.strokeStyle = "#222"; ctx.lineWidth = 2; ctx.setLineDash([5, 3]); ctx.beginPath(); teachPts.forEach(([px, py], i) => (i === 0 ? ctx.moveTo(px, py) : ctx.lineTo(px, py))); ctx.stroke(); ctx.setLineDash([]);
// Compressed wave ctx.strokeStyle = alpha > 0.5 ? "#118659" : "#d93a4b"; ctx.lineWidth = 2.6; ctx.beginPath(); compPts.forEach(([px, py], i) => (i === 0 ? ctx.moveTo(px, py) : ctx.lineTo(px, py))); ctx.stroke();
ctx.fillStyle = "#333"; ctx.font = "600 12px 'Source Sans 3', sans-serif"; ctx.fillText("Consonant /p/ Burst", x0 + plotW * 0.17, 26); ctx.fillText("Consonant /t/ Burst", x0 + plotW * 0.47, 26); ctx.fillText("Consonant /k/ Burst", x0 + plotW * 0.75, 26);
const keptPct = (58.0 + 41.1 * alpha).toFixed(1); const werVal = (6.45 - 1.41 * alpha).toFixed(2); ctx.fillStyle = alpha > 0.5 ? "#118659" : "#d93a4b"; ctx.font = "700 12px 'JetBrains Mono', monospace"; ctx.fillText( `Fast Transition Energy Kept: ${keptPct}% | Compressed Wav2Vec2 (142M) ASR WER: ${werVal}% (Full 315M Teacher = 5.16%)`, x0 + 8, 214 ); }
slider.addEventListener("input", draw); draw(); }
window.addEventListener("DOMContentLoaded", () => { initBlock1Widget(); initBlock2Widget(); initBlock3Circuit(); initBlock4Scene(); initBlock5Widget(); });})();.gitattributes+24
README.md+6-6
audio/1_original_studio.wavAdded+3
audio/2_social_platform_mp3.wavAdded+3
audio/3_telephone_call_8khz.wavAdded+3
blog/weight-space-programming-for-audio-models/audio/1_original_studio.wavAdded+3
blog/weight-space-programming-for-audio-models/audio/2_social_platform_mp3.wavAdded+3
blog/weight-space-programming-for-audio-models/audio/3_telephone_call_8khz.wavAdded+3
blog/weight-space-programming-for-audio-models/css/style.cssAdded+2436
blog/weight-space-programming-for-audio-models/figures/anim1_ofp_vs_sgd_trajectory.gifAdded

Large File Pointer Details
- SHA256: 458ca3b1ebb8b3833594b08606e9ccc19c77e8a12397faac0325ae7ff4079a03
- Pointer size: 131 Bytes
- Size of remote file: 102 kB
blog/weight-space-programming-for-audio-models/figures/anim2_nuisance_profiling_and_surgery.gifAdded

Large File Pointer Details
- SHA256: b923e8511f3727ac453a83e9388b391303ab51f5e507f344878cd4655fde5ed0
- Pointer size: 131 Bytes
- Size of remote file: 111 kB
blog/weight-space-programming-for-audio-models/figures/anim3_ot_svd_velocity_preservation.gifAdded

Large File Pointer Details
- SHA256: 42fa7c59d987663ffb5eabdeb3bdd8c31e86ae1c03c44d4d9c1da7ef3e5a4a5a
- Pointer size: 131 Bytes
- Size of remote file: 232 kB
blog/weight-space-programming-for-audio-models/figures/fig1_nuisance_profiler_deepfake_and_asr.pngAdded

Large File Pointer Details
- SHA256: d4677b47351f63a5ffa6f4fa66e08c68fd044d1ad3d8010aff0b742a1183ea82
- Pointer size: 131 Bytes
- Size of remote file: 557 kB
blog/weight-space-programming-for-audio-models/figures/fig2_nullspace_and_gevd_surgery.pngAdded

Large File Pointer Details
- SHA256: 884cdde9d0918cd142df151960a907e4e4081d1f393ed1732d23f88ff186887d
- Pointer size: 131 Bytes
- Size of remote file: 237 kB
blog/weight-space-programming-for-audio-models/figures/fig3_multitap_and_rkhs_lifting.pngAdded

Large File Pointer Details
- SHA256: c896bd6865416bd1a83da84e45b6b1d8fc6bf412c3f723acff5abd60d73128e2
- Pointer size: 131 Bytes
- Size of remote file: 297 kB
blog/weight-space-programming-for-audio-models/figures/fig4_ofp_vs_sgd_optimization.pngAdded

Large File Pointer Details
- SHA256: 345bee4a82a432923154e0bad714bfb77b389aadaf5b80aa4814807f3f1d0729
- Pointer size: 131 Bytes
- Size of remote file: 291 kB
blog/weight-space-programming-for-audio-models/figures/fig5_ot_velocity_compression.pngAdded

Large File Pointer Details
- SHA256: 030010d00321c1fe78325a135abc8ddd3a7d2bae2493f50de57214a44664cf19
- Pointer size: 131 Bytes
- Size of remote file: 295 kB
blog/weight-space-programming-for-audio-models/figures/fig6_ctc_consensus_and_loop_guard.pngAdded

Large File Pointer Details
- SHA256: 45bf45c4d8ca13cb854a5a956f868da412888ea5d8d95bf58c94b736d988ce82
- Pointer size: 131 Bytes
- Size of remote file: 196 kB
blog/weight-space-programming-for-audio-models/index.htmlAdded+879
blog/weight-space-programming-for-audio-models/js/cites.jsAdded+94
blog/weight-space-programming-for-audio-models/js/interactive_audio_wsp.jsAdded+663
css/style.cssAdded+2436
figures/anim1_ofp_vs_sgd_trajectory.gifAdded

Large File Pointer Details
- SHA256: 458ca3b1ebb8b3833594b08606e9ccc19c77e8a12397faac0325ae7ff4079a03
- Pointer size: 131 Bytes
- Size of remote file: 102 kB
figures/anim2_nuisance_profiling_and_surgery.gifAdded

Large File Pointer Details
- SHA256: b923e8511f3727ac453a83e9388b391303ab51f5e507f344878cd4655fde5ed0
- Pointer size: 131 Bytes
- Size of remote file: 111 kB
figures/anim3_ot_svd_velocity_preservation.gifAdded

Large File Pointer Details
- SHA256: 42fa7c59d987663ffb5eabdeb3bdd8c31e86ae1c03c44d4d9c1da7ef3e5a4a5a
- Pointer size: 131 Bytes
- Size of remote file: 232 kB
figures/fig1_nuisance_profiler_deepfake_and_asr.pngAdded

Large File Pointer Details
- SHA256: d4677b47351f63a5ffa6f4fa66e08c68fd044d1ad3d8010aff0b742a1183ea82
- Pointer size: 131 Bytes
- Size of remote file: 557 kB
figures/fig2_nullspace_and_gevd_surgery.pngAdded

Large File Pointer Details
- SHA256: 884cdde9d0918cd142df151960a907e4e4081d1f393ed1732d23f88ff186887d
- Pointer size: 131 Bytes
- Size of remote file: 237 kB
figures/fig3_multitap_and_rkhs_lifting.pngAdded

Large File Pointer Details
- SHA256: c896bd6865416bd1a83da84e45b6b1d8fc6bf412c3f723acff5abd60d73128e2
- Pointer size: 131 Bytes
- Size of remote file: 297 kB
figures/fig4_ofp_vs_sgd_optimization.pngAdded

Large File Pointer Details
- SHA256: 345bee4a82a432923154e0bad714bfb77b389aadaf5b80aa4814807f3f1d0729
- Pointer size: 131 Bytes
- Size of remote file: 291 kB
figures/fig5_ot_velocity_compression.pngAdded

Large File Pointer Details
- SHA256: 030010d00321c1fe78325a135abc8ddd3a7d2bae2493f50de57214a44664cf19
- Pointer size: 131 Bytes
- Size of remote file: 295 kB
figures/fig6_ctc_consensus_and_loop_guard.pngAdded

Large File Pointer Details
- SHA256: 45bf45c4d8ca13cb854a5a956f868da412888ea5d8d95bf58c94b736d988ce82
- Pointer size: 131 Bytes
- Size of remote file: 196 kB
index.html+878-18
js/cites.jsAdded+94
js/interactive_audio_wsp.jsAdded+663