In the current AI ecosystem, autonomous agents are transforming how businesses automate complex processes. However, measuring the quality of trajectories generated by these agents remains a critical challenge. Traditional binary success metrics or exact matching against a reference fall short: an agent may complete a task by luck, or a perfectly valid plan may be penalized simply because its execution order differs from the expected one. This is where OTAP (Optimal Transport for Agentic Planning) emerges, reframing evaluation as an optimal transport problem between dependency graphs. Instead of a simple success flag, OTAP computes a pseudo-metric distance that respects valid reorderings, tolerates redundant steps, and naturally handles omissions or hallucinations. Its approach, based on unbalanced Gromov-Wasserstein transport, enables a much richer semantic and structural comparison.
From a technical perspective, OTAP models the agent's trajectory as an execution graph where nodes represent actions or intermediate results and edges indicate dependencies. It then compares this graph against a set of valid solution graphs by solving an optimal transport problem that assigns flows between nodes of both graphs while minimizing a cost combining attributes and structure. The unbalanced version allows unmatched nodes to remain unassigned, which is essential when the agent introduces invented steps or omits others. The result is a score that not only distinguishes valid from invalid trajectories but also provides detailed insight into where and why the agent failed.
OTAP's applicability extends beyond the lab. In business environments where agents are deployed for tasks like customer service, data analysis, or process automation, having a robust metric is key for quality control. Companies that develop custom software with artificial intelligence, such as Q2BSTUDIO, understand that accurate evaluation of these systems is as important as their implementation. For instance, when building a virtual assistant that manages reservations or resolves incidents, it is not enough that the agent finishes the conversation; every intermediate step must follow correct business logic. OTAP provides that granularity, allowing detection of subtle deviations that a simple pass/fail would hide.
In the context of cybersecurity, agents can monitor networks and respond to threats. Proper evaluation of their decision trajectories is vital to avoid false positives or inadequate responses. Similarly, in cloud computing with providers like AWS or Azure, agents managing infrastructure must execute scaling or recovery plans coherently. OTAP can validate that those action sequences respect the actual system dependencies.
For a software development company like Q2BSTUDIO, adopting advanced metrics like OTAP fits perfectly with its service portfolio. From building custom software that integrates intelligent agents, to implementing cloud solutions or developing Power BI dashboards, the ability to continuously evaluate and improve agents is a competitive differentiator. Moreover, process automation directly benefits from more precise evaluation, reducing debugging time and increasing trust in autonomous systems.
On the other hand, optimal transport is not new in machine learning, but its application to agent evaluation is innovative. OTAP demonstrates that traditional metrics are outdated and that more mathematical approaches can capture nuances that escape human intuition. Experiments with controlled perturbations and public benchmarks show that OTAP outperforms purely semantic metrics, especially when dependency graphs are recovered exactly. Even when inferred from free text, its performance remains robust.
In summary, AI agent evaluation is evolving toward more sophisticated methods. OTAP represents a significant advancement by providing a semantic and structural distance between trajectories. For technology companies seeking quality in their automation and AI solutions, understanding and applying these concepts is essential. Q2BSTUDIO, with its expertise in custom application development, cloud, cybersecurity, and BI, is ready to integrate these metrics into its projects, ensuring that agents not only work but do so reliably and explainably.
If you want to delve deeper into how artificial intelligence can transform your business, we invite you to check out our AI services. Also, if you need a software solution that fits your exact processes, discover our custom applications.





