π€ LLM AI Systems Hierarchy β The Complete Production Stack
Vault QuCrypto punya 55 catatan tentang AI/LLM/RAG/Agent/MCP β tapi tidak ada satu dokumen pun yang menunjukkan layer architecture lengkapnya. Catatan ini memetakan stack LLM modern ke dalam 7 lapisan fungsional (dari hardware sampai product), dengan timeline evolusi 2020-2026, trade-off matriks per layer, dan diagram koneksi ke setiap catatan terkait di vault.
Daftar Isi
- 1. Premise β Mengapa Hierarchy Ini Penting
- 2. The Seven-Layer Model
- 3. Layer 0 β Hardware Foundation
- 4. Layer 1 β Model Foundation (Pre-training)
- 5. Layer 2 β Model Adaptation (Fine-tuning)
- 6. Layer 3 β Inference Infrastructure
- 7. Layer 4 β Context Engineering (RAG, Prompts, Memory)
- 8. Layer 5 β Agentic Layer (Tools, MCP, Multi-Agent)
- 9. Layer 6 β Evaluation & Observability
- 10. Layer 7 β Product/UX Surface
- 11. Timeline 2020-2026 β Bagaimana Kita Sampai di Sini
- 12. Trade-off Matrix per Layer
- 13. Cross-Reference ke Vault
- References
1. Premise β Mengapa Hierarchy Ini Penting
LLM bukan satu produk β ia adalah tumpukan 7 lapisan yang masing-masing punya disiplin sendiri:
βββββββββββββββββββββββββββββββββββββββββββββββββββ
β Layer 7: Product/UX Surface β β Yang dilihat user
βββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Layer 6: Evaluation & Observability β β Bagaimana kita tau ini jalan?
βββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Layer 5: Agentic Layer β β Tools, MCP, planning
βββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Layer 4: Context Engineering β β RAG, prompts, memory
βββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Layer 3: Inference Infrastructure β β Serving, batching, KV-cache
βββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Layer 2: Model Adaptation β β Fine-tuning, LoRA, adapters
βββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Layer 1: Model Foundation β β Pre-training, architecture
βββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Layer 0: Hardware Foundation β β GPU, TPU, memory, interconnect
βββββββββββββββββββββββββββββββββββββββββββββββββββ
Mengapa 7 layer? Karena setiap layer punya trade-off independen: hardware menentukan model mana yang bisa dilatih, model menentukan inference pattern, fine-tuning menentukan capability, dst. Salah optimasi di salah satu layer = sia-sia di layer lain.
Mengapa vault butuh hierarchy ini? Karena catatan AI_Systems di vault (hierarchy-kernel-bypass-networking, llm-finetuning-toolchain, agentic-ai-mcp-architecture-deepdive, dll.) membahas layer-layer individual tapi tidak ada yang memetakan semua layer dalam satu diagram. Catatan ini jadi peta.
2. The Seven-Layer Model
2.1 Definisi Setiap Layer
| Layer | Fungsi | Owner | Failure Mode Tipikal |
|---|---|---|---|
| 0 | Hardware | NVIDIA, AMD, TPUs, custom ASIC | GPU out of memory, interconnect bottleneck |
| 1 | Model foundation | OpenAI, Anthropic, Meta, DeepSeek | Loss tidak konvergen, hallucination |
| 2 | Adaptation | Downstream teams | Catastrophic forgetting, overfit |
| 3 | Inference | Ops/DevOps | TTFT p99 > 3s, cost per token meledak |
| 4 | Context | AI/ML engineers | Retrieval recall <80%, prompt injection |
| 5 | Agentic | Application devs | Infinite loop, tool hallucination |
| 6 | Evaluation | QA + research | Regression drift silent, rogue eval |
| 7 | Product/UX | Designers + PM | User trust eroded, churn |
2.2 Layer Dependency
[Layer N] ββββββββββββββββββ depends on βββββββββββββββββ [Layer N-1]
Layer 7 butuh β Layer 6 (metrics) + Layer 5 (agent flow)
Layer 6 butuh β Layer 3 (traces) + Layer 5 (decision logs)
Layer 5 butuh β Layer 4 (context) + Layer 3 (latency budget)
Layer 4 butuh β Layer 3 (inference cost) + Layer 2 (capability)
Layer 3 butuh β Layer 2 (model) + Layer 1 (weights) + Layer 0 (GPU)
Layer 2 butuh β Layer 1 (base model)
Layer 1 butuh β Layer 0 (compute cluster)
Prinsip: Optimasi di Layer N tidak bisa mengkompensasi kelemahan di Layer N-1. Contoh: prompt yang indah di Layer 4 tidak akan menyelamatkan model yang cacat di Layer 1.
3. Layer 0 β Hardware Foundation
GPU/TPU + memory hierarchy + interconnect yang menentukan throughput.
3.1 Komponen Kritis
| Subsystem | Spesifikasi | Vendor | Throughput |
|---|---|---|---|
| Compute | H100, H200, B200 (NVIDIA) β MI300X (AMD) β TPU v5p (Google) | NVIDIA dominates 88% | 1-4 PFLOPs FP8 |
| Memory | HBM3, HBM3e (up to 192 GB/stack) | SK Hynix, Samsung, Micron | 3-6 TB/s |
| Interconnect | NVLink (900 GB/s), InfiniBand (400 Gbps), PCIe Gen5 | NVIDIA, Mellanox | 600-900 GB/s per node |
| Storage | NVMe SSD, parallel filesystem (Lustre, GPFS) | Pure Storage, WEKA | 100+ GB/s read |
| Networking | RoCE, RoCEv2, custom Ethernet | Arista, Mellanox | 800 Gbps rollout |
3.2 Compute Hierarchy
Single GPU = H100 SXM
Node (8 GPU NVLink) = 1.6 PFLOPs FP8 full mesh
Pod (32 nodes) = 1024 GPU, NVLink + IB
Cluster (>1000 GPU) = Training run skala GPT-4
Hyperscale (>100K GPU)= Frontier training (MosaicML, xAI Colossus)
Koneksi ke Vault:
- hardware-architecture β GPU microarchitecture detail
- hierarchy-kernel-bypass-networking β Layer 3 (RDMA, GPU Direct)
- embedded-systems β Edge inference constraint
3.3 Kenapa Layer 0 Penting
Setiap optimasi Layer 1 (pre-training) dibatasi oleh Layer 0. Contoh: arsitektur Mixture-of-Experts (MoE) hemat komputasi activation, tapi memperburuk memory pressure di inference. Cluster kecil β batch kecil β throughput rendah. Ini sebabnya vendor kecil seperti Mistral fokus di model dense < 70B yang muat di single node.
4. Layer 1 β Model Foundation (Pre-training)
Arsitektur model + tokenizer + pre-training objective + dataset curation.
4.1 Arsitektur yang Dominan
| Arsitektur | Tahun | Inovasi | Use Case |
|---|---|---|---|
| GPT-1 (decoder-only) | 2018 | Transformer decoder, causal masking | Generative |
| BERT (encoder-only) | 2018 | Bidirectional MLM | Classification, embedding |
| T5 (encoder-decoder) | 2019 | Unified text-to-text | Translation, summarization |
| GPT-3 (scaling) | 2020 | In-context learning emerges at 13B+ | Few-shot generalist |
| Switch Transformer | 2021 | Mixture of Experts (MoE) | Sparse compute |
| Chinchilla | 2022 | Compute-optimal scaling law | 70B trained on 1.4T tokens |
| Llama 2/3 | 2023-24 | Open weights, RLHF | Chat, instruction following |
| DeepSeek-R1 | 2025 | RL-first reasoning model | Math, code, reasoning |
| Claude 3.7+ | 2025 | Long context (200K-1M tokens) | Document analysis |
4.2 Pre-training Objective
Next-token prediction (GPT-style):
Justru objective yang sangat sederhana ini, dalam arsitektur yang tepat dengan cukup compute, menghasilkan emergent capabilities (in-context learning, chain-of-thought) yang tidak diprogram secara eksplisit.
4.3 Dataset Curation
| Data Source | Rasio Tipikal | Karakteristik |
|---|---|---|
| Web crawl (Common Crawl) | 60-80% | Sangat besar tapi noisy |
| Books (Books3, BooksCorpus) | 5-15% | High-quality narrative |
| Code (GitHub, Stack) | 5-15% | Struktural, dapat diuji |
| Wikipedia | 2-5% | Factual, multilingual |
| Scientific papers | 1-3% | Domain-specific |
| Synthetic (GPT-4 generated) | 5-10% | Curated instruction data |
Filter pipeline: Quality β Deduplication β Toxicity β PII removal β Length filtering. Total data yang dipakai = ~10% dari raw crawl.
Koneksi ke Vault:
- math-and-algorithms β Transformer attention math
- attention-mechanism-deepdive β Self-attention details
- backpropagation-deepdive β Gradient descent for LLM
- llm-finetuning-toolchain β Layer 1 β Layer 2 transition
- rag-data-pipeline-refresh-strategy β Document corpus untuk RAG
5. Layer 2 β Model Adaptation (Fine-tuning)
Mengubah perilaku/capability model untuk kasus spesifik dengan biaya komputasi yang jauh lebih rendah dari pre-training.
5.1 Teknik Fine-tuning
| Teknik | Tahun | Parameter Update | Compute vs Full FT | Memori GPU |
|---|---|---|---|---|
| Full fine-tuning | 2017 | 100% Semua parameter | 1Γ | 100% |
| LoRA | 2021 | ~0.1% (rank decomposition) | ~3Γ lebih murah | ~10% |
| QLoRA | 2023 | LoRA + 4-bit quantization | ~10Γ lebih murah | ~3% |
| Adapter (Houlsby) | 2019 | ~5% (small modules injected) | ~5Γ lebih murah | ~15% |
| Prompt tuning | 2021 | 0% (soft prompt trained) | Negligible | <1% |
| Prefix tuning | 2021 | 0% + KV prefix learned | Negligible | <1% |
| DoRA | 2024 | LoRA enhanced (magnitude + direction) | ~3.5Γ | ~12% |
| Full FT (MoE expert tuning) | 2025 | ~10% | ~2Γ | ~25% |
5.2 Algoritma Fine-tuning Modern
RLHF (Reinforcement Learning from Human Feedback):
ββββββββββββββ βββββββββββββββββ ββββββββββββββ ββββββββββββββββ
β Pre-trainedβ β β SFT (Supervisedβ β β Reward Modelβ β β PPO β
β Model β β Fine-tuning) β β (Human-rankedβ β (RL) β
β β β β β preferences)β β β
ββββββββββββββ βββββββββββββββββ ββββββββββββββ ββββββββββββββββ
DPO (Direct Preference Optimization) β 2024, lebih sederhana dari PPO, tanpa reward model terpisah:
Dimana = preferred, = rejected, = policy yang dilatih.
5.3 Dataset untuk Fine-tuning
| Jenis | Format | Contoh |
|---|---|---|
| SFT | (instruction, response) pairs | Alpaca, Dolly, OASST |
| Preference | (prompt, chosen, rejected) | HH-RLHF, UltraFeedback |
| Reasoning | (problem, step-by-step) | OpenMath, GSM8K-CoT |
| Tool use | (query, tool_call, result) | ToolBench, Hermes |
Koneksi ke Vault:
- llm-finetuning-toolchain β Complete LoRA/QLoRA pipeline
- reinforcement-learning-deepdive β RL foundations
- neurosymbolic-ai β Symbolic vs connectionist trade-off
6. Layer 3 β Inference Infrastructure
Bagaimana model yang sudah dilatih disajikan ke pengguna β dengan latency, throughput, dan biaya yang optimal.
6.1 Tantangan Inference LLM
Inference LLM punya profile yang unik:
Pre-training : LatencyδΈιθ¦ (perlu waktu)
Fine-tuning : LatencyδΈιθ¦ (perlu waktu)
Inference : Latency P99 < 2s MUTLAK
: Throughput tinggi (1000-10000 req/s)
: Biaya per token minimal
Perbedaan fundamental dengan inference tradisional:
- Memory-bound, bukan compute-bound β kv-cache memenuhi seluruh GPU memory
- Sequence length variable β TTFT dan TPOT berbeda
- Statelessness terbatas β context window besar berarti stateful
6.2 Teknik Serving Modern
| Teknik | Fungsi | Throughput Impact | Latency Impact |
|---|---|---|---|
| Continuous batching | Dynamic gap-filling | 5-20Γ | -50% TTFT |
| PagedAttention (vLLM) | Memory paging untuk kv-cache | 10-24Γ | -30% TPOT |
| Speculative decoding | Draft model + verification | 2-3Γ | -60% TPOT |
| Prefix caching | Cache common system prompts | 10Γ untuk RAG | -90% TTFT |
| Quantization (FP8/INT4) | Reduce memory bandwidth | 2-4Γ | -40% TTFT |
| Multi-LoRA serving | Serve many adapters in one GPU | 4Γ | +20% TTFT |
| Disaggregated inference | Separate prefill vs decode | 2-3Γ | -50% P99 |
| Tensor parallelism | Shard besar ke banyak GPU | - | -70% latency per token |
| Pipeline parallelism | Multi-node sharding | - | Communication bound |
6.3 Production Stack
βββββββββββββββββββββββββββββββββββββββββββββββββββ
β Application Layer (prompt β stream response) β
βββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Scheduler (rate limiting, queue, SLO) β
βββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Inference Engine (vLLM / TGI / TensorRT-LLM) β
βββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Model Optimizer (compiler, quantizer, pruner) β
βββββββββββββββββββββββββββββββββββββββββββββββββββ€
β GPU Runtime (CUDA / ROCm, MIG/MPS) β
βββββββββββββββββββββββββββββββββββββββββββββββββββ
Production Choice Matrix (2025):
| Engine | Throughput (tok/s/GPU) | Hardware | Bahasa |
|---|---|---|---|
| vLLM | 8000-15000 | NVIDIA, AMD | Python/CUDA |
| TGI (HuggingFace) | 6000-12000 | NVIDIA | Rust/Python |
| TensorRT-LLM | 12000-25000 | NVIDIA | Python/C++/Triton |
| SGLang | 15000-30000 | NVIDIA | Python/Rust |
| llama.cpp (CPU) | 50-500 | CPU-only | C++ |
| MLX (Apple Silicon) | 800-3000 | M-series | Python/C++ |
Koneksi ke Vault:
- llmops-ai-infrastructure β Ops untuk LLM
- gpu-programming-parallel-compute β GPU programming primitives
- production-model-serving-optimization β Serving optimization
- hierarchy-kernel-bypass-networking β RDMA, GPU Direct untuk inference cluster
7. Layer 4 β Context Engineering (RAG, Prompts, Memory)
Memberikan model informasi yang relevan untuk menjawab query β melampaui apa yang ada di parameter.
7.1 The Context Engineering Stack
ββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β User Query + History + State β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Query Transformation β
β (rewrite, decompose, HyDE, step-back) β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Retrieval (BM25 + dense + hybrid + reranker) β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Context Assembly β
β (windowing, hierarchy, lost-in-the-middle) β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Prompt Composition β
β (system + retrieved + user) β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Response Generation β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββ
7.2 RAG Stages
| Stage | Teknik | Trade-off |
|---|---|---|
| Ingestion | Chunker, embedder, metadata extractor | Chunk size vs recall |
| Query transform | Rewrite, query expansion, HyDE | Recall vs latency |
| Retrieval | BM25 / dense / hybrid / multi-vector | Recall vs precision |
| Reranking | Cross-encoder, LLM-based, ColBERT | Latency vs MRR |
| Generation | LLM final answer with context | Context window vs accuracy |
7.3 Chunking Strategies
| Strategy | Chunk Size | Overlap | Recall | Speed |
|---|---|---|---|---|
| Fixed-size | 256-1024 | 0-100 | Sedang | Cepat |
| Recursive splitter | 256-1024 | 0-100 | Bagus | Cepat |
| Semantic | Variable | 0 | Terbaik | Lambat |
| Document-aware | Variable | 0 | Terbaik | Sedang |
7.4 Advanced RAG Patterns
- Self-RAG: Model decide sendiri apakah perlu retrieval
- Corrective RAG (CRAG): Hasil retrieval di-grade, lalu re-retrieve jika buruk
- Agentic RAG: Multi-hop retrieval dengan planning
- GraphRAG: Graph-based retrieval untuk relationship queries
- Multi-modal RAG: Text + image + audio + video dalam satu sistem
Koneksi ke Vault:
- rag-pipeline-end-to-end-guide
- advanced-chunking-strategies-deepdive
- query-transformation-rag
- embedding-model-selection-finetuning
- hierarchy-classical-ml-algorithms β BM25 di sini
- hybrid-search-vector-keyword β Fusion strategy
- hierarchy-binary-quantization-hamming-popcount β Seperti binary caching tapi untuk konteks
- hierarchy-metric-transition-theory β CosineβHamming untuk retrieval
8. Layer 5 β Agentic Layer (Tools, MCP, Multi-Agent)
Memberi model kemampuan untuk bertindak di dunia dengan memanggil tools, multi-step planning, dan kolaborasi multi-agent.
8.1 Tool Use Evolution
| Evolusi | Pattern | Contoh |
|---|---|---|
| 1.0 | ReAct (Reason + Act) | LangChain agents 2022 |
| 2.0 | Tool calling (native) | OpenAI function calling 2023 |
| 3.0 | Structured output | JSON Mode, Pydantic, Zod |
| 4.0 | MCP (Model Context Protocol) | Anthropic/KhΓΊc 2024 |
| 5.0 | Multi-agent collaboration | AutoGen, CrewAI 2024 |
| 6.0 | Autonomous coding | Claude Code, Codex, Devin |
| 7.0 | Persistent memory + Skills | Hermes agents 2025-26 |
8.2 MCP Architecture
ββββββββββββββββ protocol ββββββββββββββββ calls ββββββββββββββ
β LLM Host β ββJSON-RPCβββ MCP Server β βββββββ β External β
β (Claude Code)β β (Filesystem) β β Service β
β β β β β β
β Tools: list β β Tools: read β β β
β Resources: β β Resources: β β β
β list β β list β β β
β Prompts: β β Prompts: β β β
β list β β templates β β β
ββββββββββββββββ ββββββββββββββββ ββββββββββββββ
Three primitives:
- Tools β model-controlled actions
- Resources β application-controlled context
- Prompts β user-controlled templates
8.3 Multi-Agent Patterns
| Pattern | Agen | Use Case |
|---|---|---|
| Supervisor-Worker | 1 supervisor + N workers | Task decomposition |
| Peer-to-Peer | NεΉ³ηη agen | Debate, voting |
| Hierarchical | Tree of agents | Complex workflows |
| Blackboard | Shared memory | Specialist collaboration |
| Swarm | Lightweight coordination | Ephemeral tasks |
| Crew | Role-based team | Software dev (CrewAI) |
Koneksi ke Vault:
- agentic-ai-mcp-architecture-deepdive
- ai-comm-protocol-deep-dive
- meta-agent-orchestration
- multi-agent-orchestration-patterns
- autonomous-system-design
- ai-evaluation-framework β Tool hallucination detection
9. Layer 6 β Evaluation & Observability
Bagaimana kita tahu kalau sistem AI kita sesuai spec dan tetap sesuai spec seiring waktu.
9.1 Three-Layer Evaluation
βββββββββββββββββββββββββββββββββββββββ
β Layer C: User Feedback β β Real users (thumbs up/down)
βββββββββββββββββββββββββββββββββββββββ€
β Layer B: Online Metrics β β Production traces (TTFT, tokens, refusal)
βββββββββββββββββββββββββββββββββββββββ€
β Layer A: Offline Evals β β Curated datasets (accuracy, bias, safety)
βββββββββββββββββββββββββββββββββββββββ
9.2 Offline Evaluation Categories
| Kategori | Metrik | Contoh |
|---|---|---|
| Capability | MMLU, GSM8K, HumanEval | General skill |
| Domain | MedQA, LegalBench | Specialist |
| Safety | HarmBench, AdvBench | Adversarial inputs |
| Bias | BBQ, StereoSet | Fairness |
| Reasoning | ARC, BBH | Multi-step |
| Instruction following | IFEval, Multi-IF | Format adherence |
| Retrieval | nDCG@10, Recall@10 | Untuk RAG |
| Agent | Tool accuracy, task success | Tool use |
9.3 Observability Stack
βββββββββββββββββββββββββββββββββββββββ
β Distributed Tracing (OpenTelemetry) β
βββββββββββββββββββββββββββββββββββββββ€
β Token usage & cost analytics β
βββββββββββββββββββββββββββββββββββββββ€
β LLM-as-judge for automated eval β
βββββββββββββββββββββββββββββββββββββββ€
β Drift detection (embedding + output)β
βββββββββββββββββββββββββββββββββββββββ€
β Cost guardrails + rate limiting β
βββββββββββββββββββββββββββββββββββββββ
Koneksi ke Vault:
- ai-evaluation-framework
- rag-evaluation-framework
- rag-data-pipeline-refresh-strategy β Drift response
- test-time-compute-system2 β Reasoning eval at inference
- llm-security-red-teaming-attack-surface-ai-layer β Adversarial eval
10. Layer 7 β Product/UX Surface
Bagaimana AI disajikan ke user akhir β chat box, voice, autonomous action, atau bentuk lainnya.
10.1 UX Patterns
| Pattern | Latency Budget | Use Case | Contoh |
|---|---|---|---|
| Streaming chat | TTFT <500ms | Conversational | ChatGPT, Claude |
| Voice (live) | TTFT <200ms | Spoken conversation | ElevenLabs, Gemini Live |
| Batch async | Tidak real-time | Long document analysis | NotebookLM |
| Agent async | Minutes-hours | Autonomous coding | Devin, Claude Code |
| Inline assist | <100ms | Code completion | Copilot, Cursor |
| Predictive | <50ms | Auto-complete | Smart reply |
| Multi-modal | <1s | Realtime vision/audio | GPT-4o realtime |
10.2 Trust & Safety Surface
Setiap layer harus transparan ke user:
- Citations (Layer 4)
- Confidence display (Layer 6)
- Action preview (Layer 5)
- Reasoning trace (Layer 5 eval)
- Cost display (Layer 3 + 6)
Koneksi ke Vault:
- llm-security-red-teaming-attack-surface-ai-layer
- hallucination-mitigation-grounding
- ai-governance-ethics
11. Timeline 2020-2026 β Bagaimana Kita Sampai di Sini
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Year β Major Milestone β
ββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββ€
β 2020 β GPT-3 (175B) β in-context learning emerges β
β 2021 β Codex, Copilot β coding becomes mainstream β
β 2022 β ChatGPT (RLHF), Stable Diffusion, Whisper β
β β β Layer 5 Architecture stabilizes β
β 2023 β GPT-4, Claude 2, Llama 2 β multimodal, long ctx β
β β β Layer 1-3 production-grade β
β β β RAG becomes default pattern (Layer 4) β
β β β Function calling native (Layer 5 v2) β
β 2024 β Claude 3.5 Sonnet, Llama 3, DeepSeek-V3 β
β β β MCP protocol standardized β
β β β Multi-agent frameworks mature β
β β β QLoRA democratizes Layer 2 β
β β β Continuous batching di vLLM (Layer 3) β
β 2025 β Claude 4, GPT-5, DeepSeek-R1 β reasoning models β
β β β Test-time compute scaling (chain-of-thought) β
β β β Long context >1M tokens β
β β β Agentic coding mainstream β
β β β Reasoning tokens visible (CoT) β
β 2026 β Multi-modal real-time, persistent memory β
β β β Skills marketplace emerging β
β β β Self-improving agents (RL on production) β
β β β MCP 2.0 β federated agent networks β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
12. Trade-off Matrix per Layer
Setiap layer punya trade-off Cost vs Capability vs Latency:
| Layer | Cost Driver | Capability Lever | Latency Lever |
|---|---|---|---|
| 0 | GPU hours Γ $/hour | Model size | Cluster interconnect |
| 1 | Training tokens Γ energy | Architecture innovation | N/A (offline) |
| 2 | Adapter size Γ dataset | Dataset quality | Training compute |
| 3 | GPU-seconds Γ batch size | Model quality | Batching strategy |
| 4 | Embedding + LLM call | Reranker quality | Index structure |
| 5 | Tool calls Γ cost | Planning depth | Max iterations |
| 6 | Eval sampling rate | Eval dataset diversity | Caching strategy |
| 7 | User satisfaction | Surface clarity | Streaming |
Kontradiksi utama:
- Layer 3 (inference cost) β₯ tekanan dari Layer 7 (latency) tapi β konflik dengan Layer 4 (recall)
- Layer 5 (agent capability) β₯ keinginan Layer 7 (autonomy) tapi β konflik dengan Layer 6 (predictability)
- Layer 2 (capability) β₯ keinginan Layer 4 (retrieval quality) tapi β konflik dengan Layer 3 (latency)
13. Cross-Reference ke Vault
Vault QuCrypto sudah punya catatan di masing-masing layer. Daftar berikut memetakan vault notes β layer:
References
- Vaswani et al. βAttention Is All You Need.β NeurIPS 2017.
- Brown et al. βLanguage Models are Few-Shot Learners.β arXiv:2005.14165 (2020).
- Hu et al. βLoRA: Low-Rank Adaptation of Large Language Models.β ICLR 2022.
- Dettmers et al. βQLoRA: Efficient Finetuning of Quantized LLMs.β NeurIPS 2023.
- Ouyang et al. βTraining Language Models to Follow Instructions with Human Feedback.β (2022).
- Rafailov et al. βDirect Preference Optimization.β NeurIPS 2023.
- Kwon et al. βEfficient Memory Management for Large Language Model Serving with PagedAttention.β SOSP 2023.
- Anthropic. βModel Context Protocol Specification.β (2024). https://modelcontextprotocol.io/
- Park et al. βGenerative Agents: Interactive Simulacra of Human Behavior.β UIST 2023.
- Kapoor et al. βAI Evaluations: A Taxonomy of What to Evaluate.β Stanford HAI (2024).
- Anthropic. βClaude 3.7 System Card.β (2025).
- DeepSeek Team. βDeepSeek-R1: Incentivizing Reasoning Capability.β (2025).
- S. Borgeaud et al. βImproving Language Models by Retrieving from Trillions of Tokens.β ICML 2022.
- J. Wei et al. βChain-of-Thought Prompting Elicits Reasoning in Large Language Models.β NeurIPS 2022.
- Patrick Lewis et al. βRetrieval-Augmented Generation for Knowledge-Intensive NLP Tasks.β NeurIPS 2020.