﻿# VITS randomness controls: duration noise differs from acoustic latent noise

Understand VITS stochastic duration prediction, acoustic latent sampling, and rate controls without treating every noise setting as background noise or playback speed.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-vits-duration-noise-latent-noise-rate/
Language: en

## Explain why repeated synthesis can differ

The [VITS paper](https://arxiv.org/abs/2106.06103) models the one-to-many relationship between text and speech using latent uncertainty and a stochastic duration predictor. Different renderings of the same text are therefore not automatically evidence of a broken cache or a changed checkpoint. The model can sample both acoustic realization and rhythm. A reproducibility record must include the relevant random state and sampling configuration, not merely the input sentence.

## Locate the timing random variable

The [original implementation](https://raw.githubusercontent.com/jaywalnut310/vits/main/models.py) passes `noise_scale_w` into the stochastic duration predictor. Predicted durations then determine the alignment path that expands linguistic positions into acoustic time. This parameter concerns variation in timing; it is not an amount of ambient noise mixed into the output file. Reducing it does not constitute an audio-denoising operation, and its effect should be evaluated through duration and rhythm rather than a background-noise meter.

## Separate the acoustic latent sample

The same source uses `noise_scale` when sampling the acoustic latent before the flow and decoder. That is a different sampling location from the duration predictor. The [Transformers reference](https://huggingface.co/docs/transformers/model_doc/vits) exposes corresponding acoustic and duration-noise concepts under its own configuration names. Preserve the mapping between implementations explicitly. Similar words in a wrapper are not enough to establish that it forwards a setting to the same random variable as the reference code.

## Check rate semantics before copying values

The original code applies `length_scale` to durations, while the integration documents a speaking-rate control whose larger values produce faster speech. These are not interchangeable numeric conventions. Confirm the exact transformation before migrating a voice preset. A useful comparison holds random state and text constant while changing a single control, then records waveform duration and audible timing. This does not imply that rate changes are a calibrated linear transform of every syllable in the final recording.

## Keep stochastic and transport errors separate

If repeated results differ, first compare effective sampling and duration settings before blaming the audio writer or GPU precision. Use [artifact validation](/journal/safetensors-artifact-validation/) and [inference evaluation](/journal/inference-benchmark-method/) for supporting records. Save implementation revision, checkpoint, text preparation, random state, noise controls, rate convention, and output duration. The goal is an interpretable synthesis experiment, where intended variation is distinguished from an accidental parameter remapping or a change in the deployed model.
