Eight generative-AI labs: architectures, text, image, video, 3D, synthetic data, multimodal, and training and evaluation, with simulators that run in your browser, a learning path and a specialised assistant.
Interactive experiments and simulators
Simulators that run in your browser without any API or subscription: change the parameters and see the result at once. Each one says that it is educational and what is genuinely computed in it.
- 13Simulators
Mini NeRF renderer Advanced
Render a scene of Gaussian blobs by volume integration and compare samples and views.
Objective
Render a synthetic scene by volume integration and test the effect of samples and views.
How to use
Set the resolution, samples, views, background and elevation.
The simulator loads on demand…
Interpretation, science and references
How to read the results
More samples improve accuracy and raise the time; fewer views weaken reconstruction.
Definition and core idea
Coloured Gaussian blobs with genuine volume rendering and a depth map.
Mathematical form
\hat C(\mathbf r)=\sum_i T_i(1-e^{-\sigma_i\delta_i})\mathbf c_iLimitations
This is a small educational simulation that runs in your browser with tiny models and synthetic data; it does not represent the behaviour of real large models.
Reference papers
- B. Mildenhall, P. P. Srinivasan, M. Tancik, J. T. Barron, R. Ramamoorthi, R. Ng (2020). NeRF: Representing Scenes as Neural Radiance Fields for View Synthesis. Computer Vision – ECCV 2020, Lecture Notes in Computer Science, pp. 405–421. doi:10.1007/978-3-030-58452-8_24
GAN: mode coverage and collapse Intermediate
Train a small GAN on a 2-D Gaussian mixture and watch how many modes the generator covers.
Objective
Train a tiny generator and discriminator on a 2-D Gaussian mixture and observe coverage and mode collapse.
How to use
Set the number of modes, training steps, learning rate and discriminator steps, then run. Try the minimax versus the non-saturating loss.
The simulator loads on demand…
Interpretation, science and references
How to read the results
Compare the generator snapshots through training with the real points. Missing points around modes mean mode collapse; oscillating losses alone do not signal failure.
Definition and core idea
Small MLP generator and discriminator updated with Adam on batches of 64 points; coverage is the number of modes covered.
Mathematical form
\min_G\max_D V(D,G)Limitations
This is a small educational simulation that runs in your browser with tiny models and synthetic data; it does not represent the behaviour of real large models. The networks are tiny and the data space is two-dimensional.
Reference papers
- I. Goodfellow, J. Pouget-Abadie, M. Mirza, B. Xu, D. Warde-Farley, S. Ozair, A. Courville, Y. Bengio (2014). Generative Adversarial Networks. Advances in Neural Information Processing Systems 27 (NeurIPS 2014). doi:10.48550/arXiv.1406.2661
- M. Arjovsky, S. Chintala, L. Bottou (2017). Wasserstein GAN. arXiv:1701.07875 (ICML 2017). doi:10.48550/arXiv.1701.07875
VAE: the latent space and β Intermediate
Train a small VAE and browse its latent space; vary β to see the reconstruction-regularity trade-off.
Objective
Train a tiny VAE and browse its 2-D latent space.
How to use
Set β, the iterations and the seed, run, and move z in the live exploration.
The simulator loads on demand…
Interpretation, science and references
How to read the results
The decoded map shows shapes morphing gradually; if KL≈0 the space collapsed and the picture will not change as z moves.
Definition and core idea
A 64→32→4 encoder and a 2→32→64 decoder on 8×8 pictures of three shapes.
Mathematical form
\mathcal L=\text{rec}+\beta\,\mathrm{KL}Limitations
This is a small educational simulation that runs in your browser with tiny models and synthetic data; it does not represent the behaviour of real large models.
Reference papers
- D. P. Kingma, M. Welling (2014). Auto-Encoding Variational Bayes. International Conference on Learning Representations (ICLR 2014); arXiv:1312.6114. doi:10.48550/arXiv.1312.6114
- I. Higgins, L. Matthey, A. Pal, C. Burgess, X. Glorot, M. Botvinick, S. Mohamed, A. Lerchner (2017). beta-VAE: Learning Basic Visual Concepts with a Constrained Variational Framework. International Conference on Learning Representations (ICLR 2017).
Diffusion: DDPM, DDIM and guidance Intermediate
Train a noise-prediction network on 2-D data then generate while tuning the sampler and guidance.
Objective
Train a noise-prediction network on 2-D data then generate with DDPM or DDIM with classifier-free guidance.
How to use
Pick the data shape, schedule, sampler, step count and guidance scale, then run.
The simulator loads on demand…
Interpretation, science and references
How to read the results
Compare the generated shape with the real data; the sliced Wasserstein distance falls as the shape matches. More guidance narrows the distribution.
Definition and core idea
An MLP is trained to estimate noise with a sinusoidal time encoding, and guidance (1+w)ε(c) − wε(∅) is applied.
Mathematical form
\min_\theta\mathbb E\|\epsilon-\epsilon_\theta(x_t,t)\|^2Limitations
This is a small educational simulation that runs in your browser with tiny models and synthetic data; it does not represent the behaviour of real large models.
Reference papers
- J. Ho, A. Jain, P. Abbeel (2020). Denoising Diffusion Probabilistic Models. arXiv:2006.11239 (NeurIPS 2020). doi:10.48550/arXiv.2006.11239
- J. Song, C. Meng, S. Ermon (2021). Denoising Diffusion Implicit Models. International Conference on Learning Representations (ICLR 2021). doi:10.48550/arXiv.2010.02502
- J. Ho, T. Salimans (2022). Classifier-Free Diffusion Guidance. arXiv:2207.12598. doi:10.48550/arXiv.2207.12598
DDIM: sampling with fewer steps Advanced
Compare DDIM with few steps on the same trained model; notice the speed–fidelity trade-off.
Objective
Train a noise-prediction network on 2-D data then generate with DDPM or DDIM with classifier-free guidance.
How to use
Pick the data shape, schedule, sampler, step count and guidance scale, then run.
The simulator loads on demand…
Interpretation, science and references
How to read the results
Compare the generated shape with the real data; the sliced Wasserstein distance falls as the shape matches. More guidance narrows the distribution.
Definition and core idea
An MLP is trained to estimate noise with a sinusoidal time encoding, and guidance (1+w)ε(c) − wε(∅) is applied.
Mathematical form
\min_\theta\mathbb E\|\epsilon-\epsilon_\theta(x_t,t)\|^2Limitations
This is a small educational simulation that runs in your browser with tiny models and synthetic data; it does not represent the behaviour of real large models.
Reference papers
- J. Ho, A. Jain, P. Abbeel (2020). Denoising Diffusion Probabilistic Models. arXiv:2006.11239 (NeurIPS 2020). doi:10.48550/arXiv.2006.11239
- J. Song, C. Meng, S. Ermon (2021). Denoising Diffusion Implicit Models. International Conference on Learning Representations (ICLR 2021). doi:10.48550/arXiv.2010.02502
- J. Ho, T. Salimans (2022). Classifier-Free Diffusion Guidance. arXiv:2207.12598. doi:10.48550/arXiv.2207.12598
Text–image contrastive learning Advanced
Train two encoders with InfoNCE on synthetic pairs and measure retrieval and zero-shot classification.
Objective
Train two encoders with InfoNCE on synthetic pairs and measure retrieval.
How to use
Set the dimension, batch, temperature and steps.
The simulator loads on demand…
Interpretation, science and references
How to read the results
Retrieval and top-5 accuracy rise with training; a very low temperature may reduce stability.
Definition and core idea
Programmatically generated text against a synthetic vector “image” per concept.
Mathematical form
\mathcal L_{\text{InfoNCE}}Limitations
This is a small educational simulation that runs in your browser with tiny models and synthetic data; it does not represent the behaviour of real large models.
Reference papers
- A. Radford, J. W. Kim, C. Hallacy, et al. (2021). Learning Transferable Visual Models From Natural Language Supervision. International Conference on Machine Learning (ICML 2021). doi:10.48550/arXiv.2103.00020
Comparing synthetic data methods Intermediate
Compare independent marginals, a copula and jitter on a synthetic table for fidelity, utility and copying.
Objective
Compare methods for generating a synthetic table on fidelity, utility and copying.
How to use
Choose the method, row count and noise, then run.
The simulator loads on demand…
Interpretation, science and references
How to read the results
A low correlation error with high utility (AUC) is good; a high verbatim duplicate rate means leakage.
Definition and core idea
A synthetic table with three columns of known correlation and a binary label.
Limitations
This is a small educational simulation that runs in your browser with tiny models and synthetic data; it does not represent the behaviour of real large models.
Reference papers
- N. Patki, R. Wedge, K. Veeramachaneni (2016). The Synthetic Data Vault. 2016 IEEE International Conference on Data Science and Advanced Analytics (DSAA), pp. 399–410. doi:10.1109/DSAA.2016.49
- L. Xu, M. Skoularidou, A. Cuesta-Infante, K. Veeramachaneni (2019). Modeling Tabular Data using Conditional GAN. Advances in Neural Information Processing Systems 32 (NeurIPS 2019). doi:10.48550/arXiv.1907.00503
Detecting memorisation and copying Advanced
The “memorisation” mode copies training samples: notice high precision and recall with a high copy rate.
Objective
Generate known failure modes and read FD, precision, recall and the copy rate.
How to use
Pick the failure mode, severity, number of modes and sample count.
The simulator loads on demand…
Interpretation, science and references
How to read the results
Memorisation: high precision and recall with a 100% copy rate; dropping: low recall; collapse: low recall and high precision.
Definition and core idea
FD, precision and recall are computed directly on 2-D points.
Limitations
This is a small educational simulation that runs in your browser with tiny models and synthetic data; it does not represent the behaviour of real large models.
Reference papers
- M. Heusel, H. Ramsauer, T. Unterthiner, B. Nessler, S. Hochreiter (2017). GANs Trained by a Two Time-Scale Update Rule Converge to a Local Nash Equilibrium. Advances in Neural Information Processing Systems 30 (NeurIPS 2017). doi:10.48550/arXiv.1706.08500
- T. Kynkäänniemi, T. Karras, S. Laine, J. Lehtinen, T. Aila (2019). Improved Precision and Recall Metric for Assessing Generative Models. Advances in Neural Information Processing Systems 32 (NeurIPS 2019). doi:10.48550/arXiv.1904.06991
Multi-head attention maps Intermediate
Type a text and see the attention weights of each head with or without a causal mask.
Objective
Show attention maps for several heads on a text you type.
How to use
Type a short text, set the dimension, heads, causal mask and pattern, then pick a query token.
The simulator loads on demand…
Interpretation, science and references
How to read the results
The weights are synthetic and untrained so they reflect no linguistic relations; the causal mask zeroes forward attention.
Definition and core idea
Deterministic embeddings from a token hash with sinusoidal positions and fixed random projections.
Mathematical form
\mathrm{softmax}(QK^\top/\sqrt{d_k})VLimitations
This is a small educational simulation that runs in your browser with tiny models and synthetic data; it does not represent the behaviour of real large models.
Reference papers
- A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, L. Kaiser, I. Polosukhin (2017). Attention Is All You Need. Advances in Neural Information Processing Systems 30 (NeurIPS 2017). doi:10.48550/arXiv.1706.03762
Train BPE and tokenise words Beginner
Merge the most frequent character pairs and tokenise new words.
Objective
Train BPE on your text and tokenise new words.
How to use
Paste a text, set the merge count and test words.
The simulator loads on demand…
Interpretation, science and references
How to read the results
More merges mean fewer tokens per word and a larger vocabulary.
Definition and core idea
The original character-level BPE algorithm.
Limitations
This is a small educational simulation that runs in your browser with tiny models and synthetic data; it does not represent the behaviour of real large models.
Reference papers
- R. Sennrich, B. Haddow, A. Birch (2016). Neural Machine Translation of Rare Words with Subword Units. Proceedings of the 54th Annual Meeting of the ACL (Volume 1: Long Papers), pp. 1715–1725. doi:10.18653/v1/P16-1162
Decoding strategies Intermediate
Compare greedy, beam and sampling with temperature, top-k and top-p on a tiny n-gram model.
Objective
Try decoding strategies on a tiny n-gram model in Arabic or English.
How to use
Pick the language, prompt, strategy, temperature, k and p, then generate.
The simulator loads on demand…
Interpretation, science and references
How to read the results
Greedy repeats itself; high temperature weakens coherence; top-p balances them.
Definition and core idea
An n-gram model built from a few sentences; it is not a real language model.
Limitations
This is a small educational simulation that runs in your browser with tiny models and synthetic data; it does not represent the behaviour of real large models.
Reference papers
- A. Holtzman, J. Buys, L. Du, M. Forbes, Y. Choi (2020). The Curious Case of Neural Text Degeneration. International Conference on Learning Representations (ICLR 2020). doi:10.48550/arXiv.1904.09751
Diagnosing failures with metrics Advanced
Generate a known failure mode and read FD, precision, recall and the copy rate.
Objective
Generate known failure modes and read FD, precision, recall and the copy rate.
How to use
Pick the failure mode, severity, number of modes and sample count.
The simulator loads on demand…
Interpretation, science and references
How to read the results
Memorisation: high precision and recall with a 100% copy rate; dropping: low recall; collapse: low recall and high precision.
Definition and core idea
FD, precision and recall are computed directly on 2-D points.
Limitations
This is a small educational simulation that runs in your browser with tiny models and synthetic data; it does not represent the behaviour of real large models.
Reference papers
- M. Heusel, H. Ramsauer, T. Unterthiner, B. Nessler, S. Hochreiter (2017). GANs Trained by a Two Time-Scale Update Rule Converge to a Local Nash Equilibrium. Advances in Neural Information Processing Systems 30 (NeurIPS 2017). doi:10.48550/arXiv.1706.08500
- T. Kynkäänniemi, T. Karras, S. Laine, J. Lehtinen, T. Aila (2019). Improved Precision and Recall Metric for Assessing Generative Models. Advances in Neural Information Processing Systems 32 (NeurIPS 2019). doi:10.48550/arXiv.1904.06991
Temporal attention (a simplified analogue) Advanced
An educational analogue: treat each token as a frame and see how local attention links neighbouring frames. This is not a simulation of a real video model.
Objective
Show attention maps for several heads on a text you type.
How to use
Type a short text, set the dimension, heads, causal mask and pattern, then pick a query token.
The simulator loads on demand…
Interpretation, science and references
How to read the results
The weights are synthetic and untrained so they reflect no linguistic relations; the causal mask zeroes forward attention.
Definition and core idea
Deterministic embeddings from a token hash with sinusoidal positions and fixed random projections.
Mathematical form
\mathrm{softmax}(QK^\top/\sqrt{d_k})VLimitations
This is a small educational simulation that runs in your browser with tiny models and synthetic data; it does not represent the behaviour of real large models.
Reference papers
- A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, L. Kaiser, I. Polosukhin (2017). Attention Is All You Need. Advances in Neural Information Processing Systems 30 (NeurIPS 2017). doi:10.48550/arXiv.1706.03762
Related DLArabic sections
- Smart Glossary Term definitions
- Academic Prompt Library Writing prompts
- AI Academy Foundational courses
- AI Quiz General question bank
- AI Playground General in-browser labs
- Speech & Audio AI Lab For speech synthesis and recognition
- Research Tools Tools for scientific research
- AI Ethics & Fairness Lab Generation risks and fairness
- Deep Learning Architectures Architecture fundamentals
- NLP Lab Language-model foundations
- Computer Vision Lab Visual-model foundations
