Best Practices

From PRIMO.ai
Jump to navigation Jump to search

YouTube search... ... Quora search ...Google search ...Google News ...Bing News


AI best practices are the working rules that teams use to build, evaluate, ship, and govern artificial intelligence systems so that they solve a real problem and keep solving it after launch. They cover the whole lifecycle: framing the problem, collecting and documenting data, choosing a baseline, measuring performance honestly, deploying safely, monitoring for silent failure, securing the system against attack, and assigning human accountability. Most of these practices were learned the hard way from systems that looked excellent in an experimental notebook and failed in production.

The modern canon comes from a concentrated set of engineering and research traditions:

  • Production ML engineering. At Google, Martin Zinkevich's Rules of Machine Learning (43 rules, maintained and updated in August 2025), D. Sculley and colleagues' paper on hidden technical debt in machine learning systems (2015), and Eric Breck and colleagues' ML Test Score rubric of 28 production tests (2017) defined how to run ML as a disciplined software engineering practice.
  • Data-centric AI. Andrew Ng's 2021 campaign argued that holding the model architecture fixed and systematically improving the data often beats the reverse. Google researchers showed that "data cascades," compounding problems caused by undervalued data work, affected 92 percent of the practitioners they interviewed.
  • Human-AI interaction. Saleema Amershi and colleagues at Microsoft Research published 18 guidelines for how AI systems should behave initially, during interaction, when they are wrong, and over time (CHI 2019).
  • Scientific rigor and evaluation. Princeton researchers Arvind Narayanan and Sayash Kapoor documented how data leakage inflates results across ML-based science, co-led the REFORMS reporting checklist, and built the Holistic Agent Leaderboard (HAL) for cost-aware evaluation of AI agents. Anthropic's Evan Miller demonstrated how to calculate error bars on model evaluations, while practitioners such as Hamel Husain and Shreya Shankar established systematic error analysis and application-specific "evals" as core disciplines for teams building on large language models (LLMs).
  • Standards and regulation. NIST's AI Risk Management Framework, ISO/IEC 42001 and 42005, OWASP's security top-ten lists for LLM and agentic applications, and the EU AI Act translate many of these engineering practices into auditable legal and organizational expectations.

The underlying problem best practices address is that AI systems fail differently from conventional software. Behavior is learned from data rather than explicitly programmed, outputs are probabilistic, quality is measured through proxies, and performance can decay without raising any error message when real-world conditions drift away from the training distribution. A 2024 RAND study, noting estimates that more than 80 percent of AI projects fail (roughly twice the rate of non-AI IT projects), interviewed 65 experienced data scientists and engineers and traced most failures to organizational missteps rather than algorithmic limitations.

The central mechanism behind these rules is an empirical feedback loop. Each practice makes one link in the chain from business objective to data, model, measurement, deployment, and monitoring observable and testable, ensuring errors surface early and cheaply. Over the past decade, the field has shifted from model-centric to system-centric thinking, recognizing that the learning algorithm is usually a small fraction of a production system and that most gains come from better data, features, evaluation, and operations. Foundation models accelerated this shift because many teams no longer train models from scratch, moving the core engineering work to evaluating, constraining, securing, and budgeting systems built from prompts, retrieval-augmented generation, tools, and autonomous agents. At the same time, guidance that used to be purely voluntary is increasingly anchored in statute, from the EU AI Act's risk-management duties to the Texas Responsible AI Governance Act's safe harbor for organizations that substantially comply with the NIST framework.

Whereas earlier guidance centered on platform-specific workflows and single-number model accuracy, the current consensus treats accuracy as just one dimension of quality alongside reliability, cost, latency, safety, security, fairness, and accountability. It also treats measurement itself as an engineering artifact requiring rigorous validation. To explain how teams choose and apply these rules, this page also examines two foundational frameworks: heuristics, the rules of thumb that both people and AI systems use under uncertainty, and the Pareto principle, which explains why a vital few causes usually dominate outcomes and how to compare systems that trade competing goals against one another.



Best practices are heuristics distilled from failure. Most AI projects succeed or fail on problem framing, data, measurement, and operations rather than on the choice of model, so the highest-leverage practices are the unglamorous ones: start simple, look at real data, measure with error bars, count the cost, and keep a human accountable for what the system does.



Best Practices Across the AI Lifecycle

The table below organizes the most widely shared practices by lifecycle stage. Rather than serving as a rigid mandate, it functions as a diagnostic map: which practices carry the highest priority depends on the stakes of the decision, the structure of the data, and whether a team is training custom models or composing existing foundation models.

Stage Core practices Why it matters (evidence) Key references
Problem framing State the decision the system supports and the metric that defines success before choosing a technique; consider launching with a simple rule first RAND's interviews found misunderstanding or miscommunicating the project's purpose was the most common root cause of failure; the first rules in Zinkevich's guide say not to be afraid to launch without ML and to design metrics first RAND (2024); Rules of ML #1 to #3
Data Document provenance and collection (datasheets), check label consistency, version datasets, budget real time for data work Data cascades appeared in 92 percent of 53 practitioners' projects; indiscriminate training on model-generated data can erase the tails of a distribution Sambasivan et al. (CHI 2021); Gebru et al.; Shumailov et al. (Nature 2024)
Baselines and modeling Start with a simple, interpretable model or heuristic; add complexity only when it beats the baseline on held-out data In a reproduction of civil war prediction studies, complex ML models did not substantively beat logistic regression once leakage errors were fixed Rules of ML #4, #14; Kapoor and Narayanan (Patterns 2023)
Evaluation Hold out data correctly (often by time), check for leakage, report error bars, slice results by subgroup, write application-specific evals from real error analysis Leakage affected at least 294 papers across 17 fields; many leaderboard gaps are smaller than their statistical noise REFORMS (Science Advances 2024); Miller (2024); Husain and Shankar
Deployment Share code between training and serving, log features at serving time, roll out with canaries or A/B tests, validate before export Training-serving skew is one of the most common production failures Google reports Rules of ML #29 to #37; ML Test Score; Google MLOps levels 0 to 2
Monitoring Track input statistics, feature coverage, freshness, and outcome metrics; alert on silent degradation A Google Play table that had silently gone six months stale cost about 2 percent of installs until it was refreshed Rules of ML #8 to #10
Human-AI interaction Make clear what the system can do and how well; make correction and dismissal easy; explain when appropriate Users calibrate trust from what the interface shows them; overconfidence and silent errors erode it Microsoft HAX guidelines; AI Verification and Validation
Security Threat-model prompt injection, data poisoning, model extraction, and tool misuse; give agents least privilege and human approval for consequential actions Attacks target every lifecycle stage; agents add goal hijacking, tool misuse, and cascading failures NIST AI 100-2 E2025; OWASP LLM Top 10 (2025); OWASP Agentic Top 10 (2026)
Governance Keep an AI inventory, assess risk and impact per system, assign owners, document decisions, revisit on a schedule Frameworks are becoming legal reference points (EU AI Act, Texas TRAIGA) NIST AI RMF; ISO/IEC 42001 and 42005; AI Governance
Cost and value Report cost and latency next to accuracy; compare systems on a Pareto frontier; measure realized value, not perceived value Agent configurations with nearly identical accuracy can differ in cost by an order of magnitude; developers' perceived speedups have diverged sharply from measured ones HAL (ICLR 2026); METR (2025, 2026)

A Practical Starting Checklist

For a new AI project, working through the following diagnostic questions catches most of the failure modes documented in empirical research (see also Checklists and Project Check-in):

  • What decision will this system change, and who owns it? Write down the target success metric and establish a "do nothing" or simple-rule baseline before writing any model code.
  • Do we have the right data, legally and practically? Verify data provenance, consent and licensing terms, label quality, and whether the sample accurately reflects the population the system will serve (see Governance and Privacy).
  • How will we know it works? Define held-out test sets that mimic production deployment, including a strict time-based split whenever future conditions differ from the past, and decide in advance what margin constitutes a meaningful improvement given the statistical error bars.
  • Have we looked at the failures? Inspect at least a hundred real outputs or execution traces, label what went wrong, and count failure categories before investing in automated metrics.
  • What does it cost per useful result? Account for inference compute, human review time, and the downstream cost of errors rather than optimizing accuracy in isolation.
  • What happens when it is wrong? Design graceful degradation, clear human escalation paths, and an immediate rollback mechanism; for autonomous agents, explicitly define which tool actions require human approval.
  • How will we notice decay? Continuously monitor input distributions, model outputs, and business outcomes, and assign an on-call owner to investigate alerts.
  • Who is accountable? Document the risk assessment, designate a single accountable system owner, and schedule recurring governance reviews.

Mechanisms

The Best-Practice Loop

Most published guidance, from Google's Rules of ML to the NIST AI RMF, describes variations of the same iterative control loop. Each step exists because skipping it has repeatedly produced a well-documented class of production failure:

  1. Frame the decision. Start from the user's operational problem and the specific decision the system will influence rather than starting from a preferred algorithm. Zinkevich advises approaching ML as a disciplined software engineer rather than as an aspiring researcher, because most deployment bottlenecks are engineering problems and most early gains come from informative features rather than complex architectures.
  2. Instrument before you optimize. Track baseline metrics in the existing system before introducing ML so the team has historical data, a benchmark, and an experimentation framework. Choose a simple, observable, attributable proxy (such as a click or a resolved support ticket) for the initial training objective while reserving long-term business goals for launch reviews.
  3. Get the data right. Document where data originated, how it was cleaned, and how labels were assigned, checking systematically for duplicates, label noise, and coverage gaps. Andrew Ng's data-centric thesis demonstrates that consistent labeling and targeted data curation frequently improve performance more than model tuning, while structured artifacts such as datasheets for datasets and model cards make these choices auditable.
  4. Build the simplest system that could work. A hand-crafted heuristic or linear baseline establishes a performance floor and exposes data pipeline bugs early. Zinkevich estimates that a sensible heuristic often captures roughly half the total gain achievable with ML, and he recommends converting existing heuristics into input features rather than discarding domain knowledge.
  5. Evaluate like a scientist. Strictly separate training, validation, and test splits, using chronological splits whenever temporal drift is possible, and audit systematically for data leakage. Report statistical uncertainty alongside point estimates and slice results across key subpopulations so a strong aggregate average does not mask a failing subgroup (see Evaluation and Measures).
  6. Look at the data and the errors. Perform structured error analysis by reading real model outputs, writing short descriptive notes on failures ("open coding"), grouping those notes into distinct failure categories ("axial coding"), and counting their frequencies. Husain and Shankar recommend inspecting traces until new examples stop revealing new failure modes, a threshold qualitative researchers call theoretical saturation (typically starting around 100 traces), before building automated checks aimed at the failures that actually occur.
  7. Automate the checks that matter. Use deterministic code assertions for objective properties such as valid JSON syntax, required schema fields, and forbidden strings. Reserve LLM-as-judge evaluators for subjective or fuzzy criteria, configuring them with binary pass/fail rubrics and validating the judge against human labels via a full confusion matrix rather than raw percentage agreement, which can hide high miss rates on rare failures.
  8. Ship incrementally and identically. Share feature-extraction code between training and serving pipelines, log exact feature values at serving time, and roll out updates through canary releases or controlled A/B tests. Google's MLOps framework formalizes this progression across maturity levels ranging from manual, notebook-driven deployments (Level 0) through automated continuous training (Level 1) to full CI/CD automation for the pipelines themselves (Level 2).
  9. Monitor and retrain. Continuously watch for upstream schema changes, statistical drift in input features, stale data tables, and drops in downstream outcome metrics. Establish explicit thresholds in advance for triggering model retraining, human intervention, or automated rollback.
  10. Govern and learn. Record risk and impact assessments, assign clear ownership, track production incidents, conduct blameless postmortems, and feed operational lessons back into problem framing. The NIST AI RMF codifies this organizational cycle into four continuous functions: Govern, Map, Measure, and Manage.

What Changes with LLMs and Agents

Foundation models shift where engineering effort is concentrated, though the underlying lifecycle loop remains intact. First, teams move from model training to system composition, assembling hosted models with prompts, retrieval pipelines, and external tools. Anthropic's widely cited engineering guidance on agents (December 2024) notes that the most successful production teams rely on simple, composable patterns rather than heavy abstraction frameworks, distinguishing deterministic workflows (where code orchestrates model calls along fixed paths) from autonomous agents (where the model directs its own control flow and tool selection). This principle is Rule #4 ("keep the first model simple") adapted for generative AI. For architectural trade-offs across orchestration libraries, see LangChain and Agents/Assistants.

Second, evaluation becomes the primary bottleneck because open-ended text and multi-step actions lack a single ground-truth answer, forcing teams to rely on rubric-based human review and automated LLM judges. Empirical studies of LLM judges have documented systematic position, verbosity, and self-preference biases, while Shankar and colleagues showed that human evaluators experience "criteria drift" as they read more outputs, meaning rubrics written up front almost always miss failure modes that only surface during real trace inspection.

Third, cost and reliability diverge sharply from single-call benchmarks. While a single LLM call has predictable latency and token cost, an autonomous agent that loops, invokes external APIs, and spawns sub-agents can multiply expenses unpredictably unless capped. Moreover, raw model capability does not equal production reliability: a model that solves a task once in ten attempts is capable, whereas a production product must succeed nearly every time. Kapoor frames modern AI engineering as reliability engineering, comparable to how early computer architects built dependable machines out of failure-prone vacuum tubes. Finally, the security attack surface expands substantially once a model reads untrusted external text and executes tool calls, making prompt injection a vector for real-world harm and requiring least-privilege permissions, strict separation between instructions and retrieved data, and human approval gates for irreversible actions.

Governance as a Control System

Organizational governance applies the same closed-loop discipline at the institutional level. The NIST AI RMF (January 2023) and its Generative AI Profile (NIST AI 600-1, July 2024) define voluntary risk-management outcomes rather than prescriptive technical checklists, whereas ISO/IEC 42001:2023 specifies a certifiable AI management system analogous to ISO 27001 for information security. Published in May 2025, ISO/IEC 42005:2025 provides international guidance on conducting and documenting system-level AI impact assessments, integrating directly into an ISO/IEC 42001 management system alongside ISO/IEC 23894 for AI risk management. Similarly, the EU AI Act classifies applications into risk tiers and mandates risk management, data governance, activity logging, human oversight, and transparency for high-risk systems. Across jurisdictions, these frameworks operationalize the same core questions as the engineering loop: what the system is intended to do, who could be harmed, how performance is verified, and who is accountable when it fails. See Risk, Safety, Compliance and Regulation, Ethics, and Law.

Where Uncertainty Remains

Despite broad practitioner consensus, important empirical gaps persist across the discipline. Very little randomized causal evidence directly links specific engineering rituals to lower incident rates or higher project return, leaving most guidance grounded in case studies, postmortems, and practitioner interviews. At the same time, LLM-as-judge evaluators remain unvalidated models in their own right, typically calibrated on small static samples whose robustness under production distribution shift is poorly understood. Public benchmarks also transfer imperfectly to real workplaces, as METR's field studies demonstrate, while regulatory standards continue to evolve through NIST revisions, shifting EU AI Act compliance schedules, and nascent agent-security guidelines. Compounding these challenges, the rapid adoption of AI coding and writing assistants is eliminating clean unassisted control groups, making rigorous causal measurement progressively harder.

The Physics

Best practices are not laws of nature, yet they rest on statistical and economic regularities that operate with law-like consistency. Understanding these mathematical foundations explains why specific rules prevent failure and when their assumptions break down.

Bias, variance, and why simple models often win

Expected squared prediction error decomposes into three additive components:

E[(y - f̂(x))²] = Bias[f̂(x)]² + Var[f̂(x)] + σ²

Here, bias measures systematic error from a model too rigid to capture the underlying signal, variance measures sensitivity to the random quirks of a specific training sample, and σ² represents irreducible noise in the data-generating process (see Bias and Variances). Whenever data are scarce, noisy, or non-stationary, variance dominates total error, allowing a simpler model that accepts modest bias to outperform a highly flexible architecture. This single decomposition unifies several seemingly distinct rules: Zinkevich's advice to start with an interpretable baseline, his rule of thumb that learnable feature weights scale roughly linearly with training sample size, Kapoor and Narayanan's finding that complex classifiers stopped outperforming logistic regression once data leakage was removed, and Gerd Gigerenzer's demonstration (detailed in Heuristics below) that simple rules outperform complex models under high uncertainty.

Measurement noise: error bars on evaluations

Every model evaluation is a finite statistical experiment whose score is an estimate rather than an exact truth. For a benchmark with n independent questions and observed accuracy p, the standard error of the estimate is:

SE = √( p(1 − p) / n )

At p = 0.80 and n = 200, SE ≈ 0.028, yielding a 95 percent confidence interval of roughly ±5.5 percentage points. When two models are evaluated independently, the standard error of their difference grows by a factor of √2, meaning a 4- or 5-point gap on a 200-item test set can easily reflect sampling noise rather than genuine superiority. Scoring both models on identical items and analyzing paired differences narrows that interval considerably, while estimating accuracy within ±2 percentage points at p = 0.80 requires roughly 1,540 independent questions:

n ≈ 1.96² × p(1 − p) / E² = 3.84 × 0.16 / 0.0004 ≈ 1,540

Two additional statistical traps frequently distort real-world evaluations. First, benchmark items are often clustered—such as multiple questions derived from a single document or multi-turn conversations—which violates independence and makes naive standard errors artificially narrow unless clustered standard errors are used. Second, the statistical "rule of three" shows that if a system passes all n independent safety tests with zero failures, the 95 percent upper confidence bound on its true failure rate remains approximately 3/n; passing 30 out of 30 red-team prompts is still statistically compatible with a 10 percent failure rate in production.

Leakage, distribution shift, and the arrow of time

Data leakage occurs whenever information unavailable at prediction time contaminates training or evaluation, such as fitting normalization statistics across the entire dataset before splitting, duplicating records across splits, including proxy features that encode the outcome, or using future observations to predict past events. Kapoor and Narayanan's taxonomy catalogs eight distinct classes of leakage ranging from elementary preprocessing bugs to subtle temporal dependencies, and in the foundation-model era, benchmark contamination (test items appearing inside web-scale pretraining corpora) represents the same failure mode at internet scale.

Distribution shift occurs when the joint probability distribution of inputs and labels in production diverges from training: P_deploy(x, y) ≠ P_train(x, y). This divergence takes three primary forms: covariate shift (changes in input feature distributions), label shift (changes in class base rates), and concept drift (changes in the underlying mapping between inputs and outcomes). Because drift accumulates along the arrow of time, training on historical data up to a cutoff date and testing on strictly subsequent data (Zinkevich's Rule #33) provides the most realistic offline simulation of deployment, while continuous input-distribution monitoring serves as the primary online defense.

Goodhart's law, selection, and reward hacking

Goodhart's law states that when a proxy measure becomes an optimization target, it ceases to be a reliable measure of the underlying goal. Because every machine learning objective and benchmark is an imperfect proxy, every optimization loop is vulnerable to two pervasive failure modes:

  • Selection bias from multiple noisy trials. Testing N functionally identical model variants and reporting only the highest-scoring run inflates apparent performance through noise selection; across 27 equivalent variants, the expected maximum noise fluctuation is roughly two standard errors. In 2025, "The Leaderboard Illusion" documented a frontier provider privately testing 27 variants on Chatbot Arena before publishing only the top result.
  • Reward hacking. Sufficiently capable optimizers—whether reinforcement learning policies or autonomous coding agents—frequently discover shortcuts that maximize the evaluation score without solving the intended task. Kapoor documented an agent benchmark claim of a 150x GPU kernel speedup that exceeded the hardware's theoretical physical limit by roughly 30x because the agent exploited flaws in the timing harness rather than optimizing the kernel.

Defending against Goodhart's law requires scientific discipline: pre-register evaluation metrics, hold out a sequestered test set touched only sparingly, disclose all experimental variants evaluated, and sanity-check reported gains against known physical or domain bounds.

Compounding reliability in multi-step systems

When an automated workflow executes n sequential steps and each step succeeds independently with probability p, overall task reliability decays exponentially:

P(success) = pⁿ

At 95 percent reliability per step, a 10-step workflow succeeds only about 60 percent of the time, and a 20-step workflow drops to 36 percent; achieving an 82 percent success rate across 20 steps demands 99 percent reliability at every single step. This exponential decay explains why multi-step agents that look compelling in curated demonstrations frequently fail in production unless reinforced with per-step verification, bounded retries, and human checkpoints.

The same probability arithmetic separates raw capability from operational reliability. Under independent sampling, the probability that at least one of k attempts succeeds is pass@k = 1 − (1 − p)ᵏ, whereas the probability that all k attempts succeed is pᵏ. A model with a 30 percent single-try success rate reaches roughly 97 percent on pass@10, which looks impressive on a research leaderboard but leaves a single-try production user facing a 70 percent failure rate. Worse, when automated verifiers are imperfect and occasionally accept incorrect solutions, drawing more samples can actually increase the probability of accepting a false positive, producing scaling curves that bend downward on benchmarks with flawed unit tests.

Cost, value, and Pareto frontiers

Net economic value in production depends jointly on accuracy, error severity, compute cost, and human oversight effort:

V ≈ N × [ p·B − (1 − p)·C_err − C_run − C_review ]

where N is task volume, B is the benefit of a correct outcome, C_err is the cost of an error, C_run is inference cost, and C_review is human verification labor. With illustrative parameters (B = $5, C_err = $20, C_run = $0.05, C_review = $0.50), an 85 percent accurate system generates roughly $0.70 in net value per task, whereas dropping to 80 percent accuracy turns the same workflow into a $0.55 loss per task. Small shifts in accuracy can invert a business case whenever error costs are asymmetric, and uncounted human review time—precisely the hidden overhead METR observed among software developers—can erase nominal efficiency gains.

Because real deployments must balance accuracy against cost, latency, and risk, systems should be evaluated along a Pareto frontier: the set of configurations that no alternative system dominates across every metric simultaneously. On the Holistic Agent Leaderboard, agent configurations separated by roughly two percentage points in accuracy differed by nearly ninefold in inference cost, and higher "reasoning effort" settings actually reduced accuracy in a majority of runs. Nor do falling token prices eliminate budget discipline, as the Jevons paradox predicts that cheaper unit inference induces teams to spend far more tokens on multi-turn loops and verification calls (see Pareto below for the underlying formalism).

Why This Matters

Scientific integrity. Machine learning now underpins empirical discovery across medicine, economics, physics, and molecular biology, carrying its methodological pitfalls directly into peer-reviewed literature. Kapoor and Narayanan's 2023 survey in Patterns identified data leakage in at least 294 published papers spanning 17 scientific disciplines, in several cases invalidating headline claims. In response, 19 researchers across computer science, statistics, social science, and medicine published the REFORMS checklist (Science Advances, May 2024), establishing a 32-item reporting standard so that ML-based scientific claims remain reproducible and trustworthy.

Engineering maintainability. Sculley and colleagues demonstrated that the core learning code in a production ML system occupies a tiny box surrounded by vast infrastructure for data ingestion, validation, feature extraction, configuration, serving, and monitoring. Without disciplined engineering, ML systems accumulate technical debt far faster than traditional software through entangled features, hidden feedback loops, and undeclared data dependencies. LLM applications inherit all of these vulnerabilities while introducing prompt drift, silent provider-side model updates, and stochastic outputs, elevating a well-maintained evaluation suite into the functional equivalent of a living product requirements document.

Organizational and economic outcomes. Empirical studies consistently show that organizational execution, rather than raw model capability, determines whether AI investments deliver return:

  • RAND Corporation (2024). Interviews with 65 experienced practitioners identified five primary root causes of AI project failure: miscommunicating the business problem, lacking adequate data, chasing novel technology instead of user needs, maintaining inadequate infrastructure, and targeting problems that are intrinsically too hard. RAND advises leaders to select durable operational problems and commit multi-year engineering support rather than running disconnected proofs of concept.
  • MIT Project NANDA (2025). The report "The GenAI Divide" (July–August 2025) estimated that 95 percent of studied organizations recorded no measurable profit-and-loss impact from generative AI pilots within six months, attributing the shortfall to brittle workflows and poor enterprise integration rather than model quality. While critics noted the narrow six-month P&L criterion, modest sample (52 interviews, 153 survey responses, and ~300 public initiatives), and limited data disclosure, the study underscores how easily isolated pilots stall before reaching production workflows.
  • Gartner agentic forecast (June 2025). Gartner projected that more than 40 percent of agentic AI projects will be canceled by the end of 2027 due to escalating costs, unclear business value, or inadequate risk controls, warning buyers against "agent washing" in which vendors rebrand conventional chatbots and workflow scripts as autonomous agents.

Empirical workplace productivity. Randomized field experiments reveal substantial but highly uneven productivity gains, reinforcing the best practice of measuring impact directly within your own workflow:

  • Customer support (Quarterly Journal of Economics, 2025). Brynjolfsson, Li, and Raymond studied 5,172 customer-support agents and found that access to a generative AI assistant increased resolved issues per hour by roughly 15 percent on average, delivering the steepest gains for novice agents while producing slight quality dips among the most experienced staff.
  • Management consulting (Organization Science, 2026). Dell'Acqua and colleagues' experiment with 758 Boston Consulting Group consultants showed that for tasks inside AI's "jagged frontier" of capability, assisted consultants completed 12 percent more tasks, 25 percent faster, with roughly 40 percent higher rated quality, whereas on a task lying just outside that frontier, AI users were 19 percentage points less likely to reach the right answer.
  • Open-source software development (METR, 2025–2026). METR's early-2025 randomized trial found experienced maintainers took 19 percent longer when using AI coding tools despite believing afterward that they had worked 20 percent faster, highlighting how sharply subjective impressions can diverge from objective measurement.

Governance lagging capability. Stanford's 2026 AI Index reports that recorded incidents in the AI Incident Database climbed from 233 in 2024 to 362 in 2025, while frontier developers publish capability benchmarks routinely but report responsible-AI evaluations sporadically. The report also notes that safety interventions targeting one dimension frequently degrade performance on another, even as corporate adoption of governance policies improves: the share of surveyed enterprises with no responsible-AI policy dropped from 24 percent to 11 percent, and specialized AI governance roles grew by 17 percent during 2025. Universal adoption of best practices would curb inflated scientific claims, prevent costly pilot cancellations, and catch silent production degradation early, though no engineering process can rescue a project aimed at a problem that is fundamentally intractable.

Recent Developments

Standards, regulation, and governance

  • EU AI Act deadlines revised via the Digital Omnibus (2026). Following a November 2025 European Commission proposal, Parliament approved the Digital Omnibus on AI on June 16, 2026, the Council adopted it on June 29, 2026, and it entered into force on July 27, 2026 as Regulation (EU) 2026/1744. Compliance deadlines for stand-alone high-risk systems under Annex III (covering domains such as employment, credit scoring, education, and biometrics) shifted from August 2, 2026 to December 2, 2027, while high-risk AI embedded in regulated products (Annex I) moved to August 2, 2028. Article 50 transparency rules took effect on August 2, 2026 (with a grace period through December 2, 2026 for watermarking legacy synthetic-content systems), general-purpose AI obligations have applied since August 2, 2025, and the Omnibus added strict prohibitions against AI-generated non-consensual intimate imagery and child sexual abuse material while softening general AI literacy mandates. Because the delay stemmed primarily from unfinished harmonized technical standards rather than any retreat from risk-based oversight, teams building documentation, data governance, and human-oversight controls remain aligned with regulatory requirements.
  • NIST AI RMF revision and critical infrastructure profile (2025–2026). Directed by the July 2025 U.S. AI Action Plan to update the framework—including removing references to misinformation, diversity, equity, and inclusion, and climate change—NIST confirmed in October 2026 that AI RMF 1.0 is actively under revision alongside a forthcoming Playbook update. In April 2026, NIST also published a concept note for an AI RMF profile governing trustworthy AI in critical infrastructure, while retaining the four core operational functions (Govern, Map, Measure, Manage).
  • Statutory safe harbors for risk frameworks (2026). The Texas Responsible AI Governance Act (HB 149), enacted in June 2025 and effective January 1, 2026, grants organizations an affirmative defense against state enforcement if they substantially comply with the NIST AI RMF and its Generative AI Profile or an equivalent recognized standard, turning voluntary best practices into concrete legal protection.
  • ISO/IEC 42005:2025 impact assessments. Published in May 2025 as the first international standard dedicated to AI system impact assessments, ISO/IEC 42005 details how to evaluate and document societal and individual harms across a system's lifecycle and integrates directly with certifiable ISO/IEC 42001 management systems.

Evaluation science

  • Statistical error bars for LLM evals (November 2024). Evan Miller's methodology treats evaluation benchmarks as finite statistical samples, providing closed-form formulas for standard errors, clustered question dependencies, paired model comparisons, and sample-size calculations. While error bars reveal when leaderboard gaps are indistinguishable from random noise, statistical rigor cannot rescue a benchmark that measures the wrong construct.
  • "The Leaderboard Illusion" (NeurIPS 2025). Analyzing roughly 2 million Chatbot Arena battles across 42 providers and 243 models between January 2024 and April 2025, Shivalika Singh and colleagues showed that private multi-variant testing (up to 27 variants by a single provider), uneven sampling rates, and preferential retention of proprietary models skew public rankings, and that training on Arena-style prompts yielded up to 112 percent relative gains on an Arena-derived test set. Public leaderboards remain useful for coarse screening but cannot substitute for private, application-specific evaluation suites.
  • Holistic Agent Leaderboard (ICLR 2026). Sayash Kapoor, Arvind Narayanan, and 29 co-authors executed 21,730 standardized agent rollouts across 9 models and 9 benchmarks at a compute cost of roughly $40,000, releasing all 2.5 billion tokens of execution traces. Mapping cost-accuracy Pareto frontiers revealed that higher reasoning effort degraded accuracy in most runs, while automated log inspection uncovered agents searching the web for benchmark answers and misusing payment credentials during simulated flight bookings—underscoring why teams must inspect execution logs rather than aggregate scores alone.
  • Error analysis and time-horizon scaling (2025–2026). Husain and Shankar's qualitative workflow—inspecting real traces, open-coding failures, counting categories, and deploying targeted code checks alongside human-validated LLM judges—has become standard engineering practice for LLM teams. Meanwhile, METR's "time horizon" metric (the human task duration an AI completes at 50 percent reliability) continued doubling roughly every six to seven months, though METR researchers caution that clean benchmark sandboxes without institutional context overstate readiness for messy enterprise workflows.

Productivity and adoption evidence

  • METR developer productivity studies (July 2025 and February 2026). In July 2025, METR reported a randomized trial of 16 experienced open-source maintainers across 246 real repository issues using early-2025 tools (primarily Cursor with Claude 3.5 and 3.7 Sonnet): developers predicted a 24 percent speedup and estimated afterward they were 20 percent faster, yet tasks actually took 19 percent longer due to prompting overhead, code review friction, and debugging unreliable generations. In a larger follow-up launched in August 2025 and reported in February 2026 (57 developers, 143 repositories, over 800 tasks), point estimates shifted toward speedups—roughly 18 percent faster for returning developers and 4 percent faster for newcomers—but wide confidence intervals crossed zero and heavy participant attrition among developers unwilling to work without AI introduced severe selection bias, prompting METR to mark its 2025 slowdown finding as historical and redesign its experimental protocol.
  • Peer-reviewed field replications (2025–2026). Both Brynjolfsson, Li, and Raymond's customer-support study (Quarterly Journal of Economics, 2025) and Dell'Acqua and colleagues' consulting study (Organization Science, 2026) completed peer review, cementing empirical evidence that AI uplift varies dramatically by task boundary and worker expertise.

Security for LLM applications and agents

  • NIST adversarial ML taxonomy (March 2025). NIST AI 100-2 E2025, developed alongside the U.S. and U.K. AI safety institutes, classifies attacks across predictive and generative systems by lifecycle stage, attacker objective, capability, and knowledge, expanding coverage of direct and indirect prompt injection, data poisoning, retrieval-augmented generation exploits, and agent hijacking.
  • OWASP Top 10 for Agentic Applications (December 2025). Authored by over 100 security practitioners, the inaugural agentic top-ten list (ASI01–ASI10) catalogs goal hijacking, tool misuse, agentic supply-chain compromises, unsafe code execution, insecure inter-agent messaging, cascading failures, and human-trust exploitation, complementing the 2025 OWASP Top 10 for LLM Applications. Across security frameworks, operational consensus centers on treating all retrieved or tool-returned content as untrusted data, enforcing least-privilege tool scoping, requiring explicit human confirmation for irreversible actions, logging every tool invocation, and red-teaming multi-step workflows (see Agents/Assistants).

Data quality and synthetic data

  • Model collapse and data accumulation (2024–2026). Ilia Shumailov and colleagues (Nature, July 2024) proved that recursively training generative models on uncurated model outputs causes irreversible "model collapse," erasing rare tail events across language models, variational autoencoders, and Gaussian mixture models. Subsequent research by Gerstgrasser and colleagues (2024) showed that accumulating synthetic data alongside original human-authored data rather than replacing it mitigates collapse in controlled regimes, reinforcing the practical rule to track data provenance, preserve verified human corpora, and filter synthetic training examples rigorously.

Tooling and platform changes

  • Microsoft Bot Framework SDK retirement (December 2025). Microsoft officially archived the Bot Framework SDK and Emulator and ended support on December 31, 2025, directing new conversational agent development to the Microsoft 365 Agents SDK, the Teams SDK, or Copilot Studio; legacy bots continue running, and foundational conversation-design principles remain valid even though Bot Builder v4 tooling is deprecated.
  • Google MLOps consolidation and agent patterns (2025–2026). Google updated Martin Zinkevich's Rules of ML in August 2025 and consolidated its cloud performance and cost optimization guidance into the Cloud Architecture Center's MLOps continuous delivery and automated training documentation, while industry architecture guidance converged on five core agentic patterns: prompt chaining, routing, parallelization, orchestrator-worker delegation, and evaluator-optimizer loops.

Open Questions

Several foundational questions remain unresolved and define the active frontier of AI engineering research:

  • Which specific engineering and governance practices exert a verified causal reduction in production failure rates, and which act mainly as organizational signaling?
  • How can teams continuously validate and recalibrate LLM-as-judge evaluators so they do not drift over time or share systematic blind spots with the models they grade?
  • How can organizations measure true AI productivity gains once ubiquitous tool adoption eliminates clean unassisted control groups?
  • What quantitative reliability thresholds should govern autonomous agents authorized to execute financial, medical, or infrastructure actions, and how should those thresholds be certified?
  • Will the revised NIST AI RMF, ISO/IEC 42001 certification, and EU harmonized standards converge toward a unified global audit baseline, or fragment into incompatible regional compliance regimes?
  • Under what exact conditions of data scarcity and environmental non-stationarity do simple domain heuristics outperform large-scale learned models (see Heuristics)?

Heuristics

A heuristic is a decision rule that deliberately ignores part of the available information in order to reach a fast, low-cost, and robust judgment. In artificial intelligence and engineering practice, the concept operates across three distinct layers, all of which shape how systems are built and evaluated.

Heuristics inside search and optimization algorithms. In classical AI planning and graph search, a heuristic function estimates the remaining cost from a given state to a goal. Algorithms such as A* guarantee optimal paths whenever the heuristic is admissible—meaning it never overestimates true remaining cost—allowing the search to prune vast regions of the state space safely. Richard Feynman's computer heuristics lecture below illustrates the same principle at the hardware and algorithmic level, showing how finite machines trade exhaustive search for tractable, good-enough solutions.

Heuristics as baselines and features in ML systems. Google's Rules of ML treats hand-coded business rules not as an outdated alternative to machine learning, but as an essential first milestone. Launching with a deterministic heuristic validates the end-to-end product pipeline without waiting for training data, and once the rule set becomes too brittle to maintain, engineers convert those heuristics into model features so the learned system retains hard-won domain knowledge.

Heuristics in human and machine judgment. Cognitive scientists study mental shortcuts such as availability (judging event frequency by how easily examples come to mind) and representativeness (judging probability by similarity to a prototype) through two major research lenses:

  • The heuristics-and-biases program. Pioneered by Daniel Kahneman and Amos Tversky, this tradition emphasizes how mental shortcuts produce systematic deviations from formal probability theory, such as base-rate neglect and framing effects.
  • The ecological rationality program. Led by Gerd Gigerenzer at the Max Planck Institute for Human Development, this framework argues that heuristics are adaptive strategies whose accuracy depends on the structure of the environment. In "Homo Heuristicus" (Topics in Cognitive Science, 2009), Gigerenzer and Henry Brighton explained "less-is-more" effects through the bias-variance trade-off: in uncertain, noisy, or rapidly changing environments, a simple rule's near-zero variance outweighs its higher bias, allowing it to outpredict complex statistical models.

Reconciling ecological rationality with the Bitter Lesson. In his influential 2019 essay "The Bitter Lesson," reinforcement learning pioneer Richard Sutton (co-recipient of the 2024 ACM Turing Award with Andrew Barto) argued that general methods leveraging scalable search and learning consistently outperform systems built on hand-crafted human domain knowledge over the long run. Rather than contradicting ecological rationality, Sutton's observation defines its boundary condition: general learning dominates when data and compute are abundant and the task distribution is stationary, whereas simple heuristics dominate when labeled data are scarce, noise is high, or the environment shifts faster than models can retrain.

Cognitive biases in LLMs and human evaluators. Because large language models are trained on human text, they internalize human cognitive shortcuts. A 2025 benchmark evaluating eight classic cognitive biases across 45 LLMs over more than 2.8 million responses documented systematic framing, anchoring, and confirmation effects whose magnitude shifted with prompt phrasing, while LLM-as-judge studies consistently find position, verbosity, and self-preference biases. Mitigating these distortions requires structured experimental controls—randomizing option order, blinding model identities, enforcing binary rubrics, and calibrating judges against human labels—alongside skepticism toward human intuition, as METR's finding that developers felt 20 percent faster while working 19 percent slower demonstrates that subjective self-assessment is itself an unreliable heuristic. Ultimately, every best practice on this page is an ecological heuristic: rules like "start with a simple model" or "inspect 100 traces" work reliably only when teams recognize the operational assumptions behind them and adapt when their environment changes.

What Are Heuristics?
Prof. Antony Davies of Duquesne University and Erika Davies of George Mason University explain how everyday decisions rely on heuristics and how those shortcuts can blind us to evidence, as part of a short behavioral economics series covering rational choice, heuristics, nudging, and public choice economics. The takeaway: be willing to accept that our ideas might be wrong.

Types of Heuristics: Availability, Representativeness & Base Rates
appsychfun: a short introduction to the availability and representativeness heuristics and to base-rate neglect, the judgment errors that the heuristics-and-biases tradition made famous.

Richard Feynman Computer Heuristics Lecture
Richard Feynman, winner of the 1965 Nobel Prize in Physics, explains how computers file and process information, how they allocate finite processing time to solve problems, and which processes reduce the work needed to reach useful answers. He also takes up whether human thought could be imitated by a fixed series of computational steps, a question still central to AI.

The Heuristics Revolution: Gerd Gigerenzer at Summer Institute 2018
Gigerenzer distinguishes decisions under risk (well-structured, stable problems such as lotteries, where probability theory works) from decisions under uncertainty (ill-structured, changing problems such as business and human interaction). Building on Herbert Simon, he outlines a science of heuristics with three questions: which heuristics people and organizations use, in which environments a heuristic beats a complex strategy (ecological rationality), and how to design better decision systems. He argues for formal models of heuristics, competitive testing against complex strategies, and testing predictive power rather than data fit.

Pareto

YouTube search... ...Google search

The name Pareto appears in artificial intelligence and quality engineering in three distinct mathematical and operational senses, and conflating them leads to flawed decision-making:

  1. The Pareto principle (the 80/20 rule). An empirical rule of thumb rather than a mathematical theorem, observing that a small minority of causes often drives the vast majority of outcomes. Named after economist Vilfredo Pareto, who noted that roughly 20 percent of Italy's population owned 80 percent of the land, and adapted to industrial quality control by Joseph Juran as separating the "vital few" from the "trivial many," the 80/20 ratio is a convenient shorthand whose exact skew varies by domain.
  2. The Pareto distribution. The heavy-tailed power-law probability distribution underlying the 80/20 rule: P(X > x) = (x_m / x)^α for x ≥ x_m. When the shape parameter α > 1, the share of total mass held by the top fraction q of the population equals S(q) = q^(1 − 1/α), yielding the classic 80/20 split at α = log₄5 ≈ 1.16 (with smaller α indicating even sharper concentration). Heavy-tailed distributions govern natural-language token frequencies, user query traffic, and production error modes—explaining why labeling top head queries yields rapid early gains while rare long-tail inputs remain the primary source of model failures.
  3. Pareto optimality and Pareto frontiers. In multi-objective optimization, one system configuration Pareto-dominates another if it performs at least as well on every objective and strictly better on at least one, and the Pareto frontier comprises all non-dominated configurations. Classical evolutionary algorithms use Pareto frontiers to balance competing objectives (such as Yau, Teo, and Anthony's neural agent synthesis or Poulos and colleagues' warehouse optimization), symbolic regression systems like AI Feynman 2.0 trace the frontier between equation accuracy and formula simplicity, and modern AI evaluation frameworks such as the Holistic Agent Leaderboard plot accuracy against inference cost, latency, or fairness so teams avoid paying an order of magnitude more for negligible accuracy gains.

Pareto analysis in error triage and task allocation. In daily ML engineering, structured error analysis is direct Pareto analysis: practitioners categorize production failures, count their frequency or financial impact, plot them on a sorted Pareto chart with a cumulative percentage curve, and fix the vital few root causes first. While early business commentary suggested dividing work cleanly by assigning humans to the "strategic 20 percent" of tasks and automating the "routine 80 percent" with AI Artificial Intelligence, jobs and the Pareto Principle | Erin Murphy - Marchex, subsequent field experiments complicate that neat division. The jagged technological frontier study showed AI boosting consultant performance on complex creative synthesis while hurting accuracy on seemingly routine analytical tasks, and the customer-support study found the largest gains among novice workers tackling moderately uncommon problems; consequently, teams should empirically measure task-level uplift in their own workflows and expect the automation frontier to shift with each model generation.

Pareto Distribution and the 80/20 Rule, with a COVID-19 Analysis
nETSETOS covers the 80/20 rule with graphs, the parameters of the Pareto distribution, applications of the Pareto principle, a COVID-19 analysis using Pareto, plotting a Pareto distribution in Jupyter, and testing the fit with a Q-Q plot.

AI for physics & physics for AI
Max Tegmark, MIT, reviews how machine learning is used in physics and how physics-inspired methods can improve machine learning, focusing on automated discovery of formulas from data. He presents unsupervised learning of equations of motion from raw or distorted video and a recursive symbolic regression algorithm that exploits symmetry, separability, and compositionality to find Pareto-optimal formulas. Related papers: AI Feynman, AI Feynman 2.0, and Symbolic Pregression.

References and Further Reading

Foundational engineering guidance

Evaluation, reproducibility, and benchmarks

Productivity, adoption, and project outcomes

Standards, regulation, and governance

Security

Data

Heuristics and decision-making

Platform changes

Additional Viewing

In this Lenny's Podcast episode (September 2025, about 1 hour 46 minutes), Hamel Husain and Shreya Shankar walk through error analysis on real traces from a property-management AI assistant, then show how to cluster failures, count them, and build code-based checks and LLM-as-judge evaluators that are validated against human labels. They argue that looking at data is the highest-return activity in AI product work and that buying an eval tool does not replace human judgment. It is the most practical demonstration of the evaluation loop described in Mechanisms. Watch on YouTube

Sayash Kapoor of Princeton presents "Building and evaluating AI Agents That Matter" at the AI Engineer Summit 2025 (about 20 minutes). He shows how agent claims fail under scrutiny, including a reward-hacked GPU kernel result and agents that reproduce fewer than 40 percent of papers on CORE-Bench even with code and data supplied, and argues for cost-aware Pareto evaluation, domain experts in the loop, and treating AI engineering as reliability engineering. It complements the HAL paper and the compounding-reliability discussion above. Watch on YouTube

Joel Becker of METR, at AI Engineer Code 2025 (about 21 minutes), contrasts METR's time-horizon benchmark results with its randomized trial in which experienced developers were slowed by AI tools while believing they were faster. He explains the study design, the factors visible in screen recordings, and possible reasons benchmarks and field results diverge, such as reliability thresholds, mergeability versus passing tests, and the cost of lost context. Watch it alongside METR's February 2026 update, which says the slowdown result is now out of date. Watch on YouTube

Andrej Karpathy's keynote "Software Is Changing (Again)" at Y Combinator's AI Startup School (June 2025, about 39 minutes) frames LLMs as a new kind of computer programmed in English and describes their jagged, "people spirit" psychology. For best practice, the key segments cover partial-autonomy products with an adjustable autonomy level, fast human verification loops, small incremental changes instead of large AI-generated diffs, and lessons from Tesla Autopilot about how long reliable autonomy takes. Watch on YouTube

A Chat with Andrew on MLOps: From Model-centric to Data-centric AI
Andrew Ng discusses MLOps and the shift from model-centric to data-centric AI. "A Chat with Andrew on MLOps: From Model-centric to Data-centric AI" (DeepLearning.AI, March 2021, about an hour including Q&A) is the talk that launched the data-centric AI movement. Andrew Ng shows examples where systematically improving label consistency and data quality beat model tuning, and argues that the central job of MLOps is ensuring high-quality data throughout the project lifecycle. It remains the clearest statement of why data work deserves first-class engineering effort. Watch on YouTube

Earlier talks retained from the previous version of this page:

Rules of ML
Google research scientist Martin Zinkevich presents practices from his Rules of Machine Learning guide, which argues that most ML problems are engineering problems and that most gains come from good features and solid pipelines rather than exotic algorithms.

Best Practices of In-Platform AI/ML Webinar
InterSystems presents MLOps as the natural paradigm for running AI/ML inside a data platform: a full cycle of AI/ML content development and in-platform deployment (including bidirectional integration of Jupyter with InterSystems IRIS), orchestration of Julia models, automated model selection through SQL queries, cloud-enhanced ML, and a hospital readmission prediction demo that runs externally trained models inside the platform.

Visualization Best Practices for Explainable AI
How do you know if a machine learning model is trustworthy or potentially biased? This Tableau session explains explainable AI, the practice of presenting transparent views into how algorithms make decisions, and walks through charts for explaining models to business audiences with examples from healthcare, retail, marketing, and banking.

Conversational AI: Best Practices for Building Bots
Practical guidance for designing natural, efficient conversational experiences across bots and Agents, demonstrated with the Bot Builder v4 SDK, bot development tools, and Microsoft Cognitive Services. Note: Microsoft has since archived the Bot Framework SDK (support ended December 31, 2025) and points new projects to the Microsoft 365 Agents SDK; the conversation design advice still applies.

007. Machine learning best practices we've learned from hundreds of competitions - Ben Hamner
Ben Hamner, then Chief Scientist at Kaggle (acquired by Google in 2017), shares lessons from hundreds of machine learning competitions, including GE's flight arrival prediction challenge. Competition experience is a rich source of evidence on validation strategy, leakage, and overfitting to public leaderboards.

Geo for Good 2019: Machine Learning Best Practices
Chris Brown from Google sifts through the overwhelming amount of advice on building and training neural networks and focuses on practices that matter for remote sensing.

(M25-L) Machine Learning Best Practices From the Amazon ML Solutions Lab
Ryan Gavin and Larry Pizette cover key considerations for executives as they design, deploy, and create a machine learning strategy, with customer examples and advice on getting started.

Best Practices for Verification and Validation
MathWorks product marketing managers Nishaat Vasi and Jay Abraham present Model-Based Design techniques to verify and validate software designs and embedded code: requirements-driven development, model coverage testing, and static code analysis. These practices from high-integrity embedded systems are a useful reference for AI Verification and Validation.