Introduction
The quest for disentangled representations in Variational Autoencoders (VAEs) has traditionally been hampered by a zero-sum trade-off. To achieve human-interpretable latent factors, models like $\beta$-VAE increase the weight of the KL-divergence term ($\beta$). However, this "bottleneck" effect often degrades reconstruction quality, leading to blurry outputs. DynamicVAE proposes a solution by treating $\beta$ as a dynamic variable controlled by a feedback loop, allowing for high-fidelity reconstruction without sacrificing disentanglement.
Methodology: Dynamic Control of $\beta$
The central innovation of DynamicVAE is the integration of a modified Proportional-Integral (PI) controller into the training process. Instead of a static hyperparameter, $\beta$ is adjusted in real-time to minimize the error between the model's current KL-divergence and a target information capacity $C$.
The controller omits the "Derivative" component of a standard PID controller to avoid noise from stochastic mini-batch training. It employs a phased trajectory: $\beta$ is kept high initially to establish disentangled latent dimensions. As training progresses, the controller allows $\beta$ to decrease—often reaching values significantly less than 1—to focus on refining reconstruction details. This strategy effectively "locks in" the learned structure before optimizing for fidelity.
Results and Discussion
Evaluations on standard benchmarks such as dSprites, MNIST, and 3D Chairs confirm that DynamicVAE successfully decouples the two primary objectives of VAE training.
Reconstruction and Disentanglement Performance
On the dSprites dataset, DynamicVAE achieved a reconstruction loss of approximately 11.8, matching the performance of a standard VAE. Crucially, it simultaneously achieved a Robust Mutual Information Gap (RMIG) score of 0.4781, surpassing specialized models like FactorVAE and ControlVAE. Qualitative results from latent traversals on MNIST showed clear separation of features like stroke slant and thickness, which are often conflated in other models.
The Significance of $\beta < 1$
A key insight from this work is that a large $\beta$ is only necessary for the discovery of disentangled factors, not their maintenance. By allowing $\beta$ to drop below 1 in the later stages of training, DynamicVAE provides the decoder with the necessary capacity to capture fine-grained image details while preserving the conceptual separation established earlier.
Conclusion
DynamicVAE demonstrates that the perceived trade-off between reconstruction and disentanglement is not fundamental but rather a consequence of static optimization. By employing control theory to manage hyperparameters, the model achieves a superior balance of both objectives. This approach suggests a broader potential for automated control loops to replace manual hyperparameter tuning in deep learning.
Summary updated