Abstract
This paper challenges the common assumption that the weight $\beta$, in $\beta$-VAE, should be larger than 1 in order to effectively disentangle latent factors. We demonstrate that $\beta$-VAE, with $\beta < 1$, can not only attain good disentanglement but also significantly improve reconstruction accuracy via dynamic control. The paper removes the inherent trade-off between reconstruction accuracy and disentanglement for $\beta$-VAE. Existing methods, such as $\beta$-VAE and FactorVAE, assign a large weight to the KL-divergence term in the objective function, leading to high reconstruction errors for the sake of better disentanglement. To mitigate this problem, a ControlVAE has recently been developed that dynamically tunes the KL-divergence weight in an attempt to control the trade-off to a more favorable point. However, ControlVAE fails to eliminate the conflict between the need for a large $\beta$ (for disentanglement) and the need for a small $\beta$. Instead, we propose DynamicVAE that maintains a different $\beta$ at different stages of training, thereby decoupling disentanglement and reconstruction accuracy. In order to evolve the weight, $\beta$, along a trajectory that enables such decoupling, DynamicVAE leverages a modified incremental PI (proportional-integral) controller, and employs a moving average as well as a hybrid annealing method to evolve the value of KL-divergence smoothly in a tightly controlled fashion. We theoretically prove the stability of the proposed approach. Evaluation results on three benchmark datasets demonstrate that DynamicVAE significantly improves the reconstruction accuracy while achieving disentanglement comparable to the best of existing methods. The results verify that our method can separate disentangled representation learning and reconstruction, removing the inherent tension between the two.
Introduction: The Reconstruction-Disentanglement Trade-off
In unsupervised representation learning, the $\beta$-VAE is a foundational model. Its primary objective is to compress complex data into a "disentangled" latent space where individual dimensions correspond to single physical attributes, such as an object's rotation, scale, or color.
Traditionally, $\beta$-VAEs have been constrained by a notorious trade-off: to achieve disentanglement, researchers typically apply a high weight ($\beta > 1$) to the KL-divergence term in the loss function. While this creates a bottleneck that encourages the separation of latent factors, it simultaneously limits the information capacity of the model, resulting in blurry, low-quality reconstructions. Conversely, reducing $\beta$ improves image fidelity but leads to "entangled" representations. DynamicVAE posits that this trade-off is not inherent but is instead a scheduling problem that can be solved by decoupling these two objectives during training.
Methodology: A Control-Theoretic Approach
The core innovation of DynamicVAE is treating the training process as a control system problem. Instead of a static hyperparameter, the model employs a modified incremental PI (Proportional-Integral) controller to adjust $\beta$ in real-time based on feedback from the training process.
Key components of the DynamicVAE framework include:
- Non-linear PI Control: The controller monitors the actual KL-divergence ($y_{KL}$) and adjusts $\beta$ to track a target value ($C$). A sigmoid function is utilized to ensure that $\beta$ transitions smoothly.
- Hybrid Annealing: To prevent the model from becoming overwhelmed, the target KL-divergence is increased using a combination of "step" and "ramp" functions. This creates a curriculum where the model learns latent factors sequentially.
- Moving Average Feedback: To mitigate the noise inherent in mini-batch stochastic gradient descent, a moving average is applied to the KL-divergence feedback, preventing the controller from overreacting to temporary spikes.
Experimental Evaluation and Insights
The authors evaluated DynamicVAE on three standard benchmarks: dSprites, MNIST, and 3D Chairs. The results demonstrate that a large $\beta$ is only necessary during the initial stages of training to establish disentangled "slots" in the latent space. Once these factors are separated, $\beta$ can be reduced—even to values below 1.0—to allow for high-fidelity reconstruction without losing the learned structure.
Key Results: * Superior Reconstruction: On the dSprites dataset, DynamicVAE achieved a reconstruction loss of ~11.8, matching basic VAEs and significantly outperforming over-regularized $\beta$-VAEs. * State-of-the-Art Disentanglement: Despite the improved image quality, DynamicVAE achieved a Robust Mutual Information Gap (RMIG) score of 0.4781, surpassing FactorVAE (0.4763) and ControlVAE (0.4295). * Qualitative Clarity: Latent traversals reveal that DynamicVAE can cleanly manipulate attributes like rotation or scale without the "ghosting" effects common in high-$\beta$ models.
Conclusion
DynamicVAE successfully removes the inherent tension between reconstruction accuracy and disentanglement. By leveraging control theory to dynamically evolve the regularization weight, the model maintains structural understanding while "opening the floodgates" for detail. Future work may involve refining the hybrid annealing schedules for more complex, real-world datasets and exploring the integration of derivative (D) terms for even more robust control.
Summary updated