Agents That Self Improve While You Sleep - Fuad Ali, Arize AI

53:055분 읽기AI Engineer2026. 10. 26.컴퓨터/소프트웨어 · AI/미래기술

핵심 요약

Closing the agent self-improvement loop requires uniting production traces, auto-generated evaluators, living regression datasets, and sandbox experiment verification to resolve failures without constant human triage.

하이라이트

  • Production agents create non-deterministic failures that are impossible for human engineers to monitor manually at scale.

  • Arize's Signal agent reviews production trace trees every six hours, clusters recurring errors, and writes automated pull requests to fix the underlying source code.

  • In the Wonder Toys demo, Signal diagnosed a casing mismatch bug in six minutes where title-cased LLM queries failed against hyphenated database slugs and spiked latency to 17 seconds.

  • Converting production failure traces into dynamic regression datasets creates living fixtures that expand test suites automatically over time.

  • Running experiment suites against failure datasets validates code patches before production deployment, demonstrated by an 88.9% test pass rate on the category code enum fix.

  • Decision models provide structured classification choices and numerical confidence scores to cheaply evaluate agent trajectories and route uncertain outputs to human annotation queues.

  • A spam filtering benchmark demonstrated that routing the 4.6% of predictions with confidence scores between 0.3 and 0.7 to human reviewers yielded 99.5% overall accuracy.

타임라인

  1. The Agent Reliability Bottleneck and the Need for a Self-Improvement Loop

    Production systems deploying autonomous agents face severe failure modes because indeterminism complicates classic site reliability engineering. Unmonitored production assistants have caused business disruptions, such as selling cars for five dollars or incorrectly asserting inventory absence. Resolving these issues requires moving beyond manual triage toward automated systems that process traces, integrate human feedback, and self-correct.

    • Non-deterministic execution paths cause autonomous agents to fail in unpredictable ways.
    • Thousands of internal and customer-facing agents generate too much operational noise for engineers to monitor manually.
    • A self-improvement architecture requires continuous feedback loops powered by execution traces rather than reactive 4:00 AM incident alerts.
  2. The Maturity Spectrum of Agent Reliability and Instrumentation

    Engineering organizations typically progress from raw tracing to systematic evaluation, but scaling stalls when humans must inspect trace data. Full maturity requires connecting execution trees to persistent regression fixtures and automated validation pipelines. The Arize AX CLI instruments Fast API, Next.js, and multi-agent frameworks to record tool spans, parameters, and multi-turn user sessions.

    • Agent engineering maturity spans five stages: tracing, evaluating, reading traces, saving regression tests, and verifying fixes.
    • Open-source auto-instrumentation captures spans, tool inputs, latency, token usage, and session trees across agent frameworks.
    • Human engineers cannot read every trace generated across high-volume production deployments.
  3. Automated Root-Cause Analysis and Issue Triage with Signal

    Signal acts as an automated reliability agent by analyzing trace patterns on a default six-hour interval and deduplicating tickets. During a live demonstration on the Wonder Toys application, Signal isolated a latency spike caused by query string mismatches that forced sequential database searches. In addition to drafting GitHub pull requests, the workflow exports failure instances directly into living dataset fixtures that evolve as agents encounter new real-world patterns.

    • Signal runs on a scheduled cadence to cluster trace anomalies and prevent alert duplicate noise.
    • A casing mismatch between title-case model inputs and hyphenated database slugs triggered three redundant LLM calls and latency spikes.
    • Signal inspected source code in GitHub and prepared a corrective pull request in six minutes.
    • Adding verified failure traces into living datasets ensures production edge cases become permanent regression fixtures.
  4. Designing Evaluator Tiers and the Role of Human Judgment

    Evaluation strategies balance deterministic code checks for JSON schema validity with model judges for qualitative behaviors. Decision models offer a cost-effective middle tier by generating discrete classifications alongside explicit confidence scores. While autonomous systems generate evaluators and code modifications, human oversight remains focused on curating regression datasets, defining quality criteria, and approving production pull requests.

    • Evaluator architectures range from deterministic code assertions to LLM-as-a-judge and multi-step agent evaluators.
    • Decision models provide low-cost categorical outputs and confidence scoring for trace classification.
    • Human judgment provides the highest leverage in fixture curation, evaluator design, and pull request verification.
  5. Experimentation Pipelines and Pre-Deployment Validation

    Modifying agent logic risks unseen side effects due to prompt indeterminism, making rigorous experimentation mandatory before code merges. Sandboxed environments replay past failure datasets through modified agent code to quantify retry counts, latency reduction, and eval pass rates. Incorporating model confidence thresholds enables routing ambiguous edge cases into human annotation queues, maintaining high accuracy while filtering standard runs.

    • System prompt changes frequently introduce unintended downstream regressions across connected agent tools.
    • Candidate fixes are verified by replaying living failure datasets through sandboxed agent versions before merge.
    • An 88.9% benchmark score on replayed failure fixtures confirmed the category enum bug resolution.
    • Routing predictions with confidence scores between 0.3 and 0.7 to human reviewers yielded 99.5% accuracy in spam detection.
  6. Infrastructure Setup and the Future of Autonomous Agent Loops

    Production agent experimentation demands careful environment design to isolate external dependencies and simulate realistic data states. The ecosystem roadmap targets single-click transitions from surfaced trace errors to sandboxed verification suites with inline trace evidence. Continual evaluator health tracking ensures high-performing evaluations are retired once regressions are permanently guarded in CI/CD, keeping operational token costs under control.

    • Agent test environments require configurable infrastructure including mock databases, tool stubs, and container sandboxes.
    • Signal integrates directly with developer workflows through Slack, APM connectors, and CLI tools.
    • Evaluator health monitoring tracks metric stability to retire obsolete evaluators and reduce token spend.
  7. Evaluation Architecture, Meta-Traces, and Cost Optimization

    Assessing complex agent output involves tracking full conversation sessions, user repeat queries, and manual prompt annotations to refine evaluator prompts. Arize dogfoods its system by executing Signal over Signal's own execution traces, maintaining internal oversight on automated pull request generation. Managing overall system costs requires strict trade-offs, prioritizing comprehensive validation in CI/CD pipelines while applying sample rates to live production traces.

    • Qualitative agent behavior requires multi-turn session metrics and human annotations rather than single-turn assertions.
    • Evaluating reliability agents recursively by tracing the reviewer agent itself exposes operational regressions.
    • Production evaluators require cost-benefit balancing between comprehensive CI/CD checks and sampled live telemetry.
    • External observability integrations with tools like Datadog connect agent reasoning steps with host application metrics.

설명

In this workshop, Fuad Ali of Arize AI shows how to build a self-improvement loop for AI agents: trace everything, let Signal (an always-on agent) read your traces on a schedule and file deduplicated issues, turn failures into evals and living regression datasets, run experiments to prove a fix works, and keep humans at the highest-leverage points: eval design, dataset curation and reviewing fixes. He demos the loop on a toy-shopping agent with a planted bug and takes questions on evaluating qualitative output, decision models and cost. Chapters 00:00 Intro and workshop setup 05:42 Where is your team on the maturity curve? 07:39 The loop: trace, signal, eval, experiment, fix 08:46 Demo agent and tracing 12:15 Signal: an always-on agent reading your traces 16:11 Agent Studio and managed agents 18:31 Turning failures into datasets 20:32 Evals: code, LLM as a judge, decision models 24:48 Creating an eval from a Signal issue 27:01 Experiments: proving the fix works 31:12 Keeping humans in the loop 34:16 Toward a fully automated loop 40:16 Q&A: evaluating qualitative output 48:21 Q&A: decision models, data sources and cost Fuad Ali, Arize AI Join us in SF for the second annual AIE CODE summit: https://aie.codes our last flagship summit of 2026. Applications live now!

이 영상에 대해 글쓰기