|
8 | 8 | > |
9 | 9 | > 📖 **中文版 (Chinese version)**: [README_CN.md](README_CN.md) |
10 | 10 |
|
11 | | -**📚 Jump to a topic** — 26 first-party cheat sheets across 7 categories + 1 community-contributed category: |
| 11 | +**📚 Jump to a topic** — 27 first-party cheat sheets across 7 categories + 1 community-contributed category: |
12 | 12 |
|
13 | 13 | [🧠 General / Foundations](#-general--foundations) · [🎯 Post-Training & Reasoning](#-post-training--reasoning) · [🏛️ LLM Architecture & Systems](#-llm-architecture--systems) · [🌊 Generative Models — Theory & Tokenizers](#-generative-models--theory--tokenizers) · [🎨 Generation Systems (Image / Video / 3D / Diffusion Post-Training)](#-generation-systems--image--video--3d--diffusion-post-training) · [👁️ Multimodal](#-multimodal) · [🤖 Agents](#-agents) · [🦾 Embodied AI / 具身智能](#-embodied-ai--具身智能) |
14 | 14 |
|
@@ -66,6 +66,7 @@ Phone on the subway, iPad at a café, laptop in the library — same HTML link o |
66 | 66 |
|
67 | 67 | ## 📢 What's New |
68 | 68 |
|
| 69 | +- **2026-06-19** —  🧱 **#27 Normalization / Residual / Init cheat sheet** — the foundational training-mechanics hole: **BatchNorm / LayerNorm / RMSNorm / GroupNorm** · **Pre-vs-Post-LN** (Xiong's gradient argument — why Post-LN needs warmup) · **DeepNorm / Sandwich / QK-Norm** · **residual connections + scaling** (LayerScale / ReZero / GPT-2's 1/√(2N)) · **Xavier vs Kaiming** (the ReLU factor-2, and why the preserved quantity is the second moment E[y²], not Var) · **μP** (width-invariant HP transfer) · **Fixup / NFNets / DyT** (norm-free) · plus the **covariate-shift debunk** (Santurkar). **Bilingual** (中文 + EN), with a runnable script ([`code/normalization.py`](docs/tutorials/code/normalization.py) — from-scratch LN/RMSNorm vs `torch` + Pre/Post-LN gradient + Kaiming second-moment + GPT-2 residual scaling, verified on a real box) and 25 高频题. The cross-model review caught a real methodological confound in the Pre/Post-LN gradient demo (an output-normalization artifact) and redesigned it to a loss-robust top/bottom weight-grad ratio. [`normalization_init_tutorial.html`](docs/tutorials/normalization_init_tutorial.html). |
69 | 70 | - **2026-06-18** —  ⚡ **#26 Linear / Sparse Attention cheat sheet** — the sub-quadratic / efficient-attention hole the collection kept referencing but never derived: **linear attention** (kernel φ + associativity → matrix-state RNN) · **SSM / Mamba** (selective S6) · **Mamba-2 / SSD** (1-semiseparable duality ≡ structured masked linear attention) · **DeltaNet / Gated DeltaNet** (overwrite update) · **chunkwise-parallel** training · **trainable sparse** (NSA three-branch / MoBA / Lightning / DSA) · **hybrid** (Jamba / Hymba / Qwen3-Next / Kimi-Linear / MiniMax-01). **Bilingual** (中文 + EN), with a runnable script ([`code/linear_sparse_attention.py`](docs/tutorials/code/linear_sparse_attention.py) — `chunkwise ≡ recurrent` equivalence + delta-rule + block-sparse, verified on a real box) and 25 高频题, settled through multi-batch Codex GPT-5.5 xhigh citation / math / code / answer / overall + render-fidelity review. [`linear_sparse_attention_tutorial.html`](docs/tutorials/linear_sparse_attention_tutorial.html) ([#22](https://github.com/wanshuiyin/ARIS-in-AI-Offer/pull/22) · [b84e913](https://github.com/wanshuiyin/ARIS-in-AI-Offer/commit/b84e913)). |
70 | 71 | - **2026-06-13 → 06-14** —  🧩 **Two must-know cheat sheets shipped: #24 LoRA / PEFT + #25 RAG + Embedding / Retrieval** — the two glaring holes the collection used everywhere but never derived. **LoRA/PEFT**: B=0 identity start · α/r vs rsLoRA √r · zero-latency merge · QLoRA (NF4 / double-quant / paged) · DoRA · the family vs Adapter / Prefix / Prompt / BitFit. **RAG**: bi-encoder · InfoNCE + hard negatives · Matryoshka · BM25 · HNSW · RRF hybrid · cross-encoder vs ColBERT late interaction · HyDE / Self-RAG / CRAG · GraphRAG · RAGAS. Both **bilingual** (中文 + EN), each with from-scratch PyTorch, a runnable script ([`code/lora.py`](docs/tutorials/code/lora.py) · [`code/rag_embedding.py`](docs/tutorials/code/rag_embedding.py), verified on a real box) and 25 高频题, settled through multi-round Codex GPT-5.5 xhigh math/code + render + EN translation-fidelity review. [`lora_peft_tutorial.html`](docs/tutorials/lora_peft_tutorial.html) · [`rag_embedding_retrieval_tutorial.html`](docs/tutorials/rag_embedding_retrieval_tutorial.html). |
71 | 72 | - **2026-06-08** —  🔧 [`tools/render_html.py`](tools/render_html.py) now strips a leading UTF-8 BOM before frontmatter detection ([6cc4876](https://github.com/wanshuiyin/ARIS-in-AI-Offer/commit/6cc4876)). |
@@ -109,6 +110,7 @@ Long-form technical blogs — hand-authored, cross-model reviewed; outside the a |
109 | 110 | | Topic | HTML 中文 | HTML EN | MD | |
110 | 111 | |---|---|---|---| |
111 | 112 | | **Attention Interview Cheat Sheet** | [📄 CN](https://wanshuiyin.github.io/ARIS-in-AI-Offer/tutorials/attention_tutorial.html) | [📄 EN](https://wanshuiyin.github.io/ARIS-in-AI-Offer/tutorials/attention_tutorial_en.html) | [MD](docs/tutorials/attention_tutorial.md) | |
| 113 | +| **Normalization / Residual / Init (BatchNorm / LayerNorm / RMSNorm / Pre-vs-Post-LN / DeepNorm / QK-Norm / Xavier·Kaiming / μP)** | [📄 CN](https://wanshuiyin.github.io/ARIS-in-AI-Offer/tutorials/normalization_init_tutorial.html) | [📄 EN](https://wanshuiyin.github.io/ARIS-in-AI-Offer/tutorials/normalization_init_tutorial_en.html) | [MD](docs/tutorials/normalization_init_tutorial.md) | |
112 | 114 | | **KL Divergence in RLHF (k1/k2/k3 · placement gradient bias)** | [📄 CN](https://wanshuiyin.github.io/ARIS-in-AI-Offer/tutorials/kl_divergence_rlhf_tutorial.html) | [📄 EN](https://wanshuiyin.github.io/ARIS-in-AI-Offer/tutorials/kl_divergence_rlhf_tutorial_en.html) | [MD](docs/tutorials/kl_divergence_rlhf_tutorial.md) | |
113 | 115 |
|
114 | 116 | ### 🎯 Post-Training & Reasoning |
|
0 commit comments