{"atlas":{"skills":[{"id":"reinforcement-learning","name":"Reinforcement Learning","category":"Reinforcement & Sequential Decision-Making","subcategory":null,"section_id":"classical-machine-learning-modeling","section_name":"Classical Machine Learning & Modeling","description":"Reinforcement learning learns an action policy from rewards obtained through interaction with an environment. Actions can affect future states as well as immediate outcomes. The skill includes defining the environment and reward, choosing a learning method and evaluating a policy's behavior under uncertainty, constraints and possible reward exploitation.","type":"concept","editorial":{"definition":"An agent observes a state or observation, chooses an action and receives a reward and subsequent observation. A policy specifies action selection; value functions estimate future return. Methods can learn values, optimize policy parameters or use a model of environment dynamics. Discounting and the planning horizon determine how future rewards contribute to the objective. Exploration is needed to learn about actions, while sequential credit assignment determines which earlier decisions contributed to later outcomes. Unlike a simple bandit, reinforcement learning typically models how actions change future situations. A reward is a mathematical proxy for the goal, not proof that the learned behavior achieves the desired outcome.","practice":"Specify observations, actions, episode boundaries and reward components, then check what the agent can actually observe. Choose an algorithm appropriate to discrete or continuous actions and available interaction data. Establish heuristic baselines, monitor learning stability and evaluate policies across seeds and environment conditions. Inspect trajectories for unsafe shortcuts or reward exploitation. The output is a policy plus evidence of its behavior, including how evaluation differs from training and what constraints prevent harmful exploration or untested actions in the deployment setting.","example":"In an illustrative warehouse simulation, an agent selects which queue a mobile robot serves next. Serving one queue changes the robot's position and the waiting times elsewhere, so immediate reward is insufficient. The engineer includes travel and delay costs, compares the learned policy with a fixed scheduling rule and examines trajectories during peak demand. If the agent ignores difficult jobs to earn easy rewards, the reward and constraints need revision before any operational trial.","limits":"Sample requirements can be substantial, and simulation success may not transfer when real dynamics differ. Reward design can encourage behavior that satisfies the score while undermining the intended goal. Offline data may not support evaluation of actions rarely taken by the logging policy. Partial observability and changing environments complicate learning. Reinforcement learning is distinct from supervised imitation and from contextual bandits; those methods may be sufficient when long-term effects are absent or cannot be safely explored.","sources":[{"title":"Dive into Deep Learning: Reinforcement Learning","url":"https://d2l.ai/chapter_reinforcement-learning/index.html","note":"Markov decision processes, value functions and Q-learning."}],"updatedAt":"2026-10-10"}},{"id":"direct-preference-optimization","name":"Direct Preference Optimization","category":"Alignment","subcategory":null,"section_id":"model-training-fine-tuning-alignment","section_name":"Model Training, Fine-Tuning & Alignment","description":"Direct Preference Optimization trains a language model from comparisons between preferred and rejected responses to the same prompt. The skill is constructing meaningful preference pairs and optimizing their relative likelihood against a reference policy, then checking whether the resulting behavior improves on independent tasks and judgments.","type":"concept","editorial":{"definition":"Basic DPO derives a preference loss from a reward maximization objective with a constraint on departure from a reference model. Rather than fitting an explicit scalar reward model and running a separate reinforcement learning loop, it adjusts the policy using the difference between chosen and rejected response log probabilities, normalized by the reference policy. The comparison is conditional on the same prompt. The reference checkpoint and the beta parameter affect the tradeoff represented by the objective. DPO is a specific formulation; KTO, ORPO and other preference methods use different assumptions or losses and should be documented separately.","practice":"Design annotation criteria that distinguish correctness, helpfulness and style, and collect pairs with a clear preference rather than arbitrary winners. Audit prompt equivalence, truncation and chat formatting before computing losses. Split by prompt families and source documents so paraphrases do not leak into evaluation. Record the reference checkpoint, objective, beta and any adapter configuration. Inspect chosen and rejected likelihoods alongside held-out preference accuracy. Evaluate generated responses with separate factuality and capability tests; a larger training margin alone is insufficient evidence of useful alignment.","example":"An illustrative documentation assistant often gives confident answers when a question lacks essential context. Reviewers compare a guessed answer with a concise clarification request for each ambiguous prompt. The team trains DPO on those comparisons and tests new product areas whose documents were excluded from training. Reviewers then inspect whether the assistant asks an appropriate question when needed while still answering complete requests, because indiscriminate clarification would be a regression.","limits":"Preference labels can reward verbosity, familiarity or annotator bias rather than the intended behavior. Offline comparisons may poorly cover responses that the updated model later generates. Training can suppress rejected answers without improving the absolute quality of chosen ones. Reference regularization does not guarantee truthfulness or broad safety. Check length effects, preference disagreements and capability regressions, and report the precise loss rather than using DPO as a label for every direct preference method.","sources":[{"title":"Direct Preference Optimization: Your Language Model is Secretly a Reward Model","url":"https://arxiv.org/abs/2305.18290","note":"Original derivation of the reference-normalized preference objective and distinction from explicit reward modeling."},{"title":"Hugging Face TRL: DPO Trainer","url":"https://huggingface.co/docs/trl/en/dpo_trainer","note":"Preference dataset formats, reference model configuration, loss variants and diagnostic metrics."}],"updatedAt":"2026-10-10"}},{"id":"rlhf","name":"RLHF","category":"Alignment","subcategory":null,"section_id":"model-training-fine-tuning-alignment","section_name":"Model Training, Fine-Tuning & Alignment","description":"Reinforcement Learning from Human Feedback uses human judgments to shape a model's behavior through a learned reward signal. Practitioners design comparisons, train and test the reward model, and optimize a policy while controlling unwanted drift. The competence includes evaluating behavior independently of the score that training maximizes.","type":"concept","editorial":{"definition":"In a common language model pipeline, supervised demonstrations first establish useful response behavior. Annotators then compare candidate answers, and a reward model learns to assign scores that reflect those comparisons. A reinforcement learning algorithm updates the generating policy to obtain higher predicted reward, often with a penalty for divergence from a reference policy. PPO is one possible optimizer, rather than part of the definition. The broader method also applies to nonlanguage policies whose trajectories people evaluate. Human feedback expresses preferences under a particular rubric and sampling process; it does not directly reveal a universal or complete reward function.","practice":"Specify who supplies feedback and what tradeoffs the rubric asks them to make. Sample prompts and candidate answers that expose meaningful failures, preserve annotation disagreements and reserve comparisons for reward model validation. Monitor policy reward, divergence, response length and optimization stability, with a stopping rule based on independent evaluation. Hold out related conversations and tasks as groups. The useful result is a documented behavior change supported by fresh human comparisons and task checks, including cases where optimizing the learned reward harms another requirement.","example":"For an illustrative summarization assistant, reviewers prefer summaries that preserve an important caveat while omitting repetitive background. Their comparisons train a reward model. During policy optimization, the developer notices that highly scored summaries become longer, so a separate evaluation asks readers whether each summary covers the caveat within the requested length. The team selects a checkpoint using those judgments and source fidelity, rather than selecting the run with the highest reward.","limits":"A policy can exploit weaknesses in its reward model, and preference agreement on familiar examples may not transfer to new topics. Annotator population, instructions and candidate sampling all influence what is learned. Reward scores from different training runs are not automatically comparable. RLHF can improve measured preferences while leaving factual errors or competing objectives unresolved. Direct preference optimization and verifiable rewards are neighboring approaches with different learning signals, and should not be silently treated as the same pipeline.","sources":[{"title":"Deep reinforcement learning from human preferences","url":"https://arxiv.org/abs/1706.03741","note":"Preference comparisons as a learned reinforcement learning reward for policy training."},{"title":"Training language models to follow instructions with human feedback","url":"https://arxiv.org/abs/2203.02155","note":"Language model demonstration, ranking, reward modeling and policy optimization pipeline."}],"updatedAt":"2026-10-10"}},{"id":"reinforcement-learning-from-verifiable-rewards","name":"Reinforcement Learning from Verifiable Rewards","category":"Alignment","subcategory":null,"section_id":"model-training-fine-tuning-alignment","section_name":"Model Training, Fine-Tuning & Alignment","description":"Reinforcement Learning from Verifiable Rewards improves a generating policy using outcomes that a program can check, such as a correct mathematical answer or passing tests. The skill is designing reliable verifiers and a useful task distribution, then determining whether optimization teaches transferable problem solving or merely exploits the checks.","type":"concept","editorial":{"definition":"The model samples completions for tasks whose results can be evaluated without a learned human preference model. A verifier returns a reward based on properties such as answer equivalence, executable tests or valid output structure. Policy optimization increases the probability of rewarded completions; different reinforcement learning algorithms can perform this update. Outcome verification checks the final result and does not necessarily establish that an explanation is sound. Format rewards may supplement correctness rewards but represent a separate objective. The approach is most natural when evaluation is inexpensive, reproducible and difficult for the model to game, though these conditions need testing.","practice":"Build and version the verifier before scaling policy training. Inspect parsing, numerical tolerances, test coverage, timeouts and adversarial outputs that might receive credit incorrectly. Separate problem generators, templates and solutions across training and evaluation. Sample tasks at a difficulty that produces informative variation rather than uniformly zero or maximum reward. Track reward distributions and evaluate on independently checked problems. The deliverable includes a trained policy, a reproducible verification harness and evidence distinguishing actual task success from improvements caused by formatting or a weak checker.","example":"An illustrative coding exercise asks a model to implement a parser. The reward comes from unit tests in a sandbox. A developer adds cases for malformed input and verifies that a solution cannot read expected outputs from the harness. Training tasks and held-out parser specifications use different generators. The resulting policy is assessed on hidden tests and inspected for clear failure handling, because passing the training suite does not prove that it implements the specification.","limits":"Verification can be incomplete: tests miss behaviors, answer parsers accept ambiguous strings and numerical comparisons mishandle units. Sparse rewards make exploration difficult, while permissive checks invite shortcuts. Success on automatically checkable tasks does not establish quality on subjective assistance or open-ended factual claims. Correct answers also need not imply faithful reasoning traces. Treat verifier reliability and independent task accuracy as separate quality measures, and reassess them when the policy discovers new output strategies.","sources":[{"title":"DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning","url":"https://arxiv.org/abs/2501.12948","note":"Rule-based correctness and format rewards in reasoning-oriented reinforcement learning."},{"title":"Hugging Face TRL: GRPO Trainer","url":"https://huggingface.co/docs/trl/en/grpo_trainer","note":"Custom reward functions, generated completion groups and policy training diagnostics."}],"updatedAt":"2026-10-10"}},{"id":"reward-modeling","name":"Reward Modeling","category":"Alignment","subcategory":null,"section_id":"model-training-fine-tuning-alignment","section_name":"Model Training, Fine-Tuning & Alignment","description":"Reward modeling learns a scoring function from judgments about the quality of model outputs or actions. The competence is turning a defensible evaluation rubric into training data and a calibrated comparison model, then testing how reliably that proxy behaves on candidates outside the examples used to fit it.","type":"concept","editorial":{"definition":"A reward model takes a prompt and candidate response, or a state and trajectory, and produces a scalar or structured assessment. In pairwise language model setups, its parameters are trained so a preferred response receives a higher score than a rejected response. Other formulations use ratings, rankings or process-level judgments. Scores summarize learned preferences rather than objective correctness unless the data specifically supports that interpretation. A reward model may select candidates, evaluate experiments or supply a reinforcement learning objective. These uses expose it to different distributions, particularly when a policy actively searches for outputs that maximize its score.","practice":"Write a rubric, choose label granularity and gather comparisons with varied quality gaps. Check inter-annotator agreement and audit whether response length or formatting predicts the labels. Split related prompts and candidate sources together to avoid leakage. Evaluate pairwise accuracy and disagreement by task and response style; inspect score changes on controlled perturbations. Test generated candidates from policies that differ from the training generator. The result is a versioned scorer with a defined validity range and explicit evidence about its errors, suitable for a particular decision rather than an unrestricted quality oracle.","example":"An illustrative answer-selection system produces several explanations of a technical concept. Reviewers label pairs for factual accuracy and clarity. The fitted reward model chooses a candidate, but a challenge set adds polished answers containing a subtle false claim. The developer compares its rankings with fresh expert judgments and inspects whether the scorer values polish over correctness. Those findings determine whether it can automate selection or should only flag candidates for review.","limits":"High held-out comparison accuracy can hide systematic bias on rare but consequential cases. Scalar rewards collapse competing objectives, and their scale is usually meaningful only within the model's training setup. Optimization can amplify weaknesses that ordinary evaluation never encounters. A learned reward is distinct from a deterministic verifier and from direct policy preference losses. Validate under the intended selection or training pressure, preserve independent evaluators and avoid interpreting a high score as a probability that an answer is true.","sources":[{"title":"Hugging Face TRL: Reward Modeling","url":"https://huggingface.co/docs/trl/en/reward_trainer","note":"Pairwise reward datasets, trainer behavior and reward diagnostics."},{"title":"Training language models to follow instructions with human feedback","url":"https://arxiv.org/abs/2203.02155","note":"Role of learned preference rewards and limitations of optimizing the proxy."}],"updatedAt":"2026-10-10"}},{"id":"catastrophic-forgetting","name":"Catastrophic Forgetting","category":"Fine-Tuning & PEFT","subcategory":null,"section_id":"model-training-fine-tuning-alignment","section_name":"Model Training, Fine-Tuning & Alignment","description":"Catastrophic forgetting is a sharp loss of previously learned capability when a model trains on new data or tasks. The skill is recognizing interference, measuring retained competence and choosing adaptation methods that balance learning the new requirement with preserving behaviors that remain important to the application.","type":"concept","editorial":{"definition":"Neural network parameters are shared across tasks, so updates that reduce a new task's loss can disrupt representations or decision boundaries needed for earlier tasks. This differs from a change in the evaluation population: forgetting compares capability on the same earlier requirement before and after adaptation. Mitigation families include replaying old examples, constraining changes to important parameters, separating task-specific components and balancing data mixtures. Elastic Weight Consolidation illustrates regularization based on parameter importance. No single mechanism defines all forgetting, and the acceptable balance depends on whether older tasks, domains, languages or safety behaviors must still be supported.","practice":"Establish a baseline on old and new tasks before sequential training. Keep representative retention sets separate from replay data, and track performance after each adaptation stage. Compare targeted replay, smaller updates, regularization and isolated adapters when they fit the model. Group evaluation examples by original source to prevent a remembered template from overstating retention. Report the new capability gain alongside losses elsewhere. A useful deliverable is an adaptation strategy and checkpoint selection rule that makes the retention tradeoff explicit, with rollback criteria for critical behaviors.","example":"An illustrative multilingual classifier is adapted to specialist English support tickets. The developer measures its original French and Polish tasks after each training stage. New-ticket accuracy improves while earlier language performance declines. They compare a mixed-language replay set with an isolated specialist adapter and evaluate both on untouched tickets from each language. The selected approach supports the new domain while meeting the project's minimum retained capability, rather than optimizing English performance alone.","limits":"Replay requires access to suitable older data and may preserve its biases. Importance estimates and parameter constraints are approximations, while separate adapters add routing and maintenance decisions. Retention tests can overlook rare skills or reward superficial similarity to old answers. Domain shift and forgetting can coexist, so diagnose them separately. Forgetting is a measured failure mode, not a guarantee that any particular fine-tuning recipe will fail; verify before and after behavior under the same evaluation protocol.","sources":[{"title":"Overcoming catastrophic forgetting in neural networks","url":"https://arxiv.org/abs/1612.00796","note":"Sequential task interference and parameter-importance regularization as one mitigation."},{"title":"Don’t Stop Pretraining: Adapt Language Models to Domains and Tasks","url":"https://arxiv.org/abs/2004.10964","note":"Domain adaptation context for distinguishing new-domain gains from retention requirements."}],"updatedAt":"2026-10-10"}},{"id":"fine-tuning-evaluation","name":"Fine-Tuning Evaluation","category":"Fine-Tuning & PEFT","subcategory":null,"section_id":"model-training-fine-tuning-alignment","section_name":"Model Training, Fine-Tuning & Alignment","description":"Fine-tuning evaluation determines whether an adapted model improves the intended task while retaining other required behavior. The skill combines clean comparison data, task-specific measurements and inspection of generated failures. It supports checkpoint and release decisions rather than treating a falling training loss as evidence of a successful adaptation.","type":"concept","editorial":{"definition":"Evaluation compares the adapted model with the original checkpoint and meaningful alternatives under controlled inputs and decoding settings. Training loss measures fit to training targets; held-out loss estimates similar-distribution prediction quality; application tests examine whether outputs serve the actual task. These quantities answer different questions. A complete design may assess correctness, format compliance, robustness, retention, latency and resource requirements. Train, development and test sets need boundaries based on the unit that can leak, such as conversation, document, customer or problem family. Human or model-based judgments require explicit rubrics and their own checks for consistency.","practice":"Define acceptance criteria before training and reserve a final test set for the release decision. Deduplicate examples across splits, track dataset versions and inspect whether synthetic training answers reproduce evaluation material. Use the development set for checkpoint selection and tuning, then run the fixed final protocol once decisions are settled. Compare against prompt-only or retrieval baselines where relevant. Break results down by difficult cases and retained tasks, and inspect representative errors. The output should identify the supported improvement and remaining failures with enough detail for another person to reproduce the comparison.","example":"An illustrative model is tuned to extract maintenance fields from notes. The developer holds out complete machines and reporting periods, checks exact field accuracy and measures unsupported values. They compare the tuned model with the base model using a structured prompt. A checkpoint with lower validation loss invents more missing serial numbers, so the release decision favors one that meets field correctness and abstention criteria. The final report includes malformed-note examples and operating cost.","limits":"A benchmark can become a development set through repeated tuning, even when its file remains labeled test. Aggregate scores hide minority languages, long inputs and rare high-impact failures. Automated judges can share biases with the trained model, while reference overlap metrics miss factual errors. Evaluation estimates behavior within its coverage and cannot prove universal reliability. Keep training diagnostics, application acceptance criteria and independent retention tests separate, and disclose when a comparison lacks enough examples for a stable conclusion.","sources":[{"title":"Hugging Face Evaluate","url":"https://huggingface.co/docs/evaluate/en/index","note":"Evaluation modules and reproducible measurement tooling."},{"title":"Hugging Face Transformers: Fine-tuning","url":"https://huggingface.co/docs/transformers/en/training","note":"Training, evaluation datasets and checkpoint configuration in model adaptation."}],"updatedAt":"2026-10-10"}},{"id":"hugging-face-peft","name":"Hugging Face PEFT","category":"Fine-Tuning & PEFT","subcategory":null,"section_id":"model-training-fine-tuning-alignment","section_name":"Model Training, Fine-Tuning & Alignment","description":"Hugging Face PEFT is a library for adapting pretrained models while training a selected subset of parameters or added components. The competence is choosing a suitable adaptation method, configuring its target modules and saving a reproducible adapter that can be loaded with the correct base model and processing setup.","type":"tool","editorial":{"definition":"Parameter-efficient fine-tuning reduces the number of trainable parameters compared with updating an entire model. PEFT provides implementations and interfaces for methods such as low-rank adapters and prompt-based tuning. Their mechanisms differ: an adapter can modify internal transformations, while learned prompt parameters affect the model through its input representation. A saved adapter typically contains adaptation weights and configuration rather than a complete independent model. Its behavior therefore depends on the base checkpoint, task head, tokenizer or processor and supported architecture. Parameter efficiency describes what is trained, and is separate from weight quantization or the choice of training objective.","practice":"Select a method based on task requirements, architecture support and the memory available for training and deployment. Inspect module names, verify which parameters are trainable and test forward behavior before a long run. Preserve base revision, adapter configuration, processing artifacts and any additional saved modules. Evaluate against the unadapted model and a modest full-tuning baseline when feasible. Load the saved adapter in a fresh process and test representative inputs. The result should be a portable adaptation package with an explicit base dependency and evidence that its deployment behavior matches the evaluated training checkpoint.","example":"For an illustrative classifier, an engineer applies low-rank adapters to an encoder and saves the updated classification head with them. A clean loading test initially gives inconsistent labels because the head was omitted. After fixing the packaging configuration, the developer loads the same base revision and adapter and reproduces held-out predictions. They document the modules being adapted so a later checkpoint with different internal names does not silently receive an incompatible configuration.","limits":"A small adapter file does not imply negligible total inference memory because the base model is still required. Method and architecture support vary, and some combinations with quantization or merging have constraints. Too few trainable parameters can restrict adaptation, while excessive rank can weaken the expected savings. Adapters can still overfit or alter important behavior. Check packaging and version compatibility, and evaluate the complete loaded system rather than relying on a trainable-parameter count as a quality measure.","sources":[{"title":"Hugging Face PEFT","url":"https://huggingface.co/docs/peft/en/index","note":"Library purpose, parameter-efficient method families and adapter integration."},{"title":"LoRA: Low-Rank Adaptation of Large Language Models","url":"https://arxiv.org/abs/2106.09685","note":"Mechanism of a supported low-rank adaptation method."}],"updatedAt":"2026-10-10"}},{"id":"hugging-face-trl","name":"Hugging Face TRL","category":"Fine-Tuning & PEFT","subcategory":null,"section_id":"model-training-fine-tuning-alignment","section_name":"Model Training, Fine-Tuning & Alignment","description":"Hugging Face TRL provides training components for supervised and preference-based language model post-training. The skill is matching a trainer to the intended learning signal, formatting data correctly and interpreting its diagnostics. Library familiarity includes understanding the objective and integration constraints behind a short training script.","type":"tool","editorial":{"definition":"TRL offers trainers for distinct post-training procedures, including supervised fine-tuning, direct preference optimization, reward modeling and group-relative policy optimization. Each expects a particular dataset structure and applies a particular loss or reward pipeline. Conversational records may require a model-specific chat template, and generated policy training also involves sampling settings and reward functions. TRL can integrate with model and adapter tooling, but those integrations do not make every combination valid. The library is an implementation layer: selecting a trainer does not resolve the scientific choice of objective, the meaning of labels or the evaluation needed for an application.","practice":"Read the selected trainer's expected data format, configuration and logged metrics for the installed version. Validate a small batch, inspect rendered conversations and check which tokens contribute to the loss. For preference training, audit chosen and rejected pairs; for reinforcement learning, test reward functions independently. Pin versions and model revisions, record effective batch and generation settings, and keep evaluation data independent of trainer examples. Reproduce saving and loading before scaling. The useful output is a documented post-training experiment whose data, objective and artifact behavior can be inspected beyond whether the trainer completed.","example":"An illustrative team wants an assistant to prefer accurate concise answers. Their dataset contains prompt, preferred answer and rejected answer records, so they select DPOTrainer rather than SFTTrainer. A small debug run reveals that long prompts remove the key distinction during truncation. After changing data handling, they evaluate fresh generated answers with a separate rubric. The run report names the DPO loss and reference policy so another engineer can interpret the result.","limits":"Trainer defaults and supported integrations change across versions. Similar-looking constructor calls can implement materially different objectives, and training metrics can be misread as application success. Incorrect templates, masking or truncation can invalidate otherwise well-formed data. Resource-intensive generation and reference models also affect feasibility. Verify the exact documented trainer behavior, and avoid treating TRL as a single alignment algorithm or assuming that supported code paths automatically yield reliable, safe or useful model behavior.","sources":[{"title":"Hugging Face TRL","url":"https://huggingface.co/docs/trl/en/index","note":"Library scope and available post-training components."},{"title":"Hugging Face TRL: Dataset formats","url":"https://huggingface.co/docs/trl/en/dataset_formats","note":"Data representations and their relationship to training procedures."}],"updatedAt":"2026-10-10"}},{"id":"llm-fine-tuning","name":"LLM Fine-Tuning","category":"Fine-Tuning & PEFT","subcategory":null,"section_id":"model-training-fine-tuning-alignment","section_name":"Model Training, Fine-Tuning & Alignment","description":"LLM fine-tuning adapts a pretrained language model by updating its parameters on data chosen for a task, domain or behavior. The skill is defining an objective that benefits from training, preparing compatible examples and evaluating the complete adapted artifact against the base model and simpler alternatives.","type":"concept","editorial":{"definition":"Fine-tuning starts from learned weights rather than training a model from random initialization. Updates may involve the full network, a task head or parameter-efficient components. The objective can predict task labels, imitate target responses, continue language modeling or optimize preferences; these choices imply different data and behavior. The tokenizer, context construction and output format remain part of the model's input contract. Fine-tuning primarily changes learned behavior and representations. It is not a dependable mechanism for inserting frequently changing facts or retrieving authoritative records, and does not replace a retrieval layer when answers require current source evidence.","practice":"Identify the observed failure and compare training with improved prompts, retrieval or deterministic processing. Select a licensed base checkpoint, curate examples that express the target behavior and preserve provenance. Split related documents or conversations together, inspect templates and masking, and choose full or partial parameter updates within resource limits. Monitor held-out task quality and retained capabilities while selecting checkpoints. Package tokenizer, configuration and adaptation weights together and test a fresh load. The result is an evaluated artifact and an explanation of the specific improvement that justifies the additional training and maintenance.","example":"An illustrative team repeatedly converts free-form equipment notes into a stable schema. They train a language model on reviewed note-to-record examples, including missing and contradictory fields. Entire equipment groups are held out. Evaluation compares the tuned model with a strong structured prompt, checking valid output, field accuracy and unsupported values. The final package includes the exact template and schema, because using a different prompt after deployment can change the behavior being assessed.","limits":"Poor demonstrations teach their errors, and small datasets can encourage memorization rather than generalization. Adaptation can reduce language coverage or other previously useful capabilities. A model may reproduce sensitive training material, so data selection and evaluation must account for that possibility. Lower loss does not establish factuality or format reliability. Distinguish broad fine-tuning from instruction tuning, continued pretraining and preference optimization, and document the actual objective instead of presenting them as interchangeable recipes.","sources":[{"title":"Hugging Face Transformers: Fine-tuning","url":"https://huggingface.co/docs/transformers/en/training","note":"Adaptation from pretrained weights, data preparation and training configuration."},{"title":"Hugging Face PEFT","url":"https://huggingface.co/docs/peft/en/index","note":"Alternative to full-parameter updating through selected adaptation parameters."}],"updatedAt":"2026-10-10"}},{"id":"supervised-fine-tuning-sft","name":"Supervised Fine-Tuning (SFT)","category":"Fine-Tuning & PEFT","subcategory":null,"section_id":"model-training-fine-tuning-alignment","section_name":"Model Training, Fine-Tuning & Alignment","description":"Supervised fine-tuning adapts a pretrained model using examples of the desired prediction or response. Practitioners choose targets, control which outputs contribute to the loss and check whether imitation generalizes to unseen inputs. Instruction-response training is one application of SFT, alongside classification, extraction and other labeled tasks.","type":"concept","editorial":{"definition":"Supervision supplies target outputs rather than only a preference between candidates or a reward for sampled actions. For an autoregressive language model, a common objective minimizes the negative log likelihood of target tokens given the context. Depending on the task, loss may cover a full text sequence, a completion or selected assistant turns. Other pretrained architectures use supervised task losses such as classification. Teacher forcing trains on reference prefixes, whereas deployment generates its own prefixes. SFT therefore teaches patterns represented by demonstrations, with behavior determined by their correctness, coverage and the loss assigned to different parts of each example.","practice":"Define the input-output contract and obtain reviewed targets that match it. Include realistic ambiguous and missing-input cases rather than only ideal answers. Inspect token-level masking, padding, packing and truncation to confirm that the intended target survives preprocessing. Split by underlying source or task family, reserve untouched evaluation examples and monitor overfitting. Measure task success on generated or predicted outputs, with format and factuality checks when appropriate. The deliverable is a model that reproduces the required behavior on unseen cases, accompanied by the exact target construction and loss configuration.","example":"An illustrative extraction model receives a note and must output a JSON object. The training record includes both the prompt and correct object, but the loss is applied to the object tokens. The developer checks examples where a field is absent and expects a null value. Evaluation uses notes from unseen reports and measures field correctness as well as parse validity. This is supervised fine-tuning even though the goal is a narrow extraction task.","limits":"The model can learn an answer's style without learning its correctness, and frequently occurring targets may dominate rarer requirements. Teacher forcing does not expose every error chain that occurs during generation. Incorrect masking can spend capacity predicting prompts, while truncation can remove the supervised answer. SFT does not directly express comparative preferences or guarantee safe behavior. Instruction tuning is a particular data and task formulation within the broader supervised adaptation approach, rather than a synonym for every SFT run.","sources":[{"title":"Hugging Face TRL: SFT Trainer","url":"https://huggingface.co/docs/trl/en/sft_trainer","note":"Supervised data formats, loss masking, packing and training configuration."},{"title":"Hugging Face Transformers: Fine-tuning","url":"https://huggingface.co/docs/transformers/en/training","note":"General pretrained-model adaptation and supervised training context."}],"updatedAt":"2026-10-10"}},{"id":"model-merging","name":"Model Merging","category":"Model Adaptation, Merging & Compression","subcategory":null,"section_id":"model-training-fine-tuning-alignment","section_name":"Model Training, Fine-Tuning & Alignment","description":"Model merging combines compatible model weights or task updates into a single artifact. The competence is identifying which components can meaningfully be combined, choosing a merge rule and testing the resulting capabilities and interference. A merged checkpoint needs its own evaluation rather than inheriting the strengths claimed for its inputs.","type":"concept","editorial":{"definition":"Merging differs from an ensemble because inference ordinarily uses one combined parameter set instead of consulting multiple models. Simple averaging interpolates weights; task-vector approaches combine differences from a shared base; other methods address redundant updates or conflicting signs. Compatibility involves architecture, parameter shapes, tokenizers and the relationship between training histories. A common base can make task updates more interpretable, but does not eliminate interference. TIES-Merging illustrates trimming small updates and resolving sign conflicts before combination. Merging can also apply to adapters, subject to the constraints of their representation and loading or conversion path.","practice":"Inspect architecture, licenses, base revisions and processing artifacts before selecting inputs. Choose the merge rule and coefficients on development tasks that represent all intended capabilities. Preserve separate final tests and compare the merged artifact with its base and each source model. Check language coverage, output formatting and regressions rather than using one aggregate score. Record the merge specification and reproduce it from pinned input checkpoints. The deliverable is a loadable model plus evidence of which capabilities survived, which changed and whether one merged artifact actually fits the deployment requirement.","example":"An illustrative project has two adapters from the same base: one for structured reports and one for domain terminology. The engineer compares a simple weighted combination with a method designed to reduce update interference. Held-out tasks include both report formatting and terminology interpretation. The merged model preserves specialized vocabulary but occasionally breaks the report schema, so the developer adjusts the selection criterion and evaluates fresh reports before treating the artifact as suitable for both roles.","limits":"Weights from unrelated architectures cannot be averaged meaningfully just because they serve similar tasks. Even compatible checkpoints may encode conflicting updates, and special-token differences can invalidate a merge. A merge can lose capability or amplify unwanted behavior without an obvious loading error. It does not create an inference ensemble's independent votes or a distillation student's learning process. Validate the complete output artifact and retain provenance of every input, since a compact merge recipe alone does not establish reproducible behavior.","sources":[{"title":"TIES-Merging: Resolving Interference When Merging Models","url":"https://arxiv.org/abs/2306.01708","note":"Task-update interference, trimming and sign-resolution merge mechanism."},{"title":"mergekit","url":"https://github.com/arcee-ai/mergekit","note":"Maintained model-merging implementation, supported merge specifications and artifact workflow."}],"updatedAt":"2026-10-10"}},{"id":"knowledge-distillation","name":"Knowledge Distillation","category":"Model Adaptation, Merging & Compression","subcategory":null,"section_id":"model-training-fine-tuning-alignment","section_name":"Model Training, Fine-Tuning & Alignment","description":"Knowledge distillation trains a student model to reproduce useful behavior or predictions from a teacher. Practitioners choose what information to transfer, which inputs expose it and how to measure the student's retained quality. The goal may be a smaller deployable model, a different architecture or a specialized policy.","type":"concept","editorial":{"definition":"A teacher can provide probability distributions, intermediate representations or generated target responses. In classic classification distillation, softened class probabilities reveal relationships between alternatives that a single hard label omits. Temperature controls the softness of those distributions, and the student may combine a teacher-matching loss with ordinary labeled supervision. For language models, sequence-level distillation can train on teacher-generated answers, while token-level methods compare predictive distributions. These are different transfer mechanisms. The student learns through training on sampled inputs; it does not receive a literal compressed copy of every teacher parameter or necessarily inherit all of the teacher's capabilities.","practice":"Define the deployment constraint and choose a student capable of the required inputs and outputs. Build a transfer set that covers difficult cases, verify teacher targets and keep the final evaluation independent of both target generation and student tuning. Select the matching objective and any mixture with trusted labels. Evaluate the student against the teacher and a student trained without distillation, measuring task quality, latency and memory in the actual runtime. Preserve teacher provenance and generation settings. The result should identify the capabilities transferred successfully and the cases where the smaller model still needs escalation.","example":"An illustrative helpdesk classifier must run locally with limited memory. A larger teacher supplies class distributions for reviewed and unlabeled tickets. The student trains on these distributions plus trusted labels. Evaluation groups tickets by conversation and includes rare request types. The engineer finds that broad categories transfer well but subtle billing distinctions do not, and adds targeted labeled examples. Deployment testing checks the student's actual runtime rather than inferring speed from its parameter count.","limits":"Distillation transfers teacher mistakes and depends heavily on the input distribution. A student with insufficient capacity may imitate surface patterns while losing nuanced behavior. Synthetic outputs can introduce unsupported claims, and evaluating on teacher-generated references can favor imitation over correctness. Access to teacher probabilities, usage permissions and model interfaces can constrain the method. Distillation differs from quantization and weight merging because it learns a new model; compare quality and operating cost after that learning process, not merely model size.","sources":[{"title":"Distilling the Knowledge in a Neural Network","url":"https://arxiv.org/abs/1503.02531","note":"Soft targets, temperature and teacher-to-student training formulation."},{"title":"Hugging Face TRL: Distillation Trainer","url":"https://huggingface.co/docs/trl/en/distillation_trainer","note":"Implementation context for language model distillation objectives."}],"updatedAt":"2026-10-10"}},{"id":"model-quantization","name":"Model Quantization","category":"Model Adaptation, Merging & Compression","subcategory":null,"section_id":"model-training-fine-tuning-alignment","section_name":"Model Training, Fine-Tuning & Alignment","description":"Model quantization represents model quantities with fewer bits to reduce storage or computation requirements. The skill is choosing a numerical format and supported execution path, calibrating where necessary and measuring the resulting quality and resource tradeoff. A smaller weight file alone does not establish faster or reliable inference.","type":"concept","editorial":{"definition":"Quantization maps values from a higher-precision representation to a more limited set using scales, offsets or other encoding parameters. A scheme may quantize weights, activations or both, with parameters shared across a tensor, channel or group. Post-training quantization converts an existing model, sometimes using representative calibration data; quantization-aware training incorporates the effect during optimization. Algorithms differ in how they control approximation error and handle unusually large values. Low-bit storage also requires compatible kernels or dequantization during execution. Quantization changes numerical representation and is distinct from LoRA, which changes the set of trainable adaptation parameters.","practice":"Start with an evaluated higher-precision baseline and identify whether memory, throughput or deployment support is the constraint. Select a method supported by the target hardware and model architecture. For calibration-based schemes, use representative inputs without borrowing the final test set. Record bit width, grouping, calibration construction and excluded modules. Check task quality, long-input behavior and retained capabilities, then measure peak memory and latency at realistic batch sizes. Save the quantization configuration with the artifact. The useful result is a verified runtime configuration with an explicit accuracy-cost tradeoff, rather than a compression ratio presented as sufficient validation.","example":"An illustrative assistant needs to fit on one workstation accelerator. The engineer compares a lower-bit weight representation with the baseline using the same questions and decoding settings. A held-out suite includes code generation and long instructions. The compressed model fits memory, but one format slows short requests because conversion overhead dominates. Another compatible kernel performs better in the workload. The deployment decision uses actual request measurements and error inspection together.","limits":"Outliers and accumulated rounding error can damage particular layers or tasks, even when average loss changes little. Hardware support, batch size and memory bandwidth determine whether reduced precision improves speed. Calibration data can miss important input ranges. Quantizing weights does not automatically reduce activation or attention-cache memory. Adapter training over quantized weights is a combined procedure, not proof that quantization itself performs adaptation. Validate artifacts after conversion and loading, including configuration and kernel compatibility.","sources":[{"title":"Hugging Face Transformers: Quantization overview","url":"https://huggingface.co/docs/transformers/en/quantization/overview","note":"Supported quantization families, calibration and hardware-dependent execution."},{"title":"GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformers","url":"https://arxiv.org/abs/2210.17323","note":"A specific post-training weight quantization method and error-control approach."}],"updatedAt":"2026-10-10"}},{"id":"lora-qlora","name":"LoRA / QLoRA","category":"Fine-Tuning & PEFT","subcategory":null,"section_id":"model-training-fine-tuning-alignment","section_name":"Model Training, Fine-Tuning & Alignment","description":"LoRA adapts a model through trainable low-rank weight updates; QLoRA combines that adaptation with a quantized frozen base. The competence is selecting adapter targets and capacity, controlling memory use and verifying the complete loaded model. Low-rank adaptation and reduced-precision storage solve different parts of the training problem.","type":"concept","editorial":{"definition":"LoRA represents an update to a weight matrix as a product of two smaller trainable matrices while the original weight remains frozen. The rank controls the update's representational capacity, and scaling influences its contribution to the layer. Target-module choices determine which computations can adapt. QLoRA retains this adapter-training idea while storing the frozen base in a low-bit format and computing through dequantized values. Its published recipe includes NormalFloat quantization and memory-management techniques. Quantized base weights are not simply trained like ordinary full-precision weights. The canonical label groups related techniques, but a reproducible run must state whether it uses ordinary LoRA or a particular quantized-base configuration.","practice":"Inspect the architecture and choose target modules based on the task rather than copying names from another model. Check trainable parameters, rank, scaling and saved task heads. For QLoRA, confirm the quantization backend, compute dtype and device support, and test a small backward pass. Keep evaluation sources outside adapter training and compare with the base on target and retained tasks. Measure training peak memory and deployment behavior separately. Save base revision, adapter and quantization settings, then reproduce a fresh load and test any merge or export path that deployment requires.","example":"An illustrative team adapts a model to produce consistent laboratory report fields. Limited accelerator memory leads them to test QLoRA. They verify that only the adapter parameters update and inspect samples where a required field is absent. Held-out reports determine whether increasing rank improves field accuracy or merely fits familiar templates. The final loader reconstructs the exact quantized base and adapter, because loading the adapter onto a different revision can change the measured behavior.","limits":"Low rank restricts the available update and may be insufficient for some adaptations. A low trainable-parameter count still leaves base weights, activations and optimizer state to account for. Quantized computation can add approximation and compatibility constraints. Adapter merging and re-quantization require separate validation; they need not reproduce the original loading path exactly. LoRA is not a quantization algorithm, and QLoRA is not a guarantee of quality equivalence to full tuning. Evaluate their chosen configuration on the actual task.","sources":[{"title":"LoRA: Low-Rank Adaptation of Large Language Models","url":"https://arxiv.org/abs/2106.09685","note":"Frozen base weights and trainable low-rank matrix updates."},{"title":"QLoRA: Efficient Finetuning of Quantized LLMs","url":"https://arxiv.org/abs/2305.14314","note":"Quantized-base adapter training and its published numerical and memory techniques."}],"updatedAt":"2026-10-10"}},{"id":"continual-pre-training","name":"Continual Pre-Training","category":"Model Adaptation, Merging & Compression","subcategory":null,"section_id":"model-training-fine-tuning-alignment","section_name":"Model Training, Fine-Tuning & Alignment","description":"Continual pre-training extends a pretrained model's representation learning on additional corpora, often to adapt its language or domain coverage. Practitioners curate the new distribution, preserve important earlier capabilities and measure downstream effects. This skill concerns further language-model learning rather than directly teaching a conversation format or response preference.","type":"concept","editorial":{"definition":"The model resumes an objective such as next-token prediction or masked-token prediction from an existing checkpoint. Domain-adaptive pretraining uses broad text from a target field, while task-adaptive pretraining uses text closer to a particular application. Both can alter vocabulary usage and representations without requiring explicit answer labels. Corpus selection, tokenizer compatibility, sequence packing and the mixture with general text shape the resulting distribution. Continual pre-training is also part of broader sequential learning, where later updates can interfere with earlier knowledge. It differs from instruction tuning because the supervision ordinarily comes from the corpus itself rather than a set of instruction-response demonstrations.","practice":"Establish a downstream need and inspect whether the existing model already handles it. Curate permitted corpora, remove duplicates and low-quality boilerplate, and exclude evaluation documents and close variants. Decide how much general material to retain and whether tokenizer changes are justified by evidence. Monitor held-out language-model loss in the new and earlier domains, then evaluate tasks that represent actual use. Check retained languages and behaviors after each stage. The deliverable is a new pretrained checkpoint with documented corpus composition, update budget and independent evidence that further representation learning benefits the intended application.","example":"An illustrative model must interpret technical maintenance prose with unusual abbreviations. The team continues pretraining on reviewed manuals and historical descriptive notes, holding out entire manual families. They then fine-tune a small extraction task using the same labels for the original and adapted checkpoints. Better domain loss is treated as an intermediate observation; the deciding test is whether the adapted representation improves extraction on unseen equipment without degrading general-language instructions.","limits":"Additional text can reinforce noise, outdated statements or sensitive material. A narrow corpus can reduce broader capability, and repeated documents can dominate learning. Lower in-domain perplexity does not guarantee better downstream performance or accurate factual recall. Tokenizer changes introduce compatibility and initialization decisions that require separate evaluation. Continued pretraining does not make a model's factual content current in a controlled way; retrieval and explicit source handling remain useful when individual facts change frequently.","sources":[{"title":"Don’t Stop Pretraining: Adapt Language Models to Domains and Tasks","url":"https://arxiv.org/abs/2004.10964","note":"Domain-adaptive and task-adaptive pretraining with downstream evaluation."},{"title":"Overcoming catastrophic forgetting in neural networks","url":"https://arxiv.org/abs/1612.00796","note":"Sequential learning interference relevant to retaining earlier capabilities."}],"updatedAt":"2026-10-10"}},{"id":"deepspeed","name":"DeepSpeed","category":"Training Infrastructure","subcategory":null,"section_id":"model-training-fine-tuning-alignment","section_name":"Model Training, Fine-Tuning & Alignment","description":"DeepSpeed is a training systems library that helps execute large neural-network workloads across available hardware. The competence is configuring memory and communication strategies, integrating the training engine correctly and validating recovery and performance. Its optimizations change how training runs, while the model objective and data quality remain separate responsibilities.","type":"tool","editorial":{"definition":"DeepSpeed wraps model execution, backward computation and optimizer steps with distributed and memory-management features. ZeRO partitions training state across data-parallel workers: its stages progressively shard optimizer states, gradients and model parameters. Offloading can move selected state to other memory tiers, trading accelerator capacity against transfer and processing overhead. Configuration also governs precision, batch sizes and related execution behavior. These mechanisms reduce redundancy or redistribute work rather than altering the task's learning objective. Competence includes recognizing which state dominates memory and how sharding, communication and checkpoint formats affect the complete run, not only enabling a named optimization stage.","practice":"Profile memory and step time before choosing a ZeRO stage or offload strategy. Reconcile microbatch size, accumulation and world size with the intended effective batch. Verify precision support, loss scaling and optimizer ownership in the integration. Run a small distributed smoke test and compare loss behavior with a known baseline. Test checkpoint saving, resumption and export with the planned worker count and deployment loader. The useful result is a reproducible configuration that meets memory constraints with measured throughput and a demonstrated recovery path, including evidence that data is neither skipped nor duplicated unexpectedly.","example":"An illustrative language-model adaptation run exceeds accelerator memory because optimizer state occupies a large share. The engineer first tests state sharding, then compares a more aggressive stage when parameters become the constraint. Offloading fits the run but slows each step, so the choice depends on total experiment time. A deliberately interrupted small run verifies that the restored checkpoint continues with the expected optimizer and scheduler state before the team launches the expensive workload.","limits":"Higher sharding stages can add communication overhead, and offloading depends on host memory and transfer capacity. A model that fits may still train inefficiently. Integration mistakes can create inconsistent effective batches or incorrect update schedules. Sharded checkpoints may need a supported consolidation or loading path. DeepSpeed does not establish model quality, dataset integrity or convergence by itself. Record versions and hardware topology, inspect numerical behavior and compare measured end-to-end performance before attributing gains to configuration changes.","sources":[{"title":"DeepSpeed: Getting Started","url":"https://www.deepspeed.ai/getting-started/","note":"Training engine integration, configuration and checkpoint workflow."},{"title":"DeepSpeed: Zero Redundancy Optimizer","url":"https://www.deepspeed.ai/tutorials/zero/","note":"ZeRO stages, state partitioning and offload configuration."}],"updatedAt":"2026-10-10"}},{"id":"distributed-training","name":"Distributed Training","category":"Training Infrastructure","subcategory":null,"section_id":"model-training-fine-tuning-alignment","section_name":"Model Training, Fine-Tuning & Alignment","description":"Distributed training coordinates model learning across multiple devices or machines. Practitioners decide how to partition data, parameters and computation, then verify that synchronized updates implement the intended objective. The skill includes communication costs, numerical behavior, failure recovery and reproducible comparisons with a smaller trusted training setup.","type":"concept","editorial":{"definition":"Data parallelism gives workers different batches and combines their gradients while maintaining a shared model. Sharded data parallelism distributes parameter, gradient or optimizer state to reduce per-device memory. Tensor parallelism partitions operations within layers, and pipeline parallelism assigns different layers to stages that process microbatches. These approaches can be combined, but impose different communication and scheduling requirements. A distributed process group coordinates collectives such as reductions and gathers. Effective batch size depends on local batches, accumulation and participating workers, while averaging conventions determine the scale of the resulting update. Distributed execution is a systems choice rather than a new learning objective.","practice":"Measure model-state memory, compute time and network capacity to choose a partitioning strategy. Establish a correct single-device reference, then test a small distributed run with controlled data and randomness. Ensure samplers, accumulation, gradient scaling and scheduler steps agree across workers. Profile time spent computing, communicating and waiting for input. Validate full checkpoint recovery and test how partial failures terminate or resume the job. The deliverable should show correct update semantics and useful scaling for the workload, with resource and recovery assumptions explicit enough to reproduce the experiment.","example":"An illustrative classifier expands from one device to several. The engineer distributes disjoint training batches and reduces gradients through data parallelism. They compare an update with an equivalent combined batch on the reference implementation to catch an incorrect loss normalization. Throughput then plateaus because input decoding is slow, so optimizing the data loader helps more than adding workers. A restart test checks that sampler state and checkpoint restoration do not repeat an unintended segment of data.","limits":"Communication, imbalance and input bottlenecks can erase expected scaling gains. Numerical reduction order and mixed precision can alter results, and bitwise reproducibility is not always attainable. More workers can change optimization if effective batch or scheduling is left uncontrolled. Sharding complicates checkpoint loading and inspection. Distinguish data distribution from model partitioning, and assess total run cost rather than reporting device count as evidence of efficiency. A successful launch alone does not establish correct synchronized learning.","sources":[{"title":"PyTorch: Distributed Data Parallel theory","url":"https://docs.pytorch.org/tutorials/beginner/ddp_series_theory.html","note":"Replicated models, distributed inputs and gradient synchronization."},{"title":"PyTorch: Getting Started with Fully Sharded Data Parallel","url":"https://docs.pytorch.org/tutorials/intermediate/FSDP_tutorial.html","note":"Sharded model-state execution and training integration."}],"updatedAt":"2026-10-10"}},{"id":"grpo","name":"GRPO","category":"Alignment","subcategory":null,"section_id":"model-training-fine-tuning-alignment","section_name":"Model Training, Fine-Tuning & Alignment","description":"Group Relative Policy Optimization updates a generating policy using rewards compared within groups of sampled responses. The skill is constructing informative prompt groups, implementing reliable rewards and controlling policy changes. GRPO can support verifiable or learned rewards; its optimizer is distinct from the source of the reward signal.","type":"concept","editorial":{"definition":"GRPO samples multiple completions for a prompt and uses their rewards to estimate relative advantages, commonly by centering and scaling scores within the group. It avoids a separately trained value model in the original formulation, using the group as its baseline instead. A clipped policy objective limits updates relative to the sampling policy, and formulations may include a penalty for divergence from a reference. Group size, generation settings and reward variability affect the learning signal. Modern implementations offer normalization and loss variants, so the exact objective needs documentation. GRPO does not define whether correctness, human preference or another property supplies the reward.","practice":"Test reward functions independently and select prompts where sampled completions exhibit meaningful quality differences. Choose group size and generation limits within the available inference and training budget. Inspect zero-variance groups, reward distributions, completion lengths, clipping and divergence. Keep problem families and solution sources separate from evaluation. Record the implementation's loss and normalization settings, then assess independently verified task accuracy rather than average reward alone. The useful result is a policy improvement with a reproducible sampling and optimization recipe and evidence that the relative signal corresponds to the intended behavior.","example":"An illustrative arithmetic policy generates several solutions for each exercise. A verifier rewards final answers only when parsed values match the expected result. Some easy prompts produce all-correct groups and some difficult prompts all-wrong groups, so the developer inspects how little comparative signal they supply. Training uses a more informative mixture. Evaluation on independently generated exercises checks answer correctness and whether the policy has learned parser-specific tricks rather than transferable arithmetic.","limits":"Relative normalization can interact with prompt difficulty and reward variance, while group sampling adds substantial generation cost. Identical rewards within a group provide weak or absent differentiation. A flawed verifier or biased reward model still produces flawed optimization. Length effects and normalization choices can influence which responses receive pressure. GRPO is neither a guarantee of reasoning nor a synonym for reinforcement learning from verifiable rewards. Evaluate the reward source, policy objective and task behavior as separate components.","sources":[{"title":"DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models","url":"https://arxiv.org/abs/2402.03300","note":"Original group-relative policy optimization formulation."},{"title":"Hugging Face TRL: GRPO Trainer","url":"https://huggingface.co/docs/trl/en/grpo_trainer","note":"Sampling groups, reward functions, normalization choices and training diagnostics."}],"updatedAt":"2026-10-10"}},{"id":"unsloth","name":"Unsloth","category":"Fine-Tuning & PEFT","subcategory":null,"section_id":"model-training-fine-tuning-alignment","section_name":"Model Training, Fine-Tuning & Alignment","description":"Unsloth supplies tooling and optimized execution paths for language model adaptation and related training workflows. The competence is selecting a supported model and hardware configuration, preparing compatible data and checking that training and export preserve the intended behavior. Performance claims need verification on the actual workload and installed version.","type":"tool","editorial":{"definition":"Unsloth integrates model loading, adapter setup and training workflows with optimizations intended to reduce memory use or execution time. Its documented guides cover tasks such as supervised fine-tuning, low-rank adaptation and reinforcement learning, with support dependent on model family and environment. Optimized kernels and memory strategies are implementation choices, while SFT, LoRA and reward-based training retain their own conceptual definitions. The input contract still includes tokenizer or processor, conversation template and loss masking. Exported adapters or converted models also depend on their target runtime. Competence therefore combines familiarity with the library's supported path and independent understanding of the underlying training procedure.","practice":"Check the current guide for the chosen model, accelerator, precision and quantization combination. Pin dependencies and start with a small reproducible dataset. Inspect rendered conversations, label masks and trainable modules before scaling. Measure memory and step time against a comparable baseline with the same effective batch and sequence length. Reserve evaluation prompts outside training examples, and test the saved adapter or exported model in the deployment loader. The deliverable is a documented configuration and working artifact whose task quality and resource use are demonstrated, rather than an unverified speed claim copied from a general benchmark.","example":"An illustrative developer uses Unsloth to adapt a small assistant to write structured issue summaries. A short trial checks template formatting and completion-only loss. They compare peak memory with a conventional adapter-training setup using identical data and sequence lengths. After training, they export the artifact and rerun unseen issue examples in the target runtime. A formatting discrepancy exposes a missing chat-template setting, which is fixed before the model is considered ready.","limits":"Supported architectures, installation requirements and export routes can change. Results from one model or hardware configuration need not transfer to another. An optimization can reduce memory while shifting time to preprocessing or generation, so end-to-end measurement matters. Incorrect templates or labels remain harmful even when the training code runs efficiently. Unsloth is a toolchain, not a distinct alignment objective. Validate quality and a fresh deployment load after each material version or conversion change.","sources":[{"title":"Unsloth Documentation","url":"https://unsloth.ai/docs","note":"Official scope, installation and training workflow documentation."},{"title":"Unsloth: Fine-tuning LLMs Guide","url":"https://unsloth.ai/docs/get-started/fine-tuning-llms-guide","note":"Data preparation, model configuration and fine-tuning workflow."}],"updatedAt":"2026-10-10"}},{"id":"federated-learning","name":"Federated Learning","category":"Training Infrastructure","subcategory":null,"section_id":"model-training-fine-tuning-alignment","section_name":"Model Training, Fine-Tuning & Alignment","description":"Federated learning trains a shared model from data held by separate participants without routinely collecting all raw examples in one place. The competence is designing local updates, aggregation and evaluation under heterogeneous data and unreliable participation. Keeping data local is an architectural property, not a complete privacy guarantee.","type":"concept","editorial":{"definition":"A coordinator distributes model parameters to selected participants, each trains locally, and an aggregation rule combines returned updates. Federated averaging weights local model contributions according to an agreed procedure, commonly related to local data volume. Participants may be devices or organizations and can have different data distributions, compute capacity and availability. Multiple local steps reduce communication but can increase divergence between participants. The system must account for who contributes and how updates are validated. Secure aggregation and differential privacy are additional mechanisms with separate assumptions; the ordinary federated training protocol does not automatically prevent sensitive information from appearing in transmitted updates.","practice":"Define participants, participation rules and the trust model before choosing a protocol. Measure data heterogeneity and compare local-only, centralized reference where permitted and federated baselines. Configure local steps, weighting and communication rounds, and test dropped or delayed participants. Keep evaluation users or organizations separate from training participants where the generalization question requires it. Evaluate each participant group as well as the aggregate. The result includes an aggregation procedure, privacy and robustness controls appropriate to the threat model, and evidence that the shared model serves participants beyond those dominating the update volume.","example":"In an illustrative collaboration, several laboratories hold differently distributed sensor observations. Each trains a shared classifier locally and returns an update. Evaluation shows that an aggregation favoring large laboratories performs poorly on a smaller site's operating conditions. The team inspects per-site results, changes the participation and weighting policy and tests a previously unseen laboratory. They also assess update exposure separately, because no raw-data transfer alone does not establish confidentiality.","limits":"Nonidentical data, uneven participation and stale updates can slow convergence or disadvantage small groups. Malicious or faulty updates can corrupt aggregation, and ordinary updates may leak information. Privacy protections introduce their own utility and system costs. A centralized test set can conceal participant-specific failures, while local tests may not be comparable. Federated learning differs from distributed training over centrally managed data and from secure multiparty computation. State the actual trust and privacy mechanisms and evaluate both shared and participant-level utility.","sources":[{"title":"Communication-Efficient Learning of Deep Networks from Decentralized Data","url":"https://arxiv.org/abs/1602.05629","note":"Federated averaging, local updates and decentralized heterogeneous data."},{"title":"Advances and Open Problems in Federated Learning","url":"https://arxiv.org/abs/1912.04977","note":"Research account of heterogeneity, privacy, robustness and deployment constraints."}],"updatedAt":"2026-10-10"}},{"id":"instruction-tuning","name":"Instruction Tuning","category":"Fine-Tuning & PEFT","subcategory":null,"section_id":"model-training-fine-tuning-alignment","section_name":"Model Training, Fine-Tuning & Alignment","description":"Instruction tuning trains a model on examples that express a task in natural language and show a suitable response. Practitioners design task diversity, instructions and demonstrations so behavior generalizes beyond memorized templates. It is a particular supervised fine-tuning formulation, with instruction following as the capability being developed and evaluated.","type":"concept","aliases":["Instruction-Tuning","Instruction Fine-Tuning"],"editorial":{"definition":"Each example specifies what the model should do, often with additional input, and supplies a target answer. A mixture can include classification, transformation, explanation and generation tasks expressed through different instructions. The supervised objective teaches the model to condition its response on the requested operation and constraints. Task breadth and instruction variation matter because merely repeating one prompt can teach a narrow mapping rather than general instruction following. Multi-turn examples add conversation roles and context dependencies. Instruction tuning differs from continual pretraining on raw text and from preference optimization, which compares candidate responses instead of simply imitating a demonstrated answer.","practice":"Define the desired instruction behaviors, then select diverse, reviewed tasks and consistent response conventions. Include constraints such as requested format, missing information and conflicting context where they matter. Audit synthetic demonstrations for factual errors and duplicated evaluation tasks. Split by task families and source material, inspect chat templates and target masking, and balance frequent tasks against less common requirements. Evaluate unseen instruction phrasings and tasks alongside retained knowledge and language coverage. The deliverable is an adapted model with evidence of broader instruction conditioning, plus a documented dataset mixture and response rubric.","example":"An illustrative assistant learns to transform short workplace notes into either a summary, action list or structured record according to the request. Training varies wording and includes examples where there are no actions. Evaluation holds out note sources and new instruction phrasings. The developer checks that changing only the requested operation changes the answer appropriately, rather than always returning the most frequent training format. New task families provide a harder test of generalization.","limits":"Demonstrations can contain unsupported facts or encode an overly uniform style. Apparent instruction following may depend on templates, language or task overlap. Models can follow some constraints while ignoring others, especially with long or conflicting contexts. Supervised imitation does not settle how competing instructions should be prioritized in every situation. Instruction tuning is narrower than SFT as a general method and does not directly optimize comparative preferences. Evaluate the specific requested behavior and novel tasks, not just similarity to reference answers.","sources":[{"title":"Finetuned Language Models Are Zero-Shot Learners","url":"https://arxiv.org/abs/2109.01652","note":"Instruction-formatted task mixtures and generalization to unseen tasks."},{"title":"Hugging Face TRL: SFT Trainer","url":"https://huggingface.co/docs/trl/en/sft_trainer","note":"Implementation of supervised instruction-response training and target loss configuration."}],"updatedAt":"2026-10-10"}}],"sections":[{"id":"mathematical-statistical-foundations","name":"Mathematical & Statistical Foundations","skills":["calculus-for-machine-learning","causal-inference","a-b-testing","information-theory","linear-algebra","mathematical-optimization","operations-research","scheduling-algorithms","search-algorithms","bayesian-statistics","monte-carlo-simulation","probability-theory","quantitative-research","statistical-inference","hypothesis-testing"]},{"id":"classical-machine-learning-modeling","name":"Classical Machine Learning & Modeling","skills":["anomaly-detection","exploratory-data-analysis","model-evaluation","predictive-analytics","time-series-forecasting","hyperparameter-optimization","recommender-systems","reinforcement-learning","multi-armed-bandits","classical-machine-learning","gradient-boosting","regression-analysis","unsupervised-learning","prophet","automl","optuna","catboost","classification","decision-trees","ensemble-learning","lightgbm","random-forests","supervised-machine-learning","support-vector-machines","xgboost","cluster-analysis","naive-bayes","hdbscan","smote","sarima","arima","class-imbalance-handling","logistic-regression","k-nearest-neighbors","k-means-clustering","isolation-forest","dbscan","cross-validation","linear-regression","principal-component-analysis"]},{"id":"deep-learning-foundation-model-architectures","name":"Deep Learning & Foundation Model Architectures","skills":["hugging-face","jax","pytorch","tensorflow","deep-learning","edge-ai","open-source-llms","comfyui","diffusion-models","video-generation","graph-neural-networks","multimodal-ai","convolutional-neural-networks","mixture-of-experts","recurrent-neural-networks","state-space-models","transformer-architecture","reasoning-models","transfer-learning","long-context-modeling","litert-tensorflow-lite","nvidia-jetson","large-language-models","generative-adversarial-networks-gan","generative-architectures","hugging-face-diffusers","image-generation","stable-diffusion","pytorch-geometric","model-pruning","autoencoders","contrastive-learning","model-training","resnet","efficientnet","gated-recurrent-unit","roberta","keras","long-short-term-memory","bert"]},{"id":"natural-language-processing-computer-vision","name":"Natural Language Processing & Computer Vision","skills":["audio-ai","computer-vision","object-detection","opencv","vision-language-models","nlp","tokenization","multilingual-nlp","named-entity-recognition","semantic-search","audio-processing","elevenlabs","librosa","speech-recognition","text-to-speech","whisper","detectron2","emotion-recognition","facial-recognition","image-classification","image-segmentation","mmdetection","mediapipe","object-tracking","yolo","dlib","gensim","nltk","spacy","information-retrieval","intent-detection","natural-language-understanding-nlu","summarization","text-classification","word2vec","tf-idf","topic-modeling","text-preprocessing","sentiment-analysis","information-extraction","question-answering"]},{"id":"model-training-fine-tuning-alignment","name":"Model Training, Fine-Tuning & Alignment","skills":["direct-preference-optimization","rlhf","reinforcement-learning-from-verifiable-rewards","reward-modeling","catastrophic-forgetting","fine-tuning-evaluation","hugging-face-peft","hugging-face-trl","llm-fine-tuning","supervised-fine-tuning-sft","model-merging","knowledge-distillation","model-quantization","lora-qlora","continual-pre-training","deepspeed","distributed-training","grpo","unsloth","federated-learning","instruction-tuning"]},{"id":"prompt-engineering-model-interaction","name":"Prompt Engineering & Model Interaction","skills":["context-engineering","synthetic-data-generation","llm-decoding-strategies","prompt-caching","token-optimization","anthropic-api","openai-api","llm-api-integration","semantic-routing","in-context-learning","prompt-engineering","system-prompt-design","prompt-management","automated-prompt-optimization","dspy","program-aided-lms-pal","self-consistency","structured-llm-outputs","test-time-compute-scaling","google-gemini-api","chain-of-thought-prompting"]},{"id":"retrieval-augmented-generation-knowledge-systems","name":"Retrieval-Augmented Generation & Knowledge Systems","skills":["agentic-rag","multimodal-rag","query-optimization","self-reflective-rag","embedding-models","neo4j","ai-grounding-citations","document-ai","document-chunking","graphrag","knowledge-graphs","visual-document-retrieval","retrieval-augmented-generation","hybrid-search","search-re-ranking","faiss","vector-databases","pgvector","sentence-transformers","graph-databases","azure-document-intelligence","contextual-retrieval","bm25","dense-retrieval","opensearch","chroma","lancedb","metadata-filtering","milvus","pinecone","qdrant","vector-indexing","weaviate","cross-encoder-reranking","multi-vector-retrieval"]},{"id":"agentic-ai-systems","name":"Agentic AI Systems","skills":["code-execution-agents","computer-use-ai","deep-research-agents","text-to-sql","voice-agents","ai-agent-design","agent-state-management","agentic-planning-task-decomposition","reflection-self-refinement","self-improving-agents","ai-guardrails","agent-sandboxing","human-in-the-loop-ai","resource-aware-agent-optimization","langchain","langgraph","llamaindex","pydantic-ai","agent-memory-systems","model-context-protocol","multi-agent-coordination-patterns","multi-agent-debate","multi-agent-orchestration","a2a-protocol","llm-function-calling","conversational-ai","dialogflow","dialogue-systems","livekit","rasa","agent-frameworks","crewai","google-adk","microsoft-autogen-agent-framework","semantic-kernel","langflow","low-code-ai-automation","microsoft-copilot-studio","n8n","multi-agent-systems","mcp-gateway-tool-governance","agent-write-action-verification"]},{"id":"llmops-model-serving-inference-optimization","name":"LLMOps, Model Serving & Inference Optimization","skills":["llm-api-gateway","litellm","ci-cd","ml-ci-cd","docker","ai-cost-optimization","ai-finops","semantic-caching","serverless-ai","mlflow","weights-biases","gpu-kernel-programming","inference-optimization","kv-cache-optimization","speculative-decoding","ollama","llama-cpp","kubernetes","kubeflow","bentoml","kserve","llm-inference-serving","ray-serve","sglang","vllm","model-retraining","reproducibility","model-deployment","experiment-tracking","cuda","gpu-acceleration","flashattention","openvino","tensorrt","onnx","onnx-runtime","nvidia-triton-inference-server","tensorrt-llm","torchserve","real-time-inference","disaggregated-inference-serving"]},{"id":"ai-evaluation-observability","name":"AI Evaluation & Observability","skills":["benchmark-analysis","llm-benchmarking","stochastic-system-debugging","agent-evaluation","llm-evaluation-design","llm-as-judge","deepeval","llm-evaluation-frameworks","llm-testing","data-drift","ml-monitoring","llm-observability","langfuse","ai-output-verification","rag-evaluation","ragas","hallucination-detection","bertscore","bleu","rouge","trulens","evidently","langsmith","opentelemetry","rag-faithfulness-evaluation","agentic-task-environment-design"]},{"id":"ai-safety-security-governance-ethics","name":"AI Safety, Security, Governance & Ethics","skills":["secure-rag","ai-data-security","agent-identity-access-management","ai-rate-limiting","ai-supply-chain-security","ai-toxicity-analysis","ai-ethics","ai-fairness","explainable-ai","mechanistic-interpretability","ai-auditability","iso-42001","nemo-guardrails","prompt-injection-defense","presidio","ai-watermarking","ai-red-teaming","adversarial-ai-testing","eu-ai-act-compliance","nist-ai-rmf","agent-threat-modeling-maestro","owasp-top-10-for-llm-applications","saif","lime","shap","ai-incident-response-reporting"]},{"id":"data-engineering-pipelines","name":"Data Engineering & Pipelines","skills":["data-mesh","databricks-unity-catalog","data-contracts","document-parsing","web-scraping","data-modeling","pii-management","data-quality-management","data-observability","entity-resolution","nosql","data-curation","data-labeling-annotation","dataset-engineering","evaluation-data-engineering","training-data-curation","apache-spark","etl-pipeline-design","apache-kafka","stream-processing","event-driven-architecture","apache-iceberg","dbt","data-versioning","bigquery","databricks","snowflake","apache-airflow","beautifulsoup","data-ingestion","optical-character-recognition-ocr","scrapy","tesseract","cvat","data-augmentation","label-studio","kedro","dvc","dagster","prefect","workflow-orchestration","data-cleaning","pii-redaction"]},{"id":"software-engineering-for-ai","name":"Software Engineering for AI","skills":["ai-code-generation","api-development","fastapi","streamlit","duckdb-polars","ai-assisted-development","feature-engineering","python","r","rust","sql","shell-scripting","numpy","pandas","scikit-learn","software-testing","git","github","claude-code","github-copilot","flask","dash","feast","computational-notebooks","jupyter","geopandas","matplotlib","plotly","scipy","seaborn","statsmodels","hypothesis","data-preprocessing-for-ml","feature-scaling","feature-extraction","feature-selection"]},{"id":"cloud-ai-platform-infrastructure","name":"Cloud & AI Platform Infrastructure","skills":["amazon-bedrock","amazon-sagemaker","azure-openai-service","aws","microsoft-azure","distributed-systems","google-vertex-ai","iac-infrastructure-as-code","terraform","aws-fargate","amazon-emr","amazon-textract","azure-ai-search","azure-machine-learning","foundry-tools","microsoft-foundry","cloud-platforms","google-cloud-platform-gcp","dask","hpc-cluster-computing","ray","cloud-run","google-cloud-build","google-cloud-data-fusion"]},{"id":"ai-product-collaboration-professional-practice","name":"AI Product, Collaboration & Professional Practice","skills":["research-to-engineering-translation","technical-mentoring","cross-functional-collaboration","data-storytelling","technical-stakeholder-management","data-visualization","domain-expertise","ai-team-leadership","technical-facilitation","rapid-prototyping","ai-product-management","ai-requirements-engineering","ai-risk-management","ai-ux-design","gradio","shiny","scientific-writing","apache-superset","dashboards","geospatial-data","metrics-definition","skills-taxonomy-architecture-mapping"]}],"ontology":[{"subject":"RLHF","subject_id":"rlhf","relation":"is subcategory of","object":"LLM Fine-Tuning","object_id":"llm-fine-tuning"}],"prerequisites":[{"skill":"RLHF","skill_id":"rlhf","prerequisite":"LLM Fine-Tuning","prerequisite_id":"llm-fine-tuning","strength":"hard","rationale":"RLHF is applied AFTER SFT to align the model with preferences — SFT provides the baseline model that RLHF refines"},{"skill":"RLHF","skill_id":"rlhf","prerequisite":"Reinforcement Learning","prerequisite_id":"reinforcement-learning","strength":"medium","rationale":"RLHF uses PPO (a policy gradient RL algorithm) to optimize the language model against a reward model"}],"fieldNotes":{},"fieldNotesVersion":"2026-10-10"},"glossary":{"version":"2026-06-26+editorial-glossary-2026-01","count":5,"categories":["Agentownosc","Debata","Inne","Karpathy","Kultura","LLMOps","Produkty","Regulacje","Safety","Trening"],"entries":[{"id":"rlhf","idx":1,"term":"RLHF","category":"Trening","round":"R1","year":"2017-06-12","author":"Paul Christiano, Jan Leike, Tom B. Brown, Miljan Martic, Shane Legg, and Dario Amodei; later adapted to language-model assistants by OpenAI and Anthropic.","description":"Reinforcement Learning from Human Feedback (RLHF) is a post-training method that turns human comparisons between model outputs into a learning signal. Reviewers rank alternative responses; a reward model learns to predict those preferences; and reinforcement learning updates the policy to obtain higher predicted reward, usually while limiting divergence from a reference model. RLHF differs from supervised fine-tuning because the optimization target is learned from comparative judgments rather than copied directly from demonstration answers.","speculative":false,"maturity":4,"maturity_basis":"RLHF merits maturity 4: multiple independent organizations published detailed applications to language-model assistants in 2022, and the method became a well-established option in post-training. The rating does not mean that every current frontier model uses the same pipeline or that RLHF is the only alignment technique. DPO, AI-feedback methods, rule-based rewards, and mixed training recipes can replace or supplement individual stages. A future downgrade would be justified if the term ceased to describe deployed practice and survived mainly as historical shorthand.","pl_status":"🔤","pl_term":"RLHF","pl_comment":"Akronim de facto standard; PL: \"uczenie ze wzmocnieniem z ludzkich preferencji\" — używane wyjątkowo","relation_count":5,"references":[["Deep reinforcement learning from human preferences","https://arxiv.org/abs/1706.03741","paper"],["Training language models to follow instructions with human feedback","https://arxiv.org/abs/2203.02155","paper"],["Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedback","https://arxiv.org/abs/2204.05862","paper"]],"skill_id":"rlhf","editorial":{"id":"rlhf","identity":{"canonicalName":"RLHF","aliases":["Reinforcement Learning from Human Feedback","reinforcement learning from human preferences"],"category":"Trening","lifecycle":"established","firstSeenDate":"2017-06-12","firstSeenNote":"The 2017 paper demonstrated preference-based reinforcement learning in Atari and simulated robotics; the now-common RLHF label was later applied to language-model assistant post-training.","originAttribution":"Paul Christiano, Jan Leike, Tom B. Brown, Miljan Martic, Shane Legg, and Dario Amodei; later adapted to language-model assistants by OpenAI and Anthropic.","maturity":4},"content":{"definition":{"text":"Reinforcement Learning from Human Feedback (RLHF) is a post-training method that turns human comparisons between model outputs into a learning signal. Reviewers rank alternative responses; a reward model learns to predict those preferences; and reinforcement learning updates the policy to obtain higher predicted reward, usually while limiting divergence from a reference model. RLHF differs from supervised fine-tuning because the optimization target is learned from comparative judgments rather than copied directly from demonstration answers.","sourceIds":["s1","s2"]},"originContext":{"text":"The core preference-learning setup was demonstrated by Christiano and colleagues in 2017 on Atari games and simulated robot control: people chose between short trajectory segments, and those comparisons were used to learn a reward function. In 2022, OpenAI's InstructGPT work applied a related pipeline to language models using demonstrations and ranked responses, while Anthropic independently reported preference modeling and RLHF for helpful and harmless assistants. These papers mark the transition from a general reinforcement-learning technique to a prominent language-model post-training practice; they do not establish a single inventor of every modern implementation.","sourceIds":["s1","s2","s3"]},"whyItMatters":{"text":"RLHF matters because many desired assistant behaviors—following an instruction, choosing a useful level of detail, or declining an unsafe request—are difficult to encode as fixed rules. Comparative judgments let developers express such preferences without writing a complete reward function. In the InstructGPT study, a 1.3-billion-parameter model was preferred by evaluators to the much larger GPT-3 baseline on the study's prompt distribution, illustrating how post-training can change perceived usefulness independently of pretraining scale. Anthropic's results provide separate evidence that the approach can coexist with specialized capabilities, although neither study implies that RLHF guarantees broad alignment.","sourceIds":["s2","s3"]},"usageExample":{"text":"A typical pipeline begins with supervised fine-tuning on curated demonstrations. For each prompt, the current model then produces several candidate responses, which annotators rank. Those comparisons train a reward model, and a reinforcement-learning algorithm updates the assistant against that learned score while a penalty discourages excessive movement away from the reference policy. The result is evaluated by people and by task-specific tests, not by reward alone. For example, preferences can teach a summarization assistant to balance coverage, clarity, and brevity even when no single reference summary is uniquely correct. Exact pipelines vary; PPO is common historically but is not part of the definition.","sourceIds":["s2","s3"]},"maturityRationale":{"text":"RLHF merits maturity 4: multiple independent organizations published detailed applications to language-model assistants in 2022, and the method became a well-established option in post-training. The rating does not mean that every current frontier model uses the same pipeline or that RLHF is the only alignment technique. DPO, AI-feedback methods, rule-based rewards, and mixed training recipes can replace or supplement individual stages. A future downgrade would be justified if the term ceased to describe deployed practice and survived mainly as historical shorthand.","sourceIds":["s2","s3"]},"limitations":{"text":"Human rankings reflect the sampled prompts, annotator population, instructions, and trade-offs chosen by the developer; they are not a neutral measurement of universal human values. The learned reward is also a proxy, so optimizing it can favor responses that score well without being more truthful or robust outside the training distribution. Both InstructGPT and Anthropic therefore evaluate behavior separately and report remaining errors or competing objectives. RLHF can improve measured preference and reduce some observed harms, but it does not prove factual correctness, eliminate reward gaming, or settle whose preferences a system should follow.","sourceIds":["s2","s3"]}},"sources":[{"id":"s1","title":"Deep reinforcement learning from human preferences","url":"https://arxiv.org/abs/1706.03741","publisher":"arXiv","quality":"A","role":"primary","kind":"paper","publishedAt":"2017-06-12","accessedAt":"2026-08-27","verifiedAt":"2026-08-27"},{"id":"s2","title":"Training language models to follow instructions with human feedback","url":"https://arxiv.org/abs/2203.02155","publisher":"OpenAI / arXiv","quality":"A","role":"primary","kind":"paper","publishedAt":"2022-03-04","accessedAt":"2026-08-27","verifiedAt":"2026-08-27"},{"id":"s3","title":"Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedback","url":"https://arxiv.org/abs/2204.05862","publisher":"Anthropic / arXiv","quality":"A","role":"independent","kind":"paper","publishedAt":"2022-04-12","accessedAt":"2026-08-27","verifiedAt":"2026-08-27"}],"relations":{"relatedTermIds":["post-training","dpo","constitutional-ai","reward-hacking","rlvr"],"relatedSkillIds":["rlhf","reinforcement-learning"],"inboundPaths":["/glossary","/glossary/term/rlvr","/atlas/genai-2026/skill/rlhf"]},"seo":{"title":"RLHF: Reinforcement Learning from Human Feedback","description":"RLHF uses ranked human feedback to train a reward model and refine a language model. Learn its workflow, evidence, uses, and limitations."},"updatedAt":"2026-08-27","indexable":true}},{"id":"constitutional-ai","idx":62,"term":"Constitutional AI","category":"Safety","round":"R1","year":"2022-12-15","author":"Yuntao Bai and colleagues at Anthropic introduced Constitutional AI as a method for supervising model behavior through written principles and AI-generated feedback.","description":"Constitutional AI (CAI) is a model-alignment approach that uses an explicit set of written principles to guide critique, revision, and preference feedback. In the originating method, a model first revises responses against constitutional principles, then AI-generated preference comparisons support reinforcement learning from AI feedback. The constitution supplies supervisory criteria; it is not a legal constitution and does not remove human choices about values.","speculative":false,"maturity":3,"maturity_basis":"Maturity is rated 3. CAI has a detailed primary method, reported experiments, independent extensions, and a stable name, so it is beyond an early proposal. Evidence remains concentrated relative to more mature training techniques, implementations vary, and there is no shared standard for choosing or auditing constitutions. Broader independent replication and governance practice would support a higher rating.","pl_status":"🆕","pl_term":"konstytucyjna AI","pl_comment":"Kalka Anthropic, w PL artykułach","relation_count":5,"references":[["Constitutional AI: Harmlessness from AI Feedback","https://arxiv.org/abs/2212.08073","paper"],["IterAlign: Iterative Constitutional Alignment of Large Language Models","https://aclanthology.org/2024.naacl-long.78/","paper"],["AI Alignment: A Comprehensive Survey","https://arxiv.org/abs/2310.19852","paper"]],"skill_id":"rlhf","editorial":{"id":"constitutional-ai","identity":{"canonicalName":"Constitutional AI","aliases":["CAI","Constitutional alignment","Constitutional AI training"],"category":"Safety","lifecycle":"established","firstSeenDate":"2022-12-15","firstSeenNote":"Anthropic submitted Constitutional AI: Harmlessness from AI Feedback on 15 December 2022. Later work extends or analyzes the approach but does not change that origin boundary.","originAttribution":"Yuntao Bai and colleagues at Anthropic introduced Constitutional AI as a method for supervising model behavior through written principles and AI-generated feedback.","maturity":3},"content":{"definition":{"text":"Constitutional AI (CAI) is a model-alignment approach that uses an explicit set of written principles to guide critique, revision, and preference feedback. In the originating method, a model first revises responses against constitutional principles, then AI-generated preference comparisons support reinforcement learning from AI feedback. The constitution supplies supervisory criteria; it is not a legal constitution and does not remove human choices about values.","sourceIds":["s1","s2","s3"]},"originContext":{"text":"Anthropic introduced Constitutional AI in a paper submitted in December 2022. The method combined supervised critique-and-revision with a reinforcement-learning phase based on AI feedback, aiming to reduce harmful responses while preserving helpfulness and making the normative basis more transparent. Independent work later proposed IterAlign, which searches for additional principles from observed model failures, illustrating both continued interest and the burden of relying on a fixed hand-written constitution.","sourceIds":["s1","s2"]},"whyItMatters":{"text":"CAI makes some behavioral criteria inspectable rather than leaving every preference implicit in a large annotation set. It can scale feedback generation and support discussion about which principles a system follows. The difficult governance questions remain: who selects the constitution, how conflicts between principles are resolved, which cultures and affected groups are represented, and whether behavior matches the text in new contexts. Transparency of principles is useful evidence, not proof of alignment.","sourceIds":["s1","s2","s3"]},"usageExample":{"text":"A developer might ask a model to answer a harmful request, critique that answer against a principle prohibiting facilitation of serious harm, and produce a safer revision. Many such comparisons can train a preference model or policy. If reviewers merely add a safety prompt at inference time, they are using prompt-based guardrails, not the full CAI training method. Human governance is still required to approve principles and test their consequences.","sourceIds":["s1","s2"]},"distinctions":[{"termId":"rlhf","explanation":{"text":"RLHF is a broad family that learns from human preferences. Constitutional AI specifies principles and, in its reinforcement phase, uses model-generated preference feedback under human-authored supervision. The methods can share optimization machinery, but their feedback sources and governance design differ. CAI should therefore remain a separate entry linked to, not merged with, RLHF.","sourceIds":["s1","s3"]}}],"maturityRationale":{"text":"Maturity is rated 3. CAI has a detailed primary method, reported experiments, independent extensions, and a stable name, so it is beyond an early proposal. Evidence remains concentrated relative to more mature training techniques, implementations vary, and there is no shared standard for choosing or auditing constitutions. Broader independent replication and governance practice would support a higher rating.","sourceIds":["s1","s2","s3"]},"limitations":{"text":"Written principles can be incomplete, ambiguous, culturally narrow, or internally inconsistent. A model may apply them differently across prompts, languages, or adversarial settings, and AI feedback can reproduce the evaluator model's blind spots. Public principles do not reveal every training choice. Evaluations should test conflicts, over-refusal, disparate effects, and behavior outside the training distribution, with independent human review of both the constitution and outcomes.","sourceIds":["s1","s2","s3"]}},"sources":[{"id":"s1","title":"Constitutional AI: Harmlessness from AI Feedback","url":"https://arxiv.org/abs/2212.08073","publisher":"Anthropic / arXiv","quality":"A","role":"primary","kind":"paper","publishedAt":"2022-12-15","accessedAt":"2026-08-27","verifiedAt":"2026-08-27"},{"id":"s2","title":"IterAlign: Iterative Constitutional Alignment of Large Language Models","url":"https://aclanthology.org/2024.naacl-long.78/","publisher":"Association for Computational Linguistics","quality":"A","role":"independent","kind":"paper","publishedAt":"2024-06","accessedAt":"2026-08-27","verifiedAt":"2026-08-27"},{"id":"s3","title":"AI Alignment: A Comprehensive Survey","url":"https://arxiv.org/abs/2310.19852","publisher":"Independent academic collaboration / arXiv","quality":"B","role":"independent","kind":"paper","publishedAt":"2023-10-30","accessedAt":"2026-08-27","verifiedAt":"2026-08-27"}],"relations":{"relatedTermIds":["rlhf","constitutional-classifiers","model-spec","alignment-tax","red-teaming"],"relatedSkillIds":["rlhf","reward-modeling","ai-guardrails","ai-red-teaming"],"inboundPaths":["/glossary","/atlas/genai-2026/skill/ai-guardrails"]},"seo":{"title":"Constitutional AI: Principles, Training and Limits","description":"Learn how Constitutional AI uses principles, critique and AI feedback to shape model behavior, and why governance and independent testing remain essential."},"updatedAt":"2026-08-27","indexable":true}},{"id":"alignment-tax","idx":65,"term":"Alignment tax","category":"Safety","round":"R1","year":"2020-04-03","author":"Paul Christiano used alignment tax in a public talk whose transcript was published in 2020, while cautiously and indirectly attributing the abstraction or wording to Eliezer Yudkowsky. Askell and coauthors later used the term while studying whether helpful, honest, and harmless interventions reduce general language-model performance. Subsequent teams applied it to performance regressions or drift introduced by alignment optimization. Usage remains distributed and sometimes broadens to the wider cost of choosing an aligned system.","description":"An alignment tax is an unwanted loss of capability, task performance, helpfulness, or efficiency associated with an intervention intended to make an AI system better follow human preferences or safety objectives. In empirical model research, the term usually refers to a measured regression relative to an appropriate base or pre-alignment model. In wider safety discourse it can also mean the competitive or resource cost of choosing a safer system, but that broader sense should be stated explicitly rather than assumed.","speculative":false,"maturity":3,"maturity_basis":"Maturity is rated 3 because the term has a documented 2020 public-use anchor, a 2021 language-model research anchor, and multiple independent, peer-reviewed applications at NeurIPS 2022 and 2023. It remains an informal umbrella rather than a standardized metric: papers operationalize the tax through different tasks, baselines, and forms of drift, and some uses extend beyond capability benchmarks into economic or organizational costs.","pl_status":"🆕","pl_term":"podatek alignmentowy","pl_comment":"Kalka, używana w obiegu safety PL","relation_count":4,"references":[["A General Language Assistant as a Laboratory for Alignment","https://arxiv.org/abs/2112.00861","paper"],["Training language models to follow instructions with human feedback","https://proceedings.neurips.cc/paper_files/paper/2022/hash/b1efde53be364a73914f58805a001731-Abstract.html","paper"],["Language Model Alignment with Elastic Reset","https://proceedings.neurips.cc/paper_files/paper/2023/hash/0a980183c520446f6b8afb6fa2a2c70e-Abstract-Conference.html","paper"],["Paul Christiano: Current Work in AI Alignment","https://www.effectivealtruism.org/articles/paul-christiano-current-work-in-ai-alignment","technical_analysis"]],"skill_id":"rlhf","editorial":{"id":"alignment-tax","identity":{"canonicalName":"Alignment tax","aliases":["safety tax","AI alignment tax"],"category":"Safety","lifecycle":"established","firstSeenDate":"2020-04-03","firstSeenNote":"The earliest directly verified public use in this review is a transcript of Paul Christiano's talk published on 3 April 2020. Christiano said he thought the abstraction, or at least the language, came from Eliezer Yudkowsky, but expressed uncertainty; this is an evidence anchor, not a unique-coinage attribution.","originAttribution":"Paul Christiano used alignment tax in a public talk whose transcript was published in 2020, while cautiously and indirectly attributing the abstraction or wording to Eliezer Yudkowsky. Askell and coauthors later used the term while studying whether helpful, honest, and harmless interventions reduce general language-model performance. Subsequent teams applied it to performance regressions or drift introduced by alignment optimization. Usage remains distributed and sometimes broadens to the wider cost of choosing an aligned system.","maturity":3},"content":{"definition":{"text":"An alignment tax is an unwanted loss of capability, task performance, helpfulness, or efficiency associated with an intervention intended to make an AI system better follow human preferences or safety objectives. In empirical model research, the term usually refers to a measured regression relative to an appropriate base or pre-alignment model. In wider safety discourse it can also mean the competitive or resource cost of choosing a safer system, but that broader sense should be stated explicitly rather than assumed.","sourceIds":["s1","s2","s3","s4"]},"originContext":{"text":"An Effective Altruism transcript published in April 2020 records Paul Christiano using alignment tax for the cost of insisting on an aligned rather than merely competent system. He said the abstraction or language might come from Eliezer Yudkowsky but was unsure, so the transcript does not establish coinage. A 2021 arXiv-only preprint from Askell and colleagues then used the term for possible model-performance losses from alignment interventions. NeurIPS papers in 2022 and 2023 applied it to measured regressions or drift accompanying alignment optimization and examined mitigations.","sourceIds":["s1","s2","s3","s4"]},"whyItMatters":{"text":"The term forces an evaluation to measure both the intended safety or preference gain and possible losses outside the optimized objective. Without that comparison, a high reward-model score or lower harmful-output rate can hide worse translation, reasoning, calibration, usefulness, or behavior on another distribution. Alignment tax is therefore a trade-off diagnosis, not an argument against alignment. It can motivate changes to data, objectives, regularization, evaluation coverage, or training procedure. It also cautions buyers and policymakers against assuming that safety and capability are always opposed: some interventions show little regression or improve both on the tested measures.","sourceIds":["s1","s2","s3"]},"usageExample":{"text":"A team compares a base model, a supervised model, and an RLHF model on safety evaluations, human preference judgments, and a fixed suite of unrelated capability tasks. The RLHF model improves preference and truthfulness but loses accuracy on several held-out benchmarks. The team can call the measured regression an alignment tax, report it by task and confidence interval, and test a mitigation. It should not publish one universal tax value: the result depends on the baseline, intervention, model scale, data, evaluator, and chosen tasks.","sourceIds":["s1","s2","s3"]},"distinctions":[{"termId":"reward-hacking","explanation":{"text":"Reward hacking describes optimizing a proxy in a way that defeats its intended goal. Alignment tax describes collateral degradation associated with an alignment intervention. A training run may exhibit both, but capability loss does not by itself prove that the model exploited its reward.","sourceIds":["s3"]}}],"maturityRationale":{"text":"Maturity is rated 3 because the term has a documented 2020 public-use anchor, a 2021 language-model research anchor, and multiple independent, peer-reviewed applications at NeurIPS 2022 and 2023. It remains an informal umbrella rather than a standardized metric: papers operationalize the tax through different tasks, baselines, and forms of drift, and some uses extend beyond capability benchmarks into economic or organizational costs.","sourceIds":["s1","s2","s3","s4"]},"limitations":{"text":"An observed regression may reflect evaluation noise, data mismatch, training instability, or a deliberate trade-off rather than an unavoidable property of alignment. Public benchmark scores can also miss safety benefits and real deployment costs. Comparisons should control model, compute, data, and decoding conditions where possible and should report which alignment target improved. The phrase must not turn a local result into a general law that safer systems are less capable; the reviewed studies include cases where the measured tax was small or mitigated.","sourceIds":["s1","s2","s3"]}},"sources":[{"id":"s1","title":"A General Language Assistant as a Laboratory for Alignment","url":"https://arxiv.org/abs/2112.00861","publisher":"arXiv","quality":"A","role":"primary","kind":"paper","publishedAt":"2021-12-01","accessedAt":"2026-09-05","verifiedAt":"2026-09-05"},{"id":"s2","title":"Training language models to follow instructions with human feedback","url":"https://proceedings.neurips.cc/paper_files/paper/2022/hash/b1efde53be364a73914f58805a001731-Abstract.html","publisher":"NeurIPS","quality":"A","role":"independent","kind":"paper","publishedAt":"2022-12","accessedAt":"2026-09-05","verifiedAt":"2026-09-05"},{"id":"s3","title":"Language Model Alignment with Elastic Reset","url":"https://proceedings.neurips.cc/paper_files/paper/2023/hash/0a980183c520446f6b8afb6fa2a2c70e-Abstract-Conference.html","publisher":"NeurIPS","quality":"A","role":"independent","kind":"paper","publishedAt":"2023-12","accessedAt":"2026-09-05","verifiedAt":"2026-09-05"},{"id":"s4","title":"Paul Christiano: Current Work in AI Alignment","url":"https://www.effectivealtruism.org/articles/paul-christiano-current-work-in-ai-alignment","publisher":"Effective Altruism","quality":"B","role":"primary","kind":"technical_analysis","publishedAt":"2020-04-03","accessedAt":"2026-09-05","verifiedAt":"2026-09-05"}],"relations":{"relatedTermIds":["constitutional-ai","rlhf","reward-hacking","ai-control"],"relatedSkillIds":["rlhf","reward-modeling","model-evaluation"],"inboundPaths":["/glossary","/glossary/term/constitutional-ai","/atlas/genai-2026/skill/rlhf"]},"seo":{"title":"Alignment Tax in AI: Meaning and Measurement","description":"Learn how alignment tax describes task-specific capability regressions after safety or preference training, and why it is not a universal constant."},"updatedAt":"2026-09-05","indexable":true}},{"id":"model-spec","idx":71,"term":"OpenAI Model Spec","category":"Safety","round":"R1","year":"2024-05-08","author":"OpenAI introduced the Model Spec as a public, evolving statement of intended behavior for models in its products and API. Later dated editions changed its structure and content. The name is vendor-specific; written constitutions and behavioral specifications from other organizations belong to the broader family but are not automatically OpenAI Model Spec versions.","description":"The OpenAI Model Spec is OpenAI's versioned public document describing intended assistant behavior, including objectives, instruction authority, safety boundaries, defaults, and ways to handle conflicts. It is both a behavior-design artifact and a possible audit target. It is not a model card, a complete list of product policies, a contractual guarantee, or proof that a deployed model will produce the specified response in every context.","speculative":false,"maturity":3,"maturity_basis":"Maturity is rated 3 because the named document has multiple dated editions, documented use as a behavioral target, and independent audit research. The independent evidence is an arXiv-only preprint rather than a peer-reviewed final publication, and the specification remains explicitly evolving. The rating does not imply a cross-vendor standard or complete conformance by production models.","pl_status":"🔤","pl_term":"Model Spec","pl_comment":"Nazwa dokumentu OpenAI","relation_count":4,"references":[["Model Spec (2024/05/08)","https://cdn.openai.com/spec/model-spec-2024-05-08.html","official_docs"],["Model Spec (2025/04/11)","https://model-spec.openai.com/2025-04-11.html","official_docs"],["How Well Do Models Follow Their Constitutions?","https://arxiv.org/abs/2605.24229","paper"],["Model Spec (2025/12/18)","https://model-spec.openai.com/2025-12-18.html","official_docs"],["Model Spec (2026/08/18)","https://model-spec.openai.com/2026-08-18.html","official_docs"],["Model Spec changelog","https://github.com/openai/model_spec/blob/main/CHANGELOG.md","repository"]],"skill_id":"ai-guardrails","editorial":{"id":"model-spec","identity":{"canonicalName":"OpenAI Model Spec","aliases":["Model Spec","OpenAI model specification"],"category":"Safety","lifecycle":"established","firstSeenDate":"2024-05-08","firstSeenNote":"OpenAI published the first public Model Spec and its dated snapshot on 8 May 2024. This anchors the named OpenAI document, not the broader idea of specifying model behavior in written principles.","originAttribution":"OpenAI introduced the Model Spec as a public, evolving statement of intended behavior for models in its products and API. Later dated editions changed its structure and content. The name is vendor-specific; written constitutions and behavioral specifications from other organizations belong to the broader family but are not automatically OpenAI Model Spec versions.","maturity":3},"content":{"definition":{"text":"The OpenAI Model Spec is OpenAI's versioned public document describing intended assistant behavior, including objectives, instruction authority, safety boundaries, defaults, and ways to handle conflicts. It is both a behavior-design artifact and a possible audit target. It is not a model card, a complete list of product policies, a contractual guarantee, or proof that a deployed model will produce the specified response in every context.","sourceIds":["s1","s3","s5"]},"originContext":{"text":"OpenAI released the first public Model Spec on 8 May 2024 as an evolving account of intended model behavior. Dated snapshots from 11 April and 18 December 2025 record later states of the document; the December snapshot is the exact edition evaluated by an independent 2026 arXiv preprint. The official changelog identifies 18 August 2026 as the latest release reviewed for this page. Because the document's structure and rules change between releases, claims about its content or conformance must identify the snapshot rather than rely on the mutable root page.","sourceIds":["s1","s2","s3","s4","s5","s6"]},"whyItMatters":{"text":"A public behavioral specification makes normative product choices easier to inspect than scattered examples or refusal anecdotes. Developers can see how instruction levels and defaults are supposed to interact; researchers can turn individual rules into testable claims; and governance teams can compare published intent with observed behavior. The value is version-sensitive: when wording or hierarchy changes, an evaluation against one edition may not answer whether another edition is followed. The specification also separates desired model behavior from usage policies, deployment controls, and broader safety processes, which remain additional governance layers.","sourceIds":["s1","s3","s5","s6"]},"usageExample":{"text":"An evaluator auditing instruction conflicts can select a dated Model Spec edition, extract the relevant authority rule, construct ordinary and adversarial multi-turn scenarios, and record whether a named deployed model follows that rule. The report should identify the model snapshot, system configuration, spec edition, elicitation method, and scoring procedure. A failure demonstrates a mismatch under those conditions; it does not by itself show that the entire specification is absent from training or that every deployment behaves identically.","sourceIds":["s3","s4","s5"]},"distinctions":[{"termId":"constitutional-ai","explanation":{"text":"Constitutional AI is a family of training methods that uses written principles for critique, revision, or feedback. The OpenAI Model Spec is a particular vendor's behavioral specification. A specification can inform training or evaluation without being synonymous with the Constitutional AI method.","sourceIds":["s1","s2","s3","s5"]}},{"termId":"deliberative-alignment","explanation":{"text":"Deliberative alignment is a method for teaching models to reason over explicit safety specifications. The Model Spec is the content artifact against which behavior may be trained or evaluated, not the post-training method itself.","sourceIds":["s2","s3","s5"]}}],"maturityRationale":{"text":"Maturity is rated 3 because the named document has multiple dated editions, documented use as a behavioral target, and independent audit research. The independent evidence is an arXiv-only preprint rather than a peer-reviewed final publication, and the specification remains explicitly evolving. The rating does not imply a cross-vendor standard or complete conformance by production models.","sourceIds":["s1","s3","s5","s6"]},"limitations":{"text":"The specification is normative: it states desired behavior rather than directly measuring deployed behavior. Public editions may omit internal detail, and models, product layers, system instructions, tools, and policies can all change the observed outcome. Comparisons must pin both the spec edition and the tested system. The 2026 audit reports edition-relative results but cannot isolate specification-specific training from broader post-training improvements or evaluation awareness. Legal or safety conclusions should therefore use applicable policy and law in addition to the Model Spec.","sourceIds":["s3","s4","s5"]}},"sources":[{"id":"s1","title":"Model Spec (2024/05/08)","url":"https://cdn.openai.com/spec/model-spec-2024-05-08.html","publisher":"OpenAI","quality":"A","role":"primary","kind":"official_docs","publishedAt":"2024-05-08","accessedAt":"2026-09-05","verifiedAt":"2026-09-05"},{"id":"s2","title":"Model Spec (2025/04/11)","url":"https://model-spec.openai.com/2025-04-11.html","publisher":"OpenAI","quality":"A","role":"primary","kind":"official_docs","publishedAt":"2025-04-11","accessedAt":"2026-09-05","verifiedAt":"2026-09-05"},{"id":"s3","title":"How Well Do Models Follow Their Constitutions?","url":"https://arxiv.org/abs/2605.24229","publisher":"arXiv","quality":"B","role":"independent","kind":"paper","publishedAt":"2026-05-22","accessedAt":"2026-09-05","verifiedAt":"2026-09-05"},{"id":"s4","title":"Model Spec (2025/12/18)","url":"https://model-spec.openai.com/2025-12-18.html","publisher":"OpenAI","quality":"A","role":"primary","kind":"official_docs","publishedAt":"2025-12-18","accessedAt":"2026-09-05","verifiedAt":"2026-09-05"},{"id":"s5","title":"Model Spec (2026/08/18)","url":"https://model-spec.openai.com/2026-08-18.html","publisher":"OpenAI","quality":"A","role":"primary","kind":"official_docs","publishedAt":"2026-08-18","accessedAt":"2026-09-05","verifiedAt":"2026-09-05"},{"id":"s6","title":"Model Spec changelog","url":"https://github.com/openai/model_spec/blob/main/CHANGELOG.md","publisher":"OpenAI","quality":"A","role":"primary","kind":"repository","publishedAt":"2026-08-18","accessedAt":"2026-09-05","verifiedAt":"2026-09-05"}],"relations":{"relatedTermIds":["constitutional-ai","deliberative-alignment","ai-guardrails","rlhf"],"relatedSkillIds":["ai-guardrails","model-evaluation","rlhf"],"inboundPaths":["/glossary","/glossary/term/constitutional-ai","/atlas/genai-2026/skill/ai-guardrails"]},"seo":{"title":"OpenAI Model Spec: Scope, Versions and Auditing","description":"Learn what the OpenAI Model Spec defines, how dated versions differ from policies and model cards, and why stated behavior is not guaranteed behavior."},"updatedAt":"2026-09-05","indexable":true}},{"id":"process-reward-model-prm","idx":135,"term":"Process Reward Model (PRM)","category":"Trening","round":"R2","year":"2022-11-25","author":"The modern PRM concept emerged through distributed reasoning-supervision research. Uesato and collaborators compared process and outcome feedback; Lightman and collaborators trained a process reward model on human step labels; later teams developed automatically supervised PRMs.","description":"A process reward model, or PRM, is a learned model that scores intermediate steps in a multi-step solution or trajectory. It can provide a score after each step, helping a system rank candidate solutions or supply a training signal. Process supervision is the broader labeling or training regime that evaluates intermediate reasoning; a PRM is one model trained to approximate that feedback. An outcome reward model instead scores the final result.","speculative":false,"maturity":3,"maturity_basis":"Maturity is rated 3. The concept has clear primary comparisons, a large released human-label dataset, and an independent peer-reviewed implementation. Results are still concentrated in mathematical reasoning, and training labels, score aggregation, and transfer behavior vary across systems.","pl_status":null,"pl_term":null,"pl_comment":"The legacy Polish fields describe model-picker fatigue rather than process reward models and are withheld pending Polish-language editorial review.","relation_count":5,"references":[["Solving math word problems with process- and outcome-based feedback","https://arxiv.org/abs/2211.14275","paper"],["Let's Verify Step by Step","https://arxiv.org/abs/2305.20050","paper"],["Math-Shepherd: Verify and Reinforce LLMs Step-by-step without Human Annotations","https://aclanthology.org/2024.acl-long.510/","paper"]],"skill_id":"reward-modeling","editorial":{"id":"process-reward-model-prm","identity":{"canonicalName":"Process Reward Model (PRM)","aliases":["process reward model","step-level reward model","PRM verifier"],"category":"Trening","lifecycle":"established","firstSeenDate":"2022-11-25","firstSeenNote":"The date anchors the earliest reviewed comparison in this evidence set between process- and outcome-based feedback for language-model reasoning. The widely cited PRM800K process-reward-model work followed in May 2023.","originAttribution":"The modern PRM concept emerged through distributed reasoning-supervision research. Uesato and collaborators compared process and outcome feedback; Lightman and collaborators trained a process reward model on human step labels; later teams developed automatically supervised PRMs.","maturity":3},"content":{"definition":{"text":"A process reward model, or PRM, is a learned model that scores intermediate steps in a multi-step solution or trajectory. It can provide a score after each step, helping a system rank candidate solutions or supply a training signal. Process supervision is the broader labeling or training regime that evaluates intermediate reasoning; a PRM is one model trained to approximate that feedback. An outcome reward model instead scores the final result.","sourceIds":["s1","s2","s3"]},"originContext":{"text":"Uesato and collaborators reported a 2022 comparison of process- and outcome-based feedback on GSM8K. In 2023, Lightman and collaborators found process supervision stronger than outcome supervision in their MATH experiments and released PRM800K, containing step-level human labels used for their reward model. Math-Shepherd then demonstrated an independently developed PRM trained with automatically constructed process supervision and applied it to reranking and reinforcement learning.","sourceIds":["s1","s2","s3"]},"whyItMatters":{"text":"A final answer can be correct despite invalid reasoning, or wrong after several useful steps. Step-level scores expose a finer signal than a single terminal verdict. They can help select among sampled solutions, identify where a trajectory first goes off course, or shape training toward better intermediate work. That extra granularity costs annotation or synthetic-labeling effort and does not make the learned judge infallible.","sourceIds":["s1","s2","s3"]},"usageExample":{"text":"For a math problem, a system generates several worked solutions, divides each into steps, and asks a PRM to score the progression after every step. It aggregates those scores to rerank complete solutions before returning one. Developers compare the ranking with held-out expert labels and final-answer checks. A high PRM score is treated as model evidence, not as a proof that every step is valid.","sourceIds":["s2","s3"]},"distinctions":[{"termId":"outcome-reward-model-orm","explanation":{"text":"A PRM evaluates intermediate steps; an outcome reward model evaluates the final result or completed trajectory. They are sibling approaches, not duplicate names. Outcome feedback is often cheaper, while process feedback can reveal reasoning errors that a correct endpoint conceals.","sourceIds":["s1","s2"]}},{"termId":"rlhf","explanation":{"text":"RLHF is a broader alignment workflow that can use learned rewards derived from human preferences. A PRM specifies where a reward is assigned within a multi-step trajectory. PRMs can also be used only for verification or reranking, without an RLHF training loop.","sourceIds":["s2","s3"]}}],"maturityRationale":{"text":"Maturity is rated 3. The concept has clear primary comparisons, a large released human-label dataset, and an independent peer-reviewed implementation. Results are still concentrated in mathematical reasoning, and training labels, score aggregation, and transfer behavior vary across systems.","sourceIds":["s1","s2","s3"]},"limitations":{"text":"A PRM can learn annotator shortcuts, favor familiar solution styles, or assign locally plausible scores to a globally flawed argument. Automatically generated step labels may scale supervision while importing errors from the labeling procedure. Aggregating step scores can change rankings, and performance on math does not establish reliability in medicine, law, or open-ended agent work. Teams should evaluate calibration, adversarial robustness, domain transfer, and disagreement with qualified reviewers before using PRM scores in consequential decisions.","sourceIds":["s1","s2","s3"]}},"sources":[{"id":"s1","title":"Solving math word problems with process- and outcome-based feedback","url":"https://arxiv.org/abs/2211.14275","publisher":"DeepMind / arXiv","quality":"A","role":"primary","kind":"paper","publishedAt":"2022-11-25","accessedAt":"2026-09-03","verifiedAt":"2026-09-03"},{"id":"s2","title":"Let's Verify Step by Step","url":"https://arxiv.org/abs/2305.20050","publisher":"OpenAI / arXiv","quality":"A","role":"independent","kind":"paper","publishedAt":"2023-05-31","accessedAt":"2026-09-03","verifiedAt":"2026-09-03"},{"id":"s3","title":"Math-Shepherd: Verify and Reinforce LLMs Step-by-step without Human Annotations","url":"https://aclanthology.org/2024.acl-long.510/","publisher":"ACL Anthology","quality":"A","role":"independent","kind":"paper","publishedAt":"2024-08","accessedAt":"2026-09-03","verifiedAt":"2026-09-03"}],"relations":{"relatedTermIds":["outcome-reward-model-orm","llm-as-a-judge","rlhf","rlvr","grpo"],"relatedSkillIds":["reward-modeling","rlhf"],"inboundPaths":["/glossary","/atlas/genai-2026/skill/reward-modeling"]},"seo":{"title":"Process Reward Models: PRMs Explained","description":"Learn how process reward models score intermediate reasoning steps, how PRMs differ from process supervision and outcome reward models, and where they fail."},"updatedAt":"2026-09-03","indexable":true}}]},"roles":{"version":"2026-10-24","profileVersion":"2026-10-24.1","catalogDigest":"f5c4c4ea889834ddd8ba6d18d4a098e762142d8db3be3d7edf82e48fd6a8d3b4","note":"Editorial role profiles covering technology, business, operations and engineering. Skills and task examples are indicative, not a complete occupational standard.","sources":{"sfia-profiles":{"title":"SFIA 9 illustrative skills profiles","url":"https://sfia-online.org/en/tools-and-resources/standard-industry-skills-profiles/sfia_9_illustrative_skills_profiles.pdf","scope":"Illustrative professional responsibilities; related context, not formal occupation equivalence.","accessedOn":"2026-10-24"},"sfia-ai":{"title":"SFIA illustrative AI professional role archetypes","url":"https://sfia-online.org/en/tools-and-resources/ai-skills-framework/illustrative-levelled-role-archetypes-for-cwa-18398-ai-professional-role-profiles-mapped-to-sfia","scope":"Related AI responsibilities; this catalogue remains an editorial synthesis.","accessedOn":"2026-10-24"},"ilo-tasks":{"title":"ILO: Generative AI and Jobs — task-level exposure methodology (2025)","url":"https://www.ilo.org/publications/generative-ai-and-jobs-refined-global-index-occupational-exposure","scope":"Methodological context only. ILO did not assess or validate the scores in this catalogue.","accessedOn":"2026-10-24"},"metr-context":{"title":"METR: Developer productivity experiment update (February 2026)","url":"https://metr.org/blog/2026-02-24-uplift-update/","scope":"Evidence that measured productivity depends on context and study design; not calibration for these scores.","accessedOn":"2026-10-24"},"onet-11":{"title":"O*NET occupational family: Management","url":"https://www.onetonline.org/find/family?f=11","scope":"Related occupational-family context. No exact occupation-code mapping is claimed.","accessedOn":"2026-10-24"},"onet-13":{"title":"O*NET occupational family: Business and Financial Operations","url":"https://www.onetonline.org/find/family?f=13","scope":"Related occupational-family context. No exact occupation-code mapping is claimed.","accessedOn":"2026-10-24"},"onet-15":{"title":"O*NET occupational family: Computer and Mathematical","url":"https://www.onetonline.org/find/family?f=15","scope":"Related occupational-family context. No exact occupation-code mapping is claimed.","accessedOn":"2026-10-24"},"onet-17":{"title":"O*NET occupational family: Architecture and Engineering","url":"https://www.onetonline.org/find/family?f=17","scope":"Related occupational-family context. No exact occupation-code mapping is claimed.","accessedOn":"2026-10-24"},"onet-25":{"title":"O*NET occupational family: Educational Instruction and Library","url":"https://www.onetonline.org/find/family?f=25","scope":"Related occupational-family context. No exact occupation-code mapping is claimed.","accessedOn":"2026-10-24"},"onet-27":{"title":"O*NET occupational family: Arts, Design and Media","url":"https://www.onetonline.org/find/family?f=27","scope":"Related occupational-family context. No exact occupation-code mapping is claimed.","accessedOn":"2026-10-24"},"onet-41":{"title":"O*NET occupational family: Sales and Related","url":"https://www.onetonline.org/find/family?f=41","scope":"Related occupational-family context. No exact occupation-code mapping is claimed.","accessedOn":"2026-10-24"},"onet-43":{"title":"O*NET occupational family: Office and Administrative Support","url":"https://www.onetonline.org/find/family?f=43","scope":"Related occupational-family context. No exact occupation-code mapping is claimed.","accessedOn":"2026-10-24"},"onet-49":{"title":"O*NET occupational family: Installation, Maintenance and Repair","url":"https://www.onetonline.org/find/family?f=49","scope":"Related occupational-family context. No exact occupation-code mapping is claimed.","accessedOn":"2026-10-24"},"onet-51":{"title":"O*NET occupational family: Production","url":"https://www.onetonline.org/find/family?f=51","scope":"Related occupational-family context. No exact occupation-code mapping is claimed.","accessedOn":"2026-10-24"},"onet-53":{"title":"O*NET occupational family: Transportation and Material Moving","url":"https://www.onetonline.org/find/family?f=53","scope":"Related occupational-family context. No exact occupation-code mapping is claimed.","accessedOn":"2026-10-24"}},"categories":[]},"exposure":{"version":"2026-10-24","catalogDigest":"f5c4c4ea889834ddd8ba6d18d4a098e762142d8db3be3d7edf82e48fd6a8d3b4","method":{"version":"task-scenario-1","assessmentDate":"2026-10-24","title":"Illustrative task-based AI exposure","scenario":"AI-assisted software and agents with authorized access to relevant digital inputs and tools. A person verifies material outputs and retains decisions, permissions and accountability. Required quality is fit for the stated work context. Physical robotics and unrestricted autonomous action are outside the scenario.","weighting":"Each of the six representative tasks has weight 1. These are assumed units of work, not measured time shares.","outcomes":{"commoditize":"AI can produce a constrained routine output, with human verification.","mixed":"AI assistance is material, but integration, reliability or context can dominate completion.","amplify":"AI supports analysis or design while contextual judgment remains central.","durable":"Physical presence, interpersonal trust or accountable decisions remain central under this scenario."},"calculation":"Sum task weights within each outcome, divide by total weight, and multiply by 100. Display integer percentages using largest remainders in the order commoditize, mixed, amplify, durable. If raw commoditize and amplify are equal, preserve their equality with the floor-or-ceiling allocation having the smallest squared rounding error and a total of 100. Displayed net = displayed commoditize minus displayed amplify. Raw values are retained.","sensitivity":"Range of raw net over all combinations of task weights 0.5 or 2, plus each single-task alternative classification at baseline weights. The two perturbations are evaluated separately. This is a scenario range, not a confidence interval or exhaustive bound.","limitations":"Task selection and classifications are AI-assisted editorial judgments. They have not been independently validated by occupation specialists or calibrated against observed work time or productivity. Scores are not probabilities of replacement, pay forecasts, headcount estimates or assessments of people. Similar net values can conceal very different work.","review":{"type":"AI-assisted editorial review","date":"2026-10-24","independentDomainValidation":false,"scope":"Profile boundaries, explicit task assumptions, rationale consistency and arithmetic. No tool-performance experiment was conducted for these profiles."},"sourceIds":["ilo-tasks","metr-context"]},"sources":{"sfia-profiles":{"title":"SFIA 9 illustrative skills profiles","url":"https://sfia-online.org/en/tools-and-resources/standard-industry-skills-profiles/sfia_9_illustrative_skills_profiles.pdf","scope":"Illustrative professional responsibilities; related context, not formal occupation equivalence.","accessedOn":"2026-10-24"},"sfia-ai":{"title":"SFIA illustrative AI professional role archetypes","url":"https://sfia-online.org/en/tools-and-resources/ai-skills-framework/illustrative-levelled-role-archetypes-for-cwa-18398-ai-professional-role-profiles-mapped-to-sfia","scope":"Related AI responsibilities; this catalogue remains an editorial synthesis.","accessedOn":"2026-10-24"},"ilo-tasks":{"title":"ILO: Generative AI and Jobs — task-level exposure methodology (2025)","url":"https://www.ilo.org/publications/generative-ai-and-jobs-refined-global-index-occupational-exposure","scope":"Methodological context only. ILO did not assess or validate the scores in this catalogue.","accessedOn":"2026-10-24"},"metr-context":{"title":"METR: Developer productivity experiment update (February 2026)","url":"https://metr.org/blog/2026-02-24-uplift-update/","scope":"Evidence that measured productivity depends on context and study design; not calibration for these scores.","accessedOn":"2026-10-24"},"onet-11":{"title":"O*NET occupational family: Management","url":"https://www.onetonline.org/find/family?f=11","scope":"Related occupational-family context. No exact occupation-code mapping is claimed.","accessedOn":"2026-10-24"},"onet-13":{"title":"O*NET occupational family: Business and Financial Operations","url":"https://www.onetonline.org/find/family?f=13","scope":"Related occupational-family context. No exact occupation-code mapping is claimed.","accessedOn":"2026-10-24"},"onet-15":{"title":"O*NET occupational family: Computer and Mathematical","url":"https://www.onetonline.org/find/family?f=15","scope":"Related occupational-family context. No exact occupation-code mapping is claimed.","accessedOn":"2026-10-24"},"onet-17":{"title":"O*NET occupational family: Architecture and Engineering","url":"https://www.onetonline.org/find/family?f=17","scope":"Related occupational-family context. No exact occupation-code mapping is claimed.","accessedOn":"2026-10-24"},"onet-25":{"title":"O*NET occupational family: Educational Instruction and Library","url":"https://www.onetonline.org/find/family?f=25","scope":"Related occupational-family context. No exact occupation-code mapping is claimed.","accessedOn":"2026-10-24"},"onet-27":{"title":"O*NET occupational family: Arts, Design and Media","url":"https://www.onetonline.org/find/family?f=27","scope":"Related occupational-family context. No exact occupation-code mapping is claimed.","accessedOn":"2026-10-24"},"onet-41":{"title":"O*NET occupational family: Sales and Related","url":"https://www.onetonline.org/find/family?f=41","scope":"Related occupational-family context. No exact occupation-code mapping is claimed.","accessedOn":"2026-10-24"},"onet-43":{"title":"O*NET occupational family: Office and Administrative Support","url":"https://www.onetonline.org/find/family?f=43","scope":"Related occupational-family context. No exact occupation-code mapping is claimed.","accessedOn":"2026-10-24"},"onet-49":{"title":"O*NET occupational family: Installation, Maintenance and Repair","url":"https://www.onetonline.org/find/family?f=49","scope":"Related occupational-family context. No exact occupation-code mapping is claimed.","accessedOn":"2026-10-24"},"onet-51":{"title":"O*NET occupational family: Production","url":"https://www.onetonline.org/find/family?f=51","scope":"Related occupational-family context. No exact occupation-code mapping is claimed.","accessedOn":"2026-10-24"},"onet-53":{"title":"O*NET occupational family: Transportation and Material Moving","url":"https://www.onetonline.org/find/family?f=53","scope":"Related occupational-family context. No exact occupation-code mapping is claimed.","accessedOn":"2026-10-24"}},"note":"Task selection and classifications are AI-assisted editorial judgments. They have not been independently validated by occupation specialists or calibrated against observed work time or productivity. Scores are not probabilities of replacement, pay forecasts, headcount estimates or assessments of people. Similar net values can conceal very different work.","grouping":{"method":"Editorial work families shared with the Role Dictionary. Each role has one primary family; real jobs may combine several profiles.","families":[{"id":"SW","label":"Software Development & Testing","n":16},{"id":"CL","label":"Cloud, Platform & IT Operations","n":14},{"id":"SEC","label":"Cybersecurity & Privacy","n":8},{"id":"DATA","label":"Data Engineering & Analytics","n":11},{"id":"AI","label":"AI & Machine Learning","n":6},{"id":"ENT","label":"Enterprise Applications & Business Analysis","n":6},{"id":"PROD","label":"Product, Project & Change Management","n":8},{"id":"SALES","label":"Sales & Customer Service","n":10},{"id":"MKT","label":"Marketing, Design & Content","n":12},{"id":"HR","label":"People, Learning & Education","n":10},{"id":"FIN","label":"Finance & Accounting","n":6},{"id":"OPS","label":"Business Operations & Administration","n":6},{"id":"LOG","label":"Supply Chain & Logistics","n":4},{"id":"ELEC","label":"Electrical & Industrial Automation","n":4},{"id":"MECH","label":"Mechanical & Manufacturing Engineering","n":5},{"id":"BUILT","label":"Construction & Energy Engineering","n":2},{"id":"QUAL","label":"Quality, Safety & Compliance","n":6},{"id":"EMB","label":"Embedded Systems & Electronics","n":3}]},"roles":[]},"newsroom":{"schemaVersion":"1.1.0","generatedAt":"2026-11-23T18:47:38.499Z","topics":[{"decisionQuestion":"Which tasks have become newly feasible, cheaper, more reliable, or more autonomous?","id":"ai_capability_frontier","label":"AI Capability Frontier"},{"decisionQuestion":"How are tasks, role boundaries, accountability, and human-machine collaboration changing?","id":"work_and_role_change","label":"Work and Role Change"},{"decisionQuestion":"Which capabilities are gaining or losing demand, and where is the evidence visible?","id":"skills_demand_and_labour_market","label":"Skills Demand and Labour Market"},{"decisionQuestion":"How are skills data, inference, assessment, mobility, learning, and workforce-planning systems changing?","id":"skills_systems_and_hr_tech","label":"Skills Systems and HR Tech"},{"decisionQuestion":"Which rules, classifications, standards, and decision rights change what organisations must do?","id":"policy_standards_and_governance","label":"Policy, Standards and Governance"}],"articles":[]},"summary":{"skillCount":473,"sectionCount":15,"ontologyCount":467,"prerequisiteCount":344,"atlasEditorialDate":"2026-11-02","sectionSkillCounts":{"mathematical-statistical-foundations":15,"classical-machine-learning-modeling":40,"deep-learning-foundation-model-architectures":40,"natural-language-processing-computer-vision":41,"model-training-fine-tuning-alignment":21,"prompt-engineering-model-interaction":21,"retrieval-augmented-generation-knowledge-systems":35,"agentic-ai-systems":42,"llmops-model-serving-inference-optimization":41,"ai-evaluation-observability":26,"ai-safety-security-governance-ethics":26,"data-engineering-pipelines":43,"software-engineering-for-ai":36,"cloud-ai-platform-infrastructure":24,"ai-product-collaboration-professional-practice":22},"atlasFacts":{"skills":473,"sections":15,"ontologyRelations":467,"prerequisiteRelations":344,"prerequisites":{"hard":173,"medium":153,"soft":18,"other":0}},"transformerPrerequisites":[{"skill":"Transformer Architecture","skill_id":"transformer-architecture","prerequisite":"Deep Learning","prerequisite_id":"deep-learning","strength":"hard","rationale":"Self-attention, layer normalization, residual connections, softmax — all are DL building blocks assembled in the Transformer"},{"skill":"Transformer Architecture","skill_id":"transformer-architecture","prerequisite":"Linear Algebra","prerequisite_id":"linear-algebra","strength":"hard","rationale":"Q·Kᵀ/√d is a scaled dot product of matrices; multi-head attention is parallel matrix projections — Transformers ARE linear algebra in action"}],"glossaryTermCount":421,"glossaryMaturityCounts":[59,69,215,58,20],"roleCount":137,"exposureFacts":{"roles":137,"assessed":137,"unassessed":0,"exposed":55,"amplified":39,"neutral":43},"exposureLeadersExposed":[{"role":"Accounting Administrator","net":50},{"role":"Document Controller","net":34},{"role":"IT Support Specialist","net":33},{"role":"Office Administrator","net":33},{"role":"Communications & Events Coordinator","net":33}],"exposureLeadersAmplified":[{"role":"Machine Learning Engineer","net":-16},{"role":"Software Architect","net":-16},{"role":"Network Engineer","net":-16},{"role":"Site Reliability Engineer","net":-16},{"role":"Cloud Infrastructure Engineer","net":-16}],"newsroomArticleCount":360,"newsroomTopicCounts":{"ai_capability_frontier":171,"work_and_role_change":157,"skills_demand_and_labour_market":98,"skills_systems_and_hr_tech":152,"policy_standards_and_governance":188}},"partialSlices":["atlas","glossary","roles","exposure","newsroom"]}