Post

AI

Foundational AI Architectures: Mapping the Canonical Papers of Modern Deep Learning

A source audit analyzing the canonical architectures across transformers, vision encoders, multimodal CLIP, diffusion, PEFT, and attention kernels.

Canonical deep learning architectures mapping
Canonical deep learning architectures mapping

The explosive acceleration of artificial intelligence research over the past decade can appear chaotic and fragmented. Every week brings hundreds of preprints to arXiv, accompanied by social media hype announcing incremental benchmarks and ephemeral fine-tunes.

However, beneath the surface turbulence of generative AI, the underlying technological bedrock is governed by a remarkably cohesive lineage of foundational papers. Modern large multimodal systems do not invent mechanisms from scratch; they compose, scale, and optimize a small set of mathematical and architectural breakthroughs established between 2017 and 2024.

This source audit maps the Canonical AI Architectural Lineage across seven core disciplines: sequence attention, visual patch tokenization, contrastive multimodal alignment, latent diffusion dynamics, parameter-efficient adaptation, memory-bound GPU kernels, and preference alignment.

AI Papers Overview

Which Foundational Architectures Form the Bedrock of Modern Generative AI?

When analyzing why models like GPT-4o, Claude 3.5, Sora, and Gemini operate with human-like visual, linguistic, and reasoning fluency, one discovers that modern deep learning has converged onto a unified, compute-efficient paradigm.

In the pre-2017 era, artificial intelligence research was severely balkanized:

  • Natural Language Processing relied on recurrent architectures (LSTMs, GRUs) plagued by vanishing gradients and sequential compute bottlenecks.
  • Computer Vision was dominated by convolutional neural networks (ResNet, VGG) constrained by local receptive fields.
  • Speech Processing depended on Hidden Markov Models (GMM-HMM) and connectionist temporal classification (CTC).
  • Generative Modeling struggled with the training instability and mode collapse of Generative Adversarial Networks (GANs).
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Pre-2017 Balkanized Deep Learning:
[NLP: Sequential LSTMs]   [CV: Local Convolutions]   [Speech: HMMs]   [GenAI: Unstable GANs]
(Incompatible abstractions, non-transferable representations, fragmented hardware optimization)

Modern Unified Architecture Stack:
┌────────────────────────────────────────────────────────────────────────┐
│ Unified Scalable Backbone: Multi-Head Scaled Dot-Product Self-Attention│
├────────────────────────────────────────────────────────────────────────┤
│ Universal Tokenization: Text Byte-Pairs + Spacetime Image/Video Patches│
├────────────────────────────────────────────────────────────────────────┤
│ Hardware Acceleration: IO-Aware FlashAttention Memory Tiling           │
├────────────────────────────────────────────────────────────────────────┤
│ Multimodal Alignment: Shared InfoNCE Joint Embedding Spaces            │
├────────────────────────────────────────────────────────────────────────┤
│ Generative Dynamics: Rectified Flow Matching & Diffusion Transformers  │
└────────────────────────────────────────────────────────────────────────┘

The convergence began with Vaswani et al. in 2017 and accelerated as computer vision, audio synthesis, and multimodal learning abandoned domain-specific inductive biases in favor of isotropic transformer stacks.

The Canonical Lineage: From Attention to Modern World Models

The diagram below maps how foundational research papers connect across evolutionary generations:

graph TD
    subgraph Core Architecture
        T[Vaswani et al. 2017: Attention Is All You Need] --> BERT[Devlin et al. 2018: BERT Encoders]
        T --> GPT[Radford et al. 2018-2020: GPT Autoregressive Decoders]
    end

    subgraph Vision & Multimodal
        T --> ViT[Dosovitskiy et al. 2020: Vision Transformer ViT]
        ViT --> CLIP[Radford et al. 2021: CLIP Multimodal Contrastive]
        CLIP --> LLaVA[Liu et al. 2023: Visual Instruction Tuning]
    end

    subgraph Generative Dynamics
        DDPM[Ho et al. 2020: Denoising Diffusion DDPM] --> LDM[Rombach et al. 2022: Latent Diffusion / SD]
        ViT --> DiT[Peebles & Xie 2023: Diffusion Transformers]
        LDM --> DiT
        DiT --> Flow[Lipman et al. 2023: Rectified Flow Matching]
    end

    subgraph Systems & Efficiency
        T --> FA[Dao et al. 2022: FlashAttention Fast IO Tiling]
        GPT --> LoRA[Hu et al. 2021: Low-Rank Adaptation LoRA]
        LoRA --> QLoRA[Dettmers et al. 2023: 4-Bit QLoRA]
    end

    subgraph Alignment & Reasoning
        GPT --> RLHF[Ouyang et al. 2022: InstructGPT / PPO Alignment]
        RLHF --> DPO[Rafailov et al. 2023: Direct Preference Optimization]
        DPO --> GRPO[DeepSeek 2025: Group Relative Policy Optimization]
    end

Deconstructing the Seven Algorithmic Pillars

To understand how these components interact in modern systems, we audit each architectural milestone against its original mathematical formulation.

1. Sequence Processing: Scaled Dot-Product Self-Attention

  • Seminal Reference: Vaswani, A., et al. (2017). Attention Is All You Need. NeurIPS 2017.
  • Architectural Contribution: Replaced recurrent connections with parallelizable matrix operations across arbitrary sequence positions:
\[\text{Attention}(Q, K, V) = \text{softmax}\left( \frac{Q K^T}{\sqrt{d_k}} \right) V\]

By projecting input tokens into Query ($Q$), Key ($K$), and Value ($V$) subspaces, the attention mechanism computes pairwise associative relationships in constant $O(1)$ sequential operations, unlocking massive parallel training across distributed GPU clusters.

2. Visual Representation: Patch Projection in Vision Transformers (ViT)

  • Seminal Reference: Dosovitskiy, A., et al. (2020). An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale. ICLR 2021.
  • Architectural Contribution: Demonstrated that convolutional inductive biases are unnecessary when training on large-scale datasets (JFT-300M). An image $x \in \mathbb{R}^{H \times W \times C}$ is reshaped into a sequence of flattened 2D patches $x_p \in \mathbb{R}^{N \times (P^2 \cdot C)}$, linearly projected to dimension $D$, and processed identically to linguistic word tokens.

3. Cross-Modal Grounding: Contrastive Language-Image Pre-training (CLIP)

  • Seminal Reference: Radford, A., et al. (2021). Learning Transferable Visual Models From Natural Language Supervision. ICML 2021.
  • Architectural Contribution: Replaced single-modality softmax classification with symmetric InfoNCE contrastive loss over dual encoders:
\[\mathcal{L}_{\text{CLIP}} = -\frac{1}{2N} \sum_{i=1}^N \left( \log \frac{\exp(I_i \cdot T_i / \tau)}{\sum_j \exp(I_i \cdot T_j / \tau)} + \log \frac{\exp(T_i \cdot I_i / \tau)}{\sum_j \exp(T_i \cdot I_j / \tau)} \right)\]

This mapped text descriptions and visual scenes into a shared metric embedding space, creating the zero-shot semantic foundation underpinning DALL-E, Stable Diffusion, and modern multimodal LLMs.

4. Generative Synthesis: Diffusion Transformers and Flow Matching

  • Seminal References:
    • Ho, J., Jain, A., & Abbeel, P. (2020). Denoising Diffusion Probabilistic Models. NeurIPS 2020.
    • Peebles, W., & Xie, S. (2023). Scalable Diffusion Models with Transformers. ICCV 2023.
  • Architectural Contribution: Shifted generative modeling from adversarial games (GANs) to stable thermodynamic reverse-time stochastic differential equations, subsequently replacing convolutional U-Nets with isotropic transformer blocks (DiT). Detailed in our technical audit on Diffusion Transformers (DiT): The Architectural Backbone of Sora and Video Generation.

5. Memory-Bound Acceleration: FlashAttention IO-Aware Kernel Tiling

  • Seminal Reference: Dao, T., et al. (2022). FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness. NeurIPS 2022.
  • Architectural Contribution: Recognized that modern GPUs are memory-bandwidth bound rather than compute bound. Instead of materializing the massive $N \times N$ attention matrix in slow High Bandwidth Memory (HBM), FlashAttention tiles matrix blocks into fast on-chip SRAM, computing softmax scaling incrementally via online scaling tricks. This delivered 2x to 4x training speedups while reducing memory from quadratic $O(N^2)$ to linear $O(N)$.

6. Parameter-Efficient Fine-Tuning: Low-Rank Adaptation (LoRA)

  • Seminal Reference: Hu, E. J., et al. (2021). LoRA: Low-Rank Adaptation of Large Language Models. ICLR 2022.
  • Architectural Contribution: Established that task-specific parameter updates $\Delta W$ have low intrinsic rank. Freezing base weights and training decomposed matrices $B \cdot A$ allows enterprise teams to adapt billion-parameter models on single GPUs, outperforming generic frontier models on domain tasks, as detailed in our audit on LoRA vs Frontier Models: When Specialized 7B Adapters Outperform GPT-4.

7. Human Alignment: Direct Preference Optimization (DPO)

  • Seminal Reference: Rafailov, R., et al. (2023). Direct Preference Optimization: Your Language Model is Secretly a Reward Model. NeurIPS 2023.
  • Architectural Contribution: Proved that the optimal policy under the Bradley-Terry preference model can be derived in closed form, eliminating the instability of training separate reward models and reinforcement learning (PPO) loops in favor of a stable binary cross-entropy loss over chosen and rejected pairs. See LLaMA-Factory Architecture: Unified Post-Training Across 100+ LLMs for implementation mechanics.

Canonical Papers Architecture & Systems Impact Matrix

DomainBreakthrough PaperKey Paradigm ShiftRealized Systems Impact
AttentionVaswani et al. (2017)Recurrent step $\to$ Parallel Matrix Self-AttentionFoundation of all modern LLMs
VisionDosovitskiy et al. (2020)Convolutions $\to$ 2D Patch Linear EmbeddingsScaled visual representation learning
MultimodalRadford et al. (2021)Softmax Labels $\to$ Dual InfoNCE Joint Latent SpaceEnabled text-guided image generation
DiffusionPeebles & Xie (2023)Conv U-Net $\to$ Spacetime Latent Patch TransformerUnlocked Sora-class video generation
KernelsDao et al. (2022)Quadratic HBM Storage $\to$ SRAM Tiling OptimizationExtended context windows to 1M+ tokens
AdaptationHu et al. (2021)Full Fine-Tuning $\to$ Low-Rank Delta DecompositionDemocratized local enterprise tuning
AlignmentRafailov et al. (2023)Complex PPO Loops $\to$ Direct Policy Loss OptimizationStandardized open-source model alignment

Review our broader systems taxonomy in The LLM Systems Hierarchy: From Prompt Engineering to Autonomous Agents for how these components assemble into enterprise software.

How Deep Learning Architectures Converged Across 2026

Across 2025 and 2026, the artificial intelligence landscape experienced structural consolidation:

1
2
3
4
5
6
2017-2022: Proliferation of Specialized Models  2023-2024: Cross-Modality Adoption   2026: Universal Token Architectures
┌─────────────────────────────────────────┐     ┌───────────────────────────────┐   ┌───────────────────────────────────┐
│ Modality-Specific Encoders (BERT/ResNet)│────▶│ Multimodal Transformers (CLIP)│──▶│ Native Any-to-Any Autoregressive  │
│ Separate Generative Architectures (GANs)│     │ Diffusion-Transformer Fusion  │   │ Test-Time Compute Reasoning (GRPO)│
│ High-Precision FP16 Training Bounds     │     │ FlashAttention-2 / FP8 Kernels│   │ Micro-Scaling FP4 / Native Hardware│
└─────────────────────────────────────────┘     └───────────────────────────────┘   └───────────────────────────────────┘
  1. The Native Multimodal Transformer: In early architectures, visual understanding required gluing separate frozen vision encoders (such as CLIP ViT-L) to language models via linear projection layers (LLaVA style). In 2026, foundation models natively ingest interleaved text, images, video patches, and raw audio waveforms into a single autoregressive decoder without external vision encoders.
  2. Test-Time Compute and Search: The traditional focus on pre-training scaling laws (compute $\propto$ parameters $\times$ tokens) expanded to include inference scaling laws. As demonstrated by DeepSeek-R1 and OpenAI’s reasoning models, spending extra compute during generation (generating thousands of tokens of internal chain-of-thought, self-correction, and Monte Carlo tree search) yields dramatic breakthroughs in formal mathematics, code generation, and systems engineering.
  3. Sub-8-Bit Hardware Kernel Standardization: Following FlashAttention-3 and FP8 standardization, 2026 hardware accelerators standardized on Microscaling (MX) FP4 formats. Training and inference engines execute low-rank matrix multiplications with hardware-accelerated dynamic scaling factors, quadrupling memory bandwidth density on silicon.

Key Takeaways

  • Convergence on Self-Attention: All major modalities—natural language, 2D images, 3D video volumes, and audio waveforms—are now tokenized as discrete or continuous vectors processed by scaled dot-product attention.
  • Hardware-Aware Kernel Design: Algorithmic breakthroughs like FlashAttention proved that understanding physical silicon memory hierarchies (SRAM vs HBM) is just as vital as mathematical formulation.
  • Monotonic Compute Scaling: Architectures with fewer hand-crafted inductive biases (such as ViT and DiT) consistently outperform convolutional and recurrent counterparts when scaled with massive compute and data.
  • Alignment Democratization: The transition from unstable RLHF pipelines to closed-form objectives like DPO and GRPO has enabled open-source research to match commercial frontier performance.

New Questions

  • As attention sequences scale to millions of tokens for high-frame-rate video and long-horizon agent trajectories, will quadratic attention remain viable through FlashAttention-3, or will linear state-space models (Mamba/S4) become necessary?
  • What are the mathematical limits of synthetic reasoning distillation before smaller student models suffer from model collapse due to lack of novel environmental entropy?
  • Will the integration of continuous diffusion prediction directly inside autoregressive token decoders eliminate the distinction between language generation and image synthesis?

References

  1. Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, L., & Polosukhin, I. (2017). Attention Is All You Need. Advances in Neural Information Processing Systems (NeurIPS 2017). https://arxiv.org/abs/1706.03762 (accessed 2026-10-18).
  2. Dosovitskiy, A., et al. (2020). An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale. International Conference on Learning Representations (ICLR 2021). https://arxiv.org/abs/2010.11929 (accessed 2026-10-18).
  3. Radford, A., et al. (2021). Learning Transferable Visual Models From Natural Language Supervision. International Conference on Machine Learning (ICML 2021). https://arxiv.org/abs/2103.00020 (accessed 2026-10-18).
  4. Dao, T., Fu, D. Y., Ermon, S., Rudra, A., & Ré, C. (2022). FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness. Advances in Neural Information Processing Systems (NeurIPS 2022). https://arxiv.org/abs/2205.14135 (accessed 2026-10-18).

Editorial method: claims in this article point to primary documentation, pinned source code, runnable checks, or dated measurements, with AI-assisted research under the site's evidence-gated policy. How this site verifies claims and discloses AI assistance · Report a correction.

Working on something like this?

I take a small number of paid, scoped reviews: AI agent/RAG architecture diagnosis, Unity CI & build-automation audits, and multimodal QA design review. Each one ends in a written findings document.

Work with me
This post is licensed under CC BY 4.0 by the author.

© Jang Young Jeong. Some rights reserved.

Search article titles, categories, and tags. Full text is searched when needed.

Type to search articles.