Architectures

Architecture note는 molecular AI, protein modeling, agent, 구현 읽기에서 쓰는 model family를 설명합니다. 논문이 무엇을 섞고 있는지, 어떤 inductive bias를 가정하는지, evaluation이 어디서 흔들릴 수 있는지 빠르게 확인하는 용도입니다.

Architecture는 training 중 탐색하는 function class를 정의합니다.

같은 training objective라도 가 locality, order, graph structure, symmetry 중 무엇을 encode하는지에 따라 전혀 다르게 동작할 수 있습니다.

Paper Shelf

이 개념 페이지에서 정의를 읽은 뒤, 실제 architecture가 그 가정을 어떻게 구현했는지는 Architecture Papers의 anchor note에서 확인합니다.

Concept routeAnchor paper
Attention and TransformerAttention Is All You Need
Recurrent and iterative depthUniversal Transformers
Shared embedding geometryFaceNet
Graph and equivarianceE(n) Equivariant GNN
Generative architectureDenoising Diffusion Probabilistic Models
Agent controlHuman-level control through deep reinforcement learning
Architecture design automationNeural Architecture Search with Reinforcement Learning

Architecture Contract

Architecture note는 모델명을 외우는 것이 아니라, 입력 구조와 정보 흐름을 계약으로 고정합니다.

PartMeaningTypical question
input objectvector, sequence, grid, graph, set, coordinate, multimodal input?
hidden state shapetoken states, node states, feature maps, coordinates, latent vectors?
mixing ruledense layer, convolution, recurrence, attention, message passing, state update?
sharing or symmetry ruletranslation sharing, permutation invariance, equivariance, causal order?
readoutclass token, pooling, graph readout, coordinate head, distribution head?
objective compatibilitysupervised loss, generative sampler, SSL target, ranking objective?
compute and memory costsequence length, graph size, resolution, state size, expert count?

이 계약을 먼저 쓰면 “Transformer vs Mamba”, “GNN vs Graph Transformer”, “CNN vs ViT” 같은 비교가 모델명 싸움이 아니라 assumption 비교가 됩니다.

Route Map

QuestionStartThen Check
what input object is being modeled?Modalities, Architecture selectionsequence, graph, grid, set, coordinate, or mixed input
is the claim architecture or objective driven?Architecture-objective fitdata, objective, compute, and evaluation controls
what inductive bias is assumed?Inductive bias, Parameter sharinglocality, order, permutation, symmetry, sparsity
what mixes information?Attention, Convolution, GNN, State-space modelstoken, pixel, node, coordinate, or state mixing
what transforms channels?Linear layer, Feed-forward network, Activation functionwidth, expansion, gating, parameter budget
what stabilizes depth?Residual connection, Normalization, Normalization placement, Weight initializationgradient flow and scale
what maps internal states to outputs?Pooling and readout, Softmaxtask output space and metric
what is the cost bottleneck?Computational complexitylength, graph size, resolution, experts, memory

Information Mixing Axes

Architecture family는 어떤 axis를 섞는지로 읽으면 정리가 쉽습니다.

Mixing axisCommon blockUse when
Feature/channel[[concepts/architectures/linear-layerLinear layer]], [[concepts/architectures/feed-forward-network
Local spatial neighborhood[[concepts/architectures/convolutionConvolution]], [[concepts/architectures/cnn
Ordered time or sequence state[[concepts/architectures/rnnRNN]], [[concepts/architectures/lstm
Global token interaction[[concepts/architectures/attentionAttention]], [[concepts/architectures/transformer
Cross-context interaction[[concepts/architectures/cross-attentionCross-attention]], [[concepts/architectures/encoder-decoder
Graph neighborhood[[concepts/architectures/gnnGNN]], [[concepts/architectures/graph-transformer
Set aggregation[[concepts/architectures/deep-setsDeep Sets]], [[concepts/architectures/set-transformer
Coordinate update[[concepts/geometric-deep-learning/equivariant-gnnEquivariant GNN]], [[concepts/geometric-deep-learning/index
Conditional compute[[concepts/architectures/mixture-of-expertsMixture of Experts]], [[concepts/architectures/gating

Basic Blocks

Model Families

FamilyUse ForStart
Dense / feed-forwardfixed vectors, tabular features, learned embeddings, bottlenecksMLP, Autoencoder
Grid / image / voxellocal spatial structure, image/video, contact maps, spatial gridsConvolution, CNN, Residual network, U-Net, Vision Transformer
Sequencetext, residues, time series, ordered tokensRNN, LSTM, GRU, Transformer, State-space models, Mamba
Attention / encoder-decoderlong-range mixing, conditioning, multimodal fusionAttention, Cross-attention, Encoder-decoder, Perceiver
Set / graphunordered sets, molecular graphs, residue graphs, relational objectsDeep Sets, Set Transformer, Graph construction, GNN, Weisfeiler-Lehman Test, Graph Transformer
Geometry-awarecoordinates, forces, poses, protein and molecule structuresGeometric deep learning, Equivariant GNN, Tensor Field Network
Sparse / routedconditional compute, expert routing, scaling under budgetMixture of Experts

Mamba는 여기서 별도의 top-level family로 두지 않습니다. Selective state-space model이므로, Mamba 내부 구조 자체를 다루는 노트가 아니라면 State-space models 경로로 둡니다.

Comparison Controls

Architecture claim을 비교할 때는 architecture만 바뀌었는지 확인해야 합니다.

Controlled factorWhy
data and splitstronger architecture claim needs the same train/test boundary
objective and targetdifferent loss can explain the improvement
parameter count and computelarger model can look like better inductive bias
context length or graph sizescaling advantage depends on input size
preprocessing and representationbetter input encoding can dominate architecture
training budget and optimizerundertrained baseline weakens comparison
evaluation metric and selection rulearchitecture claim can be selection artifact

The minimal comparison question is:

Reading Checklist

  • What is the input object: vector, sequence, grid, graph, structure, or mixed modality?
  • Where is parameter sharing used, and what symmetry does it encode?
  • What mixes information: dense layers, convolution, recurrence, state update, message passing, or attention?
  • Which blocks mix channels, tokens, spatial neighborhoods, graph neighborhoods, or coordinates?
  • What inductive bias is assumed: locality, order, permutation invariance, equivariance, sparsity, or routing?
  • What is the dominant computational complexity term?
  • How do activations, residual paths, normalization, and initialization affect gradient flow?
  • What fails first in practice: memory, length, graph size, data leakage, calibration, or decoding constraints?

48 items under this folder.