Barge-in: the model never yields mid-utterance in our tests (0/95), even with `allow_speech_interruption: true`
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
- Ambito
- ai, audio-video-rtc
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 atd1a9ca4, demo server withconfig.example.jsondefaults (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_rmsto 100.0. That disables the energy-based playback-tail interrupt, so any stop must come from the model itself (speech_interrupted/ switching tolistenbeforeend_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_statereported 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
speakand is not theend_of_turnstep.
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
interruptevent and nospeech_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):
listenstays well belowspeak. 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
- Is mid-utterance yielding expected from the released checkpoint, or is
allow_speech_interruptionmeant for a different situation, for example a different input language or acoustic condition? - 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? - 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
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di InternLM/Sage-Interaction
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 58/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 54/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 55/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
InternLM/Sage-Interaction#3 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 55/100
InternLM/Sage-Interaction#2 · 2 commenti ·
Tutte le issue di InternLM/Sage-Interaction
Issue simili
-
accepted
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
future-agi/future-agi#5908 ·
I maintainer di solito rispondono entro 1 giorno
-
Placeholder export disables HTML image input for picture descriptionForse già presa @cloudiful l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
docling-project/docling-serve#817 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
Techiebutler/freeframe#687 ·
I maintainer di solito rispondono entro 1 giorno
-
Parse truncated verbose GC logs up to the first XML errorForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertabug verbose GC
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
IBM/javacore-analyser#677 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
I maintainer di solito rispondono entro 2 giorni