← KushalBuilds
Technical Reference

The Evolution of AI & Machine Learning

From symbolic logic to agentic systems — every paradigm shift, technical term, and what's actually in production today.

1950–1969
Symbolic AI & The Turing Foundation
If it can be reasoned, it can be programmed
◆ THEORY
Turing Test (1950)
Alan Turing's "Computing Machinery and Intelligence" proposed the imitation game — framing intelligence as behavioral indistinguishability. Set the philosophical frame for AI for 70 years.
Philosophy of MindBehaviorism
◆ PARADIGM
Symbolic AI / GOFAI
Good Old-Fashioned AI: intelligence as symbol manipulation. Logic rules, search trees, knowledge bases. Programs like LISP, PROLOG. Works when problem space is fully enumerable — fails at perception and ambiguity.
Logic ProgrammingSearch TreesLISP
◆ FIRST MODEL
McCulloch–Pitts Neuron (1943)
Binary threshold neuron modeled on biology. The conceptual atom of all neural networks. No learning — weights were hand-set. The spark, not the fire.
Computational NeuroscienceBinary Threshold
PARADIGM SHIFT →
FIRST LEARNING MODEL
1958–1970
Perceptron & First AI Winter
The first neural network — and the first disillusionment
◆ INVENTION
Rosenblatt's Perceptron (1958)
First algorithm that could learn weights from data. Single-layer, linear classifier. Proved convergence theorem — if data is linearly separable, it will find the boundary. Minsky & Papert's 1969 critique (XOR problem) triggered the first AI Winter.
Supervised LearningWeight Update RuleLinear Classifier
◆ LESSON
First AI Winter (1974–1980)
DARPA funding collapsed. Symbolic AI hit intractable search spaces. The "combinatorial explosion" — brute-force search doesn't scale. Real AI needs representation, not just computation.
Combinatorial ExplosionFunding Collapse
1980–1985
Expert Systems & Knowledge Engineering
Hand-coded intelligence at enterprise scale
◆ PRODUCTION
Expert Systems (MYCIN, XCON)
Rule-based systems encoding domain expert knowledge. MYCIN diagnosed bacterial infections with IF-THEN rules — matched physician accuracy on narrow cases. XCON configured VAX computers at DEC, saving $40M/year. First real industrial AI deployment.
Rule-Based InferenceKnowledge BaseInference Engine
INDUSTRY
◆ MATH
Bayesian Networks
Probabilistic graphical models for reasoning under uncertainty. Judea Pearl's 1988 framework. Directed acyclic graphs encoding conditional independence. Foundation of modern probabilistic ML and causal inference.
Probabilistic InferenceConditional IndependenceDAG
1986–1998
Backpropagation & Neural Network Revival
The algorithm that made deep learning theoretically possible
◆ ALGORITHM
Backpropagation (Rumelhart et al., 1986)
Efficient computation of gradients via chain rule through layered networks. Multi-layer perceptrons could now learn non-linear functions. Trained on XOR — killed Minsky's critique. The engine inside every modern neural network today.
Gradient DescentChain RuleMLPNon-linear Activation
◆ ARCHITECTURE
CNNs & LeNet (LeCun, 1989–98)
Convolutional Neural Networks for image recognition. Local receptive fields, weight sharing, pooling. LeNet-5 read handwritten digits on bank checks at scale. The blueprint for all vision models — ResNet, EfficientNet, ViT all descend from this.
ConvolutionWeight SharingSpatial HierarchyPooling
◆ FOUNDATIONS
RNNs / LSTMs (Hochreiter, 1997)
Long Short-Term Memory solved the vanishing gradient problem for sequential data. Gates control what to remember, forget, output. First architecture capable of long-range sequence modeling — powered speech recognition and early machine translation until 2017.
Vanishing GradientGate MechanismSequential MemoryBPTT
2000–2006
Statistical Machine Learning Dominates
Kernel methods, ensemble trees, and rigorous theory
◆ STATE OF ART
Support Vector Machines
Maximum-margin classifier with kernel trick — maps to high-dimensional spaces without explicit computation. Vapnik-Chervonenkis theory provided generalization bounds. State-of-the-art for classification until ~2012. Still used in production today for tabular data.
Kernel TrickMax MarginVC DimensionRBF Kernel
◆ ENSEMBLE
Random Forests / Gradient Boosting
Breiman's Random Forest (2001): bagging over decision trees with random feature selection. XGBoost / LightGBM / CatBoost: gradient boosting on residuals. Still the dominant approach for tabular ML in production — Kaggle winners, fraud detection, risk scoring.
BaggingBoostingCART TreesFeature Importance
◆ THEORY
Word2Vec Precursors / Distributional Semantics
"You shall know a word by the company it keeps" (Firth). Latent Semantic Analysis (LSA), pLSA, LDA for topic modeling. The philosophical basis for all modern embeddings — meaning from co-occurrence.
TF-IDFLSALDACo-occurrence Matrix
2006–2011
Deep Belief Networks & Unsupervised Pre-training
Hinton's insight: pre-train greedily, fine-tune end-to-end
◆ PARADIGM
Deep Belief Networks (Hinton, 2006)
Stack of Restricted Boltzmann Machines trained layer-by-layer. Showed deep networks could learn meaningful representations. Revived deep learning research after the second AI winter. Pre-training → fine-tuning paradigm that GPT still uses today.
RBMUnsupervised Pre-trainingGreedy Layer-wiseFine-tuning
◆ GPU MOMENT
CUDA & GPU Acceleration
NVIDIA's CUDA (2007) made general-purpose GPU computing accessible. Matrix multiplication — the core operation of neural networks — maps perfectly to GPU parallelism. This hardware shift enabled every modern deep learning breakthrough.
CUDASIMD ParallelismTensor Cores
2012–2013
AlexNet & The Deep Learning Revolution
The moment everything changed — 10.9% error vs 26.2% baseline
◆ WATERSHED
AlexNet (Krizhevsky et al., 2012)
Won ImageNet LSVRC with 15.3% top-5 error vs 26.2% second place. Deep CNN with ReLU activations, dropout regularization, GPU training. Every major CV breakthrough since is a direct descendant. The shot heard round the ML world.
ReLUDropoutData AugmentationGPU Training
IMPACT
◆ ARCHITECTURE
ResNet / Batch Norm (2015–16)
He et al.'s Residual Networks: skip connections solve vanishing gradients in 100+ layer networks. Batch Normalization stabilizes training. ResNet-50/101 still widely deployed in production CV systems at scale today.
Skip ConnectionsResidual LearningBatch NormalizationHe Initialization
◆ INFERENCE
Transfer Learning Becomes Standard
ImageNet pre-trained weights transfer to any vision task. Fine-tune final layers on domain data. 10x less labeled data needed. The pattern used in every industrial CV deployment — wildlife recognition, medical imaging, autonomous vehicles.
Pre-trained WeightsFeature ExtractionDomain Adaptation
2014–2016
GANs, Embeddings & Sequence-to-Sequence
The generative turn and dense representations
◆ GENERATIVE
GANs (Goodfellow, 2014)
Generative Adversarial Networks: generator vs discriminator in minimax game. Learned to generate photorealistic images. Mode collapse, training instability, Wasserstein GAN improvements. Direct ancestor of Stable Diffusion and image generation models.
Minimax GameGenerator/DiscriminatorMode CollapseWasserstein Loss
◆ REPRESENTATIONS
Word2Vec / GloVe / FastText
Dense word embeddings from co-occurrence. Skip-gram and CBOW architectures. Semantic arithmetic: king - man + woman ≈ queen. Foundation for all modern text embeddings. Replaced TF-IDF in NLP overnight — and the conceptual basis for pgvector today.
Skip-gramCBOWEmbedding SpaceCosine Similarity
◆ SEQ2SEQ
Seq2Seq + Attention (2014–15)
Encoder-decoder LSTMs for machine translation. Attention mechanism (Bahdanau, 2014): instead of single context vector, attend to all encoder states. Solved the bottleneck problem. The "attention" in "Attention is All You Need" was born here.
Encoder-DecoderBahdanau AttentionContext VectorAlignment
2017
Attention Is All You Need — The Transformer
The single most consequential paper in ML history
◆ WATERSHED
Transformer Architecture (Vaswani et al.)
Replaced RNNs entirely. Multi-head self-attention: every token attends to every other token in parallel. Positional encodings instead of recurrence. Scales with data and compute in a way LSTMs never could. The backbone of GPT, BERT, T5, PaLM, Claude, and every frontier model.
Self-AttentionMulti-Head AttentionPositional EncodingFeed-ForwardLayer Norm
IMPACT
◆ MECHANISM
Scaled Dot-Product Attention
Attention(Q,K,V) = softmax(QKᵀ/√dₖ)V — queries, keys, values from the same sequence. The √d scaling prevents softmax saturation. KV cache (reuse keys/values at inference) is why vLLM exists and why GPU memory is the bottleneck.
QKV AttentionKV CacheSoftmax Saturation√d Scaling
2018–2019
BERT, GPT-1/2 & Pre-trained Language Models
Transfer learning conquers NLP
◆ BIDIRECTIONAL
BERT (Devlin et al., Google 2018)
Bidirectional Encoder Representations from Transformers. Masked Language Modeling: predict [MASK] tokens using both left AND right context. Fine-tune a single model on any NLP task. SOTA on 11 benchmarks simultaneously.
MLMNSPBidirectionalWordPieceCLS Token
◆ AUTOREGRESSIVE
GPT-1/2 (OpenAI, 2018–19)
Decoder-only Transformer. Causal Language Modeling: predict next token. GPT-2 (1.5B params) was so good OpenAI delayed release. Demonstrated emergent capabilities — arithmetic, translation, summarization — from next-token prediction alone. The architecture of every modern LLM.
Causal LMAutoregressiveDecoder-OnlyZero-shot
◆ NLP PRODUCTION
spaCy, Hugging Face Ecosystem
Hugging Face's transformers library democratized BERT/GPT access. spaCy for production NLP pipelines. Model Hub: thousands of pre-trained models one line of code away.
Transformers LibraryModel HubPipeline APIspaCy
2020–2021
GPT-3, Scaling Laws & The Foundation Model Era
Scale is all you need — until alignment isn't
◆ SCALE
GPT-3 (175B) & Few-Shot Learning
175 billion parameters. In-context learning: no fine-tuning needed — examples in the prompt teach the task. Emergent capabilities appear suddenly at scale thresholds. Sparked the "prompting" paradigm — prompt engineering became a real skill.
Few-shotZero-shotIn-context LearningEmergent CapabilitiesPrompt Engineering
◆ THEORY
Scaling Laws (Kaplan et al., 2020)
Loss scales as a power law with compute, data, and parameters. Optimal model size for a compute budget is predictable. Chinchilla (2022) refined: Llama-sized models trained on more data beat GPT-3-sized models — leading to Llama 3.1, Mistral, Phi architectures.
Power LawCompute OptimalChinchilla ScalingTokens/Params Ratio
◆ MULTIMODAL
CLIP & DALL-E (2021)
CLIP: contrastive learning across image-text pairs. Encodes images and text in a shared embedding space — enables zero-shot image classification and cross-modal retrieval. DALL-E: text-to-image via autoregressive Transformer on image tokens. Foundation of Stable Diffusion and midjourney.
Contrastive LearningCross-modal EmbeddingText-to-ImageVQ-VAE
2022
RLHF, InstructGPT & ChatGPT
Aligning language models to human intent
◆ ALIGNMENT
RLHF — Reinforcement Learning from Human Feedback
Three phases: SFT on demonstrations → reward model trained on human preference rankings → PPO fine-tuning against reward model. InstructGPT (2022) showed RLHF made 1.3B model more helpful than raw 175B GPT-3. ChatGPT is RLHF on GPT-3.5. The technique behind Claude.
SFTReward ModelPPOHuman PreferenceConstitutional AI
IMPACT
◆ EFFICIENT FINE-TUNING
LoRA & PEFT (2022)
Low-Rank Adaptation: freeze base model, add trainable rank-decomposition matrices (ΔW = BA where rank r ≪ d). Trains 0.1–1% of parameters. QLoRA (2023): 4-bit quantized base + LoRA adapters — 70B model on single A100.
LoRAQLoRARank DecompositionAdapter LayersPEFT
◆ ALIGNMENT V2
DPO — Direct Preference Optimization
Reformulates RLHF as supervised learning on preference pairs. No explicit reward model, no PPO instability. Loss directly optimizes: preferred response probability up, rejected response probability down. Simpler, stabler, now dominant in fine-tuning pipelines.
Preference PairsNo Reward ModelBradley-Terry ModelKL Divergence
2023
RAG, Vector Databases & LLM Production Engineering
The year enterprises actually shipped GenAI to production
◆ ARCHITECTURE PATTERN
RAG — Retrieval-Augmented Generation
Chunk documents → embed → store in vector DB → at query time: embed query, ANN search, retrieve top-k, inject into prompt, generate grounded response. Solves hallucination and knowledge cutoff. Hybrid search (BM25 + dense) + cross-encoder reranking is the 2024+ production standard.
ChunkingEmbeddingsANN SearchBM25Cross-encoder RerankerpgvectorRRF Fusion
PROD USE
◆ INFERENCE SERVING
vLLM & PagedAttention
KV cache grows O(sequence_length × layers × heads × d_model) per request. vLLM's PagedAttention manages KV cache in non-contiguous memory blocks — like OS virtual memory. Continuous batching: new requests slot into vacated positions. 24x throughput over naive serving.
PagedAttentionContinuous BatchingKV CacheCUDA MemoryDynamic Batching
◆ ORCHESTRATION
LangChain & LangGraph
LangChain: chains of LLM calls, tool integrations, memory. LangGraph: stateful agent graphs with explicit state machine — nodes (agents/tools), edges (transitions), state shared across nodes. Enables retry logic, human-in-the-loop, parallel branches, conditional routing.
Chain-of-ThoughtTool UseState MachineLangGraphMemory Types
2024
Agentic AI, Multimodal & Inference Optimization
From chat to autonomous systems that take actions
◆ AGENTS
ReAct Pattern & Agentic Loops
Reason + Act interleaved: Thought → Action → Observation → Thought → … Agents call tools (search, code execution, APIs) based on LLM reasoning. Tool calling APIs (OpenAI function calling, Anthropic tool use) standardized the interface. Failure modes: infinite loops, hallucinated tool calls, context bloat.
ReActTool CallingFunction CallingReasoning TraceReflection
◆ EFFICIENCY
Speculative Decoding & Quantization
Speculative decoding: small draft model generates k tokens speculatively — large verifier accepts/rejects in parallel. ~2–3x speedup on output-heavy tasks. Quantization: INT8/INT4 (GPTQ, AWQ, GGUF) — 4x memory reduction with 1–3% accuracy loss. Production standard now.
Speculative DecodingGPTQAWQINT4/INT8GGUFDraft Model
◆ MULTIMODAL
GPT-4V, Gemini, Claude Vision
Vision-Language Models: image tokens projected into the LLM's embedding space. Unified architecture handles text + images + (increasingly) audio, video, code. Enables document understanding, chart reading, screenshot analysis. Production use: contract review, medical imaging, e-commerce.
Vision EncoderCross-attentionImage TokensVLMMultimodal RAG
◆ CONTEXT WINDOW
Long Context & Extended KV Cache
128K → 1M token context windows. Gemini 1.5 Pro: 1M tokens. RoPE (Rotary Positional Encoding) replaces absolute positions — enables extrapolation. Flash Attention 2/3: IO-aware attention — 2–4x faster by minimizing GPU memory transfers. Sliding window attention for efficiency.
RoPEFlash AttentionSliding WindowLong ContextALiBi
2025–2026
The State of AI Right Now
What's actually in production, what's bleeding edge, what's being hired for
Production Reality in 2026 LIVE
REASONING MODELS
Chain-of-Thought at Scale
o1/o3, Claude 3.7 Sonnet with extended thinking, Gemini 2.0 Flash Thinking. Test-time compute scaling: think longer on harder problems. "Thinking tokens" are traded against answer quality. New tradeoff axis: tokens spent reasoning vs answer accuracy.
AGENTIC SYSTEMS
Multi-Agent Orchestration
LangGraph, CrewAI, AutoGen, Anthropic's agent frameworks. Specialized sub-agents with defined roles + a planner/orchestrator. Computer use, browser agents, code execution agents. Human-in-the-loop as first-class design pattern.
INFERENCE STACK
vLLM + TensorRT-LLM
vLLM for flexible OSS serving. TensorRT-LLM for max throughput on NVIDIA hardware (A100/H100). Continuous batching, speculative decoding, tensor parallelism across GPUs. NVIDIA Triton Inference Server for multi-model serving.
RAG 2.0
Contextual Retrieval + Reranking
Anthropic Contextual Retrieval: prepend chunk context before embedding. BGE-M3 multi-lingual embeddings. Cross-encoder reranking (BAAI/bge-reranker). RAGAS evaluation framework standard. GraphRAG for structured knowledge.
FINE-TUNING
DPO → GRPO
DPO dominant over RLHF for most tasks. GRPO (Group Relative Policy Optimization) from DeepSeek-R1: reinforcement from group comparisons without reference model. Synthetic data generation (Self-Instruct, Magpie) for SFT datasets. Merging LoRA adapters for multi-task models.
OPEN SOURCE LLMs
Llama 3.x, Mistral, Phi, Qwen
Llama 3.3 70B matches GPT-4 on many benchmarks. Mistral Small/Large competitive on EU-hosted deployments. Microsoft Phi-4: small model, high capability via synthetic data. Qwen 2.5: strong multilingual + code. All fine-tuneable via QLoRA.
EVAL & OBSERVABILITY
RAGAS + LLM-as-Judge
RAGAS: faithfulness, answer relevance, context precision/recall. LLM-as-judge with positional bias mitigation (swap order, average). Langfuse/LangSmith for trace logging. Prometheus metrics + Grafana dashboards for LLM latency/cost. OpenTelemetry standard.
FRONTIER MODELS
GPT-4o, Claude 3.x, Gemini 2.x
All support: 128K+ context, native multimodal, tool/function calling, structured output (JSON mode), streaming. Claude Sonnet 3.7 leads on coding + agentic tasks. Gemini 2.0 Flash leads on speed/cost. GPT-4o leads on ecosystem integrations.
◆ HOT IN 2026
MCP — Model Context Protocol
Anthropic's open standard for connecting LLMs to external tools, data sources, and services. Like a USB-C port for AI agents — standardizes how agents access context. Being adopted across IDEs (Cursor, VSCode), Claude Desktop, agent frameworks. Critical to know for any agentic role in 2026.
MCPTool StandardAgent ProtocolContext Protocol
◆ HOT IN 2026
Mixture of Experts (MoE)
Sparse activation: route each token to k of N expert feed-forward layers. Mistral's Mixtral 8x7B, GPT-4 (rumored), DeepSeek-V3. Same capacity as dense models at fraction of compute per token. Challenges: load balancing, routing collapse, expert specialization.
MoESparse ActivationExpert RoutingTop-k Gating
◆ PRODUCTION PATTERN
AI Security & Guardrails
Prompt injection, jailbreaks, PII leakage — production AI security concerns. OWASP LLM Top 10. Input/output guardrails (NeMo Guardrails, LlamaGuard). Constitutional AI + RLHF for alignment. Runtime monitoring with Falco. Critical for regulated domains (healthcare, finance, defense).
Prompt InjectionJailbreakingLlamaGuardOWASP LLM Top 10Constitutional AI