A lightweight extension of GraphVAE with a biologically inspired funnel attention mechanism that achieves better reconstruction fidelity, smoothness, and diversity on molecular graph datasets.
BioGraphVAE introduces bio-inspired mechanisms on top of classical graph autoencoders, enabling richer and more faithful molecular reconstructions.
A learnable funnel vector re-weights latent representations, inspired by photosynthetic energy funnels found in nature.
Deterministic linear noise schedule prevents posterior collapse and stabilises training across diverse molecular graph distributions.
Plug-and-play support for QM9 (quantum molecular) and ZINC (drug-like compounds) via PyTorch Geometric.
MSE, Diversity, Smoothness, and Kolmogorov-Smirnov metrics give a multi-dimensional view of reconstruction quality.
Built-in PCA, t-SNE, and UMAP projections reveal the geometric structure of learned molecular latent spaces.
Fair comparison against vanilla VAE, GraphVAE, and GAN baselines on identical train/test splits.
BioGraphVAE stacks a two-layer GCN encoder with global mean pooling, applies the bio-inspired funnel attention, then decodes with an MLP.
BioGraphVAE is evaluated on four complementary metrics that together capture reconstruction quality, sample diversity, and distributional fidelity.
Mean-Squared Error measuring reconstruction fidelity of node features.
Standard deviation of generated node features — more diversity means richer outputs.
Mean squared finite difference along canonical node indices.
Kolmogorov-Smirnov test measuring distributional alignment with real data.
| Model | Architecture | Graph Structure | Funnel Attention |
|---|---|---|---|
| VAE | MLP Encoder/Decoder | ✗ | ✗ |
| GraphVAE | GCN Encoder + MLP Decoder | ✓ | ✗ |
| GAN | Generator + Discriminator | ✗ | ✗ |
| BioGraphVAE Ours | GCN + Funnel Attn + MLP | ✓ | ✓ |
Both datasets are loaded natively through PyTorch Geometric and preprocessed automatically by the extraction scripts.
A quantum chemistry dataset of ~134,000 small organic molecules with up to 9 heavy atoms (C, H, O, N, F). Each molecule comes with 19 quantum mechanical properties computed via DFT.
Quantum Chemistry ~134k molecules 9 atom typesA curated database of commercially available drug-like compounds used for virtual screening. Contains millions of molecules with rich structural diversity relevant to drug discovery.
Drug Discovery Drug-like High DiversityFollow these steps to reproduce the BioGraphVAE experiments on your machine.
Python 3.10 is required for compatibility with PyTorch Geometric.
conda create -n biographvae python=3.10 -y conda activate biographvae
All required packages are listed in requirements.txt.
pip install torch torch-geometric numpy pandas tqdm pyyaml \
matplotlib plotly seaborn umap-learn scikit-learn rdkitDownloads and processes QM9 and ZINC datasets.
python main/extract_qm9.py # Download & preprocess QM9 python main/extract_zinc.py # Download & preprocess ZINC
Train on either dataset. GPU (CUDA) is recommended.
python main/experiment_qm9.py # Train on QM9 python main/experiment_zinc.py # Train on ZINC
Generate PCA, t-SNE, and UMAP projections of the latent space.
python main/visualise.py # Generates PCA / t-SNE / UMAP plotsIf you use BioGraphVAE in your research, please cite the following paper.
@inproceedings{chakraborty2025biographvae, title = {BioGraphVAE: A Bio-inspired Autoencoder for Structured Data Reconstruction}, author = {Chakraborty, Somyajit and Chakraborty, Debashis and Mondal, Khokan and Jana, Angshuman and Gayen, Avijit}, booktitle = {Proceedings of ...}, year = {2025} }