marimba

Ask one short speech window many questions at once. Did the turn end? Is anyone speaking? Which language? Was this word said? marimba runs a frozen 0.6B speech recognizer over the window once. Each answer comes back as a probability over the options you declared, not as free text. On 1,000 shared public questions it matches or beats a 30B audio LLM on 6 of 9 tests.

Pick a system, then switch questions on and off. Watch how many passes each one needs and what comes back. Then we build marimba piece by piece: typed questions, the frozen encoder, transcript scoring, calibration, and the readouts for turns and speakers.

You need what a speech recognizer does (audio in, text out) and what a probability is. We build the rest from zero, including AUROC and calibration.

Ask one window many questions

Ready

marimba encodes the window once, then each question takes its own route to a typed answer.

The clip follows the paper's Figure 4 example (a 6.5 s FLEURS sentence ending in "satellite"). The probabilities and the LLM option scores on the cards are illustrative, not model outputs. The quality lines are the paper's: Figure 3 (paired test on 1,000 public questions), Table 2 and Section 6.1 (voice activity), Table 4 (speaker count). Answer times are the paper's p95 latency per question on one NVIDIA L4 (Sec. 6.1), each measured on its own; the paper reports no latency for audio LLMs or speaker questions, so those cards say so.

Chapter 0

Many questions about one window

Meet the decisions a speech app must make every second, and see why the usual tools answer them badly

A doctor in São Paulo talks to a patient. A note-taking app listens. Every moment, the app has small decisions to make about the last few seconds of audio.

Has the doctor finished speaking, so the assistant may answer? Is anyone speaking at all, or is that the air conditioner? Was the word "losartana" said, a blood pressure drug the note must record? Which language is this? Did the speaker change?

None of these needs a paragraph of text as an answer. Each one has a small, fixed set of possible answers: yes or no, one of three languages, 0, 1, 2 or 3+ speakers. The app needs the answer and how sure the model is, so it can act or ask a human.

Today there are three common ways to get such answers. Each one breaks in a different place. Try all three on one question, then the fourth way, which is this paper.

Ask "was losartana said?"

The clip says "coloca a losartana de cinquenta na receita" (put the losartan 50 mg on the prescription). Pick a way to ask and read what comes back.

An illustrative clip and illustrative outputs. The failure each route shows is the one the paper names in its introduction (Sec. 1): per-question generation and uncalibrated token scores for audio LLMs, lost recognizer uncertainty for a 1-best transcript, no shared interface for single-task tools.

Read the four outputs as four problems. The audio LLM (a language model that takes audio as input, such as Qwen2-Audio or Qwen3-Omni) answers in free text. You must write a parser, run a new prompt for every question, and its token scores are not probabilities over your answer set.

The 1-best transcript route is cheap. It runs speech recognition once and checks the text. But it keeps only the single best guess. Here the recognizer heard "lozartana", so the check says no, and nothing downstream can know the recognizer almost wrote the right word.

A single-task tool, such as a keyword spotter or a turn detector, can be very good at its one job. But each tool has its own model, its own input rules and its own output format. Ten questions means ten tools.

marimba takes a fourth road. You declare the question and its options. The model returns a probability for each option, from one pass of a frozen speech recognizer. The paper calls this a typed decision: the type is the shape of the answer (a choice, a yes or no, or a score).

The idea in one line: one window, encoded once, many typed answers. Each question goes down the route that suits it. Questions about words read the recognizer's transcripts. Questions about sound read the recognizer's hidden layers. Every answer is a probability you can threshold.

The paper is honest about where this works and where it does not. It wins some head-to-heads, ties some, and loses some, and it says which. We will keep that honesty. Here is the road.

  1. Typed questions: the three answer types, the JSON contract, and what "System One" means.
  2. One frozen encoder: the data flow from 128,000 samples to layers 12 and 18.
  3. Questions about words: score a term from five transcripts, not one.
  4. Grading a probability: AUROC and calibration error, from zero.
  5. Platt scaling: turn a vote fraction into a probability you can trust.
  6. Term results: Table 1, held-out drug names, and when to accept or defer.
  7. Questions about sound: the question head, voice activity and language ID.
  8. Has the turn ended?: a frozen readout against a dedicated model, and a loss.
  9. Who is speaking: speaker change and count from layer 12.
  10. Head to head: two audio LLMs, latency, and personal information.
  11. Connections: the cheat sheet, the limits, and the field.
Why can't the 1-best transcript route recover a drug name the recognizer misheard?

Chapter 1

A question that brings its own answer sheet

Define the three answer types, build a request, and see why the probabilities follow the meaning of an option, not its position

Think of a multiple-choice exam. The question comes with its answer sheet: boxes A, B and C. The student cannot write an essay. They can only shade boxes, and a careful student shades with confidence: "70% A, 25% B".

marimba works like that student. Every request carries an audio window x, a question q, and the set of options the question allows, which the paper writes Cq. The model returns a probability for each option, and the probabilities add up to 1.

The paper defines three answer types (Sec. 3.1):

choice

one of a list

"Which language is spoken?" with options English, Spanish, Portuguese. The output is a probability for each option.

yes / no

one probability

"Is someone speaking?" The output is the probability of yes. No gets the rest.

score

a bounded number

"Has the speaker finished?" as a value from 0 to 1, or a distribution over a declared scale.

The output holds no explanation. The appendix (A.1) lists what a result must contain: the task name, the type tag, the options, the probabilities or score, and a model version. If a question is unsupported, the model should abstain, not invent an answer.

Build a typed request

Pick a type. Then shuffle the options, or move the temperature. Watch which numbers move and which stay with their option.

Request

Response

1.00

Field names follow the released package's to_dict() as the repo describes it (task, kind, value, probability or probabilities). The raw scores 2.0, 0.5 and −1.0 are illustrative. The paper selects T on validation data (Sec. 5.1).

How does a model turn raw scores into probabilities over options? For each option c, a scorer produces one number sc. Then a softmax turns the numbers into shares that add up to 1. The paper's head uses exactly this (Sec. 5.1):

p(c | x, q)
The probability of option c, given the audio x and the question q.
sc
The raw score for option c. The same scorer computes it for every option from the audio, the question and the option's text.
T
The temperature. Large T flattens the shares, small T sharpens them. It is fit on validation data, never on the test set.
Σc′∈Cq
Add up over every option the question allows. This makes the shares sum to 1 over the options you declared, and only those.

A worked number. Say the scores are 2.0 for English, 0.5 for Spanish and −1.0 for Portuguese, with T = 1. The exponentials are 7.389, 1.649 and 0.368. They add up to 9.406. So the shares are 0.786, 0.175 and 0.039.

T = 2:   exp(1.0) = 2.718, exp(0.25) = 1.284, exp(−0.5) = 0.607, sum 4.609  →  0.590, 0.279, 0.132

Now press Shuffle. The options change order, but each probability stays with its option. That is on purpose. The scorer is shared across options and reads each option's text, so position carries no meaning. During training the paper also shuffles option order for every example, so a class is never tied to a slot (Sec. 3.3).

What "System One" means here

The title calls marimba "a System One model for speech". The paper never defines the phrase in one sentence, but its related work shows the meaning. It groups marimba with Jev, ASOM, Laya and Narrow Decision Models. These are models that answer a request-time choice, score or yes-or-no question in one pass, without generation, with typed and calibrated output (Sec. 2).

Our reading: the name borrows from psychology. "System 1" is fast, automatic judgment; "System 2" is slow, step-by-step reasoning. A model that writes text token by token is closer to System 2. A model that reads the input once and shades boxes is System 1. The paper does not say this; it is our gloss.

marimba extends Jev, a typed decision model for text that answers with probabilities over declared options. Jev does not accept audio (Sec. 1). The author is careful: marimba does not reproduce Jev's architecture, training recipe or RLCD training (Sec. 2). It borrows the contract, not the internals.

You ask a choice question with options [English, Spanish, Portuguese], then ask again with the options reversed. What should a well-built typed model return?

Chapter 2

One frozen encoder, read at different depths

Follow 128,000 samples through a frozen speech recognizer and see which layer each question reads

Every marimba answer starts the same way. The audio is mixed to one channel and resampled to 16 kHz, 16,000 numbers per second (Sec. 3.2, A.2). The window is 8 seconds long. So one window is 8 × 16,000 = 128,000 samples.

Those samples go into Qwen3-ASR 0.6B, an open speech recognizer with 0.6 billion parameters. Like Whisper, it has two halves. An encoder turns the audio into a sequence of feature vectors, one per short time step, called frames. A decoder reads those frames and writes text, one token at a time.

marimba keeps both halves frozen: not one weight of the recognizer changes (Sec. 2). Everything marimba trains sits on top, small and separate. Pick a route to see what each question reads.

Follow the data, route by route

Pick a route. The lit path shows what that question reads. Then drag the clip length and see how the window is built for it.

11.0 s

Layer numbers, window rules, pooling spans and the five decoder hypotheses are the paper's (Secs. 3.2, 5.2 to 5.5, A.2). The paper does not give the encoder's depth, frame rate or feature width, so the layer stack and the frame grid are schematic.

Five routes leave the same encoder pass. Here they are as a table, because the differences are the point:

QuestionReadsWhat is trainedSection
Term, keyworddecoder transcripts: greedy + 4 beamsnothing per term; one logistic calibrator5.2
Voice activity and other non-lexicalall encoder frames, via cross-attentiona question-conditioned head5.1
Turn endlayer 18, last 2 s pooleda logistic readout5.3
Same speaker, change, countlayer 12, pooled spanslogistic readouts or a one-hidden-layer MLP5.4
Languagethe decoder's own language-name tokensnothing5.5

Why keep the recognizer frozen?

Three reasons come out of the paper. First, the term route needs a working recognizer. If you fine-tune the encoder for turn-taking, the decoder may stop writing good Portuguese. Freezing protects the transcripts.

Second, one pass serves every question. All heads read the same features, so the encoder runs once per window, however many questions you ask (Sec. 5.1). Third, small readouts are cheap to train and easy to audit. The turn-end readout is one logistic regression.

The appendix adds a fourth, from a failed attempt. The author tried adapting the decoder with LoRA (small trainable add-on matrices) for terms. It failed the calibration and latency criteria, so the paper uses the zero-shot decoder (A.5).

Why read the middle layers?

A speech recognizer's encoder is trained to help write words. Its top layers are shaped for that job. Our reading: on the way up, information that does not help spell words, such as who is speaking, can fade. Middle layers still hold more of the voice and the timing.

The paper does not argue this in prose. It selects the layer on validation data and freezes the choice before testing (Sec. 5.4). The selections it reports are layer 18 for turn end and layer 12 for speakers. Speaker identity sits lower than turn-taking cues, which fits our reading.

How the window is built

The 8 second window is not cut the same way for every question (A.2). For the turn-end readout, marimba keeps the last 8 seconds, because the question is about the end. Shorter audio is padded on the left, and the padding is masked so pooling ignores it.

Term labels must refer to audio inside the window, so lexical windows are stricter. An interval longer than 8 s keeps its first 8 s. With word timestamps, a term counts as spoken only if the whole word lies inside the window. A long recording without timestamps is skipped, not cut.

A 3 second clip arrives for the turn-end question. What does marimba feed the layer-18 readout?

Chapter 3

Five transcripts are better than one

Score a drug name by how many of five decoder hypotheses contain it, and watch a rare word survive in a beam

Back to the doctor. "Coloca a losartana de cinquenta na receita." The recognizer must write "losartana", a word it rarely saw in training. Common words with a similar sound pull at it.

A decoder writes text one token at a time. Greedy decoding takes the single most likely token at each step. That is fast, but a rare word can lose at one step to a common sound-alike, and greedy never looks back.

Beam search keeps several partial transcripts alive at once, here four. At each step it extends all of them and keeps the four best. A rare spelling that loses narrowly at one step can stay in the beam and win later. marimba keeps the greedy transcript and the four best beams: five hypotheses per window (Sec. 5.2).

Score a term from five hypotheses

Pick the term to ask about. Drag the audio quality down and watch hypotheses lose the word. Then try greedy only, or fuzzy matching, and see what breaks.

Ask about
    noisy

    The sentence and the hypotheses are illustrative; the paper's consultation audio is private. The rule is the paper's (Sec. 5.2): normalize each hypothesis and the term (NFKD, accents removed, lowercase), count the hypotheses that contain the term as an exact token sequence, divide by five. The calibrator here (a = 6, b = −3) is a made-up example of the Platt fit in Chapter 5. Fuzzy matching is shown only as the failure the paper avoids.

    The rule is a vote. Each of the five hypotheses votes yes if it contains the term, word for word, after normalizing both. The raw score is the fraction of yes votes:

    r(x, t)
    The raw score for term t in window x: a number from 0 to 1, in steps of 0.2.
    |H(x)|
    The number of hypotheses for this window: the greedy one plus four beams, so 5.
    Σh∈H(x)
    Go through each of the five hypotheses.
    𝟙[ norm(t) ⊆ norm(h) ]
    1 if the normalized term appears in the normalized hypothesis as an exact sequence of tokens, else 0. Normalizing means: decompose letters (NFKD), drop accents, keep non-Latin letters, lowercase.

    A worked number. At "noisy" quality, the greedy transcript and one beam write "lozartana". One beam splits it as "lo sartana". Two beams write "losartana". So r = 2 / 5 = 0.4. The 1-best route would have said a flat no.

    greedy ✗  beam 1 ✓  beam 2 ✗  beam 3 ✓  beam 4 ✗  →  r = (0 + 1 + 0 + 1 + 0) / 5 = 0.4

    Why exact, not fuzzy?

    In medicine, a near-miss is a different answer. Valsartana is a different drug. "Colocar" (to put) is not "coloca" (put!). The paper keeps exact token matching so near-miss inflections stay negatives (Sec. 5.2). Turn on fuzzy matching in the device: it finds "valsartana" in a sentence that never said it.

    The test data is built to catch exactly this. Negatives include real medication-confusion pairs from a drug lexicon and corrected-versus-original text pairs (Sec. 3.4). Unrelated speech alone would never test whether a model can tell two near-sounding drug names apart.

    Three details that matter in practice

    No per-term training. The decoder is trained on no term list at all. A brand-new drug name works on day one, as long as the recognizer can spell it in some hypothesis.

    Adding a question is free. All term questions about one window share the same five transcripts. Asking about ten drugs costs one decoding pass, not ten (Sec. 5.2).

    Choice questions over terms. "Which of these drugs was said?" picks the option with the highest exact-match score. Fuzzy similarity is used only to break ties (Sec. 5.2).

    One more lexical question reuses the transcript. For "is there personal information?", marimba passes the greedy transcript to an external text detector and returns its yes or no, with no calibrated probability. The release includes no detector (Sec. 5.2). Chapter 10 shows how that goes.

    The greedy transcript misspells a drug name, but two of the four beams spell it right. What raw score does marimba give the term, and what would the 1-best route say?

    Chapter 4

    Two report cards for a probability

    Learn AUROC and expected calibration error from zero, with toys you can push around

    Before we calibrate anything, we need a way to grade a probability. A weather forecaster says "70% rain" every day for a year. How do you decide whether they are good?

    You ask two different questions. First: on rainy days, did they say higher numbers than on dry days? That is ranking. Second: on the days they said 70%, did it rain about 70% of the time? That is calibration. A forecaster can pass one test and fail the other. The paper reports both for every task (Sec. 6.2).

    Report card 1: AUROC, the ranking test

    Take every pair of one positive example (the word was said) and one negative example (it was not). Ask: did the model give the positive a higher score? AUROC is the fraction of pairs it gets right. A coin flip scores 0.5. A perfect ranker scores 1.0.

    The name comes from a curve. Slide a threshold from high to low. At each setting, count the true positive rate (the share of positives above the threshold) and the false positive rate (the share of negatives above it). Plot one against the other: that is the ROC curve. The area under it equals the pair fraction.

    Trace the ROC curve

    Filled dots are positives, hollow dots are negatives. Drag the threshold: everything to its right is called yes. The dot on the right panel follows you along the ROC curve.

    0.50

    Twenty illustrative scores, ten positive and ten negative. The AUROC shown is computed both ways (area and pair count) and the two always agree.

    A worked number. Positives score 0.9, 0.7 and 0.4. Negatives score 0.6, 0.3 and 0.2. There are 3 × 3 = 9 pairs. The positive at 0.9 beats all three negatives. So does 0.7. The positive at 0.4 beats 0.3 and 0.2 but loses to 0.6. That is 8 of 9: AUROC = 0.889.

    Notice what AUROC ignores. Double every score, or square it: the order does not change, so AUROC does not change. AUROC says nothing about whether 0.7 means 70%. That is why we need the second card.

    Report card 2: ECE, the honesty test

    Group the predictions into bins by confidence: 0 to 0.1, 0.1 to 0.2, and so on. In each bin, compare the average confidence with the share that was actually right. The gap is the bin's error. Expected calibration error (ECE) averages the gaps, weighted by how many predictions fall in each bin:

    ECE
    Expected calibration error: 0 is perfectly honest. The paper uses 15 equal-width bins for terms and 10 for turn end (A.4).
    Σb
    Go through every confidence bin.
    nb / N
    The share of all N predictions that land in bin b. Busy bins count more.
    accb
    How often the predictions in bin b were right.
    confb
    The average confidence the model stated in bin b.

    A worked number with three bins and 100 predictions. Fifty say about 0.92 and are right 80% of the time: gap 0.12. Thirty say 0.71 and are right 70%: gap 0.01. Twenty say 0.56 and are right 50%: gap 0.06.

    ECE = 0.50 × 0.12 + 0.30 × 0.01 + 0.20 × 0.06 = 0.060 + 0.003 + 0.012 = 0.075

    Read a reliability diagram

    Each bar is one confidence bin: its height is how often the model was right. On the diagonal, confidence equals accuracy. The shaded gaps add up to ECE.

    Illustrative bins, 10 equal-width, 1,000 predictions. The paper's binary lexical ECE is at most 0.08 in every Table 1 row.

    One subtle rule from the appendix. marimba computes AUROC from the scores before calibration, and ECE from the probabilities after (A.4). Why? Some calibrators, like isotonic regression, are step functions. They can merge different scores into one value, create ties, and so change the ranking. Computing AUROC first keeps the ranking test clean.

    A model's scores are all multiplied by 0.5. What happens to its AUROC and to its ECE?

    Chapter 5

    Platt scaling turns votes into probabilities

    Fit a two-number curve on held-out data, work it by hand, and see what it fixes and what it cannot

    The term route gives a vote fraction r: 0, 0.2, 0.4, 0.6, 0.8 or 1. We want a probability. The simplest bridge is a curve that takes r in and gives p out, fit on examples where we know the answer.

    Platt scaling is that curve. It is a logistic regression with one input: multiply r by a slope a, add an offset b, and squash the result into 0 to 1 with the logistic function (Sec. 5.2, 6.2):

    p
    The calibrated probability that the term was said.
    a
    The slope: how much one more yes vote should raise our belief. Fit on data.
    r
    The raw vote fraction from Chapter 3.
    b
    The offset: our belief when no hypothesis contains the term. It encodes how rare positives are. Fit on data.

    Where do a and b come from? From a calibration split: held-out windows with known labels, never the test set (Sec. 6.2). The fit picks a and b to minimize log loss, the average surprise. For each example, the surprise is minus the log of the probability given to the true answer.

    A worked number with a = 6 and b = −3. For r = 0.4, the inside is 6 × 0.4 − 3 = −0.6. Then p = 1 / (1 + e0.6) = 1 / (1 + 1.822) = 0.354.

    r = 0 → z = −3.0 → p = 0.047  ·  r = 0.4 → z = −0.6 → p = 0.354  ·  r = 0.8 → z = 1.8 → p = 0.858  ·  r = 1 → z = 3.0 → p = 0.953

    Read that row as a story. Zero votes does not mean zero chance: about 5% of such windows still contain the word, because all five hypotheses missed it. Five of five votes does not mean certainty either. The curve learned both facts from data.

    Fit the Platt curve

    Each dot is one vote level from a calibration split: how often the term was really said at that level. Drag a and b to bend the curve through the dots, or press Fit.

    1.0
    0.0

    An illustrative calibration split of 1,400 windows; the paper's split is private. The fit is plain logistic regression by Newton's method on these grouped counts. ECE here uses the six vote levels as bins.

    Try the default a = 1 and b = 0. Every vote level maps to a probability near one half: the curve is almost flat, and ECE is large. Press Fit. The curve steepens and drops at the left, and ECE falls to almost nothing on this split.

    What Platt cannot do

    Platt scaling learns the meaning of a vote level on the calibration data. If the test audio is different, say a new hospital or a new microphone, the meaning can shift. Chapter 8 has a real case: on ICSI meetings, the frozen turn-end calibration left ECE at 0.200, and in-domain recalibration brought it to 0.011 (Sec. 6.1).

    And calibration is not a policy. The paper says it twice: calibrated uncertainty can inform acceptance or deferral, "but calibration alone does not validate an automated acceptance policy" (Sec. 1, 6.3). The next chapter shows how the threshold is chosen.

    For the question head, the paper uses the cousin of Platt: temperature scaling, the T in Chapter 1's softmax. For binary head tasks it also tries isotonic regression, a step-shaped curve, and keeps whichever gives lower ECE on a held-out calibration subset (Sec. 6.2).

    After Platt scaling with a = 6 and b = −3, a window with zero yes votes gets p of about 0.05. Why not 0?

    Chapter 6

    Drug names the model never trained on

    Read Table 1 row by row, compare seen and held-out terms, and set your own accept-or-defer line

    Now the results for words. Table 1 tests the zero-shot decoder on eleven slices: private Brazilian Portuguese consultations, public read speech, and short commands. Remember, the decoder trains on no term list. "Seen" and "held-out" refer to the question head's term list, a fixed and versioned list kept out of the head's training (Sec. 3.4).

    The private slices come in four kinds. ID is held-out conversations from the training corpus. Out-of-domain and Curated are consultation corpora never used in training. Gold is a reviewed subset of Curated. All four are private and are not released, so nobody outside can check them (Sec. 4.2).

    Explore Table 1

    Pick a metric. Teal rows are held-out terms, grey rows are seen terms. Tap a row to read it.

    All values from Table 1. Intervals: 1,000 bootstrap replicates clustered by audio clip (A.4). Common Voice and FLEURS are filtered to clips of at most 8 s. Speech Commands has no term split. The Common Voice held-out row (n = 13, AUROC 0.917 [0.750, 1.000]) is in the table's footnote; FLEURS held-out (n = 3) has no AUROC.

    Three things stand out. First, on every private test the held-out point estimate is at least as high as the seen one. The paper refuses to over-read it: this "does not establish equal difficulty" (Sec. 6.1). The held-out lists are small; the ID held-out row has only 71 questions.

    Second, public read speech is easier. FLEURS reaches 0.970 and Common Voice 0.923. Read sentences in clean audio are a gentler test than a doctor talking over a patient.

    Third, the Gold seen row is the weak spot: 0.801. The paper names the cause. Reviewed consultations contain drug names the recognizer simply does not write in any of its five hypotheses. "The reviewed seen-term result remains limited by ASR misses on drug names" (Sec. 6.1). If no hypothesis spells the word, no calibrator can save it.

    Accept or defer

    A calibrated probability earns its keep when someone acts on it. Say the app auto-fills the drug field when p is high and sends the window to a nurse when p is unsure. Where should the line go? Selective prediction is the name for this. Coverage is the share of windows the model answers alone.

    The paper's Cov@95 is one point on that trade: the largest share of predictions, taken from most to least confident, that still reaches 95% accuracy (A.4). Try it yourself.

    Set the accept-or-defer line

    Each tick is one answer, sorted by confidence. Drag the line: answers above it are accepted, the rest go to a human. Red ticks are wrong answers that got through.

    0.850

    200 illustrative calibrated answers. The dashed mark is this toy set's Cov@95, found the paper's way (A.4). It is a property of this set, not a deployable threshold.

    The paper deliberately sets no action threshold. The consuming app must choose one from the costs of false positives and false negatives (Sec. 6.3). A missed allergy and a wrong dose field do not cost the same. Deployment needs a cost matrix, an escalation path and a human review policy. "Calibration can support this policy but does not establish deployment suitability."

    Why is the Gold seen-term AUROC (0.801) lower than the others?

    Chapter 7

    Questions about sound, not words

    Meet the question-conditioned head, test it on voice activity and scenes, and read language from the recognizer's own scores

    "Is someone speaking?" has no word to search for. The answer lives in the sound itself. For questions like this, marimba trains a small question-conditioned head on top of the frozen encoder (Sec. 5.1).

    Here is its data flow. The encoder produces frame features H for the window, once. A small text encoder reads the question q and each option c. A cross-attention scorer g lets the question and option look over the audio frames and gives one score sc = g(H, q, c) per option. Then Chapter 1's softmax, with its temperature T, turns scores into probabilities.

    The same scorer runs on every option, so the output follows the option's text, not its position. The head trains with cross-entropy for choices and binary cross-entropy for yes or no, with the encoder frozen. Examples are split by conversation before sampling, so no conversation leaks into the test (Sec. 5.1, A.3).

    Voice activity: strong, and robust to the prompt's language

    Voice activity detection (VAD) separates speech from silence and noise. On AMI meetings the head reaches AUROC 0.986 to 0.995 across three seeds, and at least 0.999 on VoxConverse, with calibrated ECE at most 0.028 (Sec. 6.1, Table 2).

    The prompts were in Portuguese. Asked in Arabic, Hindi, Korean or Russian, prompts it never trained on, AUROC stays at least 0.98. The paper flags the gap: English prompts were not evaluated (Sec. 7).

    Scenes: at chance, and the paper says so

    Could the head answer a question type it never trained on? The paper tests scene classification on CochlScene (is this a bus, a café, a street?). Every head is at chance: four-way accuracy 0.24 to 0.29 against a chance level of 0.25, and binary AUROC 0.48 to 0.54. All intervals include chance (Sec. 6.1).

    So the question-conditioned head is not a general audio reasoner. It answers the question types it was trained on. Phrasing a new task as a question does not make the model able to do it.

    Language: the recognizer already knows

    A multilingual recognizer must decide which language it is writing. Qwen3-ASR has built-in tokens for language names. marimba sums the log probabilities the decoder gives those tokens and uses them as scores. There is no adapter and no separate language head (Sec. 5.5).

    There are two modes. Open set considers all 30 supported languages. Closed set keeps only the options in your question and renormalizes with a softmax over them. Try it on a hard clip.

    Open set or closed set

    The bars are the recognizer's language scores. In closed-set mode only your options compete. Toggle options on and off and watch the winner and its confidence.

    Clip

    Scores are illustrative. The paper does not list the 30 languages, so the open set shows six named languages and lumps the rest as "24 others". Measured accuracy (Sec. 6.1): FLEURS 100% open and closed [Wilson 95% CI 98.74%, 100%]; Common Voice 84.33% open [79.79%, 88.01%] and 93.33% closed [89.93%, 95.64%], 300 clips each.

    The real numbers show the same pattern. On 300 clean FLEURS clips, open and closed set are both 100%. On 300 Common Voice clips, recorded by volunteers on their own microphones, open set is 84.33% and closed set is 93.33%. Removing rivals the user already ruled out fixes about 9 points.

    The confidence is calibrated too: ECE is below 0.001 on FLEURS and 0.048 on Common Voice. Latency is 161 ms p95 per question on one L4 (Sec. 6.1).

    The question head scores AUROC at least 0.98 with prompts in languages it never trained on, but is at chance on CochlScene. What does that tell you?

    Chapter 8

    Has the speaker finished?

    Build the layer-18 turn-end readout, then watch it lose to a dedicated model on that model's own test and tie it on meetings

    A voice agent that answers too early interrupts you. One that waits too long feels slow. Deciding when a human has finished a turn is called endpointing, and it is one of the hardest small problems in voice products (see turn-taking).

    marimba's answer is the simplest learned model there is. Take the layer-18 encoder features from the same 8 second pass. Average the frames from the last two valid seconds into one vector. Fit a logistic readout: a weighted sum of that vector's entries, squashed to a probability (Sec. 5.3).

    pend
    The probability that the turn has ended at the end of the window, before Platt calibration.
    σ
    The logistic function, which squashes any number into 0 to 1.
    w
    One learned weight per feature. With regularization C = 0.01, the weights are kept small. (C as inverse regularization strength is our reading of the notation; smaller C means stronger shrinkage.)
    meanlast 2 s h(18)t
    The average of the layer-18 frame vectors over the last two seconds of valid audio. Padding frames are masked out.
    b
    A learned offset.

    The recipe is strict about what touches what (Sec. 5.3, A.3):

    1. Select pooling and regularization by five-fold grouped cross-validation on 4,000 new training clips.
    2. Refit the chosen readout (tail pooling, C = 0.01) on 5,768 clips.
    3. Fit Platt calibration on a separate pool of 2,000 clips.
    4. Freeze everything, then score the 500-clip public test once.

    The training clips come from Smart Turn v3.2's training data. Smart Turn v3.2 is a dedicated turn-end model from Pipecat. Its test set is in its own distribution, so on that test Smart Turn has a home advantage.

    Win, tie or lose?

    Pick a test and a metric. In AUROC view, the bottom line is the paired difference, marimba minus Smart Turn. If its interval crosses zero, nobody wins.

    Test

    Table 3 and Sec. 6.1. Smart Turn intervals are clustered by clip (recording IDs unavailable); ICSI intervals by meeting. ICSI covers 1,728 windows from 27 of 75 meetings (the rest failed to download), and its labels mark the next speaker, not semantic completeness. Smart Turn v3.2 is not recalibrated.

    On Smart Turn's own test: marimba loses

    The frozen readout scores AUROC 0.930 [0.906, 0.951]. Smart Turn v3.2 scores 0.982 [0.973, 0.990]. The paired gap is −0.052, with interval [−0.075, −0.032]. The whole interval is below zero. This is a clear loss, and the paper reports it in the abstract.

    On ICSI meetings: a tie

    ICSI is a meeting corpus neither system trained on. The readout scores 0.716, Smart Turn 0.712. The paired difference is +0.004 with interval [−0.046, +0.054]. The paper's words: "a statistical tie, not evidence of advantage or equivalence." Notice also how much harder meetings are: both drop from above 0.93 to about 0.71.

    The calibration surprise

    Switch the device to ECE. On Smart Turn's test, frozen Platt calibration made the readout's ECE slightly worse: 0.034 before, 0.041 after. On ICSI it barely moved: 0.207 to 0.200, far from honest. Calibration fit on one distribution does not travel well.

    Then the paper tries in-domain repair. Five-fold cross-meeting recalibration on the ICSI windows, with 200 labeled windows per fold, cuts ECE from 0.200 to 0.011. But this is in-domain, and the paper says it "does not establish cross-domain calibration" (Sec. 6.1). The practical lesson: plan to recalibrate on a few hundred labeled windows from your own setting.

    One more data point puts the loss in context. In the paired test against audio LLMs (Fig. 3), on a 200-clip Smart Turn subset, the readout scores 0.935 while Qwen3-Omni scores 0.786 and Qwen2-Audio 0.476. That row is in-distribution for marimba only. Qwen2-Audio said yes on all 200 clips, so it sits at chance (95% CI 0.40 to 0.55).

    And the readout is fast: 13 ms p95 per question on one L4 (Sec. 6.1).

    On ICSI, the readout scores AUROC 0.716 and Smart Turn 0.712; the paired difference is +0.004 with 95% CI [−0.046, +0.054]. What is the right summary?

    Chapter 9

    Who is speaking, and how many

    See which spans each layer-12 readout compares, and how they score against ECAPA and pyannote

    A note-taker must know when the speaker changes, so it can label "doctor" and "patient". The usual tool is a speaker embedding: a vector that describes a voice, such as ECAPA-TDNN (see speaker embeddings). Another is a full diarization system like pyannote 3.1.

    marimba asks three speaker questions of the same 8 second pass, using small readouts on layer 12 features (Sec. 5.4). Each question compares different spans of the window. Pick one to see the spans.

    Compare the right spans

    The top strip is a toy 8 second window, coloured by speaker. Pick a question to see the spans it compares. The bars below are the paper's results with 95% intervals.

    Test

    Results from Table 4 (8 s windows, 95% recording-clustered bootstrap intervals, calibrated ECE). The coloured window is a toy. Pyannote 3.1's speaker-change AUROC (0.865 AMI, 0.812 VoxConverse) is from Sec. 6.1.

    The three readouts are small (Sec. 5.4):

    Labels come from human speaker timestamps in AMI and VoxConverse, split by recording. Layer, readout and calibration were chosen on validation only and frozen before a single scoring of the test (Sec. 5.4).

    The results, honestly

    Speaker change is the clearest win. AUROC 0.966 on AMI and 0.980 on VoxConverse, against ECAPA's 0.924 and 0.962, and pyannote 3.1's 0.865 and 0.812 (Table 4, Sec. 6.1).

    Same speaker is on par with ECAPA: 0.998 against 0.985 on AMI, 0.996 against 0.995 on VoxConverse. The paper adds a caution: the AMI result rests on only 32 different-speaker pairs.

    Speaker count beats pyannote 3.1 in accuracy, 0.778 against 0.738 on AMI and 0.859 against 0.836 on VoxConverse. But it undercounts crowds. On VoxConverse windows with three or more speakers, it says "two" for 395 of 667.

    Before testing, the author wrote down a pass mark: each readout must score at most 0.05 below its baseline, with calibrated ECE below 0.035. All six rows meet it (Sec. 6.1). Setting the bar before looking at test numbers is what makes the claim credible.

    What does the speaker-change readout compare inside the 8 second window?

    Chapter 10

    Against two audio LLMs, on the same questions

    Read the paired test row by row, weigh the latency of each route, and see where personal-information detection leaks

    The fairest test puts every system on the same questions. The paper does this with 1,000 fixed public questions (Sec. 6.1, Fig. 3). The rivals are Qwen3-Omni-30B-A3B, a 30B mixture-of-experts audio LLM, and Qwen2-Audio-7B.

    Both LLMs answer zero-shot. Each option is scored by its summed log-probability, and the best option wins. marimba's term and language answers are also zero-shot. Its turn-end readout trained on Smart Turn data, so that one row favours marimba.

    Read the paired test

    Each row is one slice. Teal is marimba, purple dots are the two LLMs. A shaded row band means marimba and Qwen3-Omni tie, or marimba leads. Tap a row to read it.

    Figure 3 and Sec. 6.1. Language and term-choice rows use accuracy; binary rows use AUROC. Shading follows the paper's rule: paired 95% bootstrap intervals clustered by audio, 1,000 replicates; when the marimba minus Qwen3-Omni interval includes zero, both are shaded. Two-decimal values are the figure's; the text gives 0.901, 0.926 and 0.935 for three of them.

    Count the rows. marimba matches or beats Qwen3-Omni on 6 of 9. It leads clearly on binary FLEURS term detection, 0.901 against 0.791 (and 0.682 for Qwen2-Audio), and on turn end. Qwen3-Omni leads clearly on Speech Commands (binary AUROC 0.991 against 0.926; choice accuracy 1.000 against 0.933) and on Common Voice language ID (1.000 against 0.904). The other differences with Qwen3-Omni have intervals that include zero.

    Keep the sizes in mind. marimba's recognizer has 0.6B parameters. Qwen3-Omni has 30B in total (the "A3B" means about 3B active per token, per its name). The 50-to-1 total size gap is our framing; the paper reports the rows.

    Latency: four routes, four speeds

    On one NVIDIA L4 GPU, in bf16, batch size 1, 8 s windows, the p95 latency per question, measured around the full API call, is (Sec. 6.1):

    Routep95 per questionWhy
    Turn end (layer-18 readout)13 msone encoder pass, one dot product
    Voice activity (question head)16 msencoder pass plus a small cross-attention head
    Language (decoder scores)161 msthe decoder scores language-name tokens
    Term (greedy + 4 beams)2.35 sautoregressive decoding, five hypotheses

    The term route is 180 times slower than turn end. That is the price of reading words through a decoder. The conclusion says it plainly: "Term detection is also the slowest path."

    Personal information: a leak in the transcript

    "Did the patient say their CPF number?" (a Brazilian taxpayer ID). marimba answers by sending the greedy transcript to a text PII detector. The paper's detector is a private, curated pipeline; the release includes none (Sec. 5.2, 6.1).

    The test set is synthetic. The author generated 200 Brazilian Portuguese clips of at most 8 s with Piper TTS in four voices. Half contain one name, CPF, phone number, email or street address. Half contain none, but do contain doses, times and measurements as distractors.

    Find where the misses come from

    Pick which transcript feeds the same PII pipeline. The bars show F1 with its interval; for the greedy transcript you also see recall by item type.

    Sec. 6.1. Synthetic speech, a private pipeline, 200 clips: these numbers cannot be reproduced from the release. Recall by item type is reported only for the greedy-transcript run.

    On the greedy transcript, precision is 0.966, recall 0.850 and F1 0.904 (95% CI 0.856 to 0.945); 3 of 100 negatives are flagged. On the reference text, the same pipeline scores F1 1.000. So every miss comes from transcription. Phone numbers (recall 0.70) and CPF numbers (0.60) suffer most, because spoken digits are often mistranscribed. Names reach 0.95; emails and addresses 1.00.

    Run end to end with its own production transcriber, the pipeline scores F1 0.975 (0.949 to 0.995), with 1 of 100 negatives flagged. A better recognizer closes most of the gap.

    The PII pipeline scores F1 1.000 on reference text but 0.904 on marimba's greedy transcript. What does that isolate?

    Chapter 11

    Connections

    Lock in the cheat sheet, name the limits, and place marimba in the field

    You can now read the marimba paper and defend each of its choices. Why answers are typed. Why the recognizer stays frozen. Why terms read five transcripts. Why a vote needs Platt scaling. Why turn end and speakers read middle layers. And where each route wins, ties and loses. Let's lock it in.

    The one-paragraph summary

    marimba answers typed questions about an 8 second, 16 kHz speech window from a single pass of a frozen Qwen3-ASR 0.6B recognizer. Questions about words are scored zero-shot: the fraction of five decoder hypotheses (greedy plus four beams) that contain the term exactly, mapped to a probability by Platt scaling. Questions about sound use a question-conditioned head (voice activity), a logistic readout on layer 18 (turn end), small readouts on layer 12 (speakers), or the recognizer's own language scores.

    On private Portuguese consultations, term AUROC is 0.80 to 0.92 with binary ECE at most 0.08. Against Smart Turn v3.2 on its own test, turn end loses, 0.930 against 0.982; on ICSI meetings it ties. Speaker change beats ECAPA. On 1,000 shared public questions, marimba matches or beats Qwen3-Omni on 6 of 9 slices. Terms are slow (2.35 s) and inherit every recognizer miss.

    The numbers that matter

    QuantityValueSource
    BackboneQwen3-ASR 0.6B, encoder and decoder frozenSec. 2
    Window8 s, mono, 16 kHz (128,000 samples)Sec. 3.2
    Term scorefraction of 5 hypotheses with an exact match, then PlattSec. 5.2
    Term AUROC, private0.801 to 0.915; ECE ≤ 0.08Table 1
    Term AUROC, publicFLEURS 0.970, Common Voice 0.923Table 1
    Speech CommandsAUROC 0.932, 4-way accuracy 0.93Table 1
    Turn end, Smart Turn test0.930 vs 0.982 (loss; gap −0.052 [−0.075, −0.032])Table 3
    Turn end, ICSI0.716 vs 0.712 (tie; +0.004 [−0.046, +0.054])Table 3
    Recalibration on ICSIECE 0.200 → 0.011 with 200 windows per foldSec. 6.1
    Voice activityAMI 0.986 to 0.995; VoxConverse ≥ 0.999Table 2
    Language IDFLEURS 100%; Common Voice 84.33% open, 93.33% closedSec. 6.1
    Speaker change0.966 / 0.980 vs ECAPA 0.924 / 0.962Table 4
    Speaker count0.778 / 0.859 vs pyannote 0.738 / 0.836; undercounts 3+Table 4
    PII, greedy transcriptF1 0.904 (synthetic speech, private pipeline)Sec. 6.1
    Scenes (CochlScene)at chanceSec. 6.1
    Latency, p95, one L413 ms turn end, 16 ms VAD, 161 ms language, 2.35 s termSec. 6.1

    The core, as code

    Three short pieces carry the paper's lexical route and its two report cards. The normalization follows Sec. 5.2. The Platt fit is plain logistic regression. The hypotheses would come from the frozen recognizer's greedy and four-beam decoding.

    pythonimport unicodedata, numpy as np
    
    def norm(s):
        # NFKD, drop accents (combining marks), keep non-Latin letters, lowercase
        s = unicodedata.normalize("NFKD", s)
        s = "".join(ch for ch in s if not unicodedata.combining(ch))
        return [w for w in "".join(ch if ch.isalnum() else " " for ch in s.lower()).split()]
    
    def contains(hyp, term):
        h, t = norm(hyp), norm(term)               # exact token-sequence match, no fuzz
        return any(h[i:i + len(t)] == t for i in range(len(h) - len(t) + 1))
    
    def raw_score(hyps, term):                  # hyps = [greedy, beam1..beam4]
        return sum(contains(h, term) for h in hyps) / len(hyps)
    
    def fit_platt(r, y, steps=50):             # held-out calibration split only
        a, b = 1.0, 0.0
        for _ in range(steps):                    # Newton steps on log loss
            p = 1 / (1 + np.exp(-(a * r + b)))
            g = np.array([np.sum((p - y) * r), np.sum(p - y)])
            w = p * (1 - p) + 1e-9
            Hm = np.array([[np.sum(w * r * r), np.sum(w * r)], [np.sum(w * r), np.sum(w)]])
            a, b = np.array([a, b]) - np.linalg.solve(Hm, g)
        return a, b
    
    def auroc(score, y):                         # share of (pos, neg) pairs ranked right
        pos, neg = score[y == 1], score[y == 0]
        gt = (pos[:, None] > neg[None, :]).mean()
        eq = (pos[:, None] == neg[None, :]).mean()
        return gt + 0.5 * eq                        # ties count half
    
    def ece(p, y, bins=15):                     # 15 equal-width bins for terms (A.4)
        idx = np.minimum((p * bins).astype(int), bins - 1)
        return sum(abs(y[idx == k].mean() - p[idx == k].mean()) * (idx == k).mean()
                   for k in range(bins) if (idx == k).any())
    
    hyps = ["coloca a lozartana de cinquenta na receita",
            "coloca a losartana de cinquenta na receita",
            "coloca a lozartana de cinquenta da receita",
            "coloca a losartana de cinquenta da receita",
            "coloca a lo sartana de cinquenta na receita"]
    print(raw_score(hyps, "Losartána"), raw_score(hyps, "colocar"))   # 0.4 0.0
    

    Note what the code does not include: the recognizer, the question head, and the turn and speaker readouts. The package on the repo ships those. The repo says the released term score is the raw fraction, uncalibrated, so add your own Platt fit on labeled windows from your setting.

    The limits, in short

    The ethics note

    The private recordings come from a commercial clinical documentation platform. Its terms of use, accepted by clinicians as data controllers under Brazil's LGPD privacy law, allow de-identified use for training AI. Identifiers are salted and the recordings are not released. The paper also states that no research ethics committee reviewed the study and patients gave no study-specific consent (Sec. 7). The results do not validate autonomous clinical decisions.

    Where it sits in the field

    Keep going

    The takeaway. A frozen speech recognizer already holds most of what a speech app needs to decide. Words live in its transcripts, and in all five of them, not just the best one. Voices and turns live in its middle layers. marimba's contribution is to read each one through a small, typed, calibrated interface, and to report the losses as carefully as the wins.

    Now press Present or Teach and explain, out loud and from memory, why five hypotheses beat one for a drug name, and why a 0.004 lead on ICSI is a tie. If you can, you own this paper. Then go back to the window and ask it all five questions at once.

    Based on "marimba: A System One Model for Speech" by Solano Amadori (charcot.ai, November 2026), arXiv 2611.18330
    Read the original paper · Code · Weights · Back to Veanors