> ## Documentation Index
> Fetch the complete documentation index at: https://docs.m-star.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Full-Duplex-Bench v1.5

> Evaluate a duplex speech model's turn-taking, timing and judge agreement with Full-Duplex-Bench v1.5.

> [!NOTE]
>
> Full-Duplex-Bench's code and data are licensed [CC BY-NC 4.0](https://github.com/DanielLin94144/Full-Duplex-Bench/blob/3e799c45a045256f47d5f1c9cda90157e2d2ec9e/LICENSE): non-commercial use only. This repository contains none of it. `data fdb-v15` downloads the v1.5 subsets from the benchmark's official Google Drive, and the suite downloads the official scoring code (`get_timing.py`, `eval_behavior.py`, `instruction/behavior.txt`, `get_transcript/asr.py`) at the pinned revision `3e799c45` into the Hugging Face cache, checking each file's SHA-256. Using the suite means accepting those terms.

The `fdb` suite follows the reference runner (`benchmarks/duplex/fdb_v15`, pinned in `benchmark/eval/fdb_reference.py`) metric for metric, so its numbers can be compared with that runner's. v1.5 has 498 pairs in four categories: `user_interruption` (200), `user_backchannel` (98), `talking_to_other` (100) and `background_speech` (100). A pair is the user's query with a later overlapping event (`input.wav`) and the query alone (`clean_input.wav`); each is its own session.

## Prepare the dataset and judges

The example uses a local Qwen judge and an optional OpenAI judge. Start the local judge with the model, revision and settings in the comments before `run fdb`. The OpenAI judge needs `OPENAI_API_KEY`; without it that judge is skipped and the report records why.

```bash theme={null}
python -m benchmark.eval data fdb-v15 --out ~/eval-data/fdb --per-category 12   # or all

# a local judge on the same GPU, started first so it gets a fixed share of memory:
# vLLM or SGLang (not M*) serving Qwen/Qwen3.8-27B at revision 1d4bf0f2ff6012fd82039f2fa52739d0dd7c60c0
# as qwen3.8-27b on port 30000 with --reasoning-parser qwen3, 42% of GPU memory
# and a 65536-token context

python -m benchmark.eval run fdb --serve nemotron_duplex \
    --data ~/eval-data/fdb/manifest-12.jsonl --concurrency 16 --repeats 3 --out results/fdb \
    --judge qwen=http://127.0.0.1:30000/v1 --judge-revision qwen=1d4bf0f2ff6012fd82039f2fa52739d0dd7c60c0 \
    --judge gpt4o=openai

python -m benchmark.eval report results/fdb --md fdb.md --chart fdb.png
python -m benchmark.eval agreement results/fdb --md agreement.md --chart confusion.png
```

## What each score measures

Each number is per category and for `all`, the mean and standard deviation over repeats.

* **Observation window.** The model's output over `[0, T]`, T the input length, as 16 kHz mono with exactly the input's sample count. A frame-synchronous model emits one output frame per input frame, so this is the audio a client would hear with no transport delay. A client that streams in real time and plays what arrives, as the reference runner does, also gets the server's processing and transport delay in its window. `wall_ms_per_frame` and `on_time_rate` show whether the server kept up live.
* **Stop and response latency.** The official `get_timing.py` on Silero VAD speech spans (`silero-vad` package; user spans merged across 0.6 s gaps, model spans across 0.5 s). Stop intervals are overlaps of user and model speech; response intervals run from the end of a user span to the next model start. These are whole-file intervals of the overlap session, pooled: the mean over every interval of every timed session, null when there is none. Lower stop latency is better on `user_interruption`; on the other three categories the model should keep its turn, so the overlap mostly tracks how long the other speech lasts.
* **Behavior labels.** The four files of a pair are transcribed with word timestamps by the official ASR script on `nvidia/parakeet-tdt-0.6b-v2` (pinned revision and SHA-256; needs `nemo_toolkit[asr]`), then each judge labels the pair with the official prompt: `C_RESPOND` (addressed the overlap), `C_RESUME` (ignored it and continued), `C_UNCERTAIN_HANDLING` (asked for a repeat) or `C_UNKNOWN` (off-target or silent). The share that should be high is `C_RESPOND` on `user_interruption` and `C_RESUME` on the other three. Shares are over valid labels; `judged_pairs` says how many there were.
* **Semantic quality** (not official; one local judge, as in the reference runner). Each pair is graded `accept`, `fail` or `unresolved` on `interaction_handling`, `relevance` and `grounding` with the reference judge's frozen prompt and schema; `joint` fails if any axis fails and accepts only if all three accept. A verdict without an exact quote of its source becomes `unresolved`. `quality = A/(A+F)` and `coverage = (A+F)/N`, N every selected pair: read them together. Before grading, six frozen control cases must reproduce all 18 expected statuses, or the run is not graded.

Failed sessions stay in every denominator and are never timed or judged.

## Judges and agreement

A judge is an OpenAI-compatible chat endpoint, named with `--judge NAME=...`:

* **Local**: `NAME=http://host:port/v1`, served by vLLM or SGLang. M\* cannot be the judge: the behavior requests send `top_k: -1`, which M\* refuses (`top_k` must be 0 or more), and the semantic requests need a reasoning parser and a `json_schema` response format, which M\* does not have. The model sent is the endpoint's `/v1/models` entry (`URL#name` picks one), and every reply must report it. Behavior labels decode as the reference judge does: non-thinking, temperature 0, top\_p 1, top\_k -1, 512 tokens, retry seeds 1 to 3. The semantic judge runs in thinking mode, temperature 0, seed 1, in batches of 8 pairs; start the server with `--reasoning-parser qwen3` so the JSON answer arrives in `content`. `Qwen/Qwen3.8-27B` is the reference runner's choice.
* **API**: `NAME=openai` is `gpt-4o-2024-08-06`, the paper's judge, with the official decoding. It reads `OPENAI_API_KEY` (and `OPENAI_BASE_URL`) from the environment and is skipped, with the reason in the results file and the report, when the key is not set. Keys are never written anywhere.

Labels from different judges are kept apart (`<category>.<judge>.<label>`), so compare runs only under the same judge. With two or more judges, every repeat also records `agreement.<a>.<b>.agreement` and `.kappa` (Cohen's) over the pairs both labeled validly, and `agreement` pools them over repeats into a confusion matrix with per-category agreement and each judge's label shares. A local judge's numbers are for comparing like with like; use the API judge to compare with published results.

## Rejudge saved results

`rejudge` adds a judge to finished results from the transcripts they hold, without a server or GPU (for example once an API key is available), and recomputes the label and agreement metrics:

```bash theme={null}
python -m benchmark.eval rejudge results/fdb --judge gpt4o=openai --out results/fdb-gpt4o
```

`--semantic-only --semantic-judge NAME` regrades only the semantic axes and keeps every judge's labels; `--retry-failed` relabels only the pairs whose label from an unchanged judge failed. Rate limits, server errors and dropped connections are retried with the same request and seed, with exponential backoff (`Retry-After` honored), so they never move the official loop to its next seed; a pair whose retries run out is `failed`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.