Architectures

모델 아키텍처는 데이터가 어떤 구조를 갖는지에 대한 가정입니다. 같은 objective를 쓰더라도 sequence, graph, image, 3D structure를 어떻게 표현하느냐에 따라 적합한 architecture가 달라집니다.

형식적으로는 architecture가 가능한 함수 공간 를 정합니다.

예를 들어 CNN은 locality와 translation equivariance를 강하게 가정하고, GNN은 graph connectivity와 permutation invariance/equivariance를 가정합니다.

Paper Shelf

개념을 먼저 읽은 뒤 대표 논문으로 내려가려면 아래의 anchor를 시작점으로 사용합니다. 전체 논문 목록은 Architecture Papers에서 route와 shelf별로 확인할 수 있습니다.

고르는 기준

아키텍처를 볼 때는 “유명한 모델인가”보다 “어떤 입력 구조와 대칭성을 가정하는가”를 먼저 봐야 합니다.

CriterionStartAsk
Inductive biasInductive biasarchitecture가 어떤 함수 공간을 선호하는가?
Parameter sharingParameter sharing같은 parameter를 어디에 반복 적용하는가?
Architecture choiceArchitecture selectionmodality, task, data, compute에 맞는 family인가?
Architecture vs objectiveArchitecture-objective fit성능 차이가 구조 때문인지 학습 신호 때문인지 분리되는가?
Scaling costComputational complexitysequence length, graph size, image resolution에 따라 비용이 어떻게 느는가?

Architecture Reading Order

아키텍처 노트는 아래 순서로 읽으면 산발적인 모델명이 하나의 체계로 들어옵니다.

  1. 입력 단위: feature, token, pixel, node, residue, atom, coordinate 중 무엇인가?
  2. 섞는 축: channel, token, node, edge, coordinate, modality 중 무엇을 mix하는가?
  3. 공유 규칙: convolution, recurrence, attention, message passing, equivariant update 중 무엇인가?
  4. 안정화 장치: normalization, residual, gating, initialization이 어디에 놓이는가?
  5. 출력 readout: class, scalar, sequence, graph, coordinate, distribution 중 무엇을 내는가?
  6. 비용: sequence length, graph size, resolution, coordinate updates에 대해 어떻게 scaling되는가?

Input Structure Map

Input StructureUseful BiasTypical ArchitectureWatch
Fixed feature vectorfeature mixingMLP, linear model, tree modelfeature scale, missing values, leakage
Grid / image / voxellocal translation sharingCNN, U-Net, ViTresolution, receptive field, augmentation
Sequenceorder and long-range contextRNN/LSTM/GRU, Transformer, SSM/Mambalength scaling, positional encoding, truncation
Setpermutation invarianceDeep Sets, Set Transformerpooling/readout and element identity
Graphneighborhood message passing or graph-biased attentionGNN, Graph Transformergraph construction, edge attributes, over-smoothing
3D coordinatesinvariance/equivarianceequivariant GNN, tensor-field modelcoordinate frame, units, chirality, leakage, update stability
Multimodal inputcross-modal alignmentencoder-decoder, cross-attention, Perceivermissing modality, modality leakage, fusion timing

Building Block Routes

딥러닝 아키텍처를 읽을 때 먼저 봐야 하는 building block입니다.

BlockStartRole
Affine transformLinear layer, Weight initializationfeature dimension mixing and stable starting scale
NonlinearityActivation function, Feed-forward networklocal nonlinear transformation and channel mixing
StabilizationNormalization, Normalization placement, Residual connectiongradient flow and deep model stability
Representation interfaceTokenization, Embedding, Positional encodingmapping raw objects into model states
Probability and regularizationSoftmax, Dropoutnormalized scores and train-time noise
Routing and readoutGating, Pooling and readoutconditional computation and output aggregation

Architecture Families

FamilyStartBest FitWatch
Dense / feed-forwardMLP, Autoencoderfixed vectors, tabular features, bottleneck representationsfeature scaling and lost structure
Grid / image / voxelImage, Video, Convolution, CNN, U-Net, ViTlocality, spatial sharing, dense predictionreceptive field, resolution, augmentation
Sequence recurrenceRNN, LSTM, GRUordered streams and compact statelong-range memory and parallelism limits
Attention / TransformerAttention, Transformer, Encoder-only, Decoder-only, Encoder-decoderlong-range token interaction and conditional generationquadratic context cost and position handling
State-space sequence modelsState-space model, Mambalong sequences with recurrent state and parallel trainingtask fit, selective state design, comparison to attention
Cross-modal patternsMultimodal learning, Cross-attention, Perceiverfusing different input types or context sourcesmodality leakage and fusion timing
Set and graphDeep Sets, Set Transformer, Graph construction, GNN, Graph Transformerunordered elements, molecules, residues, relationsedge definition, readout, over-smoothing
Geometry-awareGeometry, Symmetry group, Geometric deep learning, Equivariance, Equivariant GNNcoordinates, forces, poses, molecular and protein structurescoordinate frame, invariance/equivariance split, chirality
Sparse / routedMixture of experts, Gatingconditional compute and large-capacity modelsrouting collapse, load balance, serving cost

Mamba는 별도 대분류가 아니라 state-space model 계열의 selective SSM으로 읽습니다.

Architecture Claim Checklist

ClaimCheck
Better inductive biasDoes the architecture match the input symmetry or locality?
Better scalingWhat is the compute/memory complexity in sequence length, nodes, or pixels?
Better representationIs the readout or pooling rule aligned with the task output?
Better generationDoes the architecture support the sampling path and conditioning interface?
Better structure modelingAre invariant and equivariant quantities handled separately?
Better graph modelingIs graph construction part of the method or held fixed across baselines?
Better coordinate generationAre coordinate update step count, constraints, and geometry validity reported?

읽을 때 볼 질문

  • 입력이 sequence, graph, set, grid, structure 중 무엇인가?
  • 모델이 locality, order, permutation invariance, equivariance 중 무엇을 가정하는가?
  • Linear layer는 channel을 섞는가, attention/convolution/message passing은 token이나 neighborhood를 섞는가?
  • Activation, normalization, residual path가 gradient flow를 안정화하는가?
  • Weight initialization과 normalization placement가 깊은 모델의 안정성에 맞는가?
  • long-context scaling, sparse routing, geometric bias가 필요한가?
  • architecture의 inductive bias가 task의 symmetry와 맞는가?