Model Card for Duplex-Noise-Bench Decoupled Defense Suite
Links: GitHub (Shiyao-Huang/duplex-noise-bench) · HF Dataset (swmt/duplex-noise-bench) · HF Model (swmt/duplex-noise-bench-heads) · Rush Main Repo (Shiyao-Huang/rush)
Model Summary
This release provides four lightweight, strictly decoupled PyTorch modules designed to harden frozen full-duplex speech LLMs against environmental noise, acoustic self-echo, far-field bystanders, equal-loudness cocktail-party interference, and same-volume side-conversations — all with 0.0 drift on frozen LLM generation and pure-text weights (frozen_generation_weights_max_abs_diff == 0.0, pure_text_max_abs_diff == 0.0).
Module Specifications
| Module | File | Exact Parameters | GPU Latency (P50) | Placement in Pipeline | Backbone Drift |
|---|---|---|---|---|---|
PreEncoderTSE |
methods/pre_encoder_tse.py |
1,888,034 (1.89M) |
2.22–2.34 ms |
BEFORE frozen speech encoder (raw 16 kHz STFT) | 0.0 |
FastReflexHead |
methods/decoupled_fast_reflex.py |
991,748 (0.99M) |
0.145 ms |
Parallel to frozen LLM on dual-channel [h_mic; h_tts] (6.25 Hz) |
0.0 |
SemanticAddresseeHead |
methods/semantic_addressee_head.py |
264,962 (0.26M) |
47.73 ms (incl. 0.8B pooling) |
Read-only probe on frozen LLM audio-pooled hidden states | 0.0 |
Surgical Diff-LoRA |
methods/surgical_diff_lora.py |
Rank-16 SVD (<=32) |
0.0 ms (folded) |
Orthogonal subtraction (orth_sub) in isolated audio-pathway MLP only |
0.0 (pure-text) |
Architecture Details
1. PreEncoderTSE (1.89M, 2.22 ms)
- VoiceprintEncoder (
~0.45M): 3-layer dilated Conv1D (k=5,3,3, dilations1,2,4) + GroupNorm + SiLU + Attentive Statistics Pooling (weighted mean + std) over raw STFT log-magnitude (n_fft=512,hop=160,257bins) of a 1.5s enrollment clip -> L2-normalized 128-d voiceprintz_spk. - FiLM-TCN MaskNet (
~1.44M): 7 dilated residual TCN blocks (dilations=(1,2,4,8,1,2,4),hidden=192) modulated via FiLM(1 + gamma(z_spk)) * h + beta(z_spk)predicting a[0, 1]STFT ratio mask -> iSTFT waveform fed directly into the frozen speech encoder.
2. FastReflexHead (0.99M, 0.145 ms)
- 2-layer MLP (
LayerNorm(3584) -> Linear(3584, 256) -> SiLU -> Linear(256, 256) -> SiLU -> Linear(256, 4)) reading concatenated microphone and TTS reference features[h_mic; h_tts]at6.25 Hz(160 ms ticks). - Predicts 4 independent binary channels:
eou,barge_in,estop,echo_or_silence. - Trained on a 7-scenario taxonomy (
clean_speech,noisy_speech_3_8db,silence_only,harsh_noise_only,far_field_bystander,echo_only,barge_in_over_tts).
3. SemanticAddresseeHead (0.26M)
- Read-only classifier (
LayerNorm(1024) -> Linear(1024, 256) -> SiLU -> Dropout(0.15) -> Linear(256, 2)) over frozen LLM audio-pooled hidden states. - Distinguishes
talking_to_other(class 0) vsaddressed_to_ai(class 1) whenFastReflexHeaddetects foreground speech.
4. Surgical Diff-LoRA (orth_sub)
- Trains paired contrastive rank-
rLoRAs (ΔW_pos,ΔW_neg) on identical audio inputs, applies exact Gram-Schmidt orthogonal subtractionΔW_buf = ΔW_pos - (<ΔW_pos, ΔW_neg> / ||ΔW_neg||_F^2) * ΔW_neg, serializes as compact rank-2rSVD factors, and selects optimalalphavia per-item Fix Set (F_base \ F_new) vs Guard Regression Set (F_new \ F_base).
Audited Evaluation Summary
- Acoustic Gate (
MultiSpeakerNoiseFocus-v1,n=48disjoint held-out): Bystander FPR100.0% -> 0.00%, Harsh Noise FPR100.0% -> 0.00%, Echo FPR100.0% -> 6.25%(prod graft), Foreground Clean/+3 dBRecall100.0% / 100.0%. - Equal-Loudness
0 dBSIR Cocktail-Party (30unseen speakers):PreEncoderTSElifts strict Swap-Enrollment flip0.0% -> 50.00%(+0.5010NLL separation,179xvs post-encoder conditioning) and+3 dBSIR0.0% -> 59.38%(+0.9355NLL separation,+5.70 ppselectivity,+1.12 dBSI-SNRi). - Zero-Shot
Full-Duplex-Bench v1.5(n=498):- 6L Edge (
FastReflex):background_speechTOR100% -> 59.0%(-41.0 pp),user_backchannelTOR100% -> 64.29%(4.08%false barge-in),user_interruptionrecall99.5% (199/200). - 0.8B Duplex (
FastReflex + SemanticAddressee):talking_to_otherTOR100.0% -> 53.00%(-47.00 ppzero-shot),user_interruptionrecall92.50% (185/200).
- 6L Edge (
Intended Use & Limitations
- Intended Use: Drop-in research and edge-deployment defense modules for full-duplex speech assistants where preserving base LLM text/reasoning weights bit-for-bit is mandatory.
- Limitations:
PreEncoderTSErequires a 1.5s enrollment clip of the target speaker and operates at16 kHzmono.SemanticAddresseeHeadrecall/precision trade-off (threshold=0.50) should be calibrated to application latency and false-trigger tolerances.- Ultra-compressed 4-layer speech encoders (
49.6M) retain near-zero acoustic gate FPR (0.00%harsh noise,2.08%bystander/echo) but exhibit reduced fine-grained English safety refusal compared to 6-layer (68.9M) encoders.