PersonaPlex Gaze-Poster: a full-duplex presenter gated by a 1-bit gaze signal
A fine-tune of nvidia/personaplex-7b-v1. The model plays a researcher standing at their poster at a conference. Two visitors stand in front of it, and their voices arrive mixed on the single "user" audio channel. Next to the audio, the model receives one bit per 80 ms frame: whether a visitor is looking at the presenter (gaze).
| gaze | what the visitors do | what the presenter does |
|---|---|---|
| 0 | talk to each other about the paper | stays silent and keeps listening |
| 0 → 1 | turn to the presenter, usually with a question | joins within about 1 s and uses what it overheard ("I heard you wondering about masking...") |
| 1 | keep the conversation going | answers from the poster content |
| 1 → 0 | turn away to each other | stops talking, or is cut off mid-sentence |
You do not need to touch the speech side. Compute gaze however you like (a camera, a head-pose tracker, a keyboard) and feed one 0/1 value per frame. Sections 3 and 4 below describe the whole interface.
1. Quick start
# 1) PersonaPlex runtime (needs libopus-dev). Tested at commit 3428dfd.
git clone https://github.com/NVIDIA/personaplex && pip install personaplex/moshi/.
# 2) the base repo is gated (auto-approve): accept its license on the Hub, then
huggingface-cli login
# 3) this repo
huggingface-cli download PleasedPenguin/personaplex-gaze-poster --local-dir pplex_gaze && cd pplex_gaze
# 4) run the bundled example: visitors talk to each other for 31 s, then look at the presenter
python inference.py --user examples/gp_01910/visitors.wav --gaze 31.252-89.663 \
--prompt prompts/example_kenji.txt --voice voices/NATM0.wav --out out/kenji
The run writes three files:
out/kenji.wav: the presenter's voice.out/kenji_mix.wav: left channel = visitors, right channel = presenter.out/kenji.txt: what the presenter said, with timestamps.
examples/gp_01910/sample_output.* is what this run produced on our side.
Hardware: one 48 GB GPU (tested on an L40), which runs faster than real time. Mimi and the text tokenizer are loaded from the base repo, unchanged.
2. Model
- Architecture: unchanged PersonaPlex/Moshi. It has a 7B temporal transformer with a depformer, 12.5 Hz frames, and 1 text stream + 8 agent codebooks + 8 user codebooks. Code is in NVIDIA/personaplex
moshi/moshi/models/lm.py(LMModel). No new parameters. - Weights:
model.safetensorsis the full model with the LoRA merged in (16.7 GB, bf16). It is a drop-in replacement for the basemodel.safetensors. Anything that takes--moshi-weightcan load it. - Training:
- LoRA rank 64 on all linear layers of both transformers, 249M trainable parameters, embeddings frozen.
- lr 5e-5 for 2 epochs (234 steps) on 1,862 synthetic episodes (50.5 h).
- Loss is only on the presenter streams. The system-prompt prefix is masked.
- 1 epoch gave practically the same eval numbers.
3. How gaze enters the model
The gaze bit is added through the embedding of a text token that is never used, id 4 (<0x00>).
input_embedding[t] = embed_codes(tokens[t]) + gaze[t] * text_emb(4)
For gaze = 0 nothing is added. The embedding row stays frozen, and the LoRA layers learned to read it. gaze_inject.py implements this in about 20 lines by wrapping LMModel.embed_codes:
import gaze_inject
lm = loaders.get_moshi_lm("model.safetensors", device="cuda"); lm.eval()
gaze = gaze_inject.install(lm) # 1) BEFORE LMGen warmup: CUDA graphs are captured there
gen = LMGen(lm, ...); warmup(...)
gaze.set(0) # 2) the system prompt is always processed with gaze = 0
gen.step_system_prompts(mimi)
for codes in visitor_frames: # 3) one step per 80 ms of visitor audio
gaze.set(looking_now) # 0 or 1, the value for THIS audio frame
out = gen.step(codes)
gaze.set() writes into a persistent GPU tensor in place, so CUDA-graph replays pick up the new value with no extra cost.
Rules for a gaze estimator:
- Rate and alignment: 12.5 Hz. Frame f covers visitor audio from f × 80 ms to (f+1) × 80 ms. Set the value right before feeding that frame. No look-ahead is needed.
- Meaning:
- 1 means at least one visitor is looking at the presenter, i.e. the OR over both visitors.
- 0 means both are looking at each other or at the poster.
- Binary only: threshold your estimator's output. Values between 0 and 1 and other scales were not trained.
- Debounce: training only had one long gaze-on interval per episode (25–100 s, median 51 s), never short glances. Hold a change for about 0.3–0.5 s before switching, so that blinks and tracker jitter don't toggle the model.
- Timing seen in training:
- When visitors start the conversation, gaze turns on 0.3–0.9 s before their question.
- When the presenter starts it, the presenter speaks 0.5–1.1 s after gaze turns on, with no visitor speech.
- Gaze turns off exactly when the visitors turn away.
4. System prompt
PersonaPlex prepends a fixed prefix to the conversation, in this order. It takes about 25 s to process, and gaze is 0 throughout.
- Voice prompt: 5–15 s of the presenter's voice, encoded with Mimi.
- 0.5 s of silence.
- Text prompt
<system> ... <system>, one token per frame. The median was 213 tokens ≈ 17 s. - 0.5 s of silence.
The gaze bit is not written into the text prompt. The prompt only describes the rule in words, and the bit arrives per frame (Section 3). Every training episode used the same template, prompts/TEMPLATE.txt:
You are {name}, presenting your own poster, {title}, at an academic conference. You know the work deeply and speak naturally. Your poster covers this work: {brief} Visitors may talk among themselves nearby. Listen silently unless someone turns to look at you. When they do, join naturally, use what you overheard, correct misunderstandings politely, and answer from the work.
{name},{title},{brief}and the voice sample are free for every session. Training used 1,862 different presenters, papers and voices, so "Kenji" in the example is just one of them.{brief}describes the poster in 60–100 neutral third-person words: the problem, the method, 2–3 concrete results and one limitation. We wrote it with an LLM from the arXiv abstract; the training median was 94 words. The presenter only knows what is in the brief. Seeprompts/example_*.txt.- Keep the two last sentences verbatim. The base model received the same instruction and ignored it, so the behaviour comes from the fine-tune. The fine-tune was trained with those exact words, though.
- Voices:
voices/has 18 voice samples (wav) that were not used in training. They come from NaturalVoices, restored with RE-USE. Their file names match the PersonaPlex web UI's voice list (NATF0...VARM4), so the UI can select them. Any clean 5–15 s wav works. The base model's.ptvoice embeddings were computed with the base weights and were not used.
5. Live server
server.py is the PersonaPlex server with a gaze input added. The web UI and the protocol are otherwise unchanged.
python server.py --host 0.0.0.0 --port 8998
# http://<host>:8998 PersonaPlex web UI: paste a prompt in the TEMPLATE format, talk into the mic
# http://<host>:8998/gaze gaze button: click to toggle, or hold Space = looking
The server can receive gaze in any of three ways. It applies the value from the next 80 ms frame.
| channel | message |
|---|---|
| HTTP | POST /api/gaze?v=1 or ?v=0; GET /api/gaze returns {"gaze": 0 or 1} |
| WebSocket | on the same /api/chat socket, the binary message b"\x07\x01" (looking) or b"\x07\x00" (not looking) |
| Example | ws_client.py streams a wav in real time and sends scripted gaze over the socket |
Gaze resets to 0 for every new connection. Use headphones or echo cancellation: the model was never trained on hearing its own voice through the visitors' microphone.
6. Evaluation
The test set has 32 held-out episodes: different papers, and voices never seen in training. It was run offline on fixed visitor audio, with voice activity at −45 dBFS per 80 ms frame.
| base PersonaPlex | this model | |
|---|---|---|
| presenter speech while visitors talk to each other (gaze 0) | 13.9 s (32/32 episodes) | 0.0 s |
| responds within 3 s after gaze on | 30/32 | 32/32 (median 0.9 s) |
| speech while engaged (reference script: 31.2 s) | 21.5 s | 27.2 s |
| speech after the visitors turn away | 6.1 s | 0.1 s |
Two checks show that the model really uses the gaze bit:
- Gaze forced to 0: when visitors look and ask a question, it still answers in 63% of episodes. Their speech is addressed to the presenter, so this is reasonable. When visitors only look and say nothing, it starts in 8%.
- Gaze forced to 1: it does not start immediately. It waits for the side talk to develop (median first word at 26.9 s).
Content: the presenter refers to the overheard side talk in 31 of 32 episodes and uses facts from the brief.
7. Limitations
- All training data is synthetic. LLM-written scripts were voiced with TTS, in English only, always with exactly two visitors mixed on one channel and a single gaze-on interval per episode. Real rooms, glances and multiple gaze flips are untested.
- The presenter often adds details that are not in the brief (about 18 of 32 test episodes) and sometimes contradicts it (about 4 of 32).
- The "I'm being ignored" aside after visitors turn away was barely learned (1 of 8). The model usually just stops.
- If gaze turns on while the visitors keep talking to each other, it tends to wait for a gap.
Files
| file | |
|---|---|
model.safetensors | merged weights (drop-in for the base model.safetensors) |
gaze_inject.py | the gaze injection: install(lm), then gaze.set(0 or 1) per frame |
inference.py | offline: visitor wav + gaze intervals or frames → presenter wav and text |
server.py, gaze_panel.html | live server with /api/gaze, WebSocket kind 7 and the /gaze button |
ws_client.py | WebSocket example and test client |
prompts/ | TEMPLATE.txt and three real test prompts |
voices/ | 18 held-out presenter voices plus voices.tsv |
examples/gp_01910/ | visitor audio, gaze as intervals (meta.json) and per frame (gaze_frames.txt), sample output |
License
- The weights are a derivative of
nvidia/personaplex-7b-v1and fall under the NVIDIA Open Model License. server.pyis adapted from NVIDIA PersonaPlex (MIT).