← Latest papers
💻 computer science

Supporting System Testing with a Multi-Agent LLM-based Framework for Knowledge Graph Extraction: A Case Study with Ethernet Switch Systems

This paper presents a multi-agent LLM-based framework that extracts and iteratively refines knowledge graphs from semi-structured Ethernet switch configuration manuals to support the automated generation of accurate system test case specifications.

Original authors: Rongqi Pan, Mahboubeh Dadkhah, Jean Baptiste Minani, Hussein Al Osman, Lionel Briand, Haiwei Dong

Published 2026-05-20
📖 5 min read🧠 Deep dive

Original authors: Rongqi Pan, Mahboubeh Dadkhah, Jean Baptiste Minani, Hussein Al Osman, Lionel Briand, Haiwei Dong

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

The Big Picture: Turning a Messy Manual into a Smart Map

Imagine you have a massive, 500-page instruction manual for a complex piece of machinery (in this case, an Ethernet switch, which is like a traffic controller for internet data). This manual is written for humans to read, not for computers to understand. It's full of "semi-structured" text—meaning it has headings and lists, but the important details are often hidden in paragraphs, mixed with notes, or implied rather than stated clearly.

The problem? A computer trying to automatically test if this machine works correctly gets confused. It can't easily figure out: "If I do step A, does that mean I need to do step B next? And what exactly should the machine look like after I'm done?"

The authors of this paper built a smart robot team (a Multi-Agent LLM Framework) to read these messy manuals and turn them into a perfectly organized map (a Knowledge Graph). This map allows computers to automatically generate test scripts to check if the machine works, saving humans from doing the boring, repetitive work manually.


The Cast of Characters: A Team of Specialized Robots

Instead of one giant robot trying to do everything at once, the authors created a team of three specialized "agents" (AI assistants), each with a specific job, plus two supervisors.

  1. The Roadmap Agent: This robot reads the "big picture" section of the manual. It figures out the high-level goals (e.g., "We need to detect loops in the network").
  2. The Procedure Agent: This robot reads the "nitty-gritty" section. It extracts the exact commands, buttons to press, and expected results (e.g., "Type this specific code, and you should see this specific error message").
  3. The Mapper Agent: This is the crucial link. It connects the "big picture" goals to the "nitty-gritty" steps. It answers the question: "Which specific commands actually achieve that high-level goal?"

The Supervisors:

  • The Judge (EvalAgent): After the team does their work, the Judge checks their homework. It compares the robot's output against the original manual to see if they missed anything or got it wrong.
  • The Coach (ImprovAgent): If the Judge finds mistakes, the Coach doesn't just fix the answer; it rewrites the instructions (prompts) given to the robots so they don't make the same mistake next time.

The Process: The "Try, Check, Fix" Loop

The system uses a clever cycle called the Extract-Evaluate-Improve (EEI) Loop. Think of it like a student taking a practice test:

  1. Extract: The robot team reads the manual and builds the map (Knowledge Graph).
  2. Evaluate: The Judge looks at the map and says, "You missed a detail here," or "You put this note in the wrong box." It gives a score.
  3. Improve: If the score is too low, the Coach steps in. It looks at the Judge's feedback and says, "Okay, next time, be more careful about distinguishing between a 'goal' and a 'note'." It updates the robot's instructions.
  4. Repeat: The robots try again with the new instructions. They keep doing this until the map is perfect or they've tried enough times.

The Results: How Well Did It Work?

The team tested this system on 50 real-world manuals from a major tech company (Huawei).

  • The "First Try" was already amazing: Even without the "Coach" helping them improve, the robots got the right answer 97% to 99% of the time on the first try.
  • The "Coach" helped the hard cases: For the few manuals that were particularly tricky or confusing, the EEI loop kicked in. It refined the instructions, and the accuracy jumped even higher, reaching near-perfect scores.
  • Humans agree with the Robots: The authors had human experts check the work too. They found that the "Judge" robot and the human experts agreed with each other 72% to 80% of the time. Most of the disagreements were tiny things (like a missing space or a slightly different way of categorizing a note), not major errors.
  • Real-World Usefulness: The team gave the generated maps to five experienced human testers. The testers said the maps were very useful, clear, and accurate. They felt the maps could successfully guide them in creating test cases, though they noted that sometimes the "pre-conditions" (what needs to be set up before starting) needed a tiny bit of human polishing to be perfectly clear.

The Bottom Line

This paper shows that we can use a team of AI robots to read complex, messy technical manuals and turn them into clean, structured data. This data is so good that it can help automate the testing of network equipment, a task that is usually slow, expensive, and done entirely by hand. The system is smart enough to learn from its own mistakes and get better at reading specific types of manuals, making it a powerful tool for the future of software testing.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →