Barge-in: the model never yields mid-utterance in our tests (0/95), even with `allow_speech_interruption: true`

Aperta
#7 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
30/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python

Direzione di ricerca

The report uses config.example.json, the demo server, and the allow_speech_interruption setting, but names no source files or tests. Start by reading the demo server’s interruption and action policy paths, then reproduce the reported Mandarin setup and inspect speak versus listen decisions during an interjection. Done means clarifying whether the released checkpoint should yield and documenting or fixing the behavior with reproducible evidence.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Hi, thanks for releasing Sage-Interaction. We have been evaluating full-duplex turn-taking with the demo server and would like to check whether the following behavior is expected.

Setup

  • Code at commit faa3832, weights at d1a9ca4, demo server with config.example.json defaults (allow_speech_interruption: true), single L40S.
  • Two configs: the demo as-is, and the same demo with a local CUDA-graph speed-up we added (same weights and decoding settings). The results below are the same for both.
  • To isolate the model from the client-side rule, we set playback_interrupt_rms to 100.0. That disables the energy-based playback-tail interrupt, so any stop must come from the model itself (speech_interrupted / switching to listen before end_of_turn).
  • Audio: synthetic Mandarin. The user voice is a zero-shot TTS clone of one AISHELL speaker, and background talkers are real AISHELL recordings. The client follows the browser protocol: 1 s chunks, at most 2 in flight, and playback_state reported every 0.25 s.

Test

  • The model answers a question. The user then interjects with a related follow-up question 0.5 s, 1.0 s or 2.0 s after the model's reply first becomes audible, 20 cases per offset per config.
  • Negative control: 10 cases per config with silence at the same position.
  • We only count cases where the interjection starts while the model is still generating, i.e. the step at the interjection onset is speak and is not the end_of_turn step.

Result

offset after reply onset interjection inside generation model yielded mid-utterance median further speak steps after interjection onset
0.5 s 30/40 0 4–5
1.0 s 34/40 0 3
2.0 s 31/40 0 2–3
silence control 18/20 0 20
  • Total: 0/95 mid-utterance yields across both configs. There was no interrupt event and no speech_interrupted: true.
  • The model clearly understands the interjection: once its own turn ends, it answers the follow-up question in most cases. It also stays quiet for backchannels and background talk. But it keeps talking until the end of the current turn.
  • With longer replies the effect is clearer. When the user asks a new question 3 s into a long answer, the model kept speaking in all 11 cases where the question landed inside generation (6 + 5 across the two configs): a median of 5.5 / 29 more steps (1 step = 1 s) and at most 28 / 92 steps before it ended the turn.
  • Action scores during the interjection (from the same kind of test with the interjection 3 s after reply onset, upstream config): listen stays well below speak. The median of the per-session maximum of (listen − speak) is about −6 for interruptions, versus about −11 to −12 for backchannel and background talk and about −13 before the interjection. It never comes close to 0.
  • With the default energy-based playback-tail interrupt enabled, the client-side "stops" we saw all happened after the model had already finished generating. They only cleared the last ~0.3 s of queued audio.

Questions

  1. Is mid-utterance yielding expected from the released checkpoint, or is allow_speech_interruption meant for a different situation, for example a different input language or acoustic condition?
  2. If the released checkpoint is not expected to yield on its own, is there a recommended way to make it yield? For example a decoding setting such as listen_prob_scale, a different action policy, or a prompt. Or do you suggest relying on an external VAD/semantic gate for barge-in?
  3. Do you have reference numbers for barge-in on your side (for example English, real speech) that we could compare against?

Caveats: synthetic Mandarin speech, one run per cell, and the model's delegate (external LLM) calls went to a local stub that returns a fixed reply. We are happy to share the exact per-step logs format we used to compute the numbers above.

Lingua principale
Python
Stelle
103
Fork
2
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di InternLM/Sage-Interaction

Tutte le issue di InternLM/Sage-Interaction

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.