Module 24
Multimodal AI and Robotics
How do we build systems that perceive, understand and interact with the world through multiple information modalities?
- lessons
- 33
- duration
- 62 h
- concepts
- 216
- available in English
- 33 / 33
- completed by you
0 of 33
Where it fits
Overview
Build a system that perceives and acts from the ground up: rigid-body geometry in SO(3) and SE(3), manipulator kinematics, dynamics and control, MuJoCo and Gymnasium simulation, and motion planning. Develop imitation learning in depth, including behavior cloning, DAgger, IRL, ACT, diffusion and flow-matching policies; then study geometric perception and state estimation through cameras, point clouds, sensor fusion, localization, SLAM, neural 3D representations and pose estimation. Finally explore learned modalities: CLIP, fusion and cross-attention, vision–language models, audio, speech, video and world models. Finish with vision–language–action models and embodied AI. Each algorithm is first implemented in NumPy, then with MuJoCo, PyTorch and open models designed for 8 GB of VRAM.
Why it matters
This module brings earlier topics together: Kalman and particle filters become SLAM; diffusion models become robotic policies; transformers and LLMs become vision–language and vision–language–action models. It underpins the imitation-learning robot project and builds judgment for reading and reproducing robot-learning and multimodal research. Closed-loop thinking—what a model does changes what it sees next—is central to deploying an agent.
Lessons 33
- 01Review and map: perceive, estimate, decide and actReview the tools needed for embodied systems, from rotations and Bayesian filters to multimodal representations, and see why open-loop evaluation does not predict closed-loop behaviour.
- 023D rotations: SO(3), Euler angles, quaternions and the exponential mapRepresent orientations with rotation matrices, Euler angles, axis-angle coordinates and unit quaternions. Derive Rodrigues' formula, understand gimbal lock and double coverage, and compare rotations with geodesic distance and spherical interpolation.
- 03Rigid motion and calculus on manifolds: SE(3), twists and Lie perturbationsExtend rotations to poses in SE(3), organize reference frames, and derive twists, the exponential map, adjoints and Lie perturbation Jacobians for optimization on manifolds.
- 04Manipulator kinematics: forward, Jacobian and inverseCompute forward kinematics with Denavit-Hartenberg parameters and products of exponentials, derive manipulator Jacobians, and use damped inverse kinematics and null-space projection.
- 05Robot dynamics and controlDerive manipulator dynamics and recursive Newton-Euler inverse dynamics, then study gravity-compensated PD, computed torque, impedance and operational-space control.
- 06Simulating robots: MuJoCo and GymnasiumDescribe a robot and scene in MJCF, study contacts and integration, and wrap a manipulation simulation in the Gymnasium API for reproducible episode collection.
- 07Motion planning: configuration space, sampling and trajectory optimizationPlan collision-free motion in configuration space with PRM, RRT variants and trajectory optimization, then time-parameterize a geometric path.
- 08Behavior cloning: imitation as supervised learningLearn policies from expert demonstrations, analyze compounding error, multimodality and causal confusion, and compare Gaussian-mixture and discretized action heads.
- 09DAgger and interactive imitation learningAsk an expert to label learner-visited states with DAgger, connect the method to online no-regret learning, and examine human intervention, noise injection and distribution shift.
- 10Inverse reinforcement learning and adversarial imitation: essentialsInfer rewards from expert behaviour, derive maximum-entropy IRL, and compare adversarial occupancy matching with behavior cloning.
- 11Action chunking and ACTPredict action chunks, derive the conditional VAE behind ACT, and study temporal ensembling and leader-follower teleoperation.
- 12Diffusion Policy and flow matching policiesModel multimodal action chunks with observation-conditioned diffusion or flow matching, then compare sampling quality, receding-horizon execution and inference latency.
- 13Policy learning in practice: data, evaluation and sim2realBuild traceable robot-demonstration datasets and evaluation protocols, then study sim-to-real transfer, domain randomization, system identification and residual reinforcement learning.
- 14Camera geometry: projection, calibration and epipolar geometryBuild pinhole camera geometry, lens calibration, homographies and epipolar constraints, then estimate two-view pose and triangulate points.
- 15Point clouds: registration, ICP and learning on setsLiDAR and depth cameras produce unordered point sets rather than grids. Learn backprojection, voxel downsampling, local PCA normals, Kabsch alignment, point-to-point and point-to-plane ICP, PointNet and PointNet++.
- 16State estimation and sensor fusionApply filtering to robots whose states lie on manifolds and whose sensors have biases, delays, and different rates. Develop motion and observation models, an SO(3) error-state Kalman filter, fusion architectures, timing and consistency checks.
- 17Localization and occupancy grid mappingStudy localization with a known map and mapping with known poses. Implement EKF and Monte Carlo localization, kidnapped-robot recovery, occupancy grids with log-odds updates, and a LiDAR likelihood field.
- 18Filtering-based SLAM: EKF-SLAM, FastSLAM and data associationEstimate pose and map jointly using full and online SLAM, EKF-SLAM and Rao-Blackwellized FastSLAM. Study data association and why EKF-SLAM can become inconsistent.
- 19Graph-based SLAM: pose optimization, loop closure and robust estimationOptimize the entire trajectory with factor graphs, nonlinear least squares, sparse Gauss–Newton, loop closures, robust kernels and incremental smoothing such as iSAM2.
- 20Visual SLAM and visual-inertial odometryDevelop monocular visual odometry, bundle adjustment and Schur elimination, keyframe SLAM, IMU preintegration and visual-inertial odometry, and review learned dense SLAM.
- 21Neural 3D representations: depth, NeRF and Gaussian splattingCompare classical 3D representations and monocular depth, derive differentiable NeRF volume rendering and Fourier features, and study Gaussian splatting and feedforward reconstruction.
- 22Pose estimation: 6D objects and human bodiesEstimate 6D object pose using PnP and compare correspondence, regression and render-and-compare methods. Study continuous rotation representations, human keypoint heatmaps and pose metrics.
- 23CLIP: aligning images and text with contrastive learningDerive CLIP's symmetric image–text contrastive objective and zero-shot classification; compare SigLIP, locked-image tuning, data curation, modality gap and distribution shift.
- 24Multimodal fusion: cross-modal attention, FiLM and PerceiverCompare early, intermediate and late multimodal fusion; implement cross-attention, FiLM, Perceiver bottlenecks and gated attention, and assess modality imbalance and missing inputs.
- 25Vision-language models: architecture and trainingStudy visual encoders, connectors and language models, vision–language objectives, LLaVA-style training stages and a small QLoRA VLM.
- 26VLMs in depth: resolution, grounding, hallucination and early fusionHandle high-resolution images and visual-token compression, produce grounded points, evaluate object hallucination, and compare connector VLMs with early-fusion models.
- 27Audio signals: STFT, spectrograms and the mel scaleStudy digital sampling, STFT and time–frequency tradeoffs, log-mel and MFCC features, Griffin–Lim phase reconstruction, SpecAugment and audio classification.
- 28Speech recognition: from CTC to WhisperStudy speech recognition alignment and WER, compare CTC, RNN-T and attention, and examine Conformer, self-supervised speech, Whisper and language-model decoding.
- 29Speech synthesis and generative audioStudy neural text-to-speech, duration alignment, vocoders, residual vector quantization, codec language models, flow matching and speech evaluation.
- 30Video and temporal modelingStudy optical flow, two-stream and spatiotemporal convolutions, video transformers, masked video pretraining and temporal sampling.
- 31Generative video, video LLMs and world modelsStudy causal video tokenizers, latent video diffusion, video language models, action-conditioned world models and model-predictive planning, with critical evaluation of physical consistency.
- 32Vision-language-action modelsStudy vision–language–action models using discrete, compressed or continuous actions, web–robot co-training, cross-embodiment data and efficient adaptation.
- 33Embodied AI: planning with foundation models and open problemsCombine language planning, executable skills, environmental feedback and hierarchical VLAs; critically examine manipulation benchmarks, robot-data scaling and runtime oversight.
Module capstone
An arm that sees, understands instructions and learns by imitation in MuJoCo
In a custom MuJoCo scene with a 6- or 7-degree-of-freedom arm and tabletop objects: build a scripted expert using differential inverse kinematics and RRT for pushing, stacking and opening a drawer, and generate demonstrations with injected noise; wrap the scene in Gymnasium with RGB and proprioception and store a LeRobotDataset; train behavior cloning with a mixture head, ACT and a diffusion policy on the same data, plus one DAgger round; condition the best policy on language using CLIP text encoding or a small frozen VLM; and evaluate domain randomization of textures, lighting, masses and camera position with at least 50 episodes per condition and confidence intervals. Deliver a reproducible report with ablations of chunking, observation horizon, demonstration count and sampling steps, plus videos of successes and failures classified by cause.
Check what you already know
- Convert between rotation matrix, axis–angle and unit quaternion and explain gimbal lock.
- Compose and invert SE(3) transformations and linearize a pose function with right perturbations.
- Calculate product-of-exponentials forward kinematics and solve inverse kinematics with damped least squares.
- Write the manipulator equations M(q)q̈ + C(q, q̇)q̇ + g(q) = τ and design computed-torque control.
- Build a custom Gymnasium environment over an MJCF model and distinguish termination from truncation.
- Implement RRT and explain why RRT* is asymptotically optimal and RRT is not.
- Prove the O(T²ε) accumulated-error bound for behavior cloning and explain averaging multimodal demonstrations.
- Explain DAgger’s reduction to no-regret online learning and its linear horizon bound.
- Derive the maximum-entropy IRL gradient as a difference of feature expectations.
- Explain ACT action chunking, temporal ensembling and its latent style variable.
- Train and sample a receding-horizon diffusion policy and tune observation, prediction and execution horizons.
- Project a 3D point with a distorted pinhole model and estimate a fundamental matrix using normalized eight-point and RANSAC.
- Align point clouds with Kabsch and point-to-plane ICP.
- Fuse IMU and GNSS using an error-state Kalman filter and validate consistency with NEES and NIS.
- Formulate graph SLAM as nonlinear least squares and solve it with sparse Gauss–Newton.
- Derive CLIP’s symmetric contrastive loss and use zero-shot classification with text templates.
- Describe the visual encoder, connector and LLM architecture of a vision–language model and its training stages.
- Calculate a log-mel spectrogram from STFT and reason about the window time–frequency tradeoff.
- Calculate WER and compare CTC, RNN-T and attention encoder–decoder models.
- Explain how a VLA discretizes actions with bins or FAST or generates them with a flow-matching expert.
References
- Modern Robotics: Mechanics, Planning, and Control
- Probabilistic Robotics
- Multiple View Geometry in Computer Vision
- Planning Algorithms
- Robotic Manipulation: Perception, Planning, and Control
- An Algorithmic Perspective on Imitation Learning
- Robot Learning: A Tutorial
- Multimodal Machine Learning: A Survey and Taxonomy
- Computer Vision: Algorithms and Applications
- Speech and Language Processing