← Back to CoursesTensorFlow & AI Programming: PhD Level

Neuroanatomy Explorer

Drag to rotate · scroll to zoom · click regions to explore

View
Loading 3D model…

Click a region
to explore it

Memory Deck

Flip each card and rate whether you knew it. Your score is saved.

Term
Definition

Deck complete — score saved.

Match the Pairs

Match each term to its definition. Finish the board to earn your score.

All matched — score saved.

Concept Constellation

Every key idea in this course, mapped as an explorable 3D constellation. Drag to rotate, scroll to zoom, click a node.

Click a node to read its definition.

Model Architectures in TensorFlow: MLPs, CNNs, RNNs, and Transformers

Manual: General · Subject: TensorFlow & AI Programming

Implement and analyze major neural architectures while understanding their inductive biases and limitations.

Architectural families and inductive bias

From fully connected to attention-based models

Multilayer perceptrons learn general nonlinear mappings but ignore spatial or temporal structure. Convolutional networks encode locality and translation equivariance. Recurrent networks model sequence order. Transformers use self-attention to capture long-range dependencies and scale effectively with data and compute.

Architecture comparison

ArchitectureStrengthLimitation
MLPFlexible universal approximatorWeak inductive bias for structured data
CNNEfficient for images and gridsLimited global context without deeper design
RNN/LSTM/GRUSequential modelingHarder to parallelize and train at scale
TransformerGlobal context and scalingQuadratic attention cost in sequence length

Which architecture is most associated with self-attention?

Attention mechanism

For queries QQ, keys KK, and values VV, scaled dot-product attention computes Attention(Q,K,V)=softmax(QKTdk)V.\mathrm{Attention}(Q,K,V)=\mathrm{softmax}\left(\frac{QK^T}{\sqrt{d_k}}\right)V. This allows each token to weigh other tokens adaptively.

🔑

Open research direction

Long-context modeling remains an active frontier: sparse attention, recurrence, state-space models, memory-augmented transformers, and hybrid architectures compete on efficiency and quality.

Designing a new architecture

  1. 1

    Identify the structure in the data: spatial, temporal, graph, or set-like.

  2. 2

    Select an inductive bias that matches the structure.

  3. 3

    Choose normalization, activation, and residual pathways.

  4. 4

    Test scaling behavior with width, depth, and context length.

  5. 5

    Measure compute cost, memory footprint, and downstream generalization.

Why are residual connections important in deep networks?

What is the major computational drawback of standard self-attention on long sequences?

Name one method to reduce transformer memory cost on long sequences.