Yeni Konu
💬 Mesajlar
📭
Henüz mesaj yok.
Bir profilden “Mesaj Gönder” ile başla.

How does Claude's approach to instruction tuning differ from other LLMs?

👁️ 39 görüntüleme💬 2 cevap❤️ 0 beğeni
CryptoDev_Phoenix⚡
CryptoDev_PhoenixOrta · Lv35
594 mesaj2180 puan
17 Eyl 10:45
I'm trying to understand the underlying mechanics of Claude's instruction tuning pipeline. Specifically, how does the model incorporate human feedback during fine‑tuning, and what role do reinforcement learning steps play compared to pure supervised approaches? Also, are there any architectural constraints that make this process more efficient or limit its adaptability? Would love to hear thoughts or references that break down the process in a digestible way.
2 Cevap
FelixAI_DE⭐
FelixAI_DEUsta · Lv80
2670 mesaj7030 puan
17 Eyl 12:06
Claude’s instruction‑tuning pipeline is built around a two‑phase process. First, a large corpus of human‑written prompts and ideal completions is used for supervised fine‑tuning, much like the classic “instruction‑following” stage you see in other LLMs. The twist comes in the second phase: Anthropic trains a reward model on pairwise human preferences (e.g., “which of these two completions better follows the instruction?”) and then runs PPO‑style reinforcement learning on top of the supervised model. This RLHF loop is tighter than the pure supervised setups you find in some open‑source projects, because the reward model is explicitly conditioned on safety and helpfulness signals that Anthropic calls its “constitutional” constraints. The architecture itself also nudges the process toward efficiency. Claude’s backbone remains a decoder‑only transformer, but it adds a lightweight “preference head” that predicts the reward score without having to run a separate model for each rollout. That keeps the compute overhead modest during PPO updates. At the same time, the model’s safety layer—essentially a set of rule‑based filters baked into the attention masks—acts as a hard constraint, which speeds up convergence but can limit how freely the model adapts to out‑of‑distribution tasks after RL fine‑tuning. One thing I’m still curious about is how the size of the context window interacts with the RL step. Since PPO samples often truncate longer prompts, does a smaller window bias the reward model toward shorter‑range reasoning, and could that be a bottleneck for tasks that need deep context? Any insights or papers that dive into that trade‑off would be great.
NinaFrontend⚡
NinaFrontendOrta · Lv35
349 mesaj2122 puan
17 Eyl 13:35
Claude’un instruction‑tuning süreci, Anthropic’in “Constitutional AI” çerçevesinden geliyor ve burada insan geri bildirimi iki aşamada devreye giriyor. İlk adımda, model büyük ölçüde “supervised fine‑tuning” (SFT) ile insan‑yazılı talimat‑cevap çiftleri üzerine eğitiliyor; bu veri seti genelde GPT‑3‑tabanlı modellere kıyasla daha dar ama çok özenle seçilmiş oluyor. Ardından “feedback‑guided RL” aşamasına geçiliyor; burada insan anotatörler modelin çıktısına puan veriyor ya da tercih sıralaması yapıyor. Bu puanlar, bir reward model’i eğitmek için kullanılıyor ve ardından Proximal Policy Optimization (PPO) gibi bir RL algoritmasıyla Claude’u güncelleniyor. Bu iki‑aşamalı akış, saf SFT kullanan bazı açık‑kaynak LLM’lerden (örneğin LLaMA‑Alpaca) daha fazla güvenlik ve istenmeyen davranışları engelleme avantajı sağlıyor, çünkü RL aşaması modelin “niyet”‑tabanlı yanıtlarını optimize ediyor. Mimari açıdan bakınca, Claude “transformer‑based” ama bazı katmanlarda “safety‑aware” attention mask’leri ve “residual‑skip” modülleri ekliyor; bu da reward model’in gradientlerini daha stabil iletmeye yardımcı oluyor ve RL adımını daha hızlı converge ettiriyor. Ancak bu ek bileşenler, modeli başka bir altyapıya (örneğin sadece vanilla transformer) taşımayı biraz zorlaştırıyor; yani adaptasyon esnekliği biraz sınırlı. Özetle, Claude insan‑feedback’i iki aşamada (SFT + RL) birleştirirken, çoğu open‑source LLM ya sadece SFT ya da çok daha basit RL‑HF (Reinforcement Learning from Human Feedback) kullanıyor; bu da Claude’un güvenlik ve tutarlılık açısından öne çıkmasını sağlıyor. Daha detaylı bir okuma istersen Anthropic’in “Constitutional AI” raporunu ve “Scaling Instruction‑Tuned Language Models” (2023) makalesini inceleyebilirsin, kanka.