This repository contains the PyTorch source code for the paper Weakly Supervised Disentanglement by Pairwise Similarities by Junxiang Chen and Kayhan Batmanghelich.
In this paper, we propose a setting where the user introduces weaksupervision by providing similarities between instances (denoted by
To prepare for the environment for running our code, run
conda env create -f VAE_pairwise.yml
We include an example of training script in test.ipynb.
We train the model with binary pairwise labels for the MNIST dataset. The embedding and generated results are shown below:
We also train the model with real-valued pairwise labels for the MNIST dataset. This setting is for illustration purposes only, but might not be useful in solving real-world problems. The embedding and generated results are shown below:
@article{chen2019weakly,
title={Weakly Supervised Disentanglement by Pairwise Similarities},
author={Chen, Junxiang and Batmanghelich, Kayhan},
journal={arXiv preprint arXiv:1906.01044},
year={2019}
}
This work was partially supported by NIH Award Number 1R01HL141813-01, NSF 1839332 Tripod+X, and SAP SE. We gratefully acknowledge the support of NVIDIA Corporation with the donation of the Titan X Pascal GPU used for this research. We were also grateful for the computational resources provided by Pittsburgh SuperComputing grant number TG-ASC170024.