Protocol 04 // CORTEX Battle Stations
All 8 deep learning, Transformer, and AI security laboratories with interactive heatmaps, PyTorch kernels, and adversarial sandboxes.
Transformer Multi-Head Self-Attention
ADVANCEDCompute Query, Key, and Value dot-products, softmax attention weights, and token attention heatmaps.
Neural Backprop & Computational Graphs
INTERMEDIATECompute node activations, partial derivatives via chain rule, loss gradient flow, and Adam optimizer updates.
BPE Tokenizer & Subword Vocabulary
INTERMEDIATEImplement byte-level Byte-Pair Encoding: frequency counting, iterative pair merges, and subword tokenization.
Latent Diffusion & Noise Scheduler
ADVANCEDForward Gaussian noise diffusion, reverse score matching, U-Net residual noise estimation, and latent decoding.
Adversarial Prompt Injection & Guardrail Sandbox
INTERMEDIATESimulate indirect prompt injection, DAN-style system overrides, semantic vector firewall filtering, and token logit steering.
Vector Embeddings & Cosine Distance
INTERMEDIATEProject semantic vectors onto a 2D PCA plane, calculate cosine distance, and query an HNSW graph.
CNN Convolutional Kernels & Feature Maps
INTERMEDIATESlide spatial kernels (Sobel, Edge, Gaussian Blur) over input matrices, apply ReLU, and visualize activation maps.
LLM Quantization & Weight Precision
ADVANCEDScale factor and zero-point quantization: FP32 to INT8/INT4, AWQ, and perplexity degradation analysis.