DEV Community

Cover image for Error Propagation in Multi-Agent LLM Systems: How Response-Aware Benchmarking Exposes Cascading Failure Modes
mech.app
mech.app

Posted on Originally published at mech.app

Error Propagation in Multi-Agent LLM Systems: How Response-Aware Benchmarking Exposes Cascading Failure Modes

Multi-agent LLM systems fail in ways single agents never do. One agent hallucinates a fact, the next agent treats it as ground truth, and by the third hop your trading bot is liquidating positions based on phantom signals. Traditional benchmarks measure final outcomes but hide the propagation mechanics. You see a 72% accuracy score and assume the system is mostly fine. You miss that 80% of errors came from a single upstream agent whose mistakes got amplified by every downstream consumer.

The Response-Aware Error Propagation among Agents (REPA) framework from a November 2026 ArXiv paper (2611.31063v1) changes the evaluation contract. Instead of asking "did the system get the right answer," it asks "how did this specific error move through the agent graph, and which agents made it worse?"

Why Outcome Metrics Hide Cascading Failures

When you evaluate a multi-agent system on final accuracy, you collapse a multi-stage process into a binary result. Agent A retrieves documents, Agent B summarizes them, Agent C reasons over the summary. If C gets the wrong answer, was it because A retrieved bad documents, B summarized poorly, or C reasoned incorrectly?

Outcome-based evaluation cannot tell you. You see a failure rate but no propagation path. This matters in financial trading swarms where one agent's bad risk assessment can trigger coordinated sell-offs. It matters in customer service orchestration where a misclassified intent early in the chain leads to three agents confidently solving the wrong problem.

REPA introduces controlled error injection at specific agent boundaries and traces how those errors propagate. The framework separates two failure modes:

  • Input assembly errors: Agent receives corrupted or incomplete messages from upstream agents
  • Agent processing errors: Agent produces bad output even when input is clean

By measuring both independently, you can identify whether failures stem from communication protocol issues or model capability gaps.

The REPA Structural Model

REPA models error propagation as a directed graph where nodes are agents and edges are message-passing boundaries. At each boundary, the framework injects controlled errors and measures three outcomes:

  1. Amplification: Downstream agent makes the error worse (e.g., hallucinates additional false details)
  2. Attenuation: Downstream agent partially corrects the error (e.g., flags inconsistency but still uses corrupted data)
  3. Correction: Downstream agent fully recovers from upstream error (e.g., retrieves fresh data to override bad input)

The model estimates local response coefficients for each agent, then composes them to predict system-level error rates. The key insight is that you can predict endpoint failure probability from local measurements without running every possible error scenario end-to-end.

Instrumentation Points

To implement REPA-style benchmarking, you need to instrument three boundaries:

Message capture layer: Log every inter-agent message with schema validation. Store message ID, sender, receiver, timestamp, and payload hash. This gives you replay capability.

Error injection hooks: At each agent's input boundary, add a conditional transform that can corrupt messages according to predefined error types (factual errors, formatting errors, missing fields). Use feature flags to enable injection only during benchmark runs.

Response measurement: After each agent processes a message, compare its output against a known-good reference. Measure error delta (did the error get bigger or smaller) and error type shift (did a factual error become a reasoning error).

Benchmark Architecture

The paper introduces ErrPropBench-10, a benchmark spanning ten knowledge and reasoning tasks. The architecture separates error injection from task execution:

class ErrorPropagationBenchmark:
    def __init__(self, agent_graph, error_catalog):
        self.graph = agent_graph
        self.errors = error_catalog
        self.trace_store = MessageTraceStore()

    def inject_error(self, agent_id, message, error_type):
        """Inject controlled error at agent boundary."""
        corrupted = self.errors[error_type].apply(message)
        self.trace_store.log_injection(
            agent_id=agent_id,
            original=message,
            corrupted=corrupted,
            error_type=error_type
        )
        return corrupted

    def measure_propagation(self, agent_id, input_msg, output_msg):
        """Measure how agent transformed the error."""
        input_error = self.trace_store.get_error_magnitude(input_msg)
        output_error = self.compute_error_magnitude(output_msg)

        if output_error > input_error * 1.2:
            return "amplification"
        elif output_error < input_error * 0.8:
            return "attenuation"
        elif output_error < 0.1:
            return "correction"
        else:
            return "propagation"

    def run_trial(self, start_agent, error_type):
        """Execute one error propagation trial."""
        initial_msg = self.graph.get_initial_message()
        corrupted_msg = self.inject_error(start_agent, initial_msg, error_type)

        current_msg = corrupted_msg
        for agent in self.graph.execution_order[start_agent:]:
            output_msg = agent.process(current_msg)
            behavior = self.measure_propagation(agent.id, current_msg, output_msg)
            self.trace_store.log_behavior(agent.id, behavior)
            current_msg = output_msg

        return self.trace_store.get_propagation_path()
Enter fullscreen mode Exit fullscreen mode

The benchmark runs multiple trials with errors injected at different points in the agent graph. For each trial, it records the propagation path and computes local response coefficients.

State Management for Replay

To run controlled experiments, you need deterministic replay. Multi-agent systems often have non-deterministic behavior (sampling temperature, retrieval ranking, concurrent execution). REPA-style benchmarking requires:

Conversation snapshots: Serialize the full agent state (memory, context window, tool call history) at each message boundary. Store snapshots in a versioned key-value store keyed by (conversation_id, agent_id, message_index).

Deterministic execution mode: During benchmark runs, fix random seeds, disable sampling (temperature=0), and force sequential execution even if the production system runs agents concurrently.

Message replay protocol: To test error propagation from a specific point, load the snapshot just before that message, inject the error, and resume execution. This lets you run hundreds of error scenarios without re-executing the entire conversation history.

Communication Protocol Design

The paper's findings suggest three protocol-level patterns that reduce error propagation:

Error Correction Signals

Instead of passing raw outputs between agents, include metadata that helps downstream agents detect corruption:

class AgentMessage:
    def __init__(self, content, sender_id):
        self.content = content
        self.sender_id = sender_id
        self.confidence = None
        self.sources = []
        self.validation_hash = None

    def add_confidence(self, score, reasoning):
        """Let sender signal uncertainty."""
        self.confidence = {
            "score": score,
            "reasoning": reasoning,
            "threshold": 0.7  # downstream agents can ignore low-confidence messages
        }

    def add_sources(self, source_list):
        """Let downstream agents verify claims."""
        self.sources = source_list

    def compute_validation_hash(self):
        """Let downstream agents detect message tampering."""
        self.validation_hash = hashlib.sha256(
            json.dumps(self.content, sort_keys=True).encode()
        ).hexdigest()
Enter fullscreen mode Exit fullscreen mode

When Agent B receives a message from Agent A with confidence score 0.4, it can choose to retrieve fresh data instead of trusting the input. This breaks the propagation chain.

Redundant Retrieval

In the paper's experiments, REPA-guided retrieval-augmented generation (RAG) improved accuracy by 19 percentage points. The pattern: when an agent detects potential upstream errors (low confidence score, missing sources, validation hash mismatch), it triggers redundant retrieval before processing.

This adds 16% token overhead but prevents amplification. The trade-off table:

Pattern Latency Impact Token Overhead Error Reduction When to Use
Trust upstream 0ms 0% 0% High-confidence messages, low-stakes tasks
Confidence gating +50ms 0% 30% Medium-stakes, when upstream confidence available
Redundant retrieval +200ms 16% 60% High-stakes, when retrieval is cheap
Full re-execution +500ms 40% 85% Critical paths, when errors are expensive

Circuit Breakers

Add per-agent error budgets. If Agent A produces three consecutive low-confidence outputs, stop routing messages to it and fail over to a backup agent or simpler heuristic. This prevents one bad agent from poisoning the entire system.

class AgentCircuitBreaker:
    def __init__(self, error_threshold=3, reset_timeout=60):
        self.error_counts = {}
        self.threshold = error_threshold
        self.timeout = reset_timeout
        self.open_circuits = {}

    def record_error(self, agent_id):
        self.error_counts[agent_id] = self.error_counts.get(agent_id, 0) + 1
        if self.error_counts[agent_id] >= self.threshold:
            self.open_circuits[agent_id] = time.time()

    def is_available(self, agent_id):
        if agent_id in self.open_circuits:
            if time.time() - self.open_circuits[agent_id] > self.timeout:
                del self.open_circuits[agent_id]
                self.error_counts[agent_id] = 0
                return True
            return False
        return True
Enter fullscreen mode Exit fullscreen mode

Observability Requirements

To operationalize REPA-style monitoring in production:

Per-agent error metrics: Track error rate, amplification rate, and correction rate for each agent. Alert when an agent's amplification rate exceeds 20% (one in five messages makes errors worse).

Propagation path tracing: Use distributed tracing (OpenTelemetry spans) to link messages across agent boundaries. Tag each span with error magnitude and propagation behavior.

Correlation analysis: When endpoint failures spike, trace back to find the common upstream agent. If 80% of failures share Agent A in their propagation path, you know where to focus optimization effort.

Deployment Shape

The paper tested REPA across three Qwen base models and six multi-agent workflows. Key finding: error propagation patterns are model-dependent. Smaller models (7B parameters) amplify errors more often than larger models (72B parameters). This suggests a deployment strategy:

Use larger models at critical junctions: If your agent graph has a hub node that feeds many downstream agents, deploy a larger model there even if it increases latency. Preventing amplification at the hub is cheaper than correcting errors in ten downstream agents.

Use smaller models at leaf nodes: Agents that don't pass messages downstream can use smaller, faster models. Their errors don't propagate, so the amplification risk is contained.

Heterogeneous model deployment: Don't assume one model size fits all agents. Profile your agent graph with REPA, identify high-amplification nodes, and upgrade those selectively.

Likely Failure Modes

False confidence: An agent produces a wrong answer with high confidence. Downstream agents trust it and amplify the error. Mitigation: cross-validate high-confidence claims with redundant retrieval.

Error accumulation: Each agent introduces a small error. By the fifth hop, the accumulated error makes the final answer unusable. Mitigation: add periodic "reset" agents that retrieve fresh ground truth instead of trusting the message chain.

Correlated failures: Multiple agents share the same retrieval backend or knowledge base. When the backend returns bad data, all agents fail simultaneously. Mitigation: use diverse data sources and add circuit breakers that detect correlated failure patterns.

Replay divergence: Your benchmark runs in deterministic mode, but production runs with sampling and concurrency. The error propagation patterns you measured don't match production behavior. Mitigation: run a small percentage of production traffic in deterministic mode and compare propagation metrics.

Technical Verdict

Use REPA-style benchmarking when you have more than three agents in a message-passing chain and when downstream errors are expensive (financial trading, medical diagnosis, legal reasoning). The instrumentation overhead is worth it if a single propagated error costs more than 10x the cost of running the benchmark suite.

Skip it for simple two-agent systems or when agents operate independently without message passing. The framework assumes errors propagate through intermediate messages. If your agents don't communicate, outcome-based evaluation is sufficient.

Implement the full error injection and replay infrastructure if you're building a platform that will run many multi-agent workflows. The upfront cost (2-3 engineer-weeks) amortizes across all workflows. If you're building a single-purpose agent system, start with lightweight propagation tracing (log confidence scores and measure error delta at boundaries) and upgrade to full REPA if you see cascading failures in production.

The 0.84 Spearman correlation between REPA predictions and actual error rates means the model is useful but not perfect. Expect 15-20% of propagation behaviors to surprise you. Use REPA to guide optimization priorities, not as a guarantee.

Source Links

Top comments (0)