Unsupervised Cycle Detection in Agentic Applications

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: George, Felix, Kumar, Harshit, Pathak, Divya, Ray, Kaustabha, Verma, Mudit, Moogi, Pratibha
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914157686685696
author George, Felix
Kumar, Harshit
Pathak, Divya
Ray, Kaustabha
Verma, Mudit
Moogi, Pratibha
author_facet George, Felix
Kumar, Harshit
Pathak, Divya
Ray, Kaustabha
Verma, Mudit
Moogi, Pratibha
contents Agentic applications powered by Large Language Models exhibit non-deterministic behaviors that can form hidden execution cycles, silently consuming resources without triggering explicit errors. Traditional observability platforms fail to detect these costly inefficiencies. We present an unsupervised cycle detection framework that combines structural and semantic analysis. Our approach first applies computationally efficient temporal call stack analysis to identify explicit loops and then leverages semantic similarity analysis to uncover subtle cycles characterized by redundant content generation. Evaluated on 1575 trajectories from a LangGraph-based stock market application, our hybrid approach achieves an F1 score of 0.72 (precision: 0.62, recall: 0.86), significantly outperforming individual structural (F1: 0.08) and semantic methods (F1: 0.28). While these results are encouraging, there remains substantial scope for improvement, and future work is needed to refine the approach and address its current limitations.
format Preprint
id arxiv_https___arxiv_org_abs_2511_10650
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Unsupervised Cycle Detection in Agentic Applications
George, Felix
Kumar, Harshit
Pathak, Divya
Ray, Kaustabha
Verma, Mudit
Moogi, Pratibha
Computation and Language
Artificial Intelligence
Multiagent Systems
Agentic applications powered by Large Language Models exhibit non-deterministic behaviors that can form hidden execution cycles, silently consuming resources without triggering explicit errors. Traditional observability platforms fail to detect these costly inefficiencies. We present an unsupervised cycle detection framework that combines structural and semantic analysis. Our approach first applies computationally efficient temporal call stack analysis to identify explicit loops and then leverages semantic similarity analysis to uncover subtle cycles characterized by redundant content generation. Evaluated on 1575 trajectories from a LangGraph-based stock market application, our hybrid approach achieves an F1 score of 0.72 (precision: 0.62, recall: 0.86), significantly outperforming individual structural (F1: 0.08) and semantic methods (F1: 0.28). While these results are encouraging, there remains substantial scope for improvement, and future work is needed to refine the approach and address its current limitations.
title Unsupervised Cycle Detection in Agentic Applications
topic Computation and Language
Artificial Intelligence
Multiagent Systems
url https://arxiv.org/abs/2511.10650