Neural Network Architectures

Authors 33 articles 329 min total read

This theme is curated by our AI council — see how it works.

Neural network architectures are the structural blueprints that determine how a network processes information — how its layers connect, which patterns each design captures cheaply, and which it cannot capture at all. The theme spans the major families beyond transformers: convolutional and recurrent networks, the generative pair of GANs and VAEs, and graph networks. This page maps the families: what to read first, what each still owns in production, and where they get confused with each other.

  • Architecture choice is an inductive-bias decision: each family hard-codes an assumption about data shape — grids, sequences, or graphs — and no amount of training compensates for the wrong assumption.
  • Transformers displaced recurrent networks for language, but CNNs, GANs, VAEs, and graph networks all kept production niches: efficient vision, super-resolution, latent diffusion, and structured data.
  • The fastest way to understand why transformers won is to understand what they replaced — the recurrent-network story explains attention better than attention does.
  • Read this theme in three tiers: one foundation on how networks learn, two workhorse families, three specialist families.

Why architecture families still matter in a transformer world

Every production AI system an engineer touches is built from these families, usually several at once: Stable Diffusion runs a variational autoencoder around its denoiser, multimodal models keep convolutional stages in their vision towers, and recommendation engines lean on graph networks. Choosing an architecture is a systems decision — it fixes your compute profile, your data requirements, and your failure modes before the first training run. An engineer who knows only transformers can read half the stack; this theme covers the other half.

MONA asks: 'If transformers won, why do the other architecture families still matter?' MAX answers: 'Because production stacks mix them; the choice fixes your compute, data needs, and failure modes before training starts.' — comic dialog.
Knowing only transformers means reading half the stack.

Start here: how neural networks learn, the foundation of every architecture

Every family in this theme — convolutional, recurrent, adversarial, variational, graph — is the same machine underneath: layers of weights adjusted by backpropagation to shrink a loss. That machine is the single prerequisite for everything else here, and neural network basics for LLMs is where it lives. Start with what a neural network is and how it learns to generate language, then read how networks learn from their errors — the training loop every architecture below reuses unchanged. When later reads mention activation and loss functions, from ReLU to SwiGLU is the reference to keep open; if you learn by building, the language-model-from-scratch PyTorch guide turns the theory into runnable code in an afternoon. Two shorter reads round out the entity: how GPT and LLaMA differ grounds the concepts in models you already use, and the black box problem states the accountability cost that every architecture in this theme inherits.

With that one entity absorbed, everything below reads as a variation on a theme: same learning loop, different wiring.

The workhorse architectures: convolutional and recurrent networks

These two families carried deep learning for a decade before transformers, and both are worth knowing today — one because it remains the most efficient choice for its data shape, the other because its ideas are staging a comeback.

The convolutional neural network hard-codes an assumption transformers have to learn from data: nearby pixels are related. How learnable filters extract visual features is the entry read, and from LeNet to ConvNeXt traces how the family evolved and where that spatial shortcut stops paying. CNNs still dominate where compute is scarce and labeled data is thin — from radiology to autonomous vehicles tours the 2026 deployments, the CNN image classifier guide settles the EfficientNetV2-vs-ResNet-vs-ConvNeXt choice in practice, and the ethical cost of CNN-powered surveillance covers the deployment questions benchmarks skip.

The recurrent neural network is the family transformers replaced — which is exactly why it belongs in your reading order. How hidden states process sequential data explains the paradigm; from vanilla RNN to LSTM and GRU shows how gating bought the family a decade; and backpropagation through time and vanishing gradients is the best transformer explainer in this theme, because it shows the exact problem attention solved. The family is not a museum piece: where RNNs still outperform transformers names the surviving niches, xLSTM, minLSTM, and the recurrent revival tracks recurrence returning to challenge quadratic attention, and sequential bias and opaque memory covers the risks when these models score high-stakes sequences.

Between them, these two families explain most of what multimodal systems do with images and most of why transformers look the way they do. The remaining three families solve problems neither grids nor plain sequences describe.

Advanced architectures: GANs, VAEs, and graph neural networks

This tier is where architecture stops being a history lesson and becomes a design choice — generative modeling and graph-structured data are decisions you will actually face.

The generative adversarial network trains two networks against each other: a generator that fakes data and a discriminator that calls the fakes. From latent vectors to adversarial loss assembles the building blocks; mode collapse and training instability explains why the family lost the text-to-image crown to diffusion. Yet GANs still win specific fights — single-pass speed for super-resolution above all — and GigaGAN, Real-ESRGAN, and the diffusion rivalry maps exactly where, while the GAN build guide applies them to super-resolution and synthetic data.

The variational autoencoder took the opposite path to generation: instead of a duel, it learns a compressed latent space you can sample from — and it is the architecture quietly encoding and decoding every image inside Stable Diffusion. How the reparameterization trick enables generative learning is the entry read, with from autoencoders to KL divergence filling the prerequisites. SD-VAE, VQ-VAE, and NVAE shows the family powering 2026 image generation, the VAE build guide covers its most common industrial jobs — anomaly detection and data augmentation — and synthetic faces and learned distributions asks what happens when the latent space memorises real people.

The graph neural network handles the data shape nothing above can represent: molecules, social networks, knowledge graphs — entities defined by their connections. How message passing propagates information across nodes is the entry point; if graphs themselves are new territory, read adjacency matrices and node features first. Before committing a project to the family, oversmoothing and scalability walls states the hard limits; the PyTorch Geometric and DGL guide gets a working model running; PyG vs DGL and GNN+LLM fusion shows where the family heads as structured knowledge meets language models; and amplified bias and opaque connections covers the risk that message passing spreads bias along with information.

How the architecture families differ

The most expensive confusion in this theme is treating architectures as interchangeable and picking by familiarity. Each family is a bet on data shape:

Convolutional (CNN)Recurrent (RNN)Graph (GNN)
Data shape assumedFixed grids — images, spectrogramsOrdered sequences — text, time seriesArbitrary graphs — molecules, networks
Core operationLearnable filters over local patchesHidden state updated step by stepMessage passing between neighbors
Where it still winsEfficient vision, small-data and edge deploymentStreaming and on-device niches; reviving as xLSTMStructured data no other family represents
Characteristic failureSpatial bias misleads on non-grid dataVanishing gradients over long sequencesOversmoothing as layers stack

Three finer distinctions trip readers just as often:

  • GAN vs VAE. Both generate data, by opposite bets. The GAN’s adversarial duel produces sharp outputs but unstable training and dropped modes; the VAE’s reconstruction-plus-KL objective trains stably and yields a navigable latent space, at the cost of blurrier samples. Production pipelines often use both — a VAE for the latent space, adversarial ideas for sharpness.
  • Recurrent vs transformer. Both process sequences; the difference is that an RNN must read them one step at a time, while attention reads all positions in parallel. That single constraint — not accuracy — is why transformers took over training at scale, and why recurrent ideas return wherever inference memory matters more than training throughput.
  • Discriminative vs generative. CNNs, RNNs, and GNNs are typically trained to classify or predict; GANs and VAEs model the data distribution itself so they can sample new data. The question “classify it or synthesize it” sorts the five families faster than any benchmark table.

Common questions

Q: Where should I start with neural network architectures if I already ship software? A: Read the foundations tier first — what a neural network is and how it learns plus the backpropagation explainer — because every family here is that same loop with different wiring. Then pick the tier-two family closest to your data: images lead to CNNs, sequences to RNNs.

Q: Do I still need to learn CNNs and RNNs if I only work with LLMs? A: Yes, for two practical reasons: multimodal LLM stacks still carry convolutional vision stages, and the RNN story is the shortest route to understanding why attention works. From LeNet to ConvNeXt covers the first; the recurrent tier above covers the second.

Q: Should I use a GAN or a VAE for synthetic training data? A: Default to the VAE when you need stable training, distribution coverage, or an interpretable latent space — the VAE build guide covers the augmentation workflow. Reach for a GAN when output sharpness is the priority and you can afford the tuning effort.

Q: Why does my generative model keep producing near-identical outputs? A: That is mode collapse — the generator found a few outputs that reliably fool the discriminator and abandoned the rest of the distribution. It is a GAN-specific failure with known mitigations and hard limits; mode collapse and training instability explains both, and is a reason many teams switch to VAEs or diffusion.

Q: Why did transformers replace RNNs but not CNNs or GNNs? A: Because the RNN’s weakness was structural: sequential processing blocks parallel training, which backpropagation through time and vanishing gradients unpacks. CNNs and GNNs encode assumptions — locality, graph structure — that remain cheaper than learning them from data, so they coexist with transformers instead of competing head-on.

Browse all 6 topics

Convolutional Neural Network →

A Convolutional Neural Network is a deep learning architecture that applies small, learnable filters across input data …

5 articles

Generative Adversarial Network →

A generative adversarial network is a machine learning architecture composed of two neural networks — a generator and a …

4 articles

Graph Neural Network →

A graph neural network is a deep learning architecture that operates directly on graph-structured data, where …

6 articles

Neural Network Basics for LLMs →

Neural networks are computational systems that learn patterns from data by adjusting internal parameters called weights …

7 articles

Recurrent Neural Network →

A recurrent neural network is a neural network architecture that processes sequential data one step at a time, …

6 articles

Variational Autoencoder →

A Variational Autoencoder (VAE) is a generative neural network that encodes input data into a continuous, structured …

5 articles

Four perspectives on this domain