Recent AI Breakthroughs
Scaling Laws & Foundation Models
The Chinchilla scaling law (Hoffmann et al., 2022) refined earlier estimates, showing that for compute-optimal training, both model size and training data should be scaled equally. A model with N parameters should be trained on roughly 20N tokens.
| Model | Parameters | Training Tokens | Year |
|---|---|---|---|
| GPT-2 | 1.5B | ~40B | 2019 |
| GPT-3 | 175B | ~300B | 2020 |
| Chinchilla | 70B | 1.4T | 2022 |
| LLaMA 2 | 70B | 2T | 2023 |
| GPT-4 | ~1.8T (MoE) | ~13T | 2023 |
Key Insight
The paradigm shift: instead of training task-specific models from scratch, we pre-train a massive general-purpose model and adapt it. This pre-train → fine-tune → prompt pipeline now dominates NLP, vision, and multimodal AI.
Large Language Models (LLMs)
LLMs are transformer-based models trained on massive text corpora to predict the next token. They demonstrate remarkable few-shot and zero-shot capabilities.
- GPT-3 (2020): 175B parameters; demonstrated that scale alone enables in-context learning — the model performs tasks given only a few examples in the prompt, without gradient updates.
- InstructGPT / ChatGPT (2022): Applied RLHF (Reinforcement Learning from Human Feedback) to align GPT-3.5 with human intent, producing a conversational assistant.
- GPT-4 (2023): Multimodal (text + image input); passes professional exams (bar exam 90th percentile, SAT 99th percentile); likely a Mixture-of-Experts architecture.
- LLaMA / LLaMA 2 (2023): Meta's open-weight models; proved that smaller, well-trained models can match larger ones (Chinchilla-optimal training).
- Gemini (2023): Google's natively multimodal model family (Ultra, Pro, Nano) — processes text, images, audio, video, and code.
Emergent Abilities
Chain-of-Thought Reasoning
Q: Roger has 5 tennis balls. He buys 2 more cans of 3 balls each.
How many tennis balls does he have now?
A: Roger started with 5 balls. 2 cans of 3 balls each is 2 × 3 = 6.
5 + 6 = 11. The answer is 11.
By including worked examples with explicit reasoning, the model learns to generate its own step-by-step solutions.
Variants of CoT
- Zero-shot CoT: Simply appending "Let's think step by step" to the prompt (Kojima et al., 2022).
- Self-Consistency: Sample multiple reasoning paths and take the majority vote (Wang et al., 2022).
- Tree-of-Thought: Explore multiple reasoning branches and evaluate which to pursue (Yao et al., 2023).
- Graph-of-Thought: Generalizes reasoning to arbitrary graph structures (Besta et al., 2023).
Diffusion Models & Generative AI
- DALL-E 2 (2022): Uses CLIP text embeddings + diffusion prior + decoder diffusion model.
- Stable Diffusion (2022): Operates in latent space (latent diffusion model, LDM) for efficiency. Open-source, enabling widespread community adoption.
- DALL-E 3 (2023): Improved text understanding via better captioning during training.
- Midjourney: Commercial system known for artistic quality.
- Sora (2024): OpenAI's video generation model, extending diffusion to temporal sequences.
Why Diffusion Beats GANs
- Training stability: No adversarial min-max optimization; direct likelihood-based training.
- Mode coverage: Diffusion models cover the full data distribution better (fewer mode collapse issues).
- Controllability: Classifier-free guidance allows precise control over generation.
- Quality: Achieves state-of-the-art FID scores on ImageNet.
AlphaFold & AI for Science
The architecture combines:
- Evoformer: A novel transformer module that jointly processes multiple sequence alignments (MSAs) and pair representations.
- Structure Module: Iteratively refines 3D coordinates using invariant point attention.
- Recycling: The entire network is run multiple times, feeding outputs back as inputs.
Other AI-for-Science Breakthroughs
- AlphaFold 3 (2024): Predicts structures of protein complexes, DNA, RNA, ligands, and ions.
- GNoME (2023): DeepMind's graph neural network discovered 2.2 million new crystal structures for materials science.
- FunSearch (2023): LLM-powered evolutionary search found new mathematical constructions, surpassing known bounds for the cap set problem.
- Weather forecasting: GraphCast and Pangu-Weather outperform traditional numerical weather prediction models.
RLHF & Alignment Techniques
- SFT: Fine-tune base LLM on high-quality instruction-response pairs.
- Reward Model: Given two responses, human annotators indicate preference. Train a model R(prompt, response) → scalar.
- PPO Optimization: Maximize E[R(x, y)] - β · KL[π_θ || π_ref] where π_ref is the SFT model (KL penalty prevents reward hacking).
Beyond RLHF
- DPO (Direct Preference Optimization): Eliminates the separate reward model by directly optimizing the policy on preference data. Simpler and more stable.
- Constitutional AI (CAI): Uses principles ("constitution") for self-critique and revision, reducing dependence on human labelers.
- RLAIF: Replaces human feedback with AI feedback using a stronger model as judge.
Open-Source AI Movement
A major trend has been the democratization of powerful AI models through open-source releases:
| Model | Organization | Parameters | Key Feature |
|---|---|---|---|
| LLaMA / LLaMA 2 | Meta | 7B–70B | Commercial license, competitive with GPT-3.5 |
| Mistral / Mixtral | Mistral AI | 7B / 8×7B MoE | Efficient MoE architecture |
| Falcon | TII | 7B–180B | High-quality web data curation |
| Stable Diffusion | Stability AI | ~1B | Open latent diffusion for images |
| Whisper | OpenAI | ~1.5B | Robust speech recognition |
Multimodal & Embodied AI
- GPT-4V (2023): Accepts image inputs alongside text; can analyze charts, diagrams, photos, and handwritten math.
- Gemini (2023): Natively multimodal — trained jointly on text, code, images, audio, video from the ground up.
- LLaVA (2023): Open-source vision-language model that connects a CLIP vision encoder with LLaMA via a projection layer.
- RT-2 (2023): Google's Robotics Transformer 2 — a vision-language-action model that translates natural language instructions into robot actions.
Embodied AI & Robotics
Foundation models are increasingly being deployed in physical robots:
- SayCan: Grounds LLM reasoning in robot affordances (what the robot can physically do).
- PaLM-E: Embodies a vision-language model with sensor data for robotic planning.
- Figure 01 / Tesla Optimus: Humanoid robots leveraging large models for general-purpose manipulation.
Code Generation & AI Assistants
- Codex / GitHub Copilot (2021): GPT-3 fine-tuned on code; powers autocomplete in IDEs.
- AlphaCode (2022): DeepMind's system that generates solutions for competitive programming problems, performing at ~50th percentile of human competitors.
- Code LLaMA (2023): Meta's open code model, based on LLaMA 2 with extended code training.
- StarCoder (2023): BigCode's open model trained on The Stack (permissively licensed code).
- Devin (2024): Cognition Labs' AI software engineer that can plan, code, debug, and deploy autonomously.
Efficient AI & Democratization
Making large models accessible on consumer hardware has been a key research direction:
- Quantization (GPTQ, GGML, AWQ): Reduce model weights from FP16 to INT4/INT8 with minimal quality loss. A 70B parameter model can run on a single GPU.
- LoRA (Low-Rank Adaptation): Fine-tune models by adding small trainable matrices (rank r ≪ d) to frozen pretrained weights. Reduces trainable parameters by 10,000×.
- QLoRA: Combines 4-bit quantization with LoRA, enabling fine-tuning of 65B models on a single 48GB GPU.
- Flash Attention: IO-aware attention algorithm that is 2-4× faster and uses O(N) memory instead of O(N²).
- Mixture of Experts (MoE): Only a subset of parameters are activated per token. Mixtral 8×7B has 47B total but only uses ~13B per forward pass.
GATE DA Relevance
- Transformer architecture and self-attention mechanisms
- Pre-training and fine-tuning paradigms
- Basic understanding of generative models (GANs, VAEs, diffusion)
- Evaluation metrics (FID for images, perplexity for language)
- Ethical considerations and bias in ML systems
- "Which technique is used to align language models with human preferences?" → RLHF
- "In a Mixture of Experts model with 8 experts where 2 are active per token, what fraction of parameters is used per forward pass?" → 2/8 = 25%
- "What is the key advantage of LoRA over full fine-tuning?" → Drastically fewer trainable parameters while maintaining performance