A Hierarchical Error-Corrective Graph Framework for Autonomous Agents with LLM-Based Action Generation

This paper proposes the Hierarchical Error-Corrective Graph Framework (HECG) for autonomous agents, which integrates Multi-Dimensional Transferable Strategy (MDTS) for precise candidate selection, Error Matrix Classification (EMC) for structured failure attribution, and Causal-Context Graph Retrieval (CCGR) for enhanced contextual reasoning to improve execution reliability in complex, multi-step tasks.

Cong Cao, Jingyao Zhang, Kun Tong

Published 2026-03-10
📖 4 min read☕ Coffee break read

Imagine you are teaching a very smart, but slightly clumsy, robot butler to clean your house. You give it a big instruction: "Make breakfast, wash the dishes, and then tidy the living room."

In the past, if you asked a robot to do this, it would try to follow your instructions like a rigid script. If it tried to pick up a coffee mug and missed because the mug was slightly hidden, the robot would either crash, get stuck, or just give up and say, "I failed." It didn't know how to fix the mistake, only that it made one.

This paper introduces a new system called HECG (Hierarchical Error-Corrective Graph). Think of it as giving the robot a smart, self-correcting GPS and a team of expert coaches instead of just a single script.

Here is how it works, broken down into three simple ideas:

1. The "Smart Map" (The Graph)

Instead of a straight line of instructions (Step A → Step B → Step C), the robot's plan is a choose-your-own-adventure book or a complex subway map.

  • The Nodes: Every step (like "pick up mug") is a stop on the map.
  • The Paths: From every stop, there isn't just one path forward. There are:
    • The Main Path: The normal way to do it.
    • The Detour Path: If the main path is blocked, take this alternative route.
    • The Repair Path: If you drop the mug, this path tells you how to pick it up again without restarting the whole day.
    • The "Call for Help" Path: If the robot is totally stuck, it knows when to ask a human for help.

This map allows the robot to navigate around problems instantly instead of crashing.

2. The "Three-Level Coach" (Hierarchical Correction)

When the robot makes a mistake, it doesn't just panic. It has a three-level team of coaches that step in, starting with the least expensive fix and only calling in the big guns if necessary.

  • Level 1: The "Nudge" Coach (Local Correction)
    • Scenario: The robot tries to grab a cup but misses by an inch.
    • Fix: The coach says, "Just move your hand two centimeters to the left and try again." No big deal!
  • Level 2: The "Strategy" Coach (Switching Actions)
    • Scenario: The robot tries to grab the cup, but it's too heavy or slippery.
    • Fix: The coach says, "Grabbing isn't working. Let's try pushing the cup to the edge of the table instead." The goal is the same, but the method changes.
  • Level 3: The "General" Coach (Re-planning)
    • Scenario: The robot keeps failing, or the kitchen is a mess.
    • Fix: The coach says, "Forget the current plan. Let's throw it out and write a brand new one that avoids the mess we just made."

3. The "Super-Intelligent Librarian" (Causal-Context Graph)

This is the brain behind the scenes. Usually, when a robot fails, it forgets the details of why it failed. It just remembers "I failed."

This new system acts like a Librarian who remembers every story ever told.

  • It doesn't just look for words that sound similar (like "cup" and "mug").
  • It looks at the story structure: "Last time, the robot tried to grab a cup while the light was off, and it failed. It succeeded when it turned the light on first."
  • When the robot faces a new problem, the Librarian pulls up the exact "story" of a similar past success and says, "Hey, remember that time you turned on the light? Do that again."

Why is this a big deal?

Imagine driving a car.

  • Old Way: If you hit a pothole, the car stops, the engine turns off, and you have to call a tow truck (the robot crashes and needs a human to restart it).
  • New Way (HECG): If you hit a pothole, the car's suspension absorbs it (Level 1). If the road is blocked, the GPS instantly reroutes you (Level 2). If the whole road is gone, the GPS finds a completely new highway to your destination (Level 3).

In short: This paper teaches robots how to think on their feet. It combines the creativity of a human (using a Large Language Model to understand context) with the discipline of a machine (using a structured map to track errors), creating an agent that is much harder to break and much better at finishing its chores.