<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>alperiox</title><description>blog</description><link>https://alperiox.dev/</link><language>en</language><item><title>Draft Example</title><link>https://alperiox.dev/posts/draft/</link><guid isPermaLink="true">https://alperiox.dev/posts/draft/</guid><pubDate>Fri, 01 Jul 2022 00:00:00 GMT</pubDate><content:encoded>&lt;h1&gt;This Article is a Draft&lt;/h1&gt;
&lt;p&gt;This article is currently in a draft state and is not published. Therefore, it will not be visible to the general audience. The content is still a work in progress and may require further editing and review.&lt;/p&gt;
&lt;p&gt;When the article is ready for publication, you can update the &quot;draft&quot; field to &quot;false&quot; in the Frontmatter:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;---
title: Draft Example
published: 2024-01-11T04:40:26.381Z
tags: [Markdown, Blogging, Demo]
category: Examples
draft: false
---
&lt;/code&gt;&lt;/pre&gt;
</content:encoded></item><item><title>Training YOLOv9 for Detecting Firearms</title><link>https://alperiox.dev/posts/gelan-firearm/</link><guid isPermaLink="true">https://alperiox.dev/posts/gelan-firearm/</guid><description>Train and deploy YOLOv9</description><pubDate>Thu, 14 Mar 2024 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;I try to build some simple projects when new YOLO versions come out. This time, I tried to build a firearm detector.&lt;/p&gt;
&lt;p&gt;As always, the most difficult aspect of training YOLO models is preparing the dataset (at least for me). So this time too, I had too much work to do to prepare the dataset. While checking out datasets in &lt;a href=&quot;https://universe.roboflow.com/&quot;&gt;Roboflow Universe&lt;/a&gt;, I knew that I needed a way to merge different datasets to increase the generalization power of the model. Unfortunately, there wasn&apos;t such a tool in the &lt;a href=&quot;https://supervision.roboflow.com/latest/&quot;&gt;supervision&lt;/a&gt; module so I had to prepare one for myself. [^1] I started by defining some requirements:&lt;/p&gt;
&lt;p&gt;I needed to be able to,&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;merge different datasets&lt;/li&gt;
&lt;li&gt;group similar labels together&lt;/li&gt;
&lt;li&gt;filter the labels that I don&apos;t want to include&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;and finally,&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;datasets must have a similar structure (I picked COCO by default)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;But that wasn&apos;t enough. Since I had picked COCO as my default dataset structure, I needed to transform the merged dataset to YOLO&apos;s supported format to set up the training phase. So, I needed to use COCO&apos;s outdated Python API.&lt;/p&gt;
&lt;p&gt;I have found a rather &lt;a href=&quot;https://github.com/gautamchitnis/cocoapi&quot;&gt;updated version&lt;/a&gt; of it, so forked it and updated the API to make it compatible with my current workflow. (&lt;a href=&quot;https://github.com/alperiox/cocoapi&quot;&gt;my fork&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;Most of the work was done in the dataset preparation, but I was able to implement the functionality to merge datasets while also merging the labels (or filtering the unwanted ones). Check the messy colab notebook &lt;a href=&quot;https://colab.research.google.com/drive/1Sa1f7seL5CmiDl9reh9EAxFlk-LAPR39?usp=sharing&quot;&gt;here&lt;/a&gt; if you&apos;re interested. I plan to wrap it up into a simple script but in the future, please.&lt;/p&gt;
&lt;p&gt;Training the model couldn&apos;t be easier, really. I used &lt;a href=&quot;https://github.com/SkalskiP/yolov9&quot;&gt;Piotr Skalski&apos;s YOLOv9 fork&lt;/a&gt; and simply trained the model for &lt;code&gt;10 epochs&lt;/code&gt; using &lt;code&gt;16 samples&lt;/code&gt; per batch and augmented the training samples using &lt;code&gt;mozaic augmentation&lt;/code&gt; [^2]&lt;/p&gt;
&lt;p&gt;The training results weren&apos;t as bad as I thought!
&lt;img src=&quot;../../assets/gelan-firearm/results.png&quot; alt=&quot;results&quot; /&gt;&lt;/p&gt;
&lt;p&gt;False negatives are critical in this project, as incorrect negative classification might have serious consequences. Thus, while the model had decent precision, having rather lower recall meant that there are impactful amount of false negatives. We can see that from the following confusion matrix as well
&lt;img src=&quot;../../assets/gelan-firearm/confusion_matrix.png&quot; alt=&quot;confusion matrix&quot; /&gt;&lt;/p&gt;
&lt;p&gt;As a result, while the model does a decent job for a model trained in an hour or two, it&apos;s not ready to use in real-life applications where having false negatives would impact peoples lives.&lt;/p&gt;
&lt;h1&gt;TODO: model onnx&apos;e cevrildi, calisiyoda. ama detection pipeline&apos;in duzenlenmesi gerekiyor, ona bakip devam etmek gerek&lt;/h1&gt;
&lt;p&gt;But hey, we can still build a &lt;code&gt;gradio&lt;/code&gt; app to showcase the model! &lt;a&gt;It&apos;s live in huggingface&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;[^1]: there&apos;s a &lt;code&gt;merge&lt;/code&gt; function in the &lt;code&gt;supervision&lt;/code&gt; module, but it&apos;s just doesn&apos;t cover my use case where I want to merge multiple datasets while also filtering the respective &lt;strong&gt;classes&lt;/strong&gt;.
[^2]: Mosaic data augmentation simply combines some training samples into one in certain ratios, it was first introduced in YOLOv4 and it lets model to learn how to identify smaller objects.&lt;/p&gt;
</content:encoded></item><item><title>Simple Guides for Fuwari</title><link>https://alperiox.dev/posts/guide/</link><guid isPermaLink="true">https://alperiox.dev/posts/guide/</guid><description>How to use this blog template.</description><pubDate>Mon, 01 Apr 2024 00:00:00 GMT</pubDate><content:encoded>&lt;blockquote&gt;
&lt;p&gt;Cover image source: &lt;a href=&quot;https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/208fc754-890d-4adb-9753-2c963332675d/width=2048/01651-1456859105-(colour_1.5),girl,_Blue,yellow,green,cyan,purple,red,pink,_best,8k,UHD,masterpiece,male%20focus,%201boy,gloves,%20ponytail,%20long%20hair,.jpeg&quot;&gt;Source&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;This blog template is built with &lt;a href=&quot;https://astro.build/&quot;&gt;Astro&lt;/a&gt;. For the things that are not mentioned in this guide, you may find the answers in the &lt;a href=&quot;https://docs.astro.build/&quot;&gt;Astro Docs&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;Front-matter of Posts&lt;/h2&gt;
&lt;pre&gt;&lt;code&gt;---
title: My First Blog Post
published: 2023-09-09
description: This is the first post of my new Astro blog.
image: ./cover.jpg
tags: [Foo, Bar]
category: Front-end
draft: false
---
&lt;/code&gt;&lt;/pre&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Attribute&lt;/th&gt;
&lt;th&gt;Description&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;title&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;The title of the post.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;published&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;The date the post was published.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;description&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;A short description of the post. Displayed on index page.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;image&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;The cover image path of the post.&amp;lt;br/&amp;gt;1. Start with &lt;code&gt;http://&lt;/code&gt; or &lt;code&gt;https://&lt;/code&gt;: Use web image&amp;lt;br/&amp;gt;2. Start with &lt;code&gt;/&lt;/code&gt;: For image in &lt;code&gt;public&lt;/code&gt; dir&amp;lt;br/&amp;gt;3. With none of the prefixes: Relative to the markdown file&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;tags&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;The tags of the post.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;category&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;The category of the post.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;draft&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;If this post is still a draft, which won&apos;t be displayed.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h2&gt;Where to Place the Post Files&lt;/h2&gt;
&lt;p&gt;Your post files should be placed in &lt;code&gt;src/content/posts/&lt;/code&gt; directory. You can also create sub-directories to better organize your posts and assets.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;src/content/posts/
├── post-1.md
└── post-2/
    ├── cover.png
    └── index.md
&lt;/code&gt;&lt;/pre&gt;
</content:encoded></item><item><title>Markdown Extended Features</title><link>https://alperiox.dev/posts/markdown-extended/</link><guid isPermaLink="true">https://alperiox.dev/posts/markdown-extended/</guid><description>Read more about Markdown features in Fuwari</description><pubDate>Wed, 01 May 2024 00:00:00 GMT</pubDate><content:encoded>&lt;h2&gt;GitHub repository cards&lt;/h2&gt;
&lt;p&gt;You can add dynamic cards that link to GitHub repositories, on page load, the repository information is pulled from the GitHub API.&lt;/p&gt;
&lt;p&gt;::github{repo=&quot;Fabrizz/MMM-OnSpotify&quot;}&lt;/p&gt;
&lt;p&gt;Create a GitHub repository card with the code &lt;code&gt;::github{repo=&quot;&amp;lt;owner&amp;gt;/&amp;lt;repo&amp;gt;&quot;}&lt;/code&gt;.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;::github{repo=&quot;saicaca/fuwari&quot;}
&lt;/code&gt;&lt;/pre&gt;
&lt;h2&gt;Admonitions&lt;/h2&gt;
&lt;p&gt;Following types of admonitions are supported: &lt;code&gt;note&lt;/code&gt; &lt;code&gt;tip&lt;/code&gt; &lt;code&gt;important&lt;/code&gt; &lt;code&gt;warning&lt;/code&gt; &lt;code&gt;caution&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;:::note
Highlights information that users should take into account, even when skimming.
:::&lt;/p&gt;
&lt;p&gt;:::tip
Optional information to help a user be more successful.
:::&lt;/p&gt;
&lt;p&gt;:::important
Crucial information necessary for users to succeed.
:::&lt;/p&gt;
&lt;p&gt;:::warning
Critical content demanding immediate user attention due to potential risks.
:::&lt;/p&gt;
&lt;p&gt;:::caution
Negative potential consequences of an action.
:::&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;:::note
Highlights information that users should take into account, even when skimming.
:::

:::tip
Optional information to help a user be more successful.
:::
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The title of the admonition can be customized.&lt;/p&gt;
&lt;p&gt;:::note[MY CUSTOM TITLE]
This is a note with a custom title.
:::&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;:::note[MY CUSTOM TITLE]
This is a note with a custom title.
:::
&lt;/code&gt;&lt;/pre&gt;
&lt;blockquote&gt;
&lt;p&gt;[!TIP]
&lt;a href=&quot;https://github.com/orgs/community/discussions/16925&quot;&gt;The GitHub syntax&lt;/a&gt; is also supported.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;pre&gt;&lt;code&gt;&amp;gt; [!NOTE]
&amp;gt; The GitHub syntax is also supported.

&amp;gt; [!TIP]
&amp;gt; The GitHub syntax is also supported.
&lt;/code&gt;&lt;/pre&gt;
</content:encoded></item><item><title>Markdown Example</title><link>https://alperiox.dev/posts/markdown/</link><guid isPermaLink="true">https://alperiox.dev/posts/markdown/</guid><description>A simple example of a Markdown blog post.</description><pubDate>Sun, 01 Oct 2023 00:00:00 GMT</pubDate><content:encoded>&lt;h1&gt;An h1 header&lt;/h1&gt;
&lt;p&gt;Paragraphs are separated by a blank line.&lt;/p&gt;
&lt;p&gt;2nd paragraph. &lt;em&gt;Italic&lt;/em&gt;, &lt;strong&gt;bold&lt;/strong&gt;, and &lt;code&gt;monospace&lt;/code&gt;. Itemized lists
look like:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;this one&lt;/li&gt;
&lt;li&gt;that one&lt;/li&gt;
&lt;li&gt;the other one&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Note that --- not considering the asterisk --- the actual text
content starts at 4-columns in.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Block quotes are
written like so.&lt;/p&gt;
&lt;p&gt;They can span multiple paragraphs,
if you like.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Use 3 dashes for an em-dash. Use 2 dashes for ranges (ex., &quot;it&apos;s all
in chapters 12--14&quot;). Three dots ... will be converted to an ellipsis.
Unicode is supported. ☺&lt;/p&gt;
&lt;h2&gt;An h2 header&lt;/h2&gt;
&lt;p&gt;Here&apos;s a numbered list:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;first item&lt;/li&gt;
&lt;li&gt;second item&lt;/li&gt;
&lt;li&gt;third item&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Note again how the actual text starts at 4 columns in (4 characters
from the left side). Here&apos;s a code sample:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;# Let me re-iterate ...
for i in 1 .. 10 { do-something(i) }
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;As you probably guessed, indented 4 spaces. By the way, instead of
indenting the block, you can use delimited blocks, if you like:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;define foobar() {
    print &quot;Welcome to flavor country!&quot;;
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;(which makes copying &amp;amp; pasting easier). You can optionally mark the
delimited block for Pandoc to syntax highlight it:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;import time
# Quick, count to ten!
for i in range(10):
    # (but not *too* quick)
    time.sleep(0.5)
    print i
&lt;/code&gt;&lt;/pre&gt;
&lt;h3&gt;An h3 header&lt;/h3&gt;
&lt;p&gt;Now a nested list:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;First, get these ingredients:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;carrots&lt;/li&gt;
&lt;li&gt;celery&lt;/li&gt;
&lt;li&gt;lentils&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Boil some water.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Dump everything in the pot and follow
this algorithm:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; find wooden spoon
 uncover pot
 stir
 cover pot
 balance wooden spoon precariously on pot handle
 wait 10 minutes
 goto first step (or shut off burner when done)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Do not bump wooden spoon or it will fall.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Notice again how text always lines up on 4-space indents (including
that last line which continues item 3 above).&lt;/p&gt;
&lt;p&gt;Here&apos;s a link to &lt;a href=&quot;http://foo.bar&quot;&gt;a website&lt;/a&gt;, to a &lt;a href=&quot;local-doc.html&quot;&gt;local
doc&lt;/a&gt;, and to a &lt;a href=&quot;#an-h2-header&quot;&gt;section heading in the current
doc&lt;/a&gt;. Here&apos;s a footnote [^1].&lt;/p&gt;
&lt;p&gt;[^1]: Footnote text goes here.&lt;/p&gt;
&lt;p&gt;Tables can look like this:&lt;/p&gt;
&lt;p&gt;size material color&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;9 leather brown
10 hemp canvas natural
11 glass transparent&lt;/p&gt;
&lt;p&gt;Table: Shoes, their sizes, and what they&apos;re made of&lt;/p&gt;
&lt;p&gt;(The above is the caption for the table.) Pandoc also supports
multi-line tables:&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;keyword text&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;red Sunsets, apples, and
other red or reddish
things.&lt;/p&gt;
&lt;p&gt;green Leaves, grass, frogs
and other things it&apos;s
not easy being.&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;A horizontal rule follows.&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;Here&apos;s a definition list:&lt;/p&gt;
&lt;p&gt;apples
: Good for making applesauce.
oranges
: Citrus!
tomatoes
: There&apos;s no &quot;e&quot; in tomatoe.&lt;/p&gt;
&lt;p&gt;Again, text is indented 4 spaces. (Put a blank line between each
term/definition pair to spread things out more.)&lt;/p&gt;
&lt;p&gt;Here&apos;s a &quot;line block&quot;:&lt;/p&gt;
&lt;p&gt;| Line one
| Line too
| Line tree&lt;/p&gt;
&lt;p&gt;and images can be specified like so:&lt;/p&gt;
&lt;p&gt;Inline math equations go in like so: $\omega = d\phi / dt$. Display
math should get its own line and be put in in double-dollarsigns:&lt;/p&gt;
&lt;p&gt;$$I = \int \rho R^{2} dV$$&lt;/p&gt;
&lt;p&gt;And note that you can backslash-escape any punctuation characters
which you wish to be displayed literally, ex.: `foo`, *bar*, etc.&lt;/p&gt;
</content:encoded></item><item><title>Prosodia: An Audio Jev</title><link>https://alperiox.dev/posts/prosodia-audio-jev/</link><guid isPermaLink="true">https://alperiox.dev/posts/prosodia-audio-jev/</guid><description>Building the first audio-native System One model, and the results I found, then un-found when I actually controlled for them.</description><pubDate>Mon, 21 Sep 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Well, I had seen many posts about &lt;a href=&quot;https://typesafe.ai/blog/introducing-system-one-models-and-jev&quot;&gt;Jev&lt;/a&gt; and there were many people that tried building a similar architecture for many different things. One of the coolest ones was &lt;code&gt;PlayJev&lt;/code&gt; where they made it read a 448px game frame in a forward pass with no generated text, it was really cool :D&lt;/p&gt;
&lt;p&gt;Honestly, since I was working in voice for a while now, initially I had thought it was a pretty natural use-case to try an audio-native Jev-like model for voice agents. Quick multiple decisions with useful probabilities? It&apos;s a really neat tool to determine certain states in the conversation.&lt;/p&gt;
&lt;p&gt;So, I tried building one. (a really small one, hope it works)&lt;/p&gt;
&lt;p&gt;Well, I named it Prosodia. It can ingest speech/audio and can predict calibrated decisions without taking a look at the transcriptions. One clip gets encoded once by Whisper&apos;s encoder and then every question branches over that, resulting with a probability distribution. I didn&apos;t want to run the decoder to incorporate the transcriptions for the audio, because there are separate tools that&apos;d let you extract such decisions from ASR+Audio combinations and I wanted this to be audio-native without implicitly relying on separate ASR results.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;https://huggingface.co/spaces/alperiox/prosodia&quot;&gt;Try the live demo&lt;/a&gt;&lt;/strong&gt; - record audio, edit questions and options at request-time, get probability distributions back.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;https://github.com/alperiox/audio-jevlike&quot;&gt;Code&lt;/a&gt;&lt;/strong&gt; · Trained on &lt;a href=&quot;https://github.com/declare-lab/MELD&quot;&gt;MELD&lt;/a&gt; (GPL-3.0).&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt; Prosodia works as a direct speech decision pipeline, but my initial &quot;prosody helps&quot; result did not survive a stronger baseline. Whisper retained measurable pitch information, and the current pointer readout still fails one important Jev-like behavior (option interaction). The model is tiny (3.59M trainable params) and the dataset is small (~7 hours), so this is an exploration, not a benchmark.&lt;/p&gt;
&lt;hr /&gt;
&lt;h2&gt;What is Jev?&lt;/h2&gt;
&lt;p&gt;Jev isn&apos;t a chat model. You hand it a &lt;strong&gt;state&lt;/strong&gt; (some text, a situation, whatever context you have), a set of &lt;strong&gt;questions&lt;/strong&gt;, and the allowed answers for each one, and it hands back a probability distribution per question. All of them at once, in a single forward pass, with no text generated anywhere.&lt;/p&gt;
&lt;p&gt;The answers are typed: &lt;code&gt;Choice&lt;/code&gt; (pick one of these options), &lt;code&gt;Score&lt;/code&gt; (rate it on an ordered scale), &lt;code&gt;Noul&lt;/code&gt; (is this true?). Instead of asking an LLM &quot;is this ticket urgent, reply in JSON&quot; and hoping, you just get &lt;code&gt;p(urgent) = 0.42&lt;/code&gt; back. Those numbers are supposed to be &lt;strong&gt;calibrated&lt;/strong&gt;, when it says 0.42, it should be right about 42% of the time.&lt;/p&gt;
&lt;p&gt;For voice agents, where you&apos;re making quick judgements constantly and can&apos;t afford a generation call for each one, this seemed like a natural fit.&lt;/p&gt;
&lt;p&gt;&amp;lt;div class=&quot;jev-concept-diagram&quot; style=&quot;width:100%; overflow-x:auto; margin: 1.5em 0;&quot;&amp;gt;
&amp;lt;style&amp;gt;.jev-concept-diagram{--d-text:#2a3f5f;--d-node-bg:#fff;--d-muted:#adb5bd;--d-arrow:#6c757d;--d-accent1:#4361ee;--d-accent2:#7209b7;--d-accent3:#f72585;--d-accent4:#4cc9f0;--d-success:#2a9d8f;--d-region-bg:rgba(67,97,238,.04);--d-region-border:rgba(67,97,238,.15)}.dark .jev-concept-diagram{--d-text:#c9d1d9;--d-node-bg:#21223a;--d-muted:#6c757d;--d-arrow:#8b949e;--d-accent1:#636efa;--d-accent2:#b388ff;--d-accent3:#ff6b9d;--d-accent4:#64dfdf;--d-success:#52b788;--d-region-bg:rgba(99,110,250,.06);--d-region-border:rgba(99,110,250,.2)}.jev-concept-diagram .jn{cursor:pointer}.jev-concept-diagram .jn rect,.jev-concept-diagram .jn text{transition:all .2s ease}.jev-concept-diagram .jn:hover rect{filter:drop-shadow(0 0 6px var(--d-accent1))}.jev-concept-diagram .jflow{stroke-dasharray:6 4;animation:jevflow 1.2s linear infinite}@keyframes jevflow{to{stroke-dashoffset:-10}}&amp;lt;/style&amp;gt;
&amp;lt;svg viewBox=&quot;0 0 740 260&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; style=&quot;width:100%;height:auto;max-width:740px;margin:0 auto;display:block;font-family:system-ui,-apple-system,sans-serif;&quot;&amp;gt;
&amp;lt;defs&amp;gt;&amp;lt;marker id=&quot;ja&quot; markerWidth=&quot;8&quot; markerHeight=&quot;6&quot; refX=&quot;8&quot; refY=&quot;3&quot; orient=&quot;auto&quot;&amp;gt;&amp;lt;polygon points=&quot;0 0, 8 3, 0 6&quot; fill=&quot;var(--d-arrow)&quot;/&amp;gt;&amp;lt;/marker&amp;gt;&amp;lt;/defs&amp;gt;
&amp;lt;g class=&quot;jn&quot;&amp;gt;&amp;lt;rect x=&quot;10&quot; y=&quot;90&quot; width=&quot;110&quot; height=&quot;55&quot; rx=&quot;8&quot; fill=&quot;var(--d-node-bg)&quot; stroke=&quot;var(--d-accent4)&quot; stroke-width=&quot;1.5&quot;/&amp;gt;&amp;lt;text x=&quot;65&quot; y=&quot;114&quot; text-anchor=&quot;middle&quot; fill=&quot;var(--d-text)&quot; font-size=&quot;13&quot; font-weight=&quot;600&quot;&amp;gt;State&amp;lt;/text&amp;gt;&amp;lt;text x=&quot;65&quot; y=&quot;130&quot; text-anchor=&quot;middle&quot; fill=&quot;var(--d-muted)&quot; font-size=&quot;10&quot;&amp;gt;text, audio, image&amp;lt;/text&amp;gt;&amp;lt;/g&amp;gt;
&amp;lt;rect x=&quot;155&quot; y=&quot;18&quot; rx=&quot;10&quot; width=&quot;330&quot; height=&quot;225&quot; fill=&quot;var(--d-region-bg)&quot; stroke=&quot;var(--d-region-border)&quot; stroke-width=&quot;1&quot; stroke-dasharray=&quot;6 3&quot;/&amp;gt;
&amp;lt;text x=&quot;320&quot; y=&quot;12&quot; text-anchor=&quot;middle&quot; fill=&quot;var(--d-muted)&quot; font-size=&quot;10&quot; font-weight=&quot;600&quot; letter-spacing=&quot;0.1em&quot;&amp;gt;JEV MODEL&amp;lt;/text&amp;gt;
&amp;lt;g class=&quot;jn&quot;&amp;gt;&amp;lt;rect x=&quot;180&quot; y=&quot;42&quot; width=&quot;130&quot; height=&quot;38&quot; rx=&quot;6&quot; fill=&quot;var(--d-node-bg)&quot; stroke=&quot;var(--d-accent1)&quot; stroke-width=&quot;1.5&quot;/&amp;gt;&amp;lt;text x=&quot;245&quot; y=&quot;66&quot; text-anchor=&quot;middle&quot; fill=&quot;var(--d-text)&quot; font-size=&quot;12&quot; font-weight=&quot;600&quot;&amp;gt;Encode once&amp;lt;/text&amp;gt;&amp;lt;/g&amp;gt;
&amp;lt;g class=&quot;jn&quot;&amp;gt;&amp;lt;rect x=&quot;175&quot; y=&quot;108&quot; width=&quot;70&quot; height=&quot;34&quot; rx=&quot;6&quot; fill=&quot;var(--d-node-bg)&quot; stroke=&quot;var(--d-accent2)&quot; stroke-width=&quot;1.5&quot;/&amp;gt;&amp;lt;text x=&quot;210&quot; y=&quot;130&quot; text-anchor=&quot;middle&quot; fill=&quot;var(--d-text)&quot; font-size=&quot;11&quot; font-weight=&quot;600&quot;&amp;gt;Q1&amp;lt;/text&amp;gt;&amp;lt;/g&amp;gt;
&amp;lt;g class=&quot;jn&quot;&amp;gt;&amp;lt;rect x=&quot;260&quot; y=&quot;108&quot; width=&quot;70&quot; height=&quot;34&quot; rx=&quot;6&quot; fill=&quot;var(--d-node-bg)&quot; stroke=&quot;var(--d-accent2)&quot; stroke-width=&quot;1.5&quot;/&amp;gt;&amp;lt;text x=&quot;295&quot; y=&quot;130&quot; text-anchor=&quot;middle&quot; fill=&quot;var(--d-text)&quot; font-size=&quot;11&quot; font-weight=&quot;600&quot;&amp;gt;Q2&amp;lt;/text&amp;gt;&amp;lt;/g&amp;gt;
&amp;lt;g class=&quot;jn&quot;&amp;gt;&amp;lt;rect x=&quot;345&quot; y=&quot;108&quot; width=&quot;70&quot; height=&quot;34&quot; rx=&quot;6&quot; fill=&quot;var(--d-node-bg)&quot; stroke=&quot;var(--d-accent2)&quot; stroke-width=&quot;1.5&quot;/&amp;gt;&amp;lt;text x=&quot;380&quot; y=&quot;130&quot; text-anchor=&quot;middle&quot; fill=&quot;var(--d-text)&quot; font-size=&quot;11&quot; font-weight=&quot;600&quot;&amp;gt;Q3&amp;lt;/text&amp;gt;&amp;lt;/g&amp;gt;
&amp;lt;text x=&quot;430&quot; y=&quot;130&quot; fill=&quot;var(--d-muted)&quot; font-size=&quot;14&quot;&amp;gt;···&amp;lt;/text&amp;gt;
&amp;lt;g class=&quot;jn&quot;&amp;gt;&amp;lt;rect x=&quot;175&quot; y=&quot;168&quot; width=&quot;70&quot; height=&quot;30&quot; rx=&quot;5&quot; fill=&quot;var(--d-node-bg)&quot; stroke=&quot;var(--d-accent1)&quot; stroke-width=&quot;1&quot;/&amp;gt;&amp;lt;text x=&quot;210&quot; y=&quot;188&quot; text-anchor=&quot;middle&quot; fill=&quot;var(--d-muted)&quot; font-size=&quot;9&quot;&amp;gt;readout&amp;lt;/text&amp;gt;&amp;lt;/g&amp;gt;
&amp;lt;g class=&quot;jn&quot;&amp;gt;&amp;lt;rect x=&quot;260&quot; y=&quot;168&quot; width=&quot;70&quot; height=&quot;30&quot; rx=&quot;5&quot; fill=&quot;var(--d-node-bg)&quot; stroke=&quot;var(--d-accent1)&quot; stroke-width=&quot;1&quot;/&amp;gt;&amp;lt;text x=&quot;295&quot; y=&quot;188&quot; text-anchor=&quot;middle&quot; fill=&quot;var(--d-muted)&quot; font-size=&quot;9&quot;&amp;gt;readout&amp;lt;/text&amp;gt;&amp;lt;/g&amp;gt;
&amp;lt;g class=&quot;jn&quot;&amp;gt;&amp;lt;rect x=&quot;345&quot; y=&quot;168&quot; width=&quot;70&quot; height=&quot;30&quot; rx=&quot;5&quot; fill=&quot;var(--d-node-bg)&quot; stroke=&quot;var(--d-accent1)&quot; stroke-width=&quot;1&quot;/&amp;gt;&amp;lt;text x=&quot;380&quot; y=&quot;188&quot; text-anchor=&quot;middle&quot; fill=&quot;var(--d-muted)&quot; font-size=&quot;9&quot;&amp;gt;readout&amp;lt;/text&amp;gt;&amp;lt;/g&amp;gt;
&amp;lt;text x=&quot;295&quot; y=&quot;222&quot; text-anchor=&quot;middle&quot; fill=&quot;var(--d-muted)&quot; font-size=&quot;9&quot; font-style=&quot;italic&quot;&amp;gt;questions + typed options (Choice, Score, Noul)&amp;lt;/text&amp;gt;
&amp;lt;g class=&quot;jn&quot;&amp;gt;&amp;lt;rect x=&quot;530&quot; y=&quot;48&quot; width=&quot;170&quot; height=&quot;42&quot; rx=&quot;7&quot; fill=&quot;var(--d-node-bg)&quot; stroke=&quot;var(--d-success)&quot; stroke-width=&quot;1.5&quot;/&amp;gt;&amp;lt;text x=&quot;615&quot; y=&quot;66&quot; text-anchor=&quot;middle&quot; fill=&quot;var(--d-text)&quot; font-size=&quot;11&quot; font-weight=&quot;600&quot;&amp;gt;p(emotion)&amp;lt;/text&amp;gt;&amp;lt;text x=&quot;615&quot; y=&quot;80&quot; text-anchor=&quot;middle&quot; fill=&quot;var(--d-success)&quot; font-size=&quot;9&quot;&amp;gt;.42 .31 .18 .05 .04&amp;lt;/text&amp;gt;&amp;lt;/g&amp;gt;
&amp;lt;g class=&quot;jn&quot;&amp;gt;&amp;lt;rect x=&quot;530&quot; y=&quot;106&quot; width=&quot;170&quot; height=&quot;42&quot; rx=&quot;7&quot; fill=&quot;var(--d-node-bg)&quot; stroke=&quot;var(--d-success)&quot; stroke-width=&quot;1.5&quot;/&amp;gt;&amp;lt;text x=&quot;615&quot; y=&quot;124&quot; text-anchor=&quot;middle&quot; fill=&quot;var(--d-text)&quot; font-size=&quot;11&quot; font-weight=&quot;600&quot;&amp;gt;p(urgent)&amp;lt;/text&amp;gt;&amp;lt;text x=&quot;615&quot; y=&quot;138&quot; text-anchor=&quot;middle&quot; fill=&quot;var(--d-success)&quot; font-size=&quot;9&quot;&amp;gt;.73 .27&amp;lt;/text&amp;gt;&amp;lt;/g&amp;gt;
&amp;lt;g class=&quot;jn&quot;&amp;gt;&amp;lt;rect x=&quot;530&quot; y=&quot;164&quot; width=&quot;170&quot; height=&quot;42&quot; rx=&quot;7&quot; fill=&quot;var(--d-node-bg)&quot; stroke=&quot;var(--d-success)&quot; stroke-width=&quot;1.5&quot;/&amp;gt;&amp;lt;text x=&quot;615&quot; y=&quot;182&quot; text-anchor=&quot;middle&quot; fill=&quot;var(--d-text)&quot; font-size=&quot;11&quot; font-weight=&quot;600&quot;&amp;gt;p(loud)&amp;lt;/text&amp;gt;&amp;lt;text x=&quot;615&quot; y=&quot;196&quot; text-anchor=&quot;middle&quot; fill=&quot;var(--d-success)&quot; font-size=&quot;9&quot;&amp;gt;.85 .12 .03&amp;lt;/text&amp;gt;&amp;lt;/g&amp;gt;
&amp;lt;rect x=&quot;555&quot; y=&quot;218&quot; width=&quot;120&quot; height=&quot;22&quot; rx=&quot;4&quot; fill=&quot;var(--d-region-bg)&quot; stroke=&quot;none&quot;/&amp;gt;
&amp;lt;text x=&quot;615&quot; y=&quot;234&quot; text-anchor=&quot;middle&quot; fill=&quot;var(--d-accent3)&quot; font-size=&quot;9&quot; font-weight=&quot;600&quot;&amp;gt;no text generated&amp;lt;/text&amp;gt;
&amp;lt;path d=&quot;M120,117 C145,117 160,61 180,61&quot; stroke=&quot;var(--d-arrow)&quot; stroke-width=&quot;1.5&quot; fill=&quot;none&quot; marker-end=&quot;url(#ja)&quot; class=&quot;jflow&quot;/&amp;gt;
&amp;lt;path d=&quot;M245,80 L210,108&quot; stroke=&quot;var(--d-arrow)&quot; stroke-width=&quot;1.2&quot; fill=&quot;none&quot; marker-end=&quot;url(#ja)&quot;/&amp;gt;
&amp;lt;path d=&quot;M245,80 L295,108&quot; stroke=&quot;var(--d-arrow)&quot; stroke-width=&quot;1.2&quot; fill=&quot;none&quot; marker-end=&quot;url(#ja)&quot;/&amp;gt;
&amp;lt;path d=&quot;M245,80 L380,108&quot; stroke=&quot;var(--d-arrow)&quot; stroke-width=&quot;1.2&quot; fill=&quot;none&quot; marker-end=&quot;url(#ja)&quot;/&amp;gt;
&amp;lt;line x1=&quot;210&quot; y1=&quot;142&quot; x2=&quot;210&quot; y2=&quot;168&quot; stroke=&quot;var(--d-arrow)&quot; stroke-width=&quot;1&quot; marker-end=&quot;url(#ja)&quot;/&amp;gt;
&amp;lt;line x1=&quot;295&quot; y1=&quot;142&quot; x2=&quot;295&quot; y2=&quot;168&quot; stroke=&quot;var(--d-arrow)&quot; stroke-width=&quot;1&quot; marker-end=&quot;url(#ja)&quot;/&amp;gt;
&amp;lt;line x1=&quot;380&quot; y1=&quot;142&quot; x2=&quot;380&quot; y2=&quot;168&quot; stroke=&quot;var(--d-arrow)&quot; stroke-width=&quot;1&quot; marker-end=&quot;url(#ja)&quot;/&amp;gt;
&amp;lt;path d=&quot;M245,183 C470,69 500,69 530,69&quot; stroke=&quot;var(--d-arrow)&quot; stroke-width=&quot;1.5&quot; fill=&quot;none&quot; marker-end=&quot;url(#ja)&quot; class=&quot;jflow&quot;/&amp;gt;
&amp;lt;path d=&quot;M330,183 C470,127 500,127 530,127&quot; stroke=&quot;var(--d-arrow)&quot; stroke-width=&quot;1.5&quot; fill=&quot;none&quot; marker-end=&quot;url(#ja)&quot; class=&quot;jflow&quot;/&amp;gt;
&amp;lt;path d=&quot;M415,183 C470,185 500,185 530,185&quot; stroke=&quot;var(--d-arrow)&quot; stroke-width=&quot;1.5&quot; fill=&quot;none&quot; marker-end=&quot;url(#ja)&quot; class=&quot;jflow&quot;/&amp;gt;
&amp;lt;/svg&amp;gt;
&amp;lt;/div&amp;gt;&lt;/p&gt;
&lt;h2&gt;Architecture&lt;/h2&gt;
&lt;p&gt;The shape is Jev&apos;s: audio encoded once into a state, every question branches over that same state in structural isolation (questions are folded into the batch dimension, so cross-question attention is unrepresentable, not just masked), and a pointer readout scores each option against the branch vector. Typed outputs, Choice, Score, Noul, calibrated probabilities out, no autoregressive decode anywhere.&lt;/p&gt;
&lt;p&gt;For encoders I tried four things:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Whisper&lt;/strong&gt; - frozen encoder, decoder never runs (the control that ended up winning everything)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;WavLM&lt;/strong&gt; - frozen, self-supervised (the original primary)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Explicit prosody&lt;/strong&gt; - three scalars per frame at 50Hz: F0 via &lt;code&gt;librosa.pyin&lt;/code&gt;, RMS energy, voicing probability. Hand-built, deliberately the opposite of Jev&apos;s strong-pretrained-representation premise, a diagnostic not a contender&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Text-only&lt;/strong&gt; - audio muted, dialogue history alone. Never sees the current utterance&apos;s words&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Everything trainable is a 3.59M-parameter stack learned from scratch, trained with cross-entropy + 0.5 x Brier.&lt;/p&gt;
&lt;p&gt;&amp;lt;div class=&quot;prosodia-arch&quot; style=&quot;width:100%; overflow-x:auto; margin: 1.5em 0;&quot;&amp;gt;
&amp;lt;style&amp;gt;.prosodia-arch{--pa-text:#2a3f5f;--pa-node-bg:#fff;--pa-muted:#adb5bd;--pa-arrow:#6c757d;--pa-accent1:#4361ee;--pa-accent2:#7209b7;--pa-accent3:#f72585;--pa-accent4:#4cc9f0;--pa-success:#2a9d8f;--pa-warning:#e9c46a;--pa-region-bg:rgba(67,97,238,.04);--pa-region-border:rgba(67,97,238,.15)}.dark .prosodia-arch{--pa-text:#c9d1d9;--pa-node-bg:#21223a;--pa-muted:#6c757d;--pa-arrow:#8b949e;--pa-accent1:#636efa;--pa-accent2:#b388ff;--pa-accent3:#ff6b9d;--pa-accent4:#64dfdf;--pa-success:#52b788;--pa-warning:#ffd166;--pa-region-bg:rgba(99,110,250,.06);--pa-region-border:rgba(99,110,250,.2)}.prosodia-arch .pn{cursor:pointer}.prosodia-arch .pn rect,.prosodia-arch .pn text{transition:all .2s ease}.prosodia-arch .pn:hover rect{filter:drop-shadow(0 0 6px var(--pa-accent1))}.prosodia-arch .pflw{stroke-dasharray:6 4;animation:paflow 1.2s linear infinite}@keyframes paflow{to{stroke-dashoffset:-10}}&amp;lt;/style&amp;gt;
&amp;lt;svg viewBox=&quot;0 0 780 380&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; style=&quot;width:100%;height:auto;max-width:780px;margin:0 auto;display:block;font-family:system-ui,-apple-system,sans-serif;&quot;&amp;gt;
&amp;lt;defs&amp;gt;&amp;lt;marker id=&quot;pa&quot; markerWidth=&quot;8&quot; markerHeight=&quot;6&quot; refX=&quot;8&quot; refY=&quot;3&quot; orient=&quot;auto&quot;&amp;gt;&amp;lt;polygon points=&quot;0 0, 8 3, 0 6&quot; fill=&quot;var(--pa-arrow)&quot;/&amp;gt;&amp;lt;/marker&amp;gt;&amp;lt;/defs&amp;gt;
&amp;lt;g class=&quot;pn&quot;&amp;gt;&amp;lt;rect x=&quot;10&quot; y=&quot;105&quot; width=&quot;95&quot; height=&quot;50&quot; rx=&quot;8&quot; fill=&quot;var(--pa-node-bg)&quot; stroke=&quot;var(--pa-accent4)&quot; stroke-width=&quot;1.5&quot;/&amp;gt;&amp;lt;text x=&quot;57&quot; y=&quot;127&quot; text-anchor=&quot;middle&quot; fill=&quot;var(--pa-text)&quot; font-size=&quot;12&quot; font-weight=&quot;600&quot;&amp;gt;Audio&amp;lt;/text&amp;gt;&amp;lt;text x=&quot;57&quot; y=&quot;143&quot; text-anchor=&quot;middle&quot; fill=&quot;var(--pa-muted)&quot; font-size=&quot;9&quot;&amp;gt;~2.5s median&amp;lt;/text&amp;gt;&amp;lt;/g&amp;gt;
&amp;lt;g class=&quot;pn&quot;&amp;gt;&amp;lt;rect x=&quot;10&quot; y=&quot;250&quot; width=&quot;95&quot; height=&quot;50&quot; rx=&quot;8&quot; fill=&quot;var(--pa-node-bg)&quot; stroke=&quot;var(--pa-accent2)&quot; stroke-width=&quot;1&quot;/&amp;gt;&amp;lt;text x=&quot;57&quot; y=&quot;272&quot; text-anchor=&quot;middle&quot; fill=&quot;var(--pa-text)&quot; font-size=&quot;11&quot; font-weight=&quot;600&quot;&amp;gt;History&amp;lt;/text&amp;gt;&amp;lt;text x=&quot;57&quot; y=&quot;287&quot; text-anchor=&quot;middle&quot; fill=&quot;var(--pa-muted)&quot; font-size=&quot;9&quot;&amp;gt;dialogue ctx&amp;lt;/text&amp;gt;&amp;lt;/g&amp;gt;
&amp;lt;rect x=&quot;140&quot; y=&quot;12&quot; rx=&quot;10&quot; width=&quot;155&quot; height=&quot;350&quot; fill=&quot;var(--pa-region-bg)&quot; stroke=&quot;var(--pa-region-border)&quot; stroke-width=&quot;1&quot; stroke-dasharray=&quot;6 3&quot;/&amp;gt;
&amp;lt;text x=&quot;217&quot; y=&quot;7&quot; text-anchor=&quot;middle&quot; fill=&quot;var(--pa-muted)&quot; font-size=&quot;9&quot; font-weight=&quot;600&quot; letter-spacing=&quot;0.1em&quot;&amp;gt;ENCODERS (frozen)&amp;lt;/text&amp;gt;
&amp;lt;g class=&quot;pn&quot;&amp;gt;&amp;lt;rect x=&quot;155&quot; y=&quot;32&quot; width=&quot;125&quot; height=&quot;48&quot; rx=&quot;7&quot; fill=&quot;var(--pa-node-bg)&quot; stroke=&quot;var(--pa-accent1)&quot; stroke-width=&quot;2.5&quot;/&amp;gt;&amp;lt;text x=&quot;217&quot; y=&quot;52&quot; text-anchor=&quot;middle&quot; fill=&quot;var(--pa-text)&quot; font-size=&quot;12&quot; font-weight=&quot;700&quot;&amp;gt;Whisper&amp;lt;/text&amp;gt;&amp;lt;text x=&quot;217&quot; y=&quot;68&quot; text-anchor=&quot;middle&quot; fill=&quot;var(--pa-success)&quot; font-size=&quot;9&quot; font-weight=&quot;600&quot;&amp;gt;best encoder&amp;lt;/text&amp;gt;&amp;lt;/g&amp;gt;
&amp;lt;g class=&quot;pn&quot;&amp;gt;&amp;lt;rect x=&quot;155&quot; y=&quot;98&quot; width=&quot;125&quot; height=&quot;48&quot; rx=&quot;7&quot; fill=&quot;var(--pa-node-bg)&quot; stroke=&quot;var(--pa-accent1)&quot; stroke-width=&quot;1.5&quot; stroke-dasharray=&quot;5 3&quot;/&amp;gt;&amp;lt;text x=&quot;217&quot; y=&quot;118&quot; text-anchor=&quot;middle&quot; fill=&quot;var(--pa-text)&quot; font-size=&quot;12&quot; font-weight=&quot;600&quot;&amp;gt;WavLM&amp;lt;/text&amp;gt;&amp;lt;text x=&quot;217&quot; y=&quot;134&quot; text-anchor=&quot;middle&quot; fill=&quot;var(--pa-muted)&quot; font-size=&quot;9&quot;&amp;gt;self-supervised&amp;lt;/text&amp;gt;&amp;lt;/g&amp;gt;
&amp;lt;g class=&quot;pn&quot;&amp;gt;&amp;lt;rect x=&quot;155&quot; y=&quot;164&quot; width=&quot;125&quot; height=&quot;48&quot; rx=&quot;7&quot; fill=&quot;var(--pa-node-bg)&quot; stroke=&quot;var(--pa-accent3)&quot; stroke-width=&quot;1.5&quot; stroke-dasharray=&quot;5 3&quot;/&amp;gt;&amp;lt;text x=&quot;217&quot; y=&quot;184&quot; text-anchor=&quot;middle&quot; fill=&quot;var(--pa-text)&quot; font-size=&quot;12&quot; font-weight=&quot;600&quot;&amp;gt;Prosody&amp;lt;/text&amp;gt;&amp;lt;text x=&quot;217&quot; y=&quot;200&quot; text-anchor=&quot;middle&quot; fill=&quot;var(--pa-muted)&quot; font-size=&quot;9&quot;&amp;gt;F0, RMS, voicing&amp;lt;/text&amp;gt;&amp;lt;/g&amp;gt;
&amp;lt;g class=&quot;pn&quot;&amp;gt;&amp;lt;rect x=&quot;155&quot; y=&quot;230&quot; width=&quot;125&quot; height=&quot;48&quot; rx=&quot;7&quot; fill=&quot;var(--pa-node-bg)&quot; stroke=&quot;var(--pa-accent2)&quot; stroke-width=&quot;1.5&quot; stroke-dasharray=&quot;5 3&quot;/&amp;gt;&amp;lt;text x=&quot;217&quot; y=&quot;250&quot; text-anchor=&quot;middle&quot; fill=&quot;var(--pa-text)&quot; font-size=&quot;12&quot; font-weight=&quot;600&quot;&amp;gt;Text-only&amp;lt;/text&amp;gt;&amp;lt;text x=&quot;217&quot; y=&quot;266&quot; text-anchor=&quot;middle&quot; fill=&quot;var(--pa-muted)&quot; font-size=&quot;9&quot;&amp;gt;dialogue history&amp;lt;/text&amp;gt;&amp;lt;/g&amp;gt;
&amp;lt;text x=&quot;217&quot; y=&quot;300&quot; text-anchor=&quot;middle&quot; fill=&quot;var(--pa-muted)&quot; font-size=&quot;9&quot; font-style=&quot;italic&quot;&amp;gt;one encoder at a time&amp;lt;/text&amp;gt;
&amp;lt;text x=&quot;217&quot; y=&quot;314&quot; text-anchor=&quot;middle&quot; fill=&quot;var(--pa-muted)&quot; font-size=&quot;9&quot; font-style=&quot;italic&quot;&amp;gt;(4 experiments)&amp;lt;/text&amp;gt;
&amp;lt;rect x=&quot;340&quot; y=&quot;45&quot; rx=&quot;10&quot; width=&quot;155&quot; height=&quot;280&quot; fill=&quot;var(--pa-region-bg)&quot; stroke=&quot;var(--pa-region-border)&quot; stroke-width=&quot;1&quot; stroke-dasharray=&quot;6 3&quot;/&amp;gt;
&amp;lt;text x=&quot;417&quot; y=&quot;39&quot; text-anchor=&quot;middle&quot; fill=&quot;var(--pa-muted)&quot; font-size=&quot;9&quot; font-weight=&quot;600&quot; letter-spacing=&quot;0.1em&quot;&amp;gt;TRAINABLE (3.59M)&amp;lt;/text&amp;gt;
&amp;lt;g class=&quot;pn&quot;&amp;gt;&amp;lt;rect x=&quot;355&quot; y=&quot;68&quot; width=&quot;125&quot; height=&quot;45&quot; rx=&quot;7&quot; fill=&quot;var(--pa-node-bg)&quot; stroke=&quot;var(--pa-accent1)&quot; stroke-width=&quot;1.5&quot;/&amp;gt;&amp;lt;text x=&quot;417&quot; y=&quot;87&quot; text-anchor=&quot;middle&quot; fill=&quot;var(--pa-text)&quot; font-size=&quot;12&quot; font-weight=&quot;600&quot;&amp;gt;Branch&amp;lt;/text&amp;gt;&amp;lt;text x=&quot;417&quot; y=&quot;103&quot; text-anchor=&quot;middle&quot; fill=&quot;var(--pa-muted)&quot; font-size=&quot;9&quot;&amp;gt;per-question, isolated&amp;lt;/text&amp;gt;&amp;lt;/g&amp;gt;
&amp;lt;g class=&quot;pn&quot;&amp;gt;&amp;lt;rect x=&quot;355&quot; y=&quot;140&quot; width=&quot;125&quot; height=&quot;45&quot; rx=&quot;7&quot; fill=&quot;var(--pa-node-bg)&quot; stroke=&quot;var(--pa-accent1)&quot; stroke-width=&quot;1.5&quot;/&amp;gt;&amp;lt;text x=&quot;417&quot; y=&quot;159&quot; text-anchor=&quot;middle&quot; fill=&quot;var(--pa-text)&quot; font-size=&quot;12&quot; font-weight=&quot;600&quot;&amp;gt;Pointer&amp;lt;/text&amp;gt;&amp;lt;text x=&quot;417&quot; y=&quot;175&quot; text-anchor=&quot;middle&quot; fill=&quot;var(--pa-muted)&quot; font-size=&quot;9&quot;&amp;gt;readout&amp;lt;/text&amp;gt;&amp;lt;/g&amp;gt;
&amp;lt;g class=&quot;pn&quot;&amp;gt;&amp;lt;rect x=&quot;355&quot; y=&quot;215&quot; width=&quot;125&quot; height=&quot;38&quot; rx=&quot;7&quot; fill=&quot;var(--pa-node-bg)&quot; stroke=&quot;var(--pa-warning)&quot; stroke-width=&quot;1.5&quot;/&amp;gt;&amp;lt;text x=&quot;417&quot; y=&quot;239&quot; text-anchor=&quot;middle&quot; fill=&quot;var(--pa-text)&quot; font-size=&quot;11&quot; font-weight=&quot;600&quot;&amp;gt;CE + 0.5 Brier&amp;lt;/text&amp;gt;&amp;lt;/g&amp;gt;
&amp;lt;g class=&quot;pn&quot;&amp;gt;&amp;lt;rect x=&quot;355&quot; y=&quot;280&quot; width=&quot;125&quot; height=&quot;40&quot; rx=&quot;7&quot; fill=&quot;var(--pa-node-bg)&quot; stroke=&quot;var(--pa-accent4)&quot; stroke-width=&quot;1.5&quot;/&amp;gt;&amp;lt;text x=&quot;417&quot; y=&quot;297&quot; text-anchor=&quot;middle&quot; fill=&quot;var(--pa-text)&quot; font-size=&quot;11&quot; font-weight=&quot;600&quot;&amp;gt;Questions&amp;lt;/text&amp;gt;&amp;lt;text x=&quot;417&quot; y=&quot;311&quot; text-anchor=&quot;middle&quot; fill=&quot;var(--pa-muted)&quot; font-size=&quot;9&quot;&amp;gt;+ typed options&amp;lt;/text&amp;gt;&amp;lt;/g&amp;gt;
&amp;lt;g class=&quot;pn&quot;&amp;gt;&amp;lt;rect x=&quot;555&quot; y=&quot;90&quot; width=&quot;175&quot; height=&quot;65&quot; rx=&quot;8&quot; fill=&quot;var(--pa-node-bg)&quot; stroke=&quot;var(--pa-success)&quot; stroke-width=&quot;2&quot;/&amp;gt;&amp;lt;text x=&quot;642&quot; y=&quot;115&quot; text-anchor=&quot;middle&quot; fill=&quot;var(--pa-text)&quot; font-size=&quot;13&quot; font-weight=&quot;700&quot;&amp;gt;Probabilities&amp;lt;/text&amp;gt;&amp;lt;text x=&quot;642&quot; y=&quot;133&quot; text-anchor=&quot;middle&quot; fill=&quot;var(--pa-success)&quot; font-size=&quot;10&quot;&amp;gt;p(option) per question&amp;lt;/text&amp;gt;&amp;lt;text x=&quot;642&quot; y=&quot;148&quot; text-anchor=&quot;middle&quot; fill=&quot;var(--pa-accent3)&quot; font-size=&quot;8&quot;&amp;gt;IIA holds: shift = 0&amp;lt;/text&amp;gt;&amp;lt;/g&amp;gt;
&amp;lt;path d=&quot;M105,120 C130,120 140,56 155,56&quot; stroke=&quot;var(--pa-arrow)&quot; stroke-width=&quot;1.5&quot; fill=&quot;none&quot; marker-end=&quot;url(#pa)&quot; class=&quot;pflw&quot;/&amp;gt;
&amp;lt;path d=&quot;M105,125 C130,125 140,122 155,122&quot; stroke=&quot;var(--pa-arrow)&quot; stroke-width=&quot;1&quot; fill=&quot;none&quot; marker-end=&quot;url(#pa)&quot;/&amp;gt;
&amp;lt;path d=&quot;M105,130 L155,188&quot; stroke=&quot;var(--pa-arrow)&quot; stroke-width=&quot;1&quot; fill=&quot;none&quot; marker-end=&quot;url(#pa)&quot;/&amp;gt;
&amp;lt;path d=&quot;M105,275 C130,275 140,254 155,254&quot; stroke=&quot;var(--pa-arrow)&quot; stroke-width=&quot;1&quot; fill=&quot;none&quot; marker-end=&quot;url(#pa)&quot;/&amp;gt;
&amp;lt;path d=&quot;M280,56 C310,56 335,83 355,83&quot; stroke=&quot;var(--pa-arrow)&quot; stroke-width=&quot;1.5&quot; fill=&quot;none&quot; marker-end=&quot;url(#pa)&quot; class=&quot;pflw&quot;/&amp;gt;
&amp;lt;path d=&quot;M280,122 C310,122 335,87 355,87&quot; stroke=&quot;var(--pa-arrow)&quot; stroke-width=&quot;1&quot; fill=&quot;none&quot; marker-end=&quot;url(#pa)&quot; stroke-dasharray=&quot;4 3&quot;/&amp;gt;
&amp;lt;path d=&quot;M280,188 C310,188 335,91 355,91&quot; stroke=&quot;var(--pa-arrow)&quot; stroke-width=&quot;1&quot; fill=&quot;none&quot; marker-end=&quot;url(#pa)&quot; stroke-dasharray=&quot;4 3&quot;/&amp;gt;
&amp;lt;path d=&quot;M280,254 C310,254 335,95 355,95&quot; stroke=&quot;var(--pa-arrow)&quot; stroke-width=&quot;1&quot; fill=&quot;none&quot; marker-end=&quot;url(#pa)&quot; stroke-dasharray=&quot;4 3&quot;/&amp;gt;
&amp;lt;line x1=&quot;417&quot; y1=&quot;113&quot; x2=&quot;417&quot; y2=&quot;140&quot; stroke=&quot;var(--pa-arrow)&quot; stroke-width=&quot;1.5&quot; marker-end=&quot;url(#pa)&quot;/&amp;gt;
&amp;lt;path d=&quot;M480,162 C515,162 535,122 555,122&quot; stroke=&quot;var(--pa-arrow)&quot; stroke-width=&quot;2&quot; fill=&quot;none&quot; marker-end=&quot;url(#pa)&quot; class=&quot;pflw&quot;/&amp;gt;
&amp;lt;line x1=&quot;417&quot; y1=&quot;185&quot; x2=&quot;417&quot; y2=&quot;215&quot; stroke=&quot;var(--pa-arrow)&quot; stroke-width=&quot;1&quot; marker-end=&quot;url(#pa)&quot; stroke-dasharray=&quot;4 3&quot;/&amp;gt;
&amp;lt;path d=&quot;M417,280 L417,113&quot; stroke=&quot;var(--pa-muted)&quot; stroke-width=&quot;1&quot; fill=&quot;none&quot; marker-end=&quot;url(#pa)&quot; stroke-dasharray=&quot;4 3&quot;/&amp;gt;
&amp;lt;g transform=&quot;translate(555, 185)&quot;&amp;gt;&amp;lt;line x1=&quot;0&quot; y1=&quot;5&quot; x2=&quot;20&quot; y2=&quot;5&quot; stroke=&quot;var(--pa-accent1)&quot; stroke-width=&quot;2.5&quot;/&amp;gt;&amp;lt;text x=&quot;25&quot; y=&quot;9&quot; fill=&quot;var(--pa-muted)&quot; font-size=&quot;9&quot;&amp;gt;solid = winner path&amp;lt;/text&amp;gt;&amp;lt;line x1=&quot;0&quot; y1=&quot;22&quot; x2=&quot;20&quot; y2=&quot;22&quot; stroke=&quot;var(--pa-arrow)&quot; stroke-width=&quot;1&quot; stroke-dasharray=&quot;5 3&quot;/&amp;gt;&amp;lt;text x=&quot;25&quot; y=&quot;26&quot; fill=&quot;var(--pa-muted)&quot; font-size=&quot;9&quot;&amp;gt;dashed = alternate&amp;lt;/text&amp;gt;&amp;lt;/g&amp;gt;
&amp;lt;/svg&amp;gt;
&amp;lt;/div&amp;gt;&lt;/p&gt;
&lt;p&gt;I had some rules defined to actually produce some hardcoded GT labels, &lt;strong&gt;pitch&lt;/strong&gt; was one of them and it was being captured by the Whisper&apos;s encoder. So as a question &lt;code&gt;pitch_direction&lt;/code&gt;, with options &lt;code&gt;[rising, falling, level across the utterance]&lt;/code&gt; was able to be introduced to the dataset.&lt;/p&gt;
&lt;p&gt;Pitch wasn&apos;t alone though, there are four of these deterministic labels:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;speaker&lt;/code&gt;: Choice over the six Friends leads, who cover ~83% of all utterances&lt;/li&gt;
&lt;li&gt;&lt;code&gt;pitch_direction&lt;/code&gt;: falling / level / rising, from the F0 slope in semitones per second so it&apos;s comparable across voices&lt;/li&gt;
&lt;li&gt;&lt;code&gt;speaking_rate&lt;/code&gt;: slow / medium / fast, words-per-second binned into tertiles fit on train only&lt;/li&gt;
&lt;li&gt;&lt;code&gt;loudness&lt;/code&gt;: quiet / moderate / loud, from RMS, same tertile treatment&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Gold answers come from a fixed rule over the signal, so they&apos;re unlimited, free, and self-verifying. Are they totally accurate? No, but I thought they provide enough signal to have some fun with the model after it&apos;s trained. One caveat: &lt;code&gt;speaking_rate&lt;/code&gt; requires a word count so it&apos;s partially lexical, and for the prosody encoder these questions are circular (it gets F0/RMS as input, so it&apos;d be reading the answer off its own features), they&apos;re only a real test for Whisper and WavLM.&lt;/p&gt;
&lt;h3&gt;Where it differs from Jev&lt;/h3&gt;
&lt;p&gt;From what I understood, Jev&apos;s options interact before choosing them. From &lt;a href=&quot;https://archerhume.com/posts/jevs-architecture-unmasked/&quot;&gt;Archer Hume&apos;s independent probe of the Jev API&lt;/a&gt;, appending an irrelevant fifth option shifts mean log-odds between untouched options by about &lt;strong&gt;-0.28&lt;/strong&gt; across 10 randomized blocks, which proves Jev&apos;s options are jointly encoded before the choice.&lt;/p&gt;
&lt;p&gt;Quick precision on that: the -0.28 shift is the reverse-engineering probe&apos;s result on &lt;strong&gt;real Jev&lt;/strong&gt;, not mine. My model was never measured at -0.28; by the algebra below its shift is exactly zero. And the reason any nonzero shift matters: if each option were scored independently, an irrelevant newcomer mathematically could not move the relative odds between the other two. A shift means &quot;the model considered the set&quot;; zero means &quot;it scored a list&quot;.&lt;/p&gt;
&lt;p&gt;The model readout computes:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;logits = (W_branch @ h) @ (W_option @ o)^T
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Each option&apos;s logit is an independent inner product against its own frozen embedding. So &lt;code&gt;p(a)/p(b)&lt;/code&gt; can&apos;t change when you add another option, this satisfies independence of irrelevant alternatives &lt;em&gt;exactly&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;That&apos;s exactly why the zero matters: this readout is provably in the functional class the Jev probe falsifies. My model has Jev&apos;s interface but not its mechanism. The fix is options that attend to each other instead of independently-embedded frozen vectors. And no, Jev didn&apos;t get option interaction from RLCD (that&apos;s the unpublished calibration training recipe, a loss-side thing, while option interaction is architectural). NanoJev&apos;s Choice head uses set attention over the candidates, which is the kind of mechanism that &lt;em&gt;could&lt;/em&gt; produce interaction, though I haven&apos;t verified whether theirs actually violates IIA either.&lt;/p&gt;
&lt;h3&gt;Is this thing actually something like Jev?&lt;/h3&gt;
&lt;p&gt;I thought a bit about this, I don&apos;t know what &lt;strong&gt;RLCD&lt;/strong&gt; actually is, and I had to remove option interactions as well, but I think given the data constraints this was one of the bests I could&apos;ve come up with.&lt;/p&gt;
&lt;p&gt;On the training part: by &quot;same family as NanoJev&quot; I mean neither of us has RLCD, nobody outside TypeSafe does, and both of us substituted strictly proper scoring rules on hard labels instead. Mine is cross-entropy + 0.5 x Brier; theirs is CE / Brier / paired-reward variants. Where we differ is the backbone (they finetune a 0.6B Qwen3 with differential learning rates; I freeze the audio encoder and train 3.6M params from scratch) and task weighting (they weight tasks explicitly; I didn&apos;t, which later cost me a 13-point swing on an unrelated question when I removed 1.75% of labels, since unweighted joint training means every question tugs on one shared encoder).&lt;/p&gt;
&lt;h2&gt;So... where&apos;s the data?&lt;/h2&gt;
&lt;p&gt;There is no &quot;speech decisions&quot; dataset sitting around, so I repurposed &lt;a href=&quot;https://github.com/declare-lab/MELD&quot;&gt;MELD&lt;/a&gt;: Friends utterances labeled with emotion and sentiment.&lt;/p&gt;
&lt;p&gt;It&apos;s ~13.7k clips total, ~10k for train and 2,610 for test. Clips are tiny (median ~2.5 seconds), so the whole corpus is roughly 7 hours of train, under 2 hours of test. That&apos;s the entire world the model ever saw.&lt;/p&gt;
&lt;p&gt;It fights you the whole way too: the splits are dialogue-disjoint but not speaker-disjoint (the same six Friends voices are in train and test, which flatters anything acoustic), ~2.5% of clips declare timestamps too short to contain their own transcripts, training caps audio at 30s because WavLM&apos;s relative-position bias is O(T²), and my laptop OOM&apos;d a few times before everything was working fine.&lt;/p&gt;
&lt;p&gt;...so, that&apos;s why the model wasn&apos;t generalized well, I neither have the data nor the compute, as the gpu poor I am :D&lt;/p&gt;
&lt;h2&gt;Results&lt;/h2&gt;
&lt;p&gt;The model alone wasn&apos;t so good and didn&apos;t perform much better than the simple baselines I picked (i.e. just picking the majority labels), and didn&apos;t perform better than the published text-only results on MELD.&lt;/p&gt;
&lt;p&gt;&amp;lt;script src=&quot;https://cdn.plot.ly/plotly-latest.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/p&gt;
&lt;h3&gt;Emotion classification&lt;/h3&gt;
&lt;p&gt;&amp;lt;div style=&quot;height:300px; width:100%;&quot;&amp;gt;                            &amp;lt;div id=&quot;488195aa-a94b-40b7-9283-44f0d77131b6&quot; class=&quot;plotly-graph-div&quot; style=&quot;height:100%; width:100%;&quot;&amp;gt;&amp;lt;/div&amp;gt;            &amp;lt;script&amp;gt;                window.PLOTLYENV=window.PLOTLYENV || {};                                if (document.getElementById(&quot;488195aa-a94b-40b7-9283-44f0d77131b6&quot;)) {                    Plotly.newPlot(                        &quot;488195aa-a94b-40b7-9283-44f0d77131b6&quot;,                        [{&quot;name&quot;:&quot;accuracy&quot;,&quot;x&quot;:[&quot;whisper&quot;,&quot;wavlm&quot;,&quot;prosody&quot;,&quot;text-only&quot;,&quot;majority&quot;],&quot;y&quot;:[0.493,0.48,0.453,0.471,0.481],&quot;type&quot;:&quot;bar&quot;},{&quot;name&quot;:&quot;macro-F1&quot;,&quot;x&quot;:[&quot;whisper&quot;,&quot;wavlm&quot;,&quot;prosody&quot;,&quot;text-only&quot;,&quot;majority&quot;],&quot;y&quot;:[0.221,0.151,0.149,0.116,0.093],&quot;type&quot;:&quot;bar&quot;}],                        {&quot;template&quot;:{&quot;data&quot;:{&quot;histogram2dcontour&quot;:[{&quot;type&quot;:&quot;histogram2dcontour&quot;,&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;},&quot;colorscale&quot;:[[0.0,&quot;#0d0887&quot;],[0.1111111111111111,&quot;#46039f&quot;],[0.2222222222222222,&quot;#7201a8&quot;],[0.3333333333333333,&quot;#9c179e&quot;],[0.4444444444444444,&quot;#bd3786&quot;],[0.5555555555555556,&quot;#d8576b&quot;],[0.6666666666666666,&quot;#ed7953&quot;],[0.7777777777777778,&quot;#fb9f3a&quot;],[0.8888888888888888,&quot;#fdca26&quot;],[1.0,&quot;#f0f921&quot;]]}],&quot;choropleth&quot;:[{&quot;type&quot;:&quot;choropleth&quot;,&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}}],&quot;histogram2d&quot;:[{&quot;type&quot;:&quot;histogram2d&quot;,&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;},&quot;colorscale&quot;:[[0.0,&quot;#0d0887&quot;],[0.1111111111111111,&quot;#46039f&quot;],[0.2222222222222222,&quot;#7201a8&quot;],[0.3333333333333333,&quot;#9c179e&quot;],[0.4444444444444444,&quot;#bd3786&quot;],[0.5555555555555556,&quot;#d8576b&quot;],[0.6666666666666666,&quot;#ed7953&quot;],[0.7777777777777778,&quot;#fb9f3a&quot;],[0.8888888888888888,&quot;#fdca26&quot;],[1.0,&quot;#f0f921&quot;]]}],&quot;heatmap&quot;:[{&quot;type&quot;:&quot;heatmap&quot;,&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;},&quot;colorscale&quot;:[[0.0,&quot;#0d0887&quot;],[0.1111111111111111,&quot;#46039f&quot;],[0.2222222222222222,&quot;#7201a8&quot;],[0.3333333333333333,&quot;#9c179e&quot;],[0.4444444444444444,&quot;#bd3786&quot;],[0.5555555555555556,&quot;#d8576b&quot;],[0.6666666666666666,&quot;#ed7953&quot;],[0.7777777777777778,&quot;#fb9f3a&quot;],[0.8888888888888888,&quot;#fdca26&quot;],[1.0,&quot;#f0f921&quot;]]}],&quot;contourcarpet&quot;:[{&quot;type&quot;:&quot;contourcarpet&quot;,&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}}],&quot;contour&quot;:[{&quot;type&quot;:&quot;contour&quot;,&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;},&quot;colorscale&quot;:[[0.0,&quot;#0d0887&quot;],[0.1111111111111111,&quot;#46039f&quot;],[0.2222222222222222,&quot;#7201a8&quot;],[0.3333333333333333,&quot;#9c179e&quot;],[0.4444444444444444,&quot;#bd3786&quot;],[0.5555555555555556,&quot;#d8576b&quot;],[0.6666666666666666,&quot;#ed7953&quot;],[0.7777777777777778,&quot;#fb9f3a&quot;],[0.8888888888888888,&quot;#fdca26&quot;],[1.0,&quot;#f0f921&quot;]]}],&quot;surface&quot;:[{&quot;type&quot;:&quot;surface&quot;,&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;},&quot;colorscale&quot;:[[0.0,&quot;#0d0887&quot;],[0.1111111111111111,&quot;#46039f&quot;],[0.2222222222222222,&quot;#7201a8&quot;],[0.3333333333333333,&quot;#9c179e&quot;],[0.4444444444444444,&quot;#bd3786&quot;],[0.5555555555555556,&quot;#d8576b&quot;],[0.6666666666666666,&quot;#ed7953&quot;],[0.7777777777777778,&quot;#fb9f3a&quot;],[0.8888888888888888,&quot;#fdca26&quot;],[1.0,&quot;#f0f921&quot;]]}],&quot;mesh3d&quot;:[{&quot;type&quot;:&quot;mesh3d&quot;,&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}}],&quot;scatter&quot;:[{&quot;fillpattern&quot;:{&quot;fillmode&quot;:&quot;overlay&quot;,&quot;size&quot;:10,&quot;solidity&quot;:0.2},&quot;type&quot;:&quot;scatter&quot;}],&quot;parcoords&quot;:[{&quot;type&quot;:&quot;parcoords&quot;,&quot;line&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}}}],&quot;scatterpolargl&quot;:[{&quot;type&quot;:&quot;scatterpolargl&quot;,&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}}}],&quot;bar&quot;:[{&quot;error_x&quot;:{&quot;color&quot;:&quot;#2a3f5f&quot;},&quot;error_y&quot;:{&quot;color&quot;:&quot;#2a3f5f&quot;},&quot;marker&quot;:{&quot;line&quot;:{&quot;color&quot;:&quot;#E5ECF6&quot;,&quot;width&quot;:0.5},&quot;pattern&quot;:{&quot;fillmode&quot;:&quot;overlay&quot;,&quot;size&quot;:10,&quot;solidity&quot;:0.2}},&quot;type&quot;:&quot;bar&quot;}],&quot;scattergeo&quot;:[{&quot;type&quot;:&quot;scattergeo&quot;,&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}}}],&quot;scatterpolar&quot;:[{&quot;type&quot;:&quot;scatterpolar&quot;,&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}}}],&quot;histogram&quot;:[{&quot;marker&quot;:{&quot;pattern&quot;:{&quot;fillmode&quot;:&quot;overlay&quot;,&quot;size&quot;:10,&quot;solidity&quot;:0.2}},&quot;type&quot;:&quot;histogram&quot;}],&quot;scattergl&quot;:[{&quot;type&quot;:&quot;scattergl&quot;,&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}}}],&quot;scatter3d&quot;:[{&quot;type&quot;:&quot;scatter3d&quot;,&quot;line&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}},&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}}}],&quot;scattermap&quot;:[{&quot;type&quot;:&quot;scattermap&quot;,&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}}}],&quot;scatterternary&quot;:[{&quot;type&quot;:&quot;scatterternary&quot;,&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}}}],&quot;scattercarpet&quot;:[{&quot;type&quot;:&quot;scattercarpet&quot;,&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}}}],&quot;carpet&quot;:[{&quot;aaxis&quot;:{&quot;endlinecolor&quot;:&quot;#2a3f5f&quot;,&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;minorgridcolor&quot;:&quot;white&quot;,&quot;startlinecolor&quot;:&quot;#2a3f5f&quot;},&quot;baxis&quot;:{&quot;endlinecolor&quot;:&quot;#2a3f5f&quot;,&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;minorgridcolor&quot;:&quot;white&quot;,&quot;startlinecolor&quot;:&quot;#2a3f5f&quot;},&quot;type&quot;:&quot;carpet&quot;}],&quot;table&quot;:[{&quot;cells&quot;:{&quot;fill&quot;:{&quot;color&quot;:&quot;#EBF0F8&quot;},&quot;line&quot;:{&quot;color&quot;:&quot;white&quot;}},&quot;header&quot;:{&quot;fill&quot;:{&quot;color&quot;:&quot;#C8D4E3&quot;},&quot;line&quot;:{&quot;color&quot;:&quot;white&quot;}},&quot;type&quot;:&quot;table&quot;}],&quot;barpolar&quot;:[{&quot;marker&quot;:{&quot;line&quot;:{&quot;color&quot;:&quot;#E5ECF6&quot;,&quot;width&quot;:0.5},&quot;pattern&quot;:{&quot;fillmode&quot;:&quot;overlay&quot;,&quot;size&quot;:10,&quot;solidity&quot;:0.2}},&quot;type&quot;:&quot;barpolar&quot;}],&quot;pie&quot;:[{&quot;automargin&quot;:true,&quot;type&quot;:&quot;pie&quot;}]},&quot;layout&quot;:{&quot;autotypenumbers&quot;:&quot;strict&quot;,&quot;colorway&quot;:[&quot;#636efa&quot;,&quot;#EF553B&quot;,&quot;#00cc96&quot;,&quot;#ab63fa&quot;,&quot;#FFA15A&quot;,&quot;#19d3f3&quot;,&quot;#FF6692&quot;,&quot;#B6E880&quot;,&quot;#FF97FF&quot;,&quot;#FECB52&quot;],&quot;font&quot;:{&quot;color&quot;:&quot;#2a3f5f&quot;},&quot;hovermode&quot;:&quot;closest&quot;,&quot;hoverlabel&quot;:{&quot;align&quot;:&quot;left&quot;},&quot;paper_bgcolor&quot;:&quot;white&quot;,&quot;plot_bgcolor&quot;:&quot;#E5ECF6&quot;,&quot;polar&quot;:{&quot;bgcolor&quot;:&quot;#E5ECF6&quot;,&quot;angularaxis&quot;:{&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;ticks&quot;:&quot;&quot;},&quot;radialaxis&quot;:{&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;ticks&quot;:&quot;&quot;}},&quot;ternary&quot;:{&quot;bgcolor&quot;:&quot;#E5ECF6&quot;,&quot;aaxis&quot;:{&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;ticks&quot;:&quot;&quot;},&quot;baxis&quot;:{&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;ticks&quot;:&quot;&quot;},&quot;caxis&quot;:{&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;ticks&quot;:&quot;&quot;}},&quot;coloraxis&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}},&quot;colorscale&quot;:{&quot;sequential&quot;:[[0.0,&quot;#0d0887&quot;],[0.1111111111111111,&quot;#46039f&quot;],[0.2222222222222222,&quot;#7201a8&quot;],[0.3333333333333333,&quot;#9c179e&quot;],[0.4444444444444444,&quot;#bd3786&quot;],[0.5555555555555556,&quot;#d8576b&quot;],[0.6666666666666666,&quot;#ed7953&quot;],[0.7777777777777778,&quot;#fb9f3a&quot;],[0.8888888888888888,&quot;#fdca26&quot;],[1.0,&quot;#f0f921&quot;]],&quot;sequentialminus&quot;:[[0.0,&quot;#0d0887&quot;],[0.1111111111111111,&quot;#46039f&quot;],[0.2222222222222222,&quot;#7201a8&quot;],[0.3333333333333333,&quot;#9c179e&quot;],[0.4444444444444444,&quot;#bd3786&quot;],[0.5555555555555556,&quot;#d8576b&quot;],[0.6666666666666666,&quot;#ed7953&quot;],[0.7777777777777778,&quot;#fb9f3a&quot;],[0.8888888888888888,&quot;#fdca26&quot;],[1.0,&quot;#f0f921&quot;]],&quot;diverging&quot;:[[0,&quot;#8e0152&quot;],[0.1,&quot;#c51b7d&quot;],[0.2,&quot;#de77ae&quot;],[0.3,&quot;#f1b6da&quot;],[0.4,&quot;#fde0ef&quot;],[0.5,&quot;#f7f7f7&quot;],[0.6,&quot;#e6f5d0&quot;],[0.7,&quot;#b8e186&quot;],[0.8,&quot;#7fbc41&quot;],[0.9,&quot;#4d9221&quot;],[1,&quot;#276419&quot;]]},&quot;xaxis&quot;:{&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;ticks&quot;:&quot;&quot;,&quot;title&quot;:{&quot;standoff&quot;:15},&quot;zerolinecolor&quot;:&quot;white&quot;,&quot;automargin&quot;:true,&quot;zerolinewidth&quot;:2},&quot;yaxis&quot;:{&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;ticks&quot;:&quot;&quot;,&quot;title&quot;:{&quot;standoff&quot;:15},&quot;zerolinecolor&quot;:&quot;white&quot;,&quot;automargin&quot;:true,&quot;zerolinewidth&quot;:2},&quot;scene&quot;:{&quot;xaxis&quot;:{&quot;backgroundcolor&quot;:&quot;#E5ECF6&quot;,&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;showbackground&quot;:true,&quot;ticks&quot;:&quot;&quot;,&quot;zerolinecolor&quot;:&quot;white&quot;,&quot;gridwidth&quot;:2},&quot;yaxis&quot;:{&quot;backgroundcolor&quot;:&quot;#E5ECF6&quot;,&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;showbackground&quot;:true,&quot;ticks&quot;:&quot;&quot;,&quot;zerolinecolor&quot;:&quot;white&quot;,&quot;gridwidth&quot;:2},&quot;zaxis&quot;:{&quot;backgroundcolor&quot;:&quot;#E5ECF6&quot;,&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;showbackground&quot;:true,&quot;ticks&quot;:&quot;&quot;,&quot;zerolinecolor&quot;:&quot;white&quot;,&quot;gridwidth&quot;:2}},&quot;shapedefaults&quot;:{&quot;line&quot;:{&quot;color&quot;:&quot;#2a3f5f&quot;}},&quot;annotationdefaults&quot;:{&quot;arrowcolor&quot;:&quot;#2a3f5f&quot;,&quot;arrowhead&quot;:0,&quot;arrowwidth&quot;:1},&quot;geo&quot;:{&quot;bgcolor&quot;:&quot;white&quot;,&quot;landcolor&quot;:&quot;#E5ECF6&quot;,&quot;subunitcolor&quot;:&quot;white&quot;,&quot;showland&quot;:true,&quot;showlakes&quot;:true,&quot;lakecolor&quot;:&quot;white&quot;},&quot;title&quot;:{&quot;x&quot;:0.05}}},&quot;yaxis&quot;:{&quot;range&quot;:[0,0.6]},&quot;margin&quot;:{&quot;l&quot;:10,&quot;r&quot;:10,&quot;t&quot;:30,&quot;b&quot;:10},&quot;font&quot;:{&quot;size&quot;:12},&quot;title&quot;:{&quot;text&quot;:&quot;Emotion: accuracy vs macro-F1 (Arm A-ce)&quot;},&quot;barmode&quot;:&quot;group&quot;,&quot;height&quot;:300},                        {&quot;responsive&quot;: true}                    )                };            &amp;lt;/script&amp;gt;        &amp;lt;/div&amp;gt;&lt;/p&gt;
&lt;p&gt;All encoders bracket the 0.481 majority accuracy. Macro-F1 is the only column showing any signal (whisper 0.221 vs majority 0.093). For scale, my best weighted-F1 is 0.437 from ~7 hours of audio and 3.6M trainable params from scratch, against published &lt;em&gt;text-only&lt;/em&gt; MELD baselines around 0.57-0.60. Also note the architecture itself was never tested here, it&apos;s constant across all twelve arms, so nothing in this grid bears on whether the Jev shape helps.&lt;/p&gt;
&lt;h3&gt;Expected Calibration Error&lt;/h3&gt;
&lt;p&gt;Well, ECE was well known and I heard it again in Jev (their headline calibration number is an ECE of 0.0313, so the choice was deliberate), so I reported it in here as well. It&apos;s literally the average gap between how confident a model is and how often it&apos;s right.&lt;/p&gt;
&lt;p&gt;I added a simple baseline that only picks the majority of the options per question. It ignores the audio entirely and always emits the train class marginal, e.g. emotion becomes &quot;neutral, 48% sure&quot; on every single clip. Well, it didn&apos;t work well since picking majority of classes nearly minimizes ECE on its own: calibration is a &lt;em&gt;marginal&lt;/em&gt; property, it only asks whether stated confidence matches observed frequency on average, so a predictor that never distinguishes between inputs satisfies it almost perfectly.&lt;/p&gt;
&lt;p&gt;&amp;lt;div style=&quot;height:300px; width:100%;&quot;&amp;gt;                            &amp;lt;div id=&quot;237e3216-4990-4e88-a5aa-35c83bb81163&quot; class=&quot;plotly-graph-div&quot; style=&quot;height:100%; width:100%;&quot;&amp;gt;&amp;lt;/div&amp;gt;            &amp;lt;script&amp;gt;                window.PLOTLYENV=window.PLOTLYENV || {};                                if (document.getElementById(&quot;237e3216-4990-4e88-a5aa-35c83bb81163&quot;)) {                    Plotly.newPlot(                        &quot;237e3216-4990-4e88-a5aa-35c83bb81163&quot;,                        [{&quot;name&quot;:&quot;constant (train-fit marginal)&quot;,&quot;x&quot;:[&quot;emotion (7-way)&quot;,&quot;sentiment (3-way)&quot;,&quot;is_negative (2-way)&quot;],&quot;y&quot;:[0.0097,0.0097,0.0243],&quot;type&quot;:&quot;bar&quot;},{&quot;name&quot;:&quot;best of 12 trained arms&quot;,&quot;x&quot;:[&quot;emotion (7-way)&quot;,&quot;sentiment (3-way)&quot;],&quot;y&quot;:[0.0404,0.0213],&quot;type&quot;:&quot;bar&quot;}],                        {&quot;template&quot;:{&quot;data&quot;:{&quot;histogram2dcontour&quot;:[{&quot;type&quot;:&quot;histogram2dcontour&quot;,&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;},&quot;colorscale&quot;:[[0.0,&quot;#0d0887&quot;],[0.1111111111111111,&quot;#46039f&quot;],[0.2222222222222222,&quot;#7201a8&quot;],[0.3333333333333333,&quot;#9c179e&quot;],[0.4444444444444444,&quot;#bd3786&quot;],[0.5555555555555556,&quot;#d8576b&quot;],[0.6666666666666666,&quot;#ed7953&quot;],[0.7777777777777778,&quot;#fb9f3a&quot;],[0.8888888888888888,&quot;#fdca26&quot;],[1.0,&quot;#f0f921&quot;]]}],&quot;choropleth&quot;:[{&quot;type&quot;:&quot;choropleth&quot;,&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}}],&quot;histogram2d&quot;:[{&quot;type&quot;:&quot;histogram2d&quot;,&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;},&quot;colorscale&quot;:[[0.0,&quot;#0d0887&quot;],[0.1111111111111111,&quot;#46039f&quot;],[0.2222222222222222,&quot;#7201a8&quot;],[0.3333333333333333,&quot;#9c179e&quot;],[0.4444444444444444,&quot;#bd3786&quot;],[0.5555555555555556,&quot;#d8576b&quot;],[0.6666666666666666,&quot;#ed7953&quot;],[0.7777777777777778,&quot;#fb9f3a&quot;],[0.8888888888888888,&quot;#fdca26&quot;],[1.0,&quot;#f0f921&quot;]]}],&quot;heatmap&quot;:[{&quot;type&quot;:&quot;heatmap&quot;,&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;},&quot;colorscale&quot;:[[0.0,&quot;#0d0887&quot;],[0.1111111111111111,&quot;#46039f&quot;],[0.2222222222222222,&quot;#7201a8&quot;],[0.3333333333333333,&quot;#9c179e&quot;],[0.4444444444444444,&quot;#bd3786&quot;],[0.5555555555555556,&quot;#d8576b&quot;],[0.6666666666666666,&quot;#ed7953&quot;],[0.7777777777777778,&quot;#fb9f3a&quot;],[0.8888888888888888,&quot;#fdca26&quot;],[1.0,&quot;#f0f921&quot;]]}],&quot;contourcarpet&quot;:[{&quot;type&quot;:&quot;contourcarpet&quot;,&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}}],&quot;contour&quot;:[{&quot;type&quot;:&quot;contour&quot;,&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;},&quot;colorscale&quot;:[[0.0,&quot;#0d0887&quot;],[0.1111111111111111,&quot;#46039f&quot;],[0.2222222222222222,&quot;#7201a8&quot;],[0.3333333333333333,&quot;#9c179e&quot;],[0.4444444444444444,&quot;#bd3786&quot;],[0.5555555555555556,&quot;#d8576b&quot;],[0.6666666666666666,&quot;#ed7953&quot;],[0.7777777777777778,&quot;#fb9f3a&quot;],[0.8888888888888888,&quot;#fdca26&quot;],[1.0,&quot;#f0f921&quot;]]}],&quot;surface&quot;:[{&quot;type&quot;:&quot;surface&quot;,&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;},&quot;colorscale&quot;:[[0.0,&quot;#0d0887&quot;],[0.1111111111111111,&quot;#46039f&quot;],[0.2222222222222222,&quot;#7201a8&quot;],[0.3333333333333333,&quot;#9c179e&quot;],[0.4444444444444444,&quot;#bd3786&quot;],[0.5555555555555556,&quot;#d8576b&quot;],[0.6666666666666666,&quot;#ed7953&quot;],[0.7777777777777778,&quot;#fb9f3a&quot;],[0.8888888888888888,&quot;#fdca26&quot;],[1.0,&quot;#f0f921&quot;]]}],&quot;mesh3d&quot;:[{&quot;type&quot;:&quot;mesh3d&quot;,&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}}],&quot;scatter&quot;:[{&quot;fillpattern&quot;:{&quot;fillmode&quot;:&quot;overlay&quot;,&quot;size&quot;:10,&quot;solidity&quot;:0.2},&quot;type&quot;:&quot;scatter&quot;}],&quot;parcoords&quot;:[{&quot;type&quot;:&quot;parcoords&quot;,&quot;line&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}}}],&quot;scatterpolargl&quot;:[{&quot;type&quot;:&quot;scatterpolargl&quot;,&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}}}],&quot;bar&quot;:[{&quot;error_x&quot;:{&quot;color&quot;:&quot;#2a3f5f&quot;},&quot;error_y&quot;:{&quot;color&quot;:&quot;#2a3f5f&quot;},&quot;marker&quot;:{&quot;line&quot;:{&quot;color&quot;:&quot;#E5ECF6&quot;,&quot;width&quot;:0.5},&quot;pattern&quot;:{&quot;fillmode&quot;:&quot;overlay&quot;,&quot;size&quot;:10,&quot;solidity&quot;:0.2}},&quot;type&quot;:&quot;bar&quot;}],&quot;scattergeo&quot;:[{&quot;type&quot;:&quot;scattergeo&quot;,&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}}}],&quot;scatterpolar&quot;:[{&quot;type&quot;:&quot;scatterpolar&quot;,&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}}}],&quot;histogram&quot;:[{&quot;marker&quot;:{&quot;pattern&quot;:{&quot;fillmode&quot;:&quot;overlay&quot;,&quot;size&quot;:10,&quot;solidity&quot;:0.2}},&quot;type&quot;:&quot;histogram&quot;}],&quot;scattergl&quot;:[{&quot;type&quot;:&quot;scattergl&quot;,&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}}}],&quot;scatter3d&quot;:[{&quot;type&quot;:&quot;scatter3d&quot;,&quot;line&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}},&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}}}],&quot;scattermap&quot;:[{&quot;type&quot;:&quot;scattermap&quot;,&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}}}],&quot;scatterternary&quot;:[{&quot;type&quot;:&quot;scatterternary&quot;,&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}}}],&quot;scattercarpet&quot;:[{&quot;type&quot;:&quot;scattercarpet&quot;,&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}}}],&quot;carpet&quot;:[{&quot;aaxis&quot;:{&quot;endlinecolor&quot;:&quot;#2a3f5f&quot;,&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;minorgridcolor&quot;:&quot;white&quot;,&quot;startlinecolor&quot;:&quot;#2a3f5f&quot;},&quot;baxis&quot;:{&quot;endlinecolor&quot;:&quot;#2a3f5f&quot;,&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;minorgridcolor&quot;:&quot;white&quot;,&quot;startlinecolor&quot;:&quot;#2a3f5f&quot;},&quot;type&quot;:&quot;carpet&quot;}],&quot;table&quot;:[{&quot;cells&quot;:{&quot;fill&quot;:{&quot;color&quot;:&quot;#EBF0F8&quot;},&quot;line&quot;:{&quot;color&quot;:&quot;white&quot;}},&quot;header&quot;:{&quot;fill&quot;:{&quot;color&quot;:&quot;#C8D4E3&quot;},&quot;line&quot;:{&quot;color&quot;:&quot;white&quot;}},&quot;type&quot;:&quot;table&quot;}],&quot;barpolar&quot;:[{&quot;marker&quot;:{&quot;line&quot;:{&quot;color&quot;:&quot;#E5ECF6&quot;,&quot;width&quot;:0.5},&quot;pattern&quot;:{&quot;fillmode&quot;:&quot;overlay&quot;,&quot;size&quot;:10,&quot;solidity&quot;:0.2}},&quot;type&quot;:&quot;barpolar&quot;}],&quot;pie&quot;:[{&quot;automargin&quot;:true,&quot;type&quot;:&quot;pie&quot;}]},&quot;layout&quot;:{&quot;autotypenumbers&quot;:&quot;strict&quot;,&quot;colorway&quot;:[&quot;#636efa&quot;,&quot;#EF553B&quot;,&quot;#00cc96&quot;,&quot;#ab63fa&quot;,&quot;#FFA15A&quot;,&quot;#19d3f3&quot;,&quot;#FF6692&quot;,&quot;#B6E880&quot;,&quot;#FF97FF&quot;,&quot;#FECB52&quot;],&quot;font&quot;:{&quot;color&quot;:&quot;#2a3f5f&quot;},&quot;hovermode&quot;:&quot;closest&quot;,&quot;hoverlabel&quot;:{&quot;align&quot;:&quot;left&quot;},&quot;paper_bgcolor&quot;:&quot;white&quot;,&quot;plot_bgcolor&quot;:&quot;#E5ECF6&quot;,&quot;polar&quot;:{&quot;bgcolor&quot;:&quot;#E5ECF6&quot;,&quot;angularaxis&quot;:{&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;ticks&quot;:&quot;&quot;},&quot;radialaxis&quot;:{&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;ticks&quot;:&quot;&quot;}},&quot;ternary&quot;:{&quot;bgcolor&quot;:&quot;#E5ECF6&quot;,&quot;aaxis&quot;:{&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;ticks&quot;:&quot;&quot;},&quot;baxis&quot;:{&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;ticks&quot;:&quot;&quot;},&quot;caxis&quot;:{&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;ticks&quot;:&quot;&quot;}},&quot;coloraxis&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}},&quot;colorscale&quot;:{&quot;sequential&quot;:[[0.0,&quot;#0d0887&quot;],[0.1111111111111111,&quot;#46039f&quot;],[0.2222222222222222,&quot;#7201a8&quot;],[0.3333333333333333,&quot;#9c179e&quot;],[0.4444444444444444,&quot;#bd3786&quot;],[0.5555555555555556,&quot;#d8576b&quot;],[0.6666666666666666,&quot;#ed7953&quot;],[0.7777777777777778,&quot;#fb9f3a&quot;],[0.8888888888888888,&quot;#fdca26&quot;],[1.0,&quot;#f0f921&quot;]],&quot;sequentialminus&quot;:[[0.0,&quot;#0d0887&quot;],[0.1111111111111111,&quot;#46039f&quot;],[0.2222222222222222,&quot;#7201a8&quot;],[0.3333333333333333,&quot;#9c179e&quot;],[0.4444444444444444,&quot;#bd3786&quot;],[0.5555555555555556,&quot;#d8576b&quot;],[0.6666666666666666,&quot;#ed7953&quot;],[0.7777777777777778,&quot;#fb9f3a&quot;],[0.8888888888888888,&quot;#fdca26&quot;],[1.0,&quot;#f0f921&quot;]],&quot;diverging&quot;:[[0,&quot;#8e0152&quot;],[0.1,&quot;#c51b7d&quot;],[0.2,&quot;#de77ae&quot;],[0.3,&quot;#f1b6da&quot;],[0.4,&quot;#fde0ef&quot;],[0.5,&quot;#f7f7f7&quot;],[0.6,&quot;#e6f5d0&quot;],[0.7,&quot;#b8e186&quot;],[0.8,&quot;#7fbc41&quot;],[0.9,&quot;#4d9221&quot;],[1,&quot;#276419&quot;]]},&quot;xaxis&quot;:{&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;ticks&quot;:&quot;&quot;,&quot;title&quot;:{&quot;standoff&quot;:15},&quot;zerolinecolor&quot;:&quot;white&quot;,&quot;automargin&quot;:true,&quot;zerolinewidth&quot;:2},&quot;yaxis&quot;:{&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;ticks&quot;:&quot;&quot;,&quot;title&quot;:{&quot;standoff&quot;:15},&quot;zerolinecolor&quot;:&quot;white&quot;,&quot;automargin&quot;:true,&quot;zerolinewidth&quot;:2},&quot;scene&quot;:{&quot;xaxis&quot;:{&quot;backgroundcolor&quot;:&quot;#E5ECF6&quot;,&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;showbackground&quot;:true,&quot;ticks&quot;:&quot;&quot;,&quot;zerolinecolor&quot;:&quot;white&quot;,&quot;gridwidth&quot;:2},&quot;yaxis&quot;:{&quot;backgroundcolor&quot;:&quot;#E5ECF6&quot;,&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;showbackground&quot;:true,&quot;ticks&quot;:&quot;&quot;,&quot;zerolinecolor&quot;:&quot;white&quot;,&quot;gridwidth&quot;:2},&quot;zaxis&quot;:{&quot;backgroundcolor&quot;:&quot;#E5ECF6&quot;,&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;showbackground&quot;:true,&quot;ticks&quot;:&quot;&quot;,&quot;zerolinecolor&quot;:&quot;white&quot;,&quot;gridwidth&quot;:2}},&quot;shapedefaults&quot;:{&quot;line&quot;:{&quot;color&quot;:&quot;#2a3f5f&quot;}},&quot;annotationdefaults&quot;:{&quot;arrowcolor&quot;:&quot;#2a3f5f&quot;,&quot;arrowhead&quot;:0,&quot;arrowwidth&quot;:1},&quot;geo&quot;:{&quot;bgcolor&quot;:&quot;white&quot;,&quot;landcolor&quot;:&quot;#E5ECF6&quot;,&quot;subunitcolor&quot;:&quot;white&quot;,&quot;showland&quot;:true,&quot;showlakes&quot;:true,&quot;lakecolor&quot;:&quot;white&quot;},&quot;title&quot;:{&quot;x&quot;:0.05}}},&quot;margin&quot;:{&quot;l&quot;:10,&quot;r&quot;:10,&quot;t&quot;:30,&quot;b&quot;:10},&quot;font&quot;:{&quot;size&quot;:12},&quot;title&quot;:{&quot;text&quot;:&quot;ECE: constant vs best trained arm (lower is better)&quot;},&quot;yaxis&quot;:{&quot;title&quot;:{&quot;text&quot;:&quot;ECE&quot;}},&quot;height&quot;:300},                        {&quot;responsive&quot;: true}                    )                };            &amp;lt;/script&amp;gt;        &amp;lt;/div&amp;gt;&lt;/p&gt;
&lt;p&gt;So, my baseline got the most right (duh) and ECE was pretty much minimized. Train-fit constant at 0.0097 on both multi-class questions vs 0.0404 / 0.0213 for the best trained arm. I couldn&apos;t use it to rank my experiments. That&apos;s why I ranked my experiments by Brier instead. Brier is the mean squared error between your predicted probabilities and the one-hot truth, and it&apos;s &lt;em&gt;strictly proper&lt;/em&gt;: it&apos;s minimized only by reporting what you actually believe, so a constant can&apos;t game it. It just scores the marginal&apos;s error, and anything that knows something about the input beats it.&lt;/p&gt;
&lt;h3&gt;Brier tells the actual story&lt;/h3&gt;
&lt;p&gt;&amp;lt;div style=&quot;height:300px; width:100%;&quot;&amp;gt;                            &amp;lt;div id=&quot;1f43f201-d342-4b3f-8765-1d52163f5cd7&quot; class=&quot;plotly-graph-div&quot; style=&quot;height:100%; width:100%;&quot;&amp;gt;&amp;lt;/div&amp;gt;            &amp;lt;script&amp;gt;                window.PLOTLYENV=window.PLOTLYENV || {};                                if (document.getElementById(&quot;1f43f201-d342-4b3f-8765-1d52163f5cd7&quot;)) {                    Plotly.newPlot(                        &quot;1f43f201-d342-4b3f-8765-1d52163f5cd7&quot;,                        [{&quot;marker&quot;:{&quot;color&quot;:[&quot;#999&quot;,&quot;#636EFA&quot;,&quot;#636EFA&quot;,&quot;#636EFA&quot;,&quot;#00CC96&quot;,&quot;#00CC96&quot;,&quot;#00CC96&quot;,&quot;#EF553B&quot;,&quot;#EF553B&quot;,&quot;#EF553B&quot;,&quot;#AB63FA&quot;,&quot;#AB63FA&quot;,&quot;#AB63FA&quot;]},&quot;name&quot;:&quot;Brier&quot;,&quot;x&quot;:[&quot;base rate&quot;,&quot;wavlm A&quot;,&quot;wavlm B&quot;,&quot;wavlm C&quot;,&quot;whisper A&quot;,&quot;whisper B&quot;,&quot;whisper C&quot;,&quot;prosody A&quot;,&quot;prosody B&quot;,&quot;prosody C&quot;,&quot;text A&quot;,&quot;text B&quot;,&quot;text C&quot;],&quot;y&quot;:[0.7096,0.6944,0.6858,0.6935,0.6707,0.6722,0.667,0.7177,0.7247,0.717,0.7119,0.7119,0.7122],&quot;type&quot;:&quot;bar&quot;}],                        {&quot;template&quot;:{&quot;data&quot;:{&quot;histogram2dcontour&quot;:[{&quot;type&quot;:&quot;histogram2dcontour&quot;,&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;},&quot;colorscale&quot;:[[0.0,&quot;#0d0887&quot;],[0.1111111111111111,&quot;#46039f&quot;],[0.2222222222222222,&quot;#7201a8&quot;],[0.3333333333333333,&quot;#9c179e&quot;],[0.4444444444444444,&quot;#bd3786&quot;],[0.5555555555555556,&quot;#d8576b&quot;],[0.6666666666666666,&quot;#ed7953&quot;],[0.7777777777777778,&quot;#fb9f3a&quot;],[0.8888888888888888,&quot;#fdca26&quot;],[1.0,&quot;#f0f921&quot;]]}],&quot;choropleth&quot;:[{&quot;type&quot;:&quot;choropleth&quot;,&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}}],&quot;histogram2d&quot;:[{&quot;type&quot;:&quot;histogram2d&quot;,&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;},&quot;colorscale&quot;:[[0.0,&quot;#0d0887&quot;],[0.1111111111111111,&quot;#46039f&quot;],[0.2222222222222222,&quot;#7201a8&quot;],[0.3333333333333333,&quot;#9c179e&quot;],[0.4444444444444444,&quot;#bd3786&quot;],[0.5555555555555556,&quot;#d8576b&quot;],[0.6666666666666666,&quot;#ed7953&quot;],[0.7777777777777778,&quot;#fb9f3a&quot;],[0.8888888888888888,&quot;#fdca26&quot;],[1.0,&quot;#f0f921&quot;]]}],&quot;heatmap&quot;:[{&quot;type&quot;:&quot;heatmap&quot;,&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;},&quot;colorscale&quot;:[[0.0,&quot;#0d0887&quot;],[0.1111111111111111,&quot;#46039f&quot;],[0.2222222222222222,&quot;#7201a8&quot;],[0.3333333333333333,&quot;#9c179e&quot;],[0.4444444444444444,&quot;#bd3786&quot;],[0.5555555555555556,&quot;#d8576b&quot;],[0.6666666666666666,&quot;#ed7953&quot;],[0.7777777777777778,&quot;#fb9f3a&quot;],[0.8888888888888888,&quot;#fdca26&quot;],[1.0,&quot;#f0f921&quot;]]}],&quot;contourcarpet&quot;:[{&quot;type&quot;:&quot;contourcarpet&quot;,&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}}],&quot;contour&quot;:[{&quot;type&quot;:&quot;contour&quot;,&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;},&quot;colorscale&quot;:[[0.0,&quot;#0d0887&quot;],[0.1111111111111111,&quot;#46039f&quot;],[0.2222222222222222,&quot;#7201a8&quot;],[0.3333333333333333,&quot;#9c179e&quot;],[0.4444444444444444,&quot;#bd3786&quot;],[0.5555555555555556,&quot;#d8576b&quot;],[0.6666666666666666,&quot;#ed7953&quot;],[0.7777777777777778,&quot;#fb9f3a&quot;],[0.8888888888888888,&quot;#fdca26&quot;],[1.0,&quot;#f0f921&quot;]]}],&quot;surface&quot;:[{&quot;type&quot;:&quot;surface&quot;,&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;},&quot;colorscale&quot;:[[0.0,&quot;#0d0887&quot;],[0.1111111111111111,&quot;#46039f&quot;],[0.2222222222222222,&quot;#7201a8&quot;],[0.3333333333333333,&quot;#9c179e&quot;],[0.4444444444444444,&quot;#bd3786&quot;],[0.5555555555555556,&quot;#d8576b&quot;],[0.6666666666666666,&quot;#ed7953&quot;],[0.7777777777777778,&quot;#fb9f3a&quot;],[0.8888888888888888,&quot;#fdca26&quot;],[1.0,&quot;#f0f921&quot;]]}],&quot;mesh3d&quot;:[{&quot;type&quot;:&quot;mesh3d&quot;,&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}}],&quot;scatter&quot;:[{&quot;fillpattern&quot;:{&quot;fillmode&quot;:&quot;overlay&quot;,&quot;size&quot;:10,&quot;solidity&quot;:0.2},&quot;type&quot;:&quot;scatter&quot;}],&quot;parcoords&quot;:[{&quot;type&quot;:&quot;parcoords&quot;,&quot;line&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}}}],&quot;scatterpolargl&quot;:[{&quot;type&quot;:&quot;scatterpolargl&quot;,&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}}}],&quot;bar&quot;:[{&quot;error_x&quot;:{&quot;color&quot;:&quot;#2a3f5f&quot;},&quot;error_y&quot;:{&quot;color&quot;:&quot;#2a3f5f&quot;},&quot;marker&quot;:{&quot;line&quot;:{&quot;color&quot;:&quot;#E5ECF6&quot;,&quot;width&quot;:0.5},&quot;pattern&quot;:{&quot;fillmode&quot;:&quot;overlay&quot;,&quot;size&quot;:10,&quot;solidity&quot;:0.2}},&quot;type&quot;:&quot;bar&quot;}],&quot;scattergeo&quot;:[{&quot;type&quot;:&quot;scattergeo&quot;,&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}}}],&quot;scatterpolar&quot;:[{&quot;type&quot;:&quot;scatterpolar&quot;,&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}}}],&quot;histogram&quot;:[{&quot;marker&quot;:{&quot;pattern&quot;:{&quot;fillmode&quot;:&quot;overlay&quot;,&quot;size&quot;:10,&quot;solidity&quot;:0.2}},&quot;type&quot;:&quot;histogram&quot;}],&quot;scattergl&quot;:[{&quot;type&quot;:&quot;scattergl&quot;,&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}}}],&quot;scatter3d&quot;:[{&quot;type&quot;:&quot;scatter3d&quot;,&quot;line&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}},&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}}}],&quot;scattermap&quot;:[{&quot;type&quot;:&quot;scattermap&quot;,&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}}}],&quot;scatterternary&quot;:[{&quot;type&quot;:&quot;scatterternary&quot;,&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}}}],&quot;scattercarpet&quot;:[{&quot;type&quot;:&quot;scattercarpet&quot;,&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}}}],&quot;carpet&quot;:[{&quot;aaxis&quot;:{&quot;endlinecolor&quot;:&quot;#2a3f5f&quot;,&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;minorgridcolor&quot;:&quot;white&quot;,&quot;startlinecolor&quot;:&quot;#2a3f5f&quot;},&quot;baxis&quot;:{&quot;endlinecolor&quot;:&quot;#2a3f5f&quot;,&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;minorgridcolor&quot;:&quot;white&quot;,&quot;startlinecolor&quot;:&quot;#2a3f5f&quot;},&quot;type&quot;:&quot;carpet&quot;}],&quot;table&quot;:[{&quot;cells&quot;:{&quot;fill&quot;:{&quot;color&quot;:&quot;#EBF0F8&quot;},&quot;line&quot;:{&quot;color&quot;:&quot;white&quot;}},&quot;header&quot;:{&quot;fill&quot;:{&quot;color&quot;:&quot;#C8D4E3&quot;},&quot;line&quot;:{&quot;color&quot;:&quot;white&quot;}},&quot;type&quot;:&quot;table&quot;}],&quot;barpolar&quot;:[{&quot;marker&quot;:{&quot;line&quot;:{&quot;color&quot;:&quot;#E5ECF6&quot;,&quot;width&quot;:0.5},&quot;pattern&quot;:{&quot;fillmode&quot;:&quot;overlay&quot;,&quot;size&quot;:10,&quot;solidity&quot;:0.2}},&quot;type&quot;:&quot;barpolar&quot;}],&quot;pie&quot;:[{&quot;automargin&quot;:true,&quot;type&quot;:&quot;pie&quot;}]},&quot;layout&quot;:{&quot;autotypenumbers&quot;:&quot;strict&quot;,&quot;colorway&quot;:[&quot;#636efa&quot;,&quot;#EF553B&quot;,&quot;#00cc96&quot;,&quot;#ab63fa&quot;,&quot;#FFA15A&quot;,&quot;#19d3f3&quot;,&quot;#FF6692&quot;,&quot;#B6E880&quot;,&quot;#FF97FF&quot;,&quot;#FECB52&quot;],&quot;font&quot;:{&quot;color&quot;:&quot;#2a3f5f&quot;},&quot;hovermode&quot;:&quot;closest&quot;,&quot;hoverlabel&quot;:{&quot;align&quot;:&quot;left&quot;},&quot;paper_bgcolor&quot;:&quot;white&quot;,&quot;plot_bgcolor&quot;:&quot;#E5ECF6&quot;,&quot;polar&quot;:{&quot;bgcolor&quot;:&quot;#E5ECF6&quot;,&quot;angularaxis&quot;:{&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;ticks&quot;:&quot;&quot;},&quot;radialaxis&quot;:{&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;ticks&quot;:&quot;&quot;}},&quot;ternary&quot;:{&quot;bgcolor&quot;:&quot;#E5ECF6&quot;,&quot;aaxis&quot;:{&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;ticks&quot;:&quot;&quot;},&quot;baxis&quot;:{&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;ticks&quot;:&quot;&quot;},&quot;caxis&quot;:{&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;ticks&quot;:&quot;&quot;}},&quot;coloraxis&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}},&quot;colorscale&quot;:{&quot;sequential&quot;:[[0.0,&quot;#0d0887&quot;],[0.1111111111111111,&quot;#46039f&quot;],[0.2222222222222222,&quot;#7201a8&quot;],[0.3333333333333333,&quot;#9c179e&quot;],[0.4444444444444444,&quot;#bd3786&quot;],[0.5555555555555556,&quot;#d8576b&quot;],[0.6666666666666666,&quot;#ed7953&quot;],[0.7777777777777778,&quot;#fb9f3a&quot;],[0.8888888888888888,&quot;#fdca26&quot;],[1.0,&quot;#f0f921&quot;]],&quot;sequentialminus&quot;:[[0.0,&quot;#0d0887&quot;],[0.1111111111111111,&quot;#46039f&quot;],[0.2222222222222222,&quot;#7201a8&quot;],[0.3333333333333333,&quot;#9c179e&quot;],[0.4444444444444444,&quot;#bd3786&quot;],[0.5555555555555556,&quot;#d8576b&quot;],[0.6666666666666666,&quot;#ed7953&quot;],[0.7777777777777778,&quot;#fb9f3a&quot;],[0.8888888888888888,&quot;#fdca26&quot;],[1.0,&quot;#f0f921&quot;]],&quot;diverging&quot;:[[0,&quot;#8e0152&quot;],[0.1,&quot;#c51b7d&quot;],[0.2,&quot;#de77ae&quot;],[0.3,&quot;#f1b6da&quot;],[0.4,&quot;#fde0ef&quot;],[0.5,&quot;#f7f7f7&quot;],[0.6,&quot;#e6f5d0&quot;],[0.7,&quot;#b8e186&quot;],[0.8,&quot;#7fbc41&quot;],[0.9,&quot;#4d9221&quot;],[1,&quot;#276419&quot;]]},&quot;xaxis&quot;:{&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;ticks&quot;:&quot;&quot;,&quot;title&quot;:{&quot;standoff&quot;:15},&quot;zerolinecolor&quot;:&quot;white&quot;,&quot;automargin&quot;:true,&quot;zerolinewidth&quot;:2},&quot;yaxis&quot;:{&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;ticks&quot;:&quot;&quot;,&quot;title&quot;:{&quot;standoff&quot;:15},&quot;zerolinecolor&quot;:&quot;white&quot;,&quot;automargin&quot;:true,&quot;zerolinewidth&quot;:2},&quot;scene&quot;:{&quot;xaxis&quot;:{&quot;backgroundcolor&quot;:&quot;#E5ECF6&quot;,&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;showbackground&quot;:true,&quot;ticks&quot;:&quot;&quot;,&quot;zerolinecolor&quot;:&quot;white&quot;,&quot;gridwidth&quot;:2},&quot;yaxis&quot;:{&quot;backgroundcolor&quot;:&quot;#E5ECF6&quot;,&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;showbackground&quot;:true,&quot;ticks&quot;:&quot;&quot;,&quot;zerolinecolor&quot;:&quot;white&quot;,&quot;gridwidth&quot;:2},&quot;zaxis&quot;:{&quot;backgroundcolor&quot;:&quot;#E5ECF6&quot;,&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;showbackground&quot;:true,&quot;ticks&quot;:&quot;&quot;,&quot;zerolinecolor&quot;:&quot;white&quot;,&quot;gridwidth&quot;:2}},&quot;shapedefaults&quot;:{&quot;line&quot;:{&quot;color&quot;:&quot;#2a3f5f&quot;}},&quot;annotationdefaults&quot;:{&quot;arrowcolor&quot;:&quot;#2a3f5f&quot;,&quot;arrowhead&quot;:0,&quot;arrowwidth&quot;:1},&quot;geo&quot;:{&quot;bgcolor&quot;:&quot;white&quot;,&quot;landcolor&quot;:&quot;#E5ECF6&quot;,&quot;subunitcolor&quot;:&quot;white&quot;,&quot;showland&quot;:true,&quot;showlakes&quot;:true,&quot;lakecolor&quot;:&quot;white&quot;},&quot;title&quot;:{&quot;x&quot;:0.05}}},&quot;margin&quot;:{&quot;l&quot;:10,&quot;r&quot;:10,&quot;t&quot;:30,&quot;b&quot;:10},&quot;font&quot;:{&quot;size&quot;:12},&quot;title&quot;:{&quot;text&quot;:&quot;Brier on emotion per arm (lower is better)&quot;},&quot;yaxis&quot;:{&quot;title&quot;:{&quot;text&quot;:&quot;Brier&quot;}},&quot;height&quot;:300},                        {&quot;responsive&quot;: true}                    )                };            &amp;lt;/script&amp;gt;        &amp;lt;/div&amp;gt;&lt;/p&gt;
&lt;p&gt;Brier on emotion per arm, lower is better: whisper C-temp wins at 0.667, the train-fit constant sits at 0.710, and every prosody and text-only arm loses to the constant. Rank all twelve arms by ECE and by Brier and the orderings come out near-independent (Spearman +0.147 / -0.294 / -0.266 across the three questions). So, ECE wasn&apos;t ranking calibration quality, it was ranking distance from a degenerate solution.&lt;/p&gt;
&lt;h2&gt;The... prosody effect?&lt;/h2&gt;
&lt;p&gt;The dataset I used (&lt;a href=&quot;https://github.com/declare-lab/MELD&quot;&gt;MELD&lt;/a&gt;) ships one label per utterance, I digged a bit and found &lt;a href=&quot;https://github.com/bshmueli/EmotionX-2019&quot;&gt;EmotionLines&lt;/a&gt; (via the EmotionX 2019 release), the dataset MELD was built from. It had kept the raw annotator vote string, so I had actual annotator votes about the emotions. One correction though: the five annotators saw &lt;em&gt;text only&lt;/em&gt;, so the vote spread (e.g. &quot;2000030&quot; over neutral/joy/sadness/fear/anger/surprise/disgust) measures transcript ambiguity, not prosody. MELD re-annotated with audio-visual and never released those votes, so an audio-side annotator distribution simply doesn&apos;t exist here. Nothing more than the vote string, but it joined perfectly: 2,610 of 2,610 test rows on speaker+text.&lt;/p&gt;
&lt;p&gt;Well, I tried running several encoders (the four from the Architecture section above), the one that ingests prosody explicitly didn&apos;t perform well, hell, just knowing the dialogue history when the speech in the audio is somewhat clean was better. To be precise: Whisper did clearly beat history-only (emotion Brier 0.671 vs 0.712), so the lexical-content-in-latent-space story holds for Whisper; it&apos;s the hand-built prosody arm that carried essentially nothing (0.718, worse than history alone).&lt;/p&gt;
&lt;p&gt;I did get excited about a stratified version of this once, prosody looked better than the text baseline exactly where transcripts misled, then I scored every arm against its own stratum&apos;s base rate instead (the clear stratum is 59.4% neutral, the ambiguous one 29.7%), and the effect died.&lt;/p&gt;
&lt;p&gt;&amp;lt;div style=&quot;height:300px; width:100%;&quot;&amp;gt;                            &amp;lt;div id=&quot;abf4ed4e-5099-4f75-a492-d684fcf5332b&quot; class=&quot;plotly-graph-div&quot; style=&quot;height:100%; width:100%;&quot;&amp;gt;&amp;lt;/div&amp;gt;            &amp;lt;script&amp;gt;                window.PLOTLYENV=window.PLOTLYENV || {};                                if (document.getElementById(&quot;abf4ed4e-5099-4f75-a492-d684fcf5332b&quot;)) {                    Plotly.newPlot(                        &quot;abf4ed4e-5099-4f75-a492-d684fcf5332b&quot;,                        [{&quot;name&quot;:&quot;CLEAR stratum&quot;,&quot;x&quot;:[&quot;whisper&quot;,&quot;wavlm&quot;,&quot;prosody&quot;,&quot;text-only&quot;],&quot;y&quot;:[0.048,-0.007,-0.11,-0.05],&quot;type&quot;:&quot;bar&quot;},{&quot;name&quot;:&quot;AMBIG stratum&quot;,&quot;x&quot;:[&quot;whisper&quot;,&quot;wavlm&quot;,&quot;prosody&quot;,&quot;text-only&quot;],&quot;y&quot;:[-0.029,-0.023,-0.025,-0.056],&quot;type&quot;:&quot;bar&quot;}],                        {&quot;template&quot;:{&quot;data&quot;:{&quot;histogram2dcontour&quot;:[{&quot;type&quot;:&quot;histogram2dcontour&quot;,&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;},&quot;colorscale&quot;:[[0.0,&quot;#0d0887&quot;],[0.1111111111111111,&quot;#46039f&quot;],[0.2222222222222222,&quot;#7201a8&quot;],[0.3333333333333333,&quot;#9c179e&quot;],[0.4444444444444444,&quot;#bd3786&quot;],[0.5555555555555556,&quot;#d8576b&quot;],[0.6666666666666666,&quot;#ed7953&quot;],[0.7777777777777778,&quot;#fb9f3a&quot;],[0.8888888888888888,&quot;#fdca26&quot;],[1.0,&quot;#f0f921&quot;]]}],&quot;choropleth&quot;:[{&quot;type&quot;:&quot;choropleth&quot;,&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}}],&quot;histogram2d&quot;:[{&quot;type&quot;:&quot;histogram2d&quot;,&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;},&quot;colorscale&quot;:[[0.0,&quot;#0d0887&quot;],[0.1111111111111111,&quot;#46039f&quot;],[0.2222222222222222,&quot;#7201a8&quot;],[0.3333333333333333,&quot;#9c179e&quot;],[0.4444444444444444,&quot;#bd3786&quot;],[0.5555555555555556,&quot;#d8576b&quot;],[0.6666666666666666,&quot;#ed7953&quot;],[0.7777777777777778,&quot;#fb9f3a&quot;],[0.8888888888888888,&quot;#fdca26&quot;],[1.0,&quot;#f0f921&quot;]]}],&quot;heatmap&quot;:[{&quot;type&quot;:&quot;heatmap&quot;,&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;},&quot;colorscale&quot;:[[0.0,&quot;#0d0887&quot;],[0.1111111111111111,&quot;#46039f&quot;],[0.2222222222222222,&quot;#7201a8&quot;],[0.3333333333333333,&quot;#9c179e&quot;],[0.4444444444444444,&quot;#bd3786&quot;],[0.5555555555555556,&quot;#d8576b&quot;],[0.6666666666666666,&quot;#ed7953&quot;],[0.7777777777777778,&quot;#fb9f3a&quot;],[0.8888888888888888,&quot;#fdca26&quot;],[1.0,&quot;#f0f921&quot;]]}],&quot;contourcarpet&quot;:[{&quot;type&quot;:&quot;contourcarpet&quot;,&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}}],&quot;contour&quot;:[{&quot;type&quot;:&quot;contour&quot;,&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;},&quot;colorscale&quot;:[[0.0,&quot;#0d0887&quot;],[0.1111111111111111,&quot;#46039f&quot;],[0.2222222222222222,&quot;#7201a8&quot;],[0.3333333333333333,&quot;#9c179e&quot;],[0.4444444444444444,&quot;#bd3786&quot;],[0.5555555555555556,&quot;#d8576b&quot;],[0.6666666666666666,&quot;#ed7953&quot;],[0.7777777777777778,&quot;#fb9f3a&quot;],[0.8888888888888888,&quot;#fdca26&quot;],[1.0,&quot;#f0f921&quot;]]}],&quot;surface&quot;:[{&quot;type&quot;:&quot;surface&quot;,&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;},&quot;colorscale&quot;:[[0.0,&quot;#0d0887&quot;],[0.1111111111111111,&quot;#46039f&quot;],[0.2222222222222222,&quot;#7201a8&quot;],[0.3333333333333333,&quot;#9c179e&quot;],[0.4444444444444444,&quot;#bd3786&quot;],[0.5555555555555556,&quot;#d8576b&quot;],[0.6666666666666666,&quot;#ed7953&quot;],[0.7777777777777778,&quot;#fb9f3a&quot;],[0.8888888888888888,&quot;#fdca26&quot;],[1.0,&quot;#f0f921&quot;]]}],&quot;mesh3d&quot;:[{&quot;type&quot;:&quot;mesh3d&quot;,&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}}],&quot;scatter&quot;:[{&quot;fillpattern&quot;:{&quot;fillmode&quot;:&quot;overlay&quot;,&quot;size&quot;:10,&quot;solidity&quot;:0.2},&quot;type&quot;:&quot;scatter&quot;}],&quot;parcoords&quot;:[{&quot;type&quot;:&quot;parcoords&quot;,&quot;line&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}}}],&quot;scatterpolargl&quot;:[{&quot;type&quot;:&quot;scatterpolargl&quot;,&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}}}],&quot;bar&quot;:[{&quot;error_x&quot;:{&quot;color&quot;:&quot;#2a3f5f&quot;},&quot;error_y&quot;:{&quot;color&quot;:&quot;#2a3f5f&quot;},&quot;marker&quot;:{&quot;line&quot;:{&quot;color&quot;:&quot;#E5ECF6&quot;,&quot;width&quot;:0.5},&quot;pattern&quot;:{&quot;fillmode&quot;:&quot;overlay&quot;,&quot;size&quot;:10,&quot;solidity&quot;:0.2}},&quot;type&quot;:&quot;bar&quot;}],&quot;scattergeo&quot;:[{&quot;type&quot;:&quot;scattergeo&quot;,&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}}}],&quot;scatterpolar&quot;:[{&quot;type&quot;:&quot;scatterpolar&quot;,&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}}}],&quot;histogram&quot;:[{&quot;marker&quot;:{&quot;pattern&quot;:{&quot;fillmode&quot;:&quot;overlay&quot;,&quot;size&quot;:10,&quot;solidity&quot;:0.2}},&quot;type&quot;:&quot;histogram&quot;}],&quot;scattergl&quot;:[{&quot;type&quot;:&quot;scattergl&quot;,&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}}}],&quot;scatter3d&quot;:[{&quot;type&quot;:&quot;scatter3d&quot;,&quot;line&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}},&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}}}],&quot;scattermap&quot;:[{&quot;type&quot;:&quot;scattermap&quot;,&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}}}],&quot;scatterternary&quot;:[{&quot;type&quot;:&quot;scatterternary&quot;,&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}}}],&quot;scattercarpet&quot;:[{&quot;type&quot;:&quot;scattercarpet&quot;,&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}}}],&quot;carpet&quot;:[{&quot;aaxis&quot;:{&quot;endlinecolor&quot;:&quot;#2a3f5f&quot;,&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;minorgridcolor&quot;:&quot;white&quot;,&quot;startlinecolor&quot;:&quot;#2a3f5f&quot;},&quot;baxis&quot;:{&quot;endlinecolor&quot;:&quot;#2a3f5f&quot;,&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;minorgridcolor&quot;:&quot;white&quot;,&quot;startlinecolor&quot;:&quot;#2a3f5f&quot;},&quot;type&quot;:&quot;carpet&quot;}],&quot;table&quot;:[{&quot;cells&quot;:{&quot;fill&quot;:{&quot;color&quot;:&quot;#EBF0F8&quot;},&quot;line&quot;:{&quot;color&quot;:&quot;white&quot;}},&quot;header&quot;:{&quot;fill&quot;:{&quot;color&quot;:&quot;#C8D4E3&quot;},&quot;line&quot;:{&quot;color&quot;:&quot;white&quot;}},&quot;type&quot;:&quot;table&quot;}],&quot;barpolar&quot;:[{&quot;marker&quot;:{&quot;line&quot;:{&quot;color&quot;:&quot;#E5ECF6&quot;,&quot;width&quot;:0.5},&quot;pattern&quot;:{&quot;fillmode&quot;:&quot;overlay&quot;,&quot;size&quot;:10,&quot;solidity&quot;:0.2}},&quot;type&quot;:&quot;barpolar&quot;}],&quot;pie&quot;:[{&quot;automargin&quot;:true,&quot;type&quot;:&quot;pie&quot;}]},&quot;layout&quot;:{&quot;autotypenumbers&quot;:&quot;strict&quot;,&quot;colorway&quot;:[&quot;#636efa&quot;,&quot;#EF553B&quot;,&quot;#00cc96&quot;,&quot;#ab63fa&quot;,&quot;#FFA15A&quot;,&quot;#19d3f3&quot;,&quot;#FF6692&quot;,&quot;#B6E880&quot;,&quot;#FF97FF&quot;,&quot;#FECB52&quot;],&quot;font&quot;:{&quot;color&quot;:&quot;#2a3f5f&quot;},&quot;hovermode&quot;:&quot;closest&quot;,&quot;hoverlabel&quot;:{&quot;align&quot;:&quot;left&quot;},&quot;paper_bgcolor&quot;:&quot;white&quot;,&quot;plot_bgcolor&quot;:&quot;#E5ECF6&quot;,&quot;polar&quot;:{&quot;bgcolor&quot;:&quot;#E5ECF6&quot;,&quot;angularaxis&quot;:{&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;ticks&quot;:&quot;&quot;},&quot;radialaxis&quot;:{&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;ticks&quot;:&quot;&quot;}},&quot;ternary&quot;:{&quot;bgcolor&quot;:&quot;#E5ECF6&quot;,&quot;aaxis&quot;:{&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;ticks&quot;:&quot;&quot;},&quot;baxis&quot;:{&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;ticks&quot;:&quot;&quot;},&quot;caxis&quot;:{&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;ticks&quot;:&quot;&quot;}},&quot;coloraxis&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}},&quot;colorscale&quot;:{&quot;sequential&quot;:[[0.0,&quot;#0d0887&quot;],[0.1111111111111111,&quot;#46039f&quot;],[0.2222222222222222,&quot;#7201a8&quot;],[0.3333333333333333,&quot;#9c179e&quot;],[0.4444444444444444,&quot;#bd3786&quot;],[0.5555555555555556,&quot;#d8576b&quot;],[0.6666666666666666,&quot;#ed7953&quot;],[0.7777777777777778,&quot;#fb9f3a&quot;],[0.8888888888888888,&quot;#fdca26&quot;],[1.0,&quot;#f0f921&quot;]],&quot;sequentialminus&quot;:[[0.0,&quot;#0d0887&quot;],[0.1111111111111111,&quot;#46039f&quot;],[0.2222222222222222,&quot;#7201a8&quot;],[0.3333333333333333,&quot;#9c179e&quot;],[0.4444444444444444,&quot;#bd3786&quot;],[0.5555555555555556,&quot;#d8576b&quot;],[0.6666666666666666,&quot;#ed7953&quot;],[0.7777777777777778,&quot;#fb9f3a&quot;],[0.8888888888888888,&quot;#fdca26&quot;],[1.0,&quot;#f0f921&quot;]],&quot;diverging&quot;:[[0,&quot;#8e0152&quot;],[0.1,&quot;#c51b7d&quot;],[0.2,&quot;#de77ae&quot;],[0.3,&quot;#f1b6da&quot;],[0.4,&quot;#fde0ef&quot;],[0.5,&quot;#f7f7f7&quot;],[0.6,&quot;#e6f5d0&quot;],[0.7,&quot;#b8e186&quot;],[0.8,&quot;#7fbc41&quot;],[0.9,&quot;#4d9221&quot;],[1,&quot;#276419&quot;]]},&quot;xaxis&quot;:{&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;ticks&quot;:&quot;&quot;,&quot;title&quot;:{&quot;standoff&quot;:15},&quot;zerolinecolor&quot;:&quot;white&quot;,&quot;automargin&quot;:true,&quot;zerolinewidth&quot;:2},&quot;yaxis&quot;:{&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;ticks&quot;:&quot;&quot;,&quot;title&quot;:{&quot;standoff&quot;:15},&quot;zerolinecolor&quot;:&quot;white&quot;,&quot;automargin&quot;:true,&quot;zerolinewidth&quot;:2},&quot;scene&quot;:{&quot;xaxis&quot;:{&quot;backgroundcolor&quot;:&quot;#E5ECF6&quot;,&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;showbackground&quot;:true,&quot;ticks&quot;:&quot;&quot;,&quot;zerolinecolor&quot;:&quot;white&quot;,&quot;gridwidth&quot;:2},&quot;yaxis&quot;:{&quot;backgroundcolor&quot;:&quot;#E5ECF6&quot;,&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;showbackground&quot;:true,&quot;ticks&quot;:&quot;&quot;,&quot;zerolinecolor&quot;:&quot;white&quot;,&quot;gridwidth&quot;:2},&quot;zaxis&quot;:{&quot;backgroundcolor&quot;:&quot;#E5ECF6&quot;,&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;showbackground&quot;:true,&quot;ticks&quot;:&quot;&quot;,&quot;zerolinecolor&quot;:&quot;white&quot;,&quot;gridwidth&quot;:2}},&quot;shapedefaults&quot;:{&quot;line&quot;:{&quot;color&quot;:&quot;#2a3f5f&quot;}},&quot;annotationdefaults&quot;:{&quot;arrowcolor&quot;:&quot;#2a3f5f&quot;,&quot;arrowhead&quot;:0,&quot;arrowwidth&quot;:1},&quot;geo&quot;:{&quot;bgcolor&quot;:&quot;white&quot;,&quot;landcolor&quot;:&quot;#E5ECF6&quot;,&quot;subunitcolor&quot;:&quot;white&quot;,&quot;showland&quot;:true,&quot;showlakes&quot;:true,&quot;lakecolor&quot;:&quot;white&quot;},&quot;title&quot;:{&quot;x&quot;:0.05}}},&quot;shapes&quot;:[{&quot;line&quot;:{&quot;color&quot;:&quot;black&quot;,&quot;dash&quot;:&quot;dash&quot;},&quot;type&quot;:&quot;line&quot;,&quot;x0&quot;:0,&quot;x1&quot;:1,&quot;xref&quot;:&quot;x domain&quot;,&quot;y0&quot;:0,&quot;y1&quot;:0,&quot;yref&quot;:&quot;y&quot;}],&quot;margin&quot;:{&quot;l&quot;:10,&quot;r&quot;:10,&quot;t&quot;:30,&quot;b&quot;:10},&quot;font&quot;:{&quot;size&quot;:12},&quot;title&quot;:{&quot;text&quot;:&quot;Brier skill vs own-stratum base rate (0 = constant; up is better)&quot;},&quot;barmode&quot;:&quot;group&quot;,&quot;height&quot;:300},                        {&quot;responsive&quot;: true}                    )                };            &amp;lt;/script&amp;gt;        &amp;lt;/div&amp;gt;&lt;/p&gt;
&lt;p&gt;Skill vs each stratum&apos;s own marginal, 0 = &quot;as good as a constant&quot;: prosody -0.110 / -0.025, never above zero anywhere; only whisper clears its base rate, and only where the transcript was already clear.&lt;/p&gt;
&lt;p&gt;So, just the prosody, doesn&apos;t carry enough info the transcription alone would destroy, at least in the dataset I&apos;ve tried this out with.&lt;/p&gt;
&lt;h2&gt;I didn&apos;t have enough data&lt;/h2&gt;
&lt;p&gt;Well, I believe the actual strength of such a model as Jev is essentially being able to learn a generalized-enough latent space, to handle different questions and options freely. I didn&apos;t have enough data, some of the emotion classes sat near zero F1, why? well, there aren&apos;t nearly enough data for some of them, that&apos;s why.&lt;/p&gt;
&lt;p&gt;&amp;lt;div style=&quot;height:300px; width:100%;&quot;&amp;gt;                            &amp;lt;div id=&quot;47a9552d-a995-426b-b725-65fc45249b51&quot; class=&quot;plotly-graph-div&quot; style=&quot;height:100%; width:100%;&quot;&amp;gt;&amp;lt;/div&amp;gt;            &amp;lt;script&amp;gt;                window.PLOTLYENV=window.PLOTLYENV || {};                                if (document.getElementById(&quot;47a9552d-a995-426b-b725-65fc45249b51&quot;)) {                    Plotly.newPlot(                        &quot;47a9552d-a995-426b-b725-65fc45249b51&quot;,                        [{&quot;marker&quot;:{&quot;color&quot;:[&quot;#636EFA&quot;,&quot;#636EFA&quot;,&quot;#636EFA&quot;,&quot;#636EFA&quot;,&quot;#EF553B&quot;,&quot;#636EFA&quot;,&quot;#636EFA&quot;]},&quot;x&quot;:[&quot;neutral&quot;,&quot;joy&quot;,&quot;surprise&quot;,&quot;anger&quot;,&quot;sadness&quot;,&quot;disgust&quot;,&quot;fear&quot;],&quot;y&quot;:[4710,1743,1205,1109,683,271,268],&quot;type&quot;:&quot;bar&quot;}],                        {&quot;template&quot;:{&quot;data&quot;:{&quot;histogram2dcontour&quot;:[{&quot;type&quot;:&quot;histogram2dcontour&quot;,&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;},&quot;colorscale&quot;:[[0.0,&quot;#0d0887&quot;],[0.1111111111111111,&quot;#46039f&quot;],[0.2222222222222222,&quot;#7201a8&quot;],[0.3333333333333333,&quot;#9c179e&quot;],[0.4444444444444444,&quot;#bd3786&quot;],[0.5555555555555556,&quot;#d8576b&quot;],[0.6666666666666666,&quot;#ed7953&quot;],[0.7777777777777778,&quot;#fb9f3a&quot;],[0.8888888888888888,&quot;#fdca26&quot;],[1.0,&quot;#f0f921&quot;]]}],&quot;choropleth&quot;:[{&quot;type&quot;:&quot;choropleth&quot;,&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}}],&quot;histogram2d&quot;:[{&quot;type&quot;:&quot;histogram2d&quot;,&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;},&quot;colorscale&quot;:[[0.0,&quot;#0d0887&quot;],[0.1111111111111111,&quot;#46039f&quot;],[0.2222222222222222,&quot;#7201a8&quot;],[0.3333333333333333,&quot;#9c179e&quot;],[0.4444444444444444,&quot;#bd3786&quot;],[0.5555555555555556,&quot;#d8576b&quot;],[0.6666666666666666,&quot;#ed7953&quot;],[0.7777777777777778,&quot;#fb9f3a&quot;],[0.8888888888888888,&quot;#fdca26&quot;],[1.0,&quot;#f0f921&quot;]]}],&quot;heatmap&quot;:[{&quot;type&quot;:&quot;heatmap&quot;,&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;},&quot;colorscale&quot;:[[0.0,&quot;#0d0887&quot;],[0.1111111111111111,&quot;#46039f&quot;],[0.2222222222222222,&quot;#7201a8&quot;],[0.3333333333333333,&quot;#9c179e&quot;],[0.4444444444444444,&quot;#bd3786&quot;],[0.5555555555555556,&quot;#d8576b&quot;],[0.6666666666666666,&quot;#ed7953&quot;],[0.7777777777777778,&quot;#fb9f3a&quot;],[0.8888888888888888,&quot;#fdca26&quot;],[1.0,&quot;#f0f921&quot;]]}],&quot;contourcarpet&quot;:[{&quot;type&quot;:&quot;contourcarpet&quot;,&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}}],&quot;contour&quot;:[{&quot;type&quot;:&quot;contour&quot;,&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;},&quot;colorscale&quot;:[[0.0,&quot;#0d0887&quot;],[0.1111111111111111,&quot;#46039f&quot;],[0.2222222222222222,&quot;#7201a8&quot;],[0.3333333333333333,&quot;#9c179e&quot;],[0.4444444444444444,&quot;#bd3786&quot;],[0.5555555555555556,&quot;#d8576b&quot;],[0.6666666666666666,&quot;#ed7953&quot;],[0.7777777777777778,&quot;#fb9f3a&quot;],[0.8888888888888888,&quot;#fdca26&quot;],[1.0,&quot;#f0f921&quot;]]}],&quot;surface&quot;:[{&quot;type&quot;:&quot;surface&quot;,&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;},&quot;colorscale&quot;:[[0.0,&quot;#0d0887&quot;],[0.1111111111111111,&quot;#46039f&quot;],[0.2222222222222222,&quot;#7201a8&quot;],[0.3333333333333333,&quot;#9c179e&quot;],[0.4444444444444444,&quot;#bd3786&quot;],[0.5555555555555556,&quot;#d8576b&quot;],[0.6666666666666666,&quot;#ed7953&quot;],[0.7777777777777778,&quot;#fb9f3a&quot;],[0.8888888888888888,&quot;#fdca26&quot;],[1.0,&quot;#f0f921&quot;]]}],&quot;mesh3d&quot;:[{&quot;type&quot;:&quot;mesh3d&quot;,&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}}],&quot;scatter&quot;:[{&quot;fillpattern&quot;:{&quot;fillmode&quot;:&quot;overlay&quot;,&quot;size&quot;:10,&quot;solidity&quot;:0.2},&quot;type&quot;:&quot;scatter&quot;}],&quot;parcoords&quot;:[{&quot;type&quot;:&quot;parcoords&quot;,&quot;line&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}}}],&quot;scatterpolargl&quot;:[{&quot;type&quot;:&quot;scatterpolargl&quot;,&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}}}],&quot;bar&quot;:[{&quot;error_x&quot;:{&quot;color&quot;:&quot;#2a3f5f&quot;},&quot;error_y&quot;:{&quot;color&quot;:&quot;#2a3f5f&quot;},&quot;marker&quot;:{&quot;line&quot;:{&quot;color&quot;:&quot;#E5ECF6&quot;,&quot;width&quot;:0.5},&quot;pattern&quot;:{&quot;fillmode&quot;:&quot;overlay&quot;,&quot;size&quot;:10,&quot;solidity&quot;:0.2}},&quot;type&quot;:&quot;bar&quot;}],&quot;scattergeo&quot;:[{&quot;type&quot;:&quot;scattergeo&quot;,&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}}}],&quot;scatterpolar&quot;:[{&quot;type&quot;:&quot;scatterpolar&quot;,&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}}}],&quot;histogram&quot;:[{&quot;marker&quot;:{&quot;pattern&quot;:{&quot;fillmode&quot;:&quot;overlay&quot;,&quot;size&quot;:10,&quot;solidity&quot;:0.2}},&quot;type&quot;:&quot;histogram&quot;}],&quot;scattergl&quot;:[{&quot;type&quot;:&quot;scattergl&quot;,&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}}}],&quot;scatter3d&quot;:[{&quot;type&quot;:&quot;scatter3d&quot;,&quot;line&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}},&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}}}],&quot;scattermap&quot;:[{&quot;type&quot;:&quot;scattermap&quot;,&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}}}],&quot;scatterternary&quot;:[{&quot;type&quot;:&quot;scatterternary&quot;,&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}}}],&quot;scattercarpet&quot;:[{&quot;type&quot;:&quot;scattercarpet&quot;,&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}}}],&quot;carpet&quot;:[{&quot;aaxis&quot;:{&quot;endlinecolor&quot;:&quot;#2a3f5f&quot;,&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;minorgridcolor&quot;:&quot;white&quot;,&quot;startlinecolor&quot;:&quot;#2a3f5f&quot;},&quot;baxis&quot;:{&quot;endlinecolor&quot;:&quot;#2a3f5f&quot;,&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;minorgridcolor&quot;:&quot;white&quot;,&quot;startlinecolor&quot;:&quot;#2a3f5f&quot;},&quot;type&quot;:&quot;carpet&quot;}],&quot;table&quot;:[{&quot;cells&quot;:{&quot;fill&quot;:{&quot;color&quot;:&quot;#EBF0F8&quot;},&quot;line&quot;:{&quot;color&quot;:&quot;white&quot;}},&quot;header&quot;:{&quot;fill&quot;:{&quot;color&quot;:&quot;#C8D4E3&quot;},&quot;line&quot;:{&quot;color&quot;:&quot;white&quot;}},&quot;type&quot;:&quot;table&quot;}],&quot;barpolar&quot;:[{&quot;marker&quot;:{&quot;line&quot;:{&quot;color&quot;:&quot;#E5ECF6&quot;,&quot;width&quot;:0.5},&quot;pattern&quot;:{&quot;fillmode&quot;:&quot;overlay&quot;,&quot;size&quot;:10,&quot;solidity&quot;:0.2}},&quot;type&quot;:&quot;barpolar&quot;}],&quot;pie&quot;:[{&quot;automargin&quot;:true,&quot;type&quot;:&quot;pie&quot;}]},&quot;layout&quot;:{&quot;autotypenumbers&quot;:&quot;strict&quot;,&quot;colorway&quot;:[&quot;#636efa&quot;,&quot;#EF553B&quot;,&quot;#00cc96&quot;,&quot;#ab63fa&quot;,&quot;#FFA15A&quot;,&quot;#19d3f3&quot;,&quot;#FF6692&quot;,&quot;#B6E880&quot;,&quot;#FF97FF&quot;,&quot;#FECB52&quot;],&quot;font&quot;:{&quot;color&quot;:&quot;#2a3f5f&quot;},&quot;hovermode&quot;:&quot;closest&quot;,&quot;hoverlabel&quot;:{&quot;align&quot;:&quot;left&quot;},&quot;paper_bgcolor&quot;:&quot;white&quot;,&quot;plot_bgcolor&quot;:&quot;#E5ECF6&quot;,&quot;polar&quot;:{&quot;bgcolor&quot;:&quot;#E5ECF6&quot;,&quot;angularaxis&quot;:{&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;ticks&quot;:&quot;&quot;},&quot;radialaxis&quot;:{&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;ticks&quot;:&quot;&quot;}},&quot;ternary&quot;:{&quot;bgcolor&quot;:&quot;#E5ECF6&quot;,&quot;aaxis&quot;:{&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;ticks&quot;:&quot;&quot;},&quot;baxis&quot;:{&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;ticks&quot;:&quot;&quot;},&quot;caxis&quot;:{&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;ticks&quot;:&quot;&quot;}},&quot;coloraxis&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}},&quot;colorscale&quot;:{&quot;sequential&quot;:[[0.0,&quot;#0d0887&quot;],[0.1111111111111111,&quot;#46039f&quot;],[0.2222222222222222,&quot;#7201a8&quot;],[0.3333333333333333,&quot;#9c179e&quot;],[0.4444444444444444,&quot;#bd3786&quot;],[0.5555555555555556,&quot;#d8576b&quot;],[0.6666666666666666,&quot;#ed7953&quot;],[0.7777777777777778,&quot;#fb9f3a&quot;],[0.8888888888888888,&quot;#fdca26&quot;],[1.0,&quot;#f0f921&quot;]],&quot;sequentialminus&quot;:[[0.0,&quot;#0d0887&quot;],[0.1111111111111111,&quot;#46039f&quot;],[0.2222222222222222,&quot;#7201a8&quot;],[0.3333333333333333,&quot;#9c179e&quot;],[0.4444444444444444,&quot;#bd3786&quot;],[0.5555555555555556,&quot;#d8576b&quot;],[0.6666666666666666,&quot;#ed7953&quot;],[0.7777777777777778,&quot;#fb9f3a&quot;],[0.8888888888888888,&quot;#fdca26&quot;],[1.0,&quot;#f0f921&quot;]],&quot;diverging&quot;:[[0,&quot;#8e0152&quot;],[0.1,&quot;#c51b7d&quot;],[0.2,&quot;#de77ae&quot;],[0.3,&quot;#f1b6da&quot;],[0.4,&quot;#fde0ef&quot;],[0.5,&quot;#f7f7f7&quot;],[0.6,&quot;#e6f5d0&quot;],[0.7,&quot;#b8e186&quot;],[0.8,&quot;#7fbc41&quot;],[0.9,&quot;#4d9221&quot;],[1,&quot;#276419&quot;]]},&quot;xaxis&quot;:{&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;ticks&quot;:&quot;&quot;,&quot;title&quot;:{&quot;standoff&quot;:15},&quot;zerolinecolor&quot;:&quot;white&quot;,&quot;automargin&quot;:true,&quot;zerolinewidth&quot;:2},&quot;yaxis&quot;:{&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;ticks&quot;:&quot;&quot;,&quot;title&quot;:{&quot;standoff&quot;:15},&quot;zerolinecolor&quot;:&quot;white&quot;,&quot;automargin&quot;:true,&quot;zerolinewidth&quot;:2},&quot;scene&quot;:{&quot;xaxis&quot;:{&quot;backgroundcolor&quot;:&quot;#E5ECF6&quot;,&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;showbackground&quot;:true,&quot;ticks&quot;:&quot;&quot;,&quot;zerolinecolor&quot;:&quot;white&quot;,&quot;gridwidth&quot;:2},&quot;yaxis&quot;:{&quot;backgroundcolor&quot;:&quot;#E5ECF6&quot;,&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;showbackground&quot;:true,&quot;ticks&quot;:&quot;&quot;,&quot;zerolinecolor&quot;:&quot;white&quot;,&quot;gridwidth&quot;:2},&quot;zaxis&quot;:{&quot;backgroundcolor&quot;:&quot;#E5ECF6&quot;,&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;showbackground&quot;:true,&quot;ticks&quot;:&quot;&quot;,&quot;zerolinecolor&quot;:&quot;white&quot;,&quot;gridwidth&quot;:2}},&quot;shapedefaults&quot;:{&quot;line&quot;:{&quot;color&quot;:&quot;#2a3f5f&quot;}},&quot;annotationdefaults&quot;:{&quot;arrowcolor&quot;:&quot;#2a3f5f&quot;,&quot;arrowhead&quot;:0,&quot;arrowwidth&quot;:1},&quot;geo&quot;:{&quot;bgcolor&quot;:&quot;white&quot;,&quot;landcolor&quot;:&quot;#E5ECF6&quot;,&quot;subunitcolor&quot;:&quot;white&quot;,&quot;showland&quot;:true,&quot;showlakes&quot;:true,&quot;lakecolor&quot;:&quot;white&quot;},&quot;title&quot;:{&quot;x&quot;:0.05}}},&quot;margin&quot;:{&quot;l&quot;:10,&quot;r&quot;:10,&quot;t&quot;:30,&quot;b&quot;:10},&quot;font&quot;:{&quot;size&quot;:12},&quot;title&quot;:{&quot;text&quot;:&quot;MELD train examples per emotion class&quot;},&quot;yaxis&quot;:{&quot;title&quot;:{&quot;text&quot;:&quot;n&quot;}},&quot;height&quot;:300},                        {&quot;responsive&quot;: true}                    )                };            &amp;lt;/script&amp;gt;        &amp;lt;/div&amp;gt;&lt;/p&gt;
&lt;p&gt;Train counts: neutral 4710, joy 1743, surprise 1205, anger 1109, sadness 683, disgust 271, fear 268.&lt;/p&gt;
&lt;p&gt;I tried some diagnostic runs with inverse-frequency class weights but yeah that also didn&apos;t work well. The diagnostic actually split three ways: &lt;strong&gt;joy recovered for real&lt;/strong&gt; (F1 0.216 to 0.310, recall 0.152 to 0.328, the samples were there all along, plain cross-entropy was suppressing the second-commonest class); &lt;strong&gt;sadness didn&apos;t move at all&lt;/strong&gt; (recall never above 2.9% on any encoder under a 6.9x upweight, at 683 examples that reads as the representation not holding the distinction, not the objective); and &lt;strong&gt;fear/disgust &quot;recovered&quot; at precision 0.018-0.051&lt;/strong&gt;, i.e. 95-97% of those predictions wrong, recall bought at nothing. Plus collateral damage: the aggressive weighting broke surprise (0.314 to 0.132 on whisper).&lt;/p&gt;
&lt;h2&gt;The data... f#!@&lt;/h2&gt;
&lt;p&gt;I was just checking through some of the clips I had in the data, well, some of them were just too short to contain the transcript, so the audio/transcript alignment was off too.&lt;/p&gt;
&lt;p&gt;The poster child is &lt;code&gt;meld-test-173-2&lt;/code&gt;: &quot;No, she doesn&apos;t&quot; in a declared span of &lt;strong&gt;177 milliseconds&lt;/strong&gt;. I can&apos;t embed the actual Friends clip here (Warner Bros owns that audio; MELD&apos;s GPL license can&apos;t give it away), so here&apos;s the same sentence recreated, first at natural length, then cut to the same 177ms the dataset declares:&lt;/p&gt;
&lt;p&gt;full version:&lt;/p&gt;
&lt;p&gt;&amp;lt;audio controls src=&quot;/prosodia/noshedoesnt-full.mp3&quot;&amp;gt;&amp;lt;/audio&amp;gt;&lt;/p&gt;
&lt;p&gt;cut version in the dataset (177ms):
&amp;lt;audio controls src=&quot;/prosodia/noshedoesnt-177ms.mp3&quot;&amp;gt;&amp;lt;/audio&amp;gt;&lt;/p&gt;
&lt;p&gt;So, I had a running whisper server on my local already, I just checked roundtrip ASR results to see if WER hits too high, a.k.a the ground truth transcript is just too different than what model predicts. WER blew up embarrassingly (worst case: ref &quot;y&apos;know&quot; vs 33 ASR words, WER 33, on a one-word reference WER tells you nothing), and my replacement matcher anchored on the first word and reported 34.7% of clips at zero coverage while showing obviously-aligned pairs scoring 0.00. Third attempt with LCS ratio survived both failure modes: 40.7% of clips transcribe perfectly, median 0.89.&lt;/p&gt;
&lt;p&gt;At least the corpus wasn&apos;t actually too bad, only 3.3% of the samples had the alignment mismatch (plus 2% timestamp defects like the one above, now filtered from derived labels, and ~7% single interjections ASR just can&apos;t score), so I just filtered them out.&lt;/p&gt;
&lt;h2&gt;final words&lt;/h2&gt;
&lt;p&gt;It was a cool thing to try out, and obviously it requires a way bigger dataset (preferably something longer than 7 hours :( ) to try it out.&lt;/p&gt;
&lt;p&gt;I think it would be pretty nice to have a generalized version of this to act like a gateway in actual voice agents, though not sure how long we need STT-&amp;gt;LLM-&amp;gt;TTS loops considering &lt;a href=&quot;https://arxiv.org/abs/2609.19334&quot;&gt;full-duplex speech models getting tool-call support&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Code: &lt;a href=&quot;https://github.com/alperiox/audio-jevlike&quot;&gt;alperiox/audio-jevlike&lt;/a&gt; · Demo: &lt;a href=&quot;https://huggingface.co/spaces/alperiox/prosodia&quot;&gt;alperiox/prosodia&lt;/a&gt; · Trained on &lt;a href=&quot;https://github.com/declare-lab/MELD&quot;&gt;MELD&lt;/a&gt; (GPL-3.0).&lt;/p&gt;
</content:encoded></item><item><title>RAG for Q&amp;A with PDFs</title><link>https://alperiox.dev/posts/rag-pdf-qna/</link><guid isPermaLink="true">https://alperiox.dev/posts/rag-pdf-qna/</guid><description>Use Gemini to answer questions using a PDF as the knowledge store</description><pubDate>Fri, 07 Jun 2024 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;In order to improve my Upwork profile a little, I grabbed the most successful freelancers in AI and checked their projects. One of them was building a retrieval system for question answering with PDFs, so here we are.&lt;/p&gt;
&lt;p&gt;I always lean on cloud providers when it comes to LLMs. This time too, I used Gemini with GCP. The project was rather simple, I needed to construct vector database, fetch documents and use them in the prompt that will generate the real answer. I also needed a graphical interface so I had to choose between Gradio or Streamlit.&lt;/p&gt;
&lt;p&gt;My toolset was pretty simple, &lt;a href=&quot;https://www.langchain.com/&quot;&gt;Langchain&lt;/a&gt; for utilizing the LLM and setting up the retrieval system and &lt;a href=&quot;https://streamlit.io/&quot;&gt;Streamlit&lt;/a&gt; for the user interface. I defined several variables to store the session data in &lt;a href=&quot;https://streamlit.io/&quot;&gt;Streamlit&lt;/a&gt;, specifically for storing the path of currently selected PDF, the list of uploaded documents, currently loaded vector store, and for the retrieval system.&lt;/p&gt;
&lt;p&gt;I simply created a new Chroma vector database when a document is uploaded for the first time, the documents were splitted to chunks of &lt;code&gt;1000&lt;/code&gt; characters and the embeddings were calculated using &lt;a href=&quot;https://cloud.google.com/vertex-ai&quot;&gt;VertexAI&lt;/a&gt;s embedding model, &lt;code&gt;textembedding-gecko&lt;/code&gt;. The database was also stored in the filesystem with a random &lt;code&gt;uuid&lt;/code&gt;. Loading the corresponding database when it&apos;s selected in the user interface was simple, the important thing was to set up the LLM chain successfully so we could retrieve the data from the database. And thankfully it was also easy thanks to &lt;a href=&quot;https://www.langchain.com/&quot;&gt;Langchain&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;And in the end, here&apos;s the finished version of it:&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;../../assets/rag-pdf-qna/image.png&quot; alt=&quot;chatting with pdfs 1&quot; /&gt;
&lt;img src=&quot;../../assets/rag-pdf-qna/image-1.png&quot; alt=&quot;chatting with pdfs 2&quot; /&gt;&lt;/p&gt;
&lt;p&gt;The project is not deployed on anywhere, but is &lt;a href=&quot;https://github.com/alperiox/rag-pdf-qna&quot;&gt;available on github&lt;/a&gt;.&lt;/p&gt;
</content:encoded></item><item><title>TinyAya Expedition: S2S Translation from a Text Backbone?</title><link>https://alperiox.dev/posts/tinyaya-expedition-retrospective/</link><guid isPermaLink="true">https://alperiox.dev/posts/tinyaya-expedition-retrospective/</guid><description>A retrospective on building a Turkish-Hindi speech-to-speech translation model from scratch — the decisions we made, the ones we got wrong, and what we would do differently.</description><pubDate>Fri, 10 Jul 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;I had the chance to lead an expedition team in TinyAya Expedition of Cohere, here&apos;s my experience on building a Turkish - Hindi speech to speech translation model, from scratch (?).&lt;/p&gt;
&lt;h2&gt;The Premise&lt;/h2&gt;
&lt;p&gt;I was pretty interested in Speech to Speech models and was thinking of working on some more modeling in my spare time, while looking around for what to build, I saw TinyAya Expedition; an expedition where teams are trying to build something out of TinyAya models. The model doesn&apos;t support multimodality but supports 70+ languages, so figured it&apos;d be a fun project to try to make it S2S.&lt;/p&gt;
&lt;p&gt;Thankfully when I proposed the project there were some people that are interested in it, so we met, tried to come up with a plan, and then started working. Since our members were either Hindi or Turkish, we picked those two for our translation task.&lt;/p&gt;
&lt;p&gt;The question was if a text-only multilingual model would learn speech-to-speech translation without explicit and massive audio pre-training beforehand. We picked translation because we wanted it to have a purpose, and was curious if TinyAya&apos;s language support would help it learn the task.&lt;/p&gt;
&lt;p&gt;Our plan was pretty simple though, adapt Moshi&apos;s architecture, swap the backbone with TinyAya, generate data and then train!&lt;/p&gt;
&lt;p&gt;Applying the plan though... wasn&apos;t so simple.&lt;/p&gt;
&lt;h2&gt;1: The Codec Dead End&lt;/h2&gt;
&lt;p&gt;Our first major decision was whether to fine-tune Mimi (Moshi&apos;s audio codec) on Hindi/Turkish speech or use it off-the-shelf.&lt;/p&gt;
&lt;p&gt;So we spent some time on benchmarking several codecs, tried finetuning Mimi (Moshi&apos;s codec), DualCodec, and while there were several more codecs on our list, we weren&apos;t able to finish benchmarking all of them. Mainly because we were busy with our daily work, the expedition was a side project, after all.&lt;/p&gt;
&lt;p&gt;Though at the end, we couldn&apos;t see any marginal improvement on our target languages when we tried finetuning Mimi and DualCodec. While i&apos;m sure our training setup wasn&apos;t optimized for increasing their performance on the languages we picked, the diminishing results from the training indicated we&apos;re already good to go with the base Mimi:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Codec&lt;/th&gt;
&lt;th&gt;OOD STOI&lt;/th&gt;
&lt;th&gt;OOD PESQ-wb&lt;/th&gt;
&lt;th&gt;OOD DNSMOS&lt;/th&gt;
&lt;th&gt;Verdict&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Base Mimi&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0.921&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;3.31&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;2.87&lt;/td&gt;
&lt;td&gt;Best generalization&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Fine-tuned Mimi&lt;/td&gt;
&lt;td&gt;0.825&lt;/td&gt;
&lt;td&gt;2.27&lt;/td&gt;
&lt;td&gt;2.76&lt;/td&gt;
&lt;td&gt;Overfitted, degraded&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;DualCodec&lt;/td&gt;
&lt;td&gt;0.881&lt;/td&gt;
&lt;td&gt;2.40&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;2.95&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Best perceptual, worst signal&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;strong&gt;Decision:&lt;/strong&gt; Use base Mimi unmodified. This was the right call — it also meant Moshiko&apos;s pretrained depth decoder weights worked without adaptation. So... less parameters to optimize.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What we&apos;d do differently:&lt;/strong&gt; Skip the codec fine-tuning entirely. The quality we were getting from the base codecs were good-enough already and we neither had training compute nor time to work on the project exhaustively. We should have recognized this from the start and saved the time.&lt;/p&gt;
&lt;h2&gt;2: Data Generation — Cheap but Messy&lt;/h2&gt;
&lt;p&gt;No TR&amp;lt;-&amp;gt;HI parallel speech corpus exists, so we built one. This part actually worked well — eventually.&lt;/p&gt;
&lt;h3&gt;TTS Model Selection&lt;/h3&gt;
&lt;p&gt;We evaluated four TTS models: XTTSv2, Chatterbox, Fish Speech, and OmniVoice.&lt;/p&gt;
&lt;p&gt;Our setup was simple, collect Turkish or Hindi text from online datasets or generate the text -&amp;gt; translate using Command from Cohere if we don&apos;t have the Turkish&amp;lt;-&amp;gt;Hindi pair -&amp;gt; generate speech -&amp;gt; check the generated speech.&lt;/p&gt;
&lt;p&gt;The best decision was using Vast.ai, apparently it&apos;s possible to manage bunch of instances through an api key, so with limited scopes, it&apos;s also possible to come up with a simple MCP that manages these instances and get you the cheapest instances possible, I have a small mcp server for it, so we used that one: &lt;a href=&quot;https://github.com/alperiox/vast-mcp&quot;&gt;vast-mcp&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I guess the second best decision here was using OmniVoice voice design, it supports structured text descriptions like &lt;code&gt;[gender]female[pitch]moderate[accent]Indian&lt;/code&gt; so it was possible to expand our dataset to variety of speakers. We had tried simple voice cloning but it was fairly slow compared to designing the voice. But it had its setbacks too, some text descriptions we&apos;ve used throughout the data generation was producing erroneous samples pretty frequently.&lt;/p&gt;
&lt;p&gt;At the end, we designed 14 voice profiles and deployed 42 Vast.ai GPU instances, cost ~$50 for 911 hours and 1.3M clips of data.&lt;/p&gt;
&lt;h3&gt;Quality Control&lt;/h3&gt;
&lt;p&gt;Of course since we&apos;re generating synthetic data, we had to come up with a quality control mechanism, we built &lt;a href=&quot;https://github.com/tiny-aya-simultaneous-translation/sound-quality-check&quot;&gt;sound-quality-check&lt;/a&gt;, a simple round-trip ASR validation pipeline: generate audio → transcribe back with Whisper → compare against original text. 86% pass rate. The 14% failures concentrated in extreme voice designs (&lt;code&gt;male_old_deep&lt;/code&gt; had the highest rejection rate) and very long sentences.&lt;/p&gt;
&lt;h2&gt;3: Architecture — Getting the Details Wrong&lt;/h2&gt;
&lt;p&gt;The architecture itself (Moshi-style three-stream with TinyAya backbone) was sound. The implementation had bugs, because debugging all those stuff after my 12+ hr shifts were a bit tiring, honestly. Here are some of the bugs we found out and fixed along the way:&lt;/p&gt;
&lt;h3&gt;The Off-by-One That Looked Fine&lt;/h3&gt;
&lt;p&gt;The composite model&apos;s depth decoder position mapping was initially wrong: position 0 (text prediction) was matched against CB0 targets. Total training loss was 0.007 — looked perfect. But per-codebook accuracy revealed every single codebook was misaligned by one position. Aggregate metrics hid a fundamental bug.&lt;/p&gt;
&lt;h3&gt;The Silent Collator Drop&lt;/h3&gt;
&lt;p&gt;The batch collator silently dropped &lt;code&gt;user_audio_codes&lt;/code&gt; and &lt;code&gt;model_audio_codes&lt;/code&gt; during batching. Training fell back to single-stream mode with &lt;code&gt;model_audio_embed&lt;/code&gt; receiving zero gradients. We completed an entire test run before discovering this. But that&apos;s why we have test runs, right?&lt;/p&gt;
&lt;h2&gt;4: Multi-GPU Training — FSDP Hell&lt;/h2&gt;
&lt;p&gt;We went through &lt;strong&gt;8 distinct FSDP checkpoint failures&lt;/strong&gt; before save/load/resume worked especially in TPUs:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;model_audio_embed&lt;/code&gt; not included in the checkpoint&lt;/li&gt;
&lt;li&gt;FSDP shards saved instead of full tensors (needed &lt;code&gt;summon_full_params&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;&lt;code&gt;save_pretrained&lt;/code&gt; calling allgather on rank 0 only (all ranks must participate)&lt;/li&gt;
&lt;li&gt;Optimizer state not gathered properly (needed &lt;code&gt;full_optim_state_dict&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Resume loading model weights &lt;em&gt;after&lt;/em&gt; FSDP wrapping (must load &lt;em&gt;before&lt;/em&gt;)&lt;/li&gt;
&lt;li&gt;Audio demo generation causing NCCL timeout (rank 0 doing inference while rank 1 waits)&lt;/li&gt;
&lt;li&gt;HuggingFace Hub push causing rank desync&lt;/li&gt;
&lt;li&gt;Disk filling up during training (no checkpoint pruning)&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Each of these caused a failed training run. Some lost hours of compute; one filled a 2TB disk.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The core lesson:&lt;/strong&gt; With FSDP, &lt;em&gt;any&lt;/em&gt; operation that touches model parameters must involve all ranks. Logging, saving, pushing, generating samples — anything that only runs on rank 0 will deadlock the other ranks. We eventually wrote a &lt;code&gt;validate_full_pipeline.sh&lt;/code&gt; that tests train → save → load → forward → resume → save → compare. This should have existed before the first real training run.&lt;/p&gt;
&lt;h2&gt;5: TPU Training — A Different Kind of Pain&lt;/h2&gt;
&lt;p&gt;The TPU adaptation (for Google TRC-granted v6e chips) introduced a new class of issues:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;4-hour backward compile:&lt;/strong&gt; &lt;code&gt;scan_layers&lt;/code&gt; TypeError on &lt;code&gt;torch_xla 2.9&lt;/code&gt; forced a manual loop fallback, which meant XLA couldn&apos;t fuse the backward pass. First backward step: 4 hours 25 minutes. After the fix: ~25 minutes.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;IP quota exhaustion:&lt;/strong&gt; v6e-64 (8-host slice) needs exactly 8 external IPs, hitting GCP&apos;s 8-IP regional limit. We pivoted to single-host v6e-8 to avoid multi-host complexity entirely.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Attention mask NaN:&lt;/strong&gt; v6e bf16 turned &lt;code&gt;-inf&lt;/code&gt; attention mask values into NaN. Fix: clamp masks to &lt;code&gt;&amp;gt;= -1e4&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;No TPU memory reporting:&lt;/strong&gt; &lt;code&gt;torch_xla&lt;/code&gt; memory info returns None. We had no visibility into HBM usage until Mayank added per-chip telemetry.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;What we&apos;d do differently:&lt;/strong&gt; Start with single-host TPU from the beginning. Multi-host XLA introduces an entirely separate class of problems (FSDPv2 sharding, IP quotas, multi-host rendezvous). Single-host v6e-8 was sufficient and avoided all of this.&lt;/p&gt;
&lt;h2&gt;Why TPUs though?&lt;/h2&gt;
&lt;p&gt;Duh, we didn&apos;t have any GPU compute. I was going to train that model regardless of the compute type, we found TPUs so we supported TPUs.&lt;/p&gt;
&lt;h2&gt;6: The Text Stream Revelation&lt;/h2&gt;
&lt;p&gt;Honestly not much of a revelation, available text stream would carry over some information regarding to the speech tokens, Moshi&apos;s paper calls this the &quot;inner monologue&quot; — a parallel text stream that anchors the model&apos;s hidden states in language meaning.&lt;/p&gt;
&lt;p&gt;But one of our buggy runs helped us to validate it, we didn&apos;t have text alignments in the training run, so the model fell back to audio-only loss and yeah, that didn&apos;t help at all.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Run&lt;/th&gt;
&lt;th&gt;Text Loss&lt;/th&gt;
&lt;th&gt;Audio Loss&lt;/th&gt;
&lt;th&gt;Text Acc&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Broken (no alignments)&lt;/td&gt;
&lt;td&gt;12.51 (random)&lt;/td&gt;
&lt;td&gt;6.1 (plateaued)&lt;/td&gt;
&lt;td&gt;0%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Working (with alignments)&lt;/td&gt;
&lt;td&gt;7.2&lt;/td&gt;
&lt;td&gt;6.03&lt;/td&gt;
&lt;td&gt;learning&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;This was later confirmed at scale: Mayank&apos;s v0.3 sweep on the full 1.24M corpus showed text accuracy reaching 77% (ppl ~3.25) after just 1 epoch, with audio still improving. The model nearly solved text prediction while audio was still catching up — exactly what you&apos;d expect if TinyAya&apos;s multilingual text knowledge was transferring.&lt;/p&gt;
&lt;h2&gt;The Autoregressive Evaluation Bug&lt;/h2&gt;
&lt;p&gt;During pipeline validation for the production run, an off-by-one was found in &lt;code&gt;eval_checkpoint.py&lt;/code&gt;: the AR loop read &lt;code&gt;hidden[t]&lt;/code&gt; (which predicts position t+1 under the training convention) but wrote the token at position t. Every generated frame was shifted one position AND conditioned on a placeholder token.&lt;/p&gt;
&lt;p&gt;This means every AR/ASR-BLEU number previously reported understated actual quality. The bug lived only in the evaluation harness — the model and training pipeline were never affected.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Lesson:&lt;/strong&gt; For the love of god, please, please validate AI agent&apos;s results.&lt;/p&gt;
&lt;h2&gt;What We Got Right&lt;/h2&gt;
&lt;p&gt;Despite the failures, the core hypothesis held:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Moshi&apos;s architecture is modular.&lt;/strong&gt; The depth decoder transferred across backbones without retraining. This means teams can focus compute on the temporal backbone and reuse pretrained acoustic modeling.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Data generation scales cheaply.&lt;/strong&gt; $50 for 911 hours using OmniVoice voice design mode. The bottleneck is compute for training, not data.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Text-only backbones can learn audio.&lt;/strong&gt; TinyAya went from zero audio experience to 27% CB0 accuracy on the full corpus — 544x above random chance — in one epoch.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;The text stream provides real semantic grounding.&lt;/strong&gt; 77% text accuracy after 1 epoch confirms that TinyAya&apos;s multilingual knowledge transfers to the audio modality.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;What Remains Open&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Translation quality hasn&apos;t emerged yet.&lt;/strong&gt; The model learns language identity (Hindi output for TR→HI, Turkish for HI→TR) but sentence-level translation hasn&apos;t been verified at scale. The 3-epoch production run should answer this.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Uniform vs Whisper alignments.&lt;/strong&gt; We generated uniform alignments (words spread evenly across duration) as a quick fix. Whisper-based word-level timestamps would be more accurate for natural-sounding TTS output. The current results show uniform alignments work, but we don&apos;t know how much better Whisper-based would be.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The D+E combination.&lt;/strong&gt; The sweep winner (arm D: LoRA on all 36 layers) and runner-up (arm E: stronger regularization) were never tested together. This is the obvious next hyperparameter probe.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;The Real Lesson&lt;/h2&gt;
&lt;p&gt;The biggest time sink wasn&apos;t any single bug — it was the compounding effect of silent failures. The collator dropping tensors, the text padding drowning real signal, the alignment data missing from the upload, the AR evaluation off-by-one. Each one looked fine from the outside. Loss was decreasing. No errors in the logs. Everything appeared to work.&lt;/p&gt;
&lt;p&gt;Almost all of us were using AI agents to write the pieces of the code for us. While coding ourselves, our intuition about the subject helps us tremendously while finding out bugs and errors along the pipeline, your agent doesn&apos;t have that. It doesn&apos;t know what to validate, what to check, and how to check. The suggestions it comes up within its loop doesn&apos;t make sense at times.&lt;/p&gt;
&lt;p&gt;I think this kind of supports the idea of AI being just a tool, while it helps tremendously, it doesn&apos;t have the unconscious intuition you have about the subject, so without validating the steps, or without installing validation steps along the way, it loses it somewhere in the loop. Without knowing the correct validation steps, or little sanity checks, I&apos;d lose it too, though.&lt;/p&gt;
</content:encoded></item><item><title>I built GPT from scratch (a very, very small version of it)</title><link>https://alperiox.dev/posts/transformers-from-scratch/</link><guid isPermaLink="true">https://alperiox.dev/posts/transformers-from-scratch/</guid><description>I wanted to understand how these stuff work, internally, so I built transformers from scratch with just PyTorch.</description><pubDate>Sun, 21 Jul 2024 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;I was following Andrej Karpathy&apos;s wonderful series about deep learning on YouTube when I saw the videos about implementing GPT and GPT-2. Just how cool is that?&lt;/p&gt;
&lt;p&gt;To be honest, I was pretty excited to get there since I always wanted to dive deeper into such concepts. I&apos;ll try to explain how this stuff works internally in this piece, hopefully with some visualizations as well.&lt;/p&gt;
</content:encoded></item><item><title>Include Video in the Posts</title><link>https://alperiox.dev/posts/video/</link><guid isPermaLink="true">https://alperiox.dev/posts/video/</guid><description>This post demonstrates how to include embedded video in a blog post.</description><pubDate>Tue, 01 Aug 2023 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Just copy the embed code from YouTube or other platforms, and paste it in the markdown file.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;---
title: Include Video in the Post
published: 2023-10-19
// ...
---

&amp;lt;iframe width=&quot;100%&quot; height=&quot;468&quot; src=&quot;https://www.youtube.com/embed/5gIf0_xpFPI?si=N1WTorLKL0uwLsU_&quot; title=&quot;YouTube video player&quot; frameborder=&quot;0&quot; allowfullscreen&amp;gt;&amp;lt;/iframe&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h2&gt;YouTube&lt;/h2&gt;
&lt;p&gt;&amp;lt;iframe width=&quot;100%&quot; height=&quot;468&quot; src=&quot;https://www.youtube.com/embed/5gIf0_xpFPI?si=N1WTorLKL0uwLsU_&quot; title=&quot;YouTube video player&quot; frameborder=&quot;0&quot; allow=&quot;accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share&quot; allowfullscreen&amp;gt;&amp;lt;/iframe&amp;gt;&lt;/p&gt;
&lt;h2&gt;Bilibili&lt;/h2&gt;
&lt;p&gt;&amp;lt;iframe width=&quot;100%&quot; height=&quot;468&quot; src=&quot;//player.bilibili.com/player.html?bvid=BV1fK4y1s7Qf&amp;amp;p=1&quot; scrolling=&quot;no&quot; border=&quot;0&quot; frameborder=&quot;no&quot; framespacing=&quot;0&quot; allowfullscreen=&quot;true&quot;&amp;gt; &amp;lt;/iframe&amp;gt;&lt;/p&gt;
</content:encoded></item><item><title>Personal Protective Equipment detection with YOLOv10</title><link>https://alperiox.dev/posts/yolov10-ppe-detection/</link><guid isPermaLink="true">https://alperiox.dev/posts/yolov10-ppe-detection/</guid><description>Fine-tune and deploy YOLOv10 for detecting PPE!</description><pubDate>Wed, 29 May 2024 00:00:00 GMT</pubDate><content:encoded>&lt;h2&gt;Introduction&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;https://colab.research.google.com/drive/1dCGbqEEylMX6bhj70rINF6QCuMIVcvbC?usp=sharing&quot;&gt;Colab Notebook for training&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://arxiv.org/pdf/2405.14458&quot;&gt;Paper&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;As always, I built a simple model as the new YOLO version came out. This time, it was personal protective equipment detection.&lt;/p&gt;
&lt;p&gt;The YOLOv10&apos;s modeling approach is just so cool! We usually get multiple assignments per instance in the given object, resulting in a one-to-many mapping. While this approach results in more supervisory signals, it also introduces inefficiencies in inference. Because we would need to apply an algorithm like &lt;a href=&quot;https://towardsdatascience.com/non-maximum-suppression-nms-93ce178e177c&quot;&gt;NMS&lt;/a&gt; to filter out redundant predictions.&lt;/p&gt;
&lt;p&gt;So... YOLOv10 included a one-to-one mapping head to the model along with a one-to-many head. The authors introduce a &lt;strong&gt;consistent matching metric&lt;/strong&gt; to quantitatively assess the level of concordance between predictions and instances, this metric also includes two hyperparameters. Then they derived a metric from the &lt;a href=&quot;https://en.wikipedia.org/wiki/Wasserstein_metric&quot;&gt;Wasserstein-1&lt;/a&gt;&lt;a href=&quot;https://en.wikipedia.org/wiki/Wasserstein_metric&quot;&gt;metric&lt;/a&gt; including the &lt;strong&gt;consistent matching metric&lt;/strong&gt; to determine the supervision gap between two heads.&lt;/p&gt;
&lt;p&gt;And in the end, it was possible to optimize the one-to-one head in the direction of the one-to-many head&apos;s optimization. Because the derived distance converges to 0 as the one-to-one head&apos;s prediction goes up in the ranks of one-to-many head&apos;s outputs. If they also choose the &lt;strong&gt;consistent matching metric&lt;/strong&gt;&apos;s hyperparameters well, then mathematically the best output from one-to-many is the best for one-to-one as well. This means that they can train the model using richer signals from one-to-many head and optimize the one-to-one head as well. This approach removes the need for &lt;a href=&quot;https://towardsdatascience.com/non-maximum-suppression-nms-93ce178e177c&quot;&gt;NMS&lt;/a&gt; in the inference phase, reducing the potential performance drawbacks.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;../../assets/yolov10-ppe/architecture.png&quot; alt=&quot;model architecture&quot; /&gt;&lt;/p&gt;
&lt;p&gt;I wanted to highlight a few things before moving on to my project. Because damn, training YOLO models are easy. Like really, really easy. Often, the most cumbersome part of the project is the data preparation phase, which is also much easier thanks to &lt;a href=&quot;https://universe.roboflow.com/&quot;&gt;Roboflow Universe&lt;/a&gt;. So all you need to do is pick a dataset, download it in YOLO format, and run the training script.&lt;/p&gt;
&lt;p&gt;Well, I just... did that too. Picked a dataset for PPE detection and ran the training script. I usually convert the model to ONNX before trying to deploy it, it was the same this time too. I prepared a simple demo as a &lt;a href=&quot;https://huggingface.co/spaces/alperiox/yolov10-ppe-detection&quot;&gt;Huggingface Space&lt;/a&gt;. The training was pretty successful, as I trained the model with default hyperparameters for just 20 epochs.&lt;/p&gt;
&lt;h3&gt;Results&lt;/h3&gt;
&lt;p&gt;It&apos;s easy to see that predicting a bounding box when the person doesn&apos;t have a glove, goggles, hard hat, mask or safety vest introduces a difficulty in predicting other labels. I think that&apos;s because there would be multiple similar bounding boxes with different labels.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;../../assets/yolov10-ppe/image.png&quot; alt=&quot;alt text&quot; /&gt;&lt;/p&gt;
&lt;p&gt;I can imagine why &lt;code&gt;Mask&lt;/code&gt;s are often confused with &lt;code&gt;NO-Hardhat&lt;/code&gt; boxes, probably because of the data labeling part. When I checked the initial dataset, I could see there are similar images where &lt;code&gt;Mask&lt;/code&gt; or &lt;code&gt;NO-Hardhat&lt;/code&gt; labels both fit well. Like:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Mask&lt;/th&gt;
&lt;th&gt;NO-Hardhat&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;img src=&quot;../../assets/yolov10-ppe/image-1.png&quot; alt=&quot;two masked people&quot; /&gt;&lt;/td&gt;
&lt;td&gt;&lt;img src=&quot;../../assets/yolov10-ppe/image-2.png&quot; alt=&quot;a masked person&quot; /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Like, &lt;code&gt;NO-Hardhat&lt;/code&gt; could be easily determined as &lt;code&gt;Mask&lt;/code&gt; by a human like me. So I don&apos;t put it on the algorithm.&lt;/p&gt;
&lt;p&gt;In the end, the model trained well but I think it could use some more training steps. I&apos;m happy with the results though.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;../../assets/yolov10-ppe/image-3.png&quot; alt=&quot;training results&quot; /&gt;&lt;/p&gt;
</content:encoded></item></channel></rss>