Recorded 2026-11-19. Vocalsynth’s architecture plan sets out a decoupled acoustic pipeline for an on-device piano-roll singing synthesizer, aligning model structure, voicebank lifecycle, vocoder precision, and local latency targets across Stages 0 through 3.
Four product and engineering requirements shape every design choice:
- Piano-roll editability: Support note-level and frame-level editing of lyrics, phoneme timing, continuous F0, and expressive control curves while keeping unedited phrases mathematically invariant.
- Data scaling: Support multi-source ingestion scaling from 1,000 hours to 10,000 hours of dry vocals via Singing data scaling and storage plan.
- Local desktop speed: Beat OpenVPI DiffSinger inference speed on consumer Apple Silicon CPU and MPS while keeping deployed parameter budgets compact regardless of pretraining data size.
- Dual-tier voicebanks: Support Tier 1 voicebanks adapted from 20–120 minutes of unannotated monolingual dry vocals for cross-lingual synthesis, alongside Tier 2 voicebanks trained on multi-hour annotated multi-technique studio recordings without low-rank capacity ceilings.
Current state
Archived validation in Experiment #6, Experiment #7, and Experiment #8 plus local Apple M5 Max profiling (44.1 kHz, hop 512 = 86.13 Hz, 10.0 s / 861 frames, Batch-1, FP32) exposed four structural defects in the active v3 model:
- Single-singer quality degrades across the stacked transfer pipeline: Early supervised single-singer models match OpenVPI DiffSinger (
70,000Opencpop steps) clarity, while losses accumulate across the25 hM4Singer training split,20 minunannotated adaptation, and real.dsscore inputs. - Pretraining data and alignment defects: Looping 20 M4Singer singers (29.77 h total corpus, 24.93 h training split) over 125+ epochs coupled low F0 with male timbre (98.7% of M4Singer below 160 Hz is male), while 78.9% of voiceless fricatives’ final third overlapped RMVPE
f0 > 0frames alongside uncalibrated per-singer loudness variance. - Representation collapse and parameter inversion in v3: Affine-free
LayerNormplus MSE caused97.90%of content trajectory energy to collapse into a constant vector.f0 = 0mapped to0.0collided with voiced pitch without an explicit V/UV channel. Of62.5M–64.1Mtotal v3 parameters,90.7%(56.7M, including19.4Min AdaLN layers) ran inside every ODE iteration step while the once-per-phrase conditioner held only6.5%(4.1M). - Vocoder and frontend bottlenecks: Once acoustic decoding drops to few-step speed,
PC-NSF-HiFiGANdominates CPU latency (1,050–1,088 msper10 svs85 msfor a compact 4-step 1D U-Net prototype). Separately, OpenVPI DiffSinger’s two 20-step frontend variance flows consume2.47–3.66 son M5 Max CPU (74–105 mson MPS).
The table below compares Apple M5 Max profiling measurements across reference baselines, the active v3 model, and candidate compact architectures (10.0 s, 861 frames, FP32, Batch-1).
Model or prototype (10.0 s, 861 frames, FP32, Batch-1 on M5 Max) |
Parameters | MPS latency / RTF | CPU latency / RTF |
|---|---|---|---|
OpenVPI DiffSinger default (ConvNeXt 14.47M + LYNXNet2 40.75M at 20 steps) |
55.22 M |
134.0 ms / 0.0134 |
4,729.3 ms / 0.4731 |
OpenVPI WaveNet (20L, 256 ch at 20 steps) |
16.42 M |
137.2 ms / 0.0137 |
713.8 ms / 0.0714 |
Active v3 DiT (12L, d = 512, 20 / 4 steps) |
56.72 M |
306.5 / 61.0 ms |
1,752.8 / 322.3 ms |
Compact LYNXNet2 prototype (6L, 512 ch, 4 steps) |
10.41 M |
11.0 ms / 0.0011 |
427.4 ms / 0.0428 |
Synthesizer V-style dilated gated conv + 2L BiGRU (1 / 4 steps) |
8.66 M |
203.8 / 807.3 ms |
34.8 / 138.9 ms |
Flat 6L conv + windowed attention (d = 384, k = 15, W = 128, shared AdaLN, 4 steps) |
7.38 M |
12.1 ms / 0.0012 |
242.7 ms / 0.0243 |
1D U-Net (2x downsample) + 3L window Transformer (shared AdaLN, 4 steps) |
11.27 M |
9.5 ms / 0.0010 |
85.3 ms / 0.0085 |
Active vocoder PC-NSF-HiFiGAN (44.1 kHz waveform) |
14.13 M |
70.8–73.1 ms / 0.0071–0.0073 |
1,050–1,088 ms / 0.105–0.109 |
Planned direction
Three-stage decoupled acoustic architecture
Building on Phoneme specification (v2 draft) and Variance and F0 parameter reference while fixing v3 loop overhead (ARCHI-TTS pattern of static encoder plus compact velocity decoder), synthesis separates into five layers:
- Frontend predictors (outside the acoustic model): External
VarianceFrontendcomprising a deterministic phoneme duration and onset-lead predictor (DurationPredictor), a generative continuousF0andV/UVresidual predictor (PitchPredictor), and a generative variance curve predictor (VariancePredictorforenergy,breathiness,tension, andfalsetto) trained on score-annotated corpora (~79 h, excluding scorelessNUS-48E). Manual editor curves and override masks overwrite this layer directly. - Module A (Cross-lingual content interface, computed once per phrase): Maps either language-qualified native phonemes plus duration and Fourier sub-phone phase/boundary distances (
z_p), or singing/speech SSL features under waveform perturbation (z_a), into a continuous pronunciation trajectoryz(t). Module A strictly excludesF0,V/UV, speaker embeddings, variance controls (energy,breathiness,tension,falsetto), and channel tags, keeping a strictly finite receptive field. Module A remains frozen during Tier 1 adaptation (and by default during Tier 2, allowing only guarded low-LR multilingual replay if cross-lingual PER remains stable). - Module B (Static frame conditioner, computed once per phrase): Fuses
z(t), continuouslog2_f0_interp,vuv, standardized(energy, breathiness, tension, falsetto)with explicit binary presence masks, speaker vectors, andchannel_tiertags into static frame conditioningc(t)reused across all ODE steps. If Shallow Flow Matching wins Fork 1, Module B also emits a speaker-modulated coarse Mel prior without conflicting with frozen Module A. - Module C (Compact iterative velocity decoder, few steps): Finite-receptive-field network injected with shared low-rank AdaLN for timestep, speaker vector
s, andchannel_tier, predicting 128-band log Mel with dual-timestep frame masking for local phrase inpainting. - Vocoder adapter: Translates
(log2_f0_interp, vuv_prob)to either continuousF0(PC-NSF-HiFiGAN) or explicit(f0_hz, vuv_prob)(HiFTNetor hybrid H+N vocoders).
Unified speaker lifecycle and dual-tier voicebanks
To avoid the off-shell low-norm singer_embed = "mean" failure observed in Experiment #8 and stop speaker embeddings from absorbing channel noise:
- Pretraining: A non-adjacent reference speaker encoder produces fixed-width speaker vectors
sinjected into Modules B and C alongsidechannel_tier. - Target initialization: Extract and average reference-encoder embeddings across all dry recordings of the target singer as the starting
s_target, then discard the reference encoder during adaptation and local inference. - Tier 1 (20–120 min unannotated monolingual audio): Freeze Module A and optimize
s_targetplus linear LoRA weights in Modules B and C (driver path chosen by Fork 2). Clampchannel_tiertostudio_dryand merge LoRA weights statically into standalone compact weights sharing general frontend and vocoder weights. - Tier 2 (multi-hour annotated multi-technique studio audio): Unfreeze Modules B, C, and register/technique projections with anchored regularization (plus optional dedicated frontend or predicted-Mel vocoder fine-tuning when needed, trading larger per-voicebank disk footprint and reload time on switch for higher fidelity).
Shared V1 contracts and decision forks
The table below maps each V1 contract to its active experimental forks and conditional upgrade triggers.
| Dimension | V1 runnable baseline | Active forks (resolved experimentally) | Conditional upgrades (triggered only by measured bottlenecks) |
|---|---|---|---|
| Audio and frame rate | 48 kHz mono FLAC Plane 1 archive. V1 training/inference uses 44.1 kHz, hop 512 (86.13 Hz), and 128 log-Mel (research/vocalsynth/configs/base/audio_44k.toml). |
Fork 1: Test if 2x U-Net downsampling (43.1 Hz bottleneck) softens plosives or flaps. |
V2 upgrade to 172.3 Hz (44.1 kHz / 256) or 187.5 Hz (48 kHz / 256) only after custom frame-level vocoder clears unseen-singer MUSHRA and CPU speed gates. |
| F0 and V/UV | (log2_f0_interp, vuv_prob in [0, 1]), gated by fixing M4Singer unvoiced consonant boundaries first. |
Fork 3a: Compare (log2_f0_interp, vuv_prob) against legacy f0 = 0 on real .ds projects. |
Physical hybrid vocoder explicit glottal and aperiodicity controls. |
| Model architecture and training | Direct training of Modules A/B/C with Rectified Flow, Sway Sampling, reference speaker encoder, channel_tier, and 2-stage pretrain/anneal curriculum. |
Fork 1 evaluates Module C candidates against Shallow Flow Matching, and Fork 2 runs the five-way Tier 1 adaptation comparison defined in the Research roadmap (extending Experiment #8). | Cloud teacher with CFG/Shortcut or Int-MeanFlow distillation if capacity saturates, AG-REPA/SR-FD if convergence lags, and multi-objective DPO/RL in Stage 3. |
| Frontend and vocoder | VarianceFrontend (DurationPredictor, PitchPredictor, and VariancePredictor for energy, breathiness, and tension) trained alongside AcousticV2. Uses PC-NSF-HiFiGAN in mixed FP16 (FP32 phase) short term. |
Fork 4 (Roadmap track): Custom 44.1 kHz F0+V/UV frame-level vocoder (HiFTNet + FreeV prior test) vs PC-NSF-HiFiGAN plus Mel-VAE check. |
Few-step flow vocoder for high-quality offline export, and hybrid source-filter DSP+neural vocoder long term. |
| Data tiers | D0–D3 ingestion and license prefix isolation. |
Fork 3b: Calibrate separated-stem mixing ratios, annealing, and >8 kHz loss down-weighting. |
Commercial IAM-isolated studio anchor corpus scaled by target release languages and registers. |
Model architecture selection, training, and unlabeled paths
- Module C candidates: Compare 1D U-Net (
2x) + symmetric windowed Transformer, flat conv + windowed attention, and compactLYNXNet2at matched budgets. Pure DiT without convolution hurts compact local transient fidelity (retained only as a conditional cloud teacher), BiGRU breaks phrase-local edit isolation and slows MPS, SSMs accumulate cross-frame state hurting single-note repainting, and0.5B–2BAR models fail strict framewise piano-roll adherence. - Unlabeled data asymmetry: Large multilingual pretraining routes audio by reliability tier (
D0paired toz_p, ASR-verified lyric audio viaSOFA/Phonsatoz_p, unannotated/speech audio via pitch/formant-perturbed multilingual SSL such as singing-tunedWavLM-largetoz_awith variance-preserving normalization). Tier 1 adaptation tolerates moderate errors with Module A frozen and settles the default driver (z_a, soft phoneme posteriors/pseudo-labelsz_p, or hybrid) via the planned five-way adaptation comparison in the Research roadmap, building on the initial ablations in Experiment #8.
Representations, frontends, and vocoder roadmap
- Linguistic and acoustic inputs: Keep language-prefixed native symbols (
zh:,ja:,en:,ko:) decomposed into sharedPanPhonarticulatory priors plus per-symbol residuals under Phoneme specification (v2 draft), paired with multi-frequency Fourier sub-phone phase and truncated onset/offset boundary distances. Convert corpus note starts (consonant onset) to piano-roll vowel-nucleus P-center coordinates during frontend training (borrowing pre-vowel consonant onset up to ~150 ms perSinsy). Extract song-level-normalized continuousenergy,breathiness,tension, andfalsettocurves per Variance and F0 parameter reference. - Frontends and explicit UI overrides: Train the external
VarianceFrontend(PitchPredictorgenerativeF0/V/UVflow,DurationPredictorwith onset lead, andVariancePredictorflow forenergy,breathiness, andtension, omitting blurred boundary encoding ±8 frames because ±93 ms at 86.13 Hz blurs short consonants). Separate neural default curves, manual user curves, and an explicit override mask so flattening vibrato to zero remains distinct from erasing a curve, alongside phrase segmentation at long rests with deterministic seeds. - Vocoder FP32 sine-phase requirement and 3-step path: Local checks on
PC-NSF-HiFiGANshowed that casting the entire model to FP16 truncates phase steps before accumulation, collapsing single-tone 440 Hz SNR to -3.63 dB (-1.59 dB at 880 Hz). Keeping sine phase accumulation in FP32 and casting only generated sinusoids to FP16 restores +47.59 dB SNR while accelerating 10 s MPS latency 2.4x (70.8–73.1 ms down to 30.7 ms). Near-term steps deploy this mixed-precision fix, medium-term Fork 4 trains a 44.1 kHz F0+V/UVHiFTNet(testingFreeVMel pseudo-inverse priors) exclusively onD0studio singing and clean speech to address licensing, CPU speed, +517–554 MB transient memory, and explicit breath stem export, and long-term work evaluatesWaveFM/RFWavefor offline export alongside hybrid DSP+neural synthesis. - Intermediate representations: Retain
128-band log Mel as the V1 baseline over discrete residual FSQ (avoiding discrete quantization bottlenecks when local synthesis needs no network transport, and notingRefineGAN2consumed84%of ACE’s fixed-chunk decoder+vocoder latency) and over unconditional16 kHzwaveform VAEs (>8 kHzhallucination risk). Mel-VAE remains an isolated reconstruction comparison track.
Local latency engineering and evaluation protocol
After compacting the acoustic model, editor responsiveness depends on five engineering rules:
- Remove non-model delays via tighter input debounce, shorter interactive chunking, step-level ODE cancellation across requests, zero per-step bias reallocation, and non-blocking cache writes.
- Replace flat single-phrase disk caches with a three-level in-memory LRU cache (L1 content and static
c(t), L2 predicted Mel, L3 final PCM waveform) plus finite-receptive-field local halo repainting. - Offer fast few-step mixed-FP16 preview profiles and higher-step FP32 export profiles.
- Follow operator-level mixed precision (
FP16orW8A16for linear/vocoder convs with kernel-fused norms, and mandatoryFP32for attention softmax, ODE accumulation, RoPE/time encodings, FFT/iSTFT, sine phase accumulation, and F0 heads). - Export bucketed ONNX Runtime and CoreML / MLX runtimes with native FP32 DSP blocks for Python-free desktop packaging.
All model decisions follow one split: blind human listening decides outcomes, while objective metrics localize failures. Separate blind A/B leaderboards (EBU R128 -23 LUFS loudness matched) into six dimensions (articulation, naturalness/cleanliness, phrase coherence, timbre similarity, pitch/glide naturalness, and control responsiveness), backed by unseen-singer MUSHRA (ITU-R BS.1534) across registers and fixed cross-round MOS anchors. Track full-band multi-resolution STFT (8–22 kHz explicitly broken out), cent F0 RMSE, singing-recognizer PER, register-stratified WavLM-SV cosine similarity (mean and P10), edit-invariance (0 diff outside modified phrases), and Batch-1 4 s / 10 s TTFA and stage breakdown.
Dependency-driven R&D stages
The table below outlines the dependency order, parallel deliverables, and exit gates from Stage 0 through Stage 3.
| Stage | Prerequisites | Parallel deliverables | Exit gate |
|---|---|---|---|
| Stage 0: Engineering fixes, local data, and pilot funnel | None | Deploy v3 FP16 plus mixed-precision PC-NSF-HiFiGAN and step cancellation. Fix editor .ds bugs (AP, slurs, F0 zeroing). Normalize local D0 corpora (-23 LUFS / -1 dBTP), apply Multi-Cue Fusion alignment and corpus filtering per Decision 0009 and Decision 0010, and extract variance and score sidecars. Calibrate separation, C50, and 48 kHz DSP on MoisesDB, then run the R2 Plane 1/2 pilot. |
Confirmed local speedup and cancellation, clean cache_v2 on curated multilingual D0 corpora, plus measured retention rate, cost per hour, and 8–16 kHz fidelity on pilot stems. |
| Stage 1: Multilingual base pretraining, variance conditioning, and controlled forks | Stage 0 local cache_v2 and sidecars ready (do not wait for 1,000 h). |
Run Experiment #9 (AcousticV2 with explicit V/UV, overlapping local context, and energy/breathiness/tension conditioning) alongside VarianceFrontend (DurationPredictor, PitchPredictor, and VariancePredictor under Variance and F0 parameter reference) and dual-layer editor masks. Resolve Fork 1 (Module C architectures plus Shallow Flow), Fork 2 (five-way Tier 1 adaptation comparison extending Experiment #8), and Fork 3a (log2_f0_interp, vuv_prob) on .ds. |
Blind A/B and M5 Max Batch-1 lock V1 architecture, step count, Tier 1 adaptation driver, F0/V/UV and variance contract, and measured VarianceFrontend latency. |
| Stage 2: 1,000 h expansion, scaled base, and custom vocoder | Stage 0 pilot metrics passed, Stage 1 locked V1 design. | Resolve Fork 3b decontamination ablations, then scale the separation pipeline to 1,000 h net dry audio. Train the scaled V1 multilingual base model with VarianceFrontend and verify the Tier 1/Tier 2 export inflection. Resolve Fork 4 custom 44.1 kHz HiFTNet vs PC-NSF-HiFiGAN, and test high-rate/Mel-VAE reconstruction. |
End-to-end 1,000 h multilingual model and Tier 1/Tier 2 outputs beat current baselines in blind tests, and the full pipeline beats OpenVPI DiffSinger on M5 Max Batch-1. |
| Stage 3: 10,000 h scaling, commercial parity, and native desktop | Stage 2 complete and verified via blind listening. | Scale data to 10,000 h alongside IAM-isolated commercial studio anchors. Evaluate cloud teacher plus multi-objective DPO/RL distilled to a compact student if needed. Switch to V2 frame rate if gated benchmarks clear. Ship bucketed ONNX, CoreML, and MLX runtimes with 3-level LRU caching. | Commercial base model ready with interactive desktop latency approaching Synthesizer V. |
Related resources
- 0009: Mandarin Multi-Cue Fusion alignment
- 0010: Multilingual v2 corpus curation
- Phoneme specification (v2 draft)
- Variance and F0 parameter reference
- Singing data scaling and storage plan
- Research roadmap
- Chia demo research plan
- ACE Studio local synthesis pipeline
- Synthesizer V acoustic model architecture and vocoder architecture



