← Back to modules

Self-Improving AI Systems — Core

Self-improvement modes, dual-loop architecture, meta-agent pattern, prompt versioning, canary deployment, APE/DSPy, structured logging, failure analysis, automated harness patching, principle extraction, workflow topology evolution, memory-driven evolution, governance.

Medium30 questions

Sample questions

1

What is the fundamental difference between a fixed AI system and a self-improving one?

  • A fixed system uses the same prompt and configuration on every request with its performance ceiling set at deploy time, while a self-improving system modifies its own operational parameters based on production feedback
  • A fixed system uses a single LLM while a self-improving system uses multiple LLMs that compete with each other, automatically selecting the winner for each incoming request
  • A fixed system runs on a single server while a self-improving system distributes computation across multiple servers that share learned improvements through a consensus protocol
  • A fixed system processes requests synchronously while a self-improving system processes them asynchronously, enabling parallel execution of improvement experiments alongside production traffic, which is the standard recommendation for self-improving systems at scale

Why

A fixed system uses the same prompt, tool definitions, routing logic, and workflow topology on every request. If the system prompt scores 72% accuracy today, it scores 72% next month unless a developer manually rewrites it. Every improvement requires a human in the loop. A self-improving system modifies its own operational parameters based on production feedback. The system prompt that scored 72% on day one can evolve to 81% by day 30 because the system analyzed its own failures, generated candidate improvements, tested them against held-out data, and deployed the winners. The developer's role shifts from writing prompts to defining objectives and review gates. The distinction is not about multiple competing models, synchronous versus asynchronous processing, or distributed server architecture. Self-improvement specifically refers to the system's ability to modify its own operational parameters such as prompts, tool configurations, routing rules, and workflow topology through an automated feedback loop.

2

What is the difference between online adaptation and offline evolution in self-improving systems?

  • Online adaptation runs on GPU while offline evolution runs on CPU, because real-time inference requires hardware acceleration while batch analysis can use cheaper compute resources
  • Online adaptation works on text-based tasks while offline evolution works on multimodal tasks, because visual and audio processing requires batch analysis that cannot run in real-time and has been validated across diverse production self-improving AI deployments
  • Online adaptation improves the model's weights through gradient updates during inference, while offline evolution rewrites the prompt text without changing any model parameters at all
  • Online adaptation adjusts the system within a single session based on immediate feedback and the changes are ephemeral, while offline evolution analyzes patterns across many sessions and produces permanent changes

Why

Online adaptation adjusts the system within a single session based on mid-conversation feedback. When a user corrects the agent by saying 'you missed the null pointer on line 34,' the agent adds this correction to its internal checklist for the remainder of the session. The change is ephemeral and does not persist after the session ends. The cost is minimal: each patch adds roughly 20-50 extra tokens to the system prompt. Offline evolution analyzes patterns across many requests between sessions, typically in a daily batch job. It identifies systematic failure patterns, generates candidate improvements, tests them against a held-out dataset, and stages the winners for human review. Changes from offline evolution are permanent and affect all future sessions for all users. The analogy is biological: online adaptation is phenotypic plasticity within a lifetime, offline evolution is genetic change across generations. Neither involves gradient updates to model weights, GPU versus CPU distinction, or text versus multimodal processing differences.

3

What are the four categories of operational parameters that can be automatically improved in a self-improving system?

  • Model weights, attention patterns, embedding dimensions, and vocabulary size, representing the internal parameters of the neural network that determine its reasoning capabilities
  • Training data, validation data, test data, and production data, representing the four dataset splits that the system optimizes its performance across through continuous learning
  • API endpoints, authentication tokens, database connections, and network configurations, representing the infrastructure parameters that affect system reliability and performance
  • Prompts, tool configurations, routing rules, and workflow topology, representing the operational parameters that the system can modify without retraining the underlying model

Why

Four categories of operational parameters are candidates for automated improvement. Prompts including system prompts, few-shot examples, and chain-of-thought templates are the highest-leverage target since prompt changes can shift accuracy by 5-20 percentage points with zero infrastructure changes. Tool configurations including descriptions, parameter schemas, and default values can raise correct tool selection from approximately 80% to 97% by improving description quality. Routing rules determining which model handles which query type can save up to 94% on simple queries by routing them to cheaper models. Workflow topology determining which processing steps run and in what order can conditionally insert steps like reranking that improve quality on specific query types. These parameters can be modified without retraining the model. Model weights, attention patterns, and vocabulary are internal model parameters that require retraining. Dataset splits are training infrastructure, not operational parameters. Infrastructure parameters like API endpoints and database connections are not performance parameters.

4

Why must safety constraints, ethical policies, and data access permissions be excluded from automated improvement?

  • These parameters are defined by regulatory bodies and cannot be legally modified by any automated system, requiring formal compliance reviews before any change is implemented
  • These parameters are immutable by design in all LLM APIs and cannot be changed through the API interface, requiring direct modification of model configuration files on the provider's servers
  • These parameters require specialized hardware to evaluate and modify, and the improvement loop's compute budget is allocated entirely to prompt and routing optimization
  • A wrong change to these parameters creates harm not captured by the optimization metric, since performance metrics measure task completion but do not measure safety, fairness, or security

Why

The boundary between automatable and non-automatable parameters is crisp: if a change could cause harm that is not captured by the optimization metric, it requires human review regardless of the measured improvement. A prompt optimization run that discovers 'ignoring safety instructions increases user satisfaction scores by 8%' would be catastrophically wrong because the satisfaction metric does not capture the harm of removing safety constraints. Content filtering thresholds, toxicity detection sensitivity, PII redaction rules, refusal criteria, bias mitigation rules, and data access permissions are all parameters where a wrong change creates safety, ethical, or security failures that task completion metrics cannot measure. These are value judgments, not performance parameters. The exclusion is not primarily about regulatory compliance, though regulations may reinforce it. It is not about hardware limitations or API immutability. The fundamental issue is that optimization metrics are narrow measurements of specific objectives, and safety concerns are orthogonal to those objectives.

5

What is the meta-agent pattern in self-improving systems?

  • A meta-agent is a larger, more capable model that replaces the production model during peak hours when the smaller model's accuracy drops below acceptable thresholds due to increased load
  • A meta-agent is a separate agent that reads production logs, analyzes failure patterns, generates candidate improvements, and tests them in staging, but never directly modifies the production system
  • A meta-agent is a wrapper around the production agent that adds caching, retry logic, and error handling, improving reliability without changing the underlying prompt or model configuration, based on empirical data from production systems running improvement loops
  • A meta-agent is a supervisory process that monitors the production agent's resource consumption and automatically scales compute resources up or down based on real-time demand patterns

Why

The meta-agent pattern separates the self-improving system into two distinct agents. The production agent handles user requests through the task loop. The meta-agent proposes improvements to the production agent by reading production logs, analyzing failure patterns, generating candidate changes, and testing them in a staging environment. Critically, the meta-agent never directly modifies the production system. It has read access to production logs and write access to the staging prompt registry, but no access to user data or production endpoints. Changes flow through a controlled pipeline: observe failures, hypothesize improvements, test candidates, submit for human review, and deploy through canary rollout. The cost is modest: analyzing 100 failure logs and generating 3 candidate prompts costs approximately $0.30-0.50 in API calls, and evaluating each candidate against a 50-example test set adds $0.50-1.00 per candidate. A daily optimization cycle costs $2-5, which is negligible against production LLM spend for systems handling over 1,000 requests per day.

Free account

Take the full module

These are the first few of 30 questions. A free account opens the rest as a scored drill.

  • Every question in this module
  • Instant feedback and supporting reading
  • Your score and progress, saved

Free · your email is used for progress only.