JP Morgan's Ritvik Pandya on Learned Execution Graphs for APIs

Ritvik Pandya from JP Morgan Chase discusses using learned execution graphs to detect anomalies and drifts in APIs, improving real-time monitoring and issue resolution.

8 min read
Ritik Pandya presenting on Learned Execution Graphs at AI Engineer World's Fair.
AI Engineer

Visual TL;DR. API Monitoring Challenges addressed by Ritvik Pandya (JPMC). Ritvik Pandya (JPMC) proposes Execution Graphs. Execution Graphs uses Learned Approach. Learned Approach enables Anomaly Detection. Learned Approach also enables Drift Classification. Anomaly Detection leads to Improved Issue Resolution. Drift Classification contributes to Improved Issue Resolution.

  1. API Monitoring Challenges: difficulty detecting real-time anomalies and drifts in complex API request flows
  2. Ritvik Pandya (JPMC): leads payments team, presented on learned execution graphs for API monitoring
  3. Execution Graphs: short-lived, acyclic graphs representing a single request's flow through services
  4. Learned Approach: leverages machine learning to understand normal API behavior from graph patterns
  5. Anomaly Detection: identifies deviations from learned normal behavior in real-time API request processing
  6. Drift Classification: categorizes changes in API behavior patterns over time, indicating system evolution
  7. Improved Issue Resolution: faster identification and diagnosis of performance problems and service disruptions
Visual TL;DR
Visual TL;DR, startuphub.ai API Monitoring Challenges addressed by Ritvik Pandya (JPMC). Ritvik Pandya (JPMC) proposes Execution Graphs. Anomaly Detection leads to Improved Issue Resolution addressed by proposes leads to API Monitoring Challenges Ritvik Pandya (JPMC) Execution Graphs Anomaly Detection Improved Issue Resolution From startuphub.ai · The publishers behind this format
Visual TL;DR, startuphub.ai API Monitoring Challenges addressed by Ritvik Pandya (JPMC). Ritvik Pandya (JPMC) proposes Execution Graphs. Anomaly Detection leads to Improved Issue Resolution addressed by proposes leads to API MonitoringChallenges Ritvik Pandya(JPMC) Execution Graphs Anomaly Detection Improved IssueResolution From startuphub.ai · The publishers behind this format
Visual TL;DR, startuphub.ai API Monitoring Challenges addressed by Ritvik Pandya (JPMC). Ritvik Pandya (JPMC) proposes Execution Graphs. Anomaly Detection leads to Improved Issue Resolution addressed by proposes leads to API Monitoring Challenges difficulty detecting real-time anomaliesand drifts in complex API request flows Ritvik Pandya (JPMC) leads payments team, presented on learnedexecution graphs for API monitoring Execution Graphs short-lived, acyclic graphs representing asingle request's flow through services Anomaly Detection identifies deviations from learned normalbehavior in real-time API requestprocessing Improved Issue Resolution faster identification and diagnosis ofperformance problems and servicedisruptions From startuphub.ai · The publishers behind this format
Visual TL;DR, startuphub.ai API Monitoring Challenges addressed by Ritvik Pandya (JPMC). Ritvik Pandya (JPMC) proposes Execution Graphs. Anomaly Detection leads to Improved Issue Resolution addressed by proposes leads to API MonitoringChallenges difficultydetecting real-timeanomalies and… Ritvik Pandya(JPMC) leads paymentsteam, presented onlearned execution… Execution Graphs short-lived,acyclic graphsrepresenting a… Anomaly Detection identifiesdeviations fromlearned normal… Improved IssueResolution fasteridentification anddiagnosis of… From startuphub.ai · The publishers behind this format
Visual TL;DR, startuphub.ai API Monitoring Challenges addressed by Ritvik Pandya (JPMC). Ritvik Pandya (JPMC) proposes Execution Graphs. Execution Graphs uses Learned Approach. Learned Approach enables Anomaly Detection. Learned Approach also enables Drift Classification. Anomaly Detection leads to Improved Issue Resolution. Drift Classification contributes to Improved Issue Resolution addressed by proposes uses enables also enables leads to contributes to API Monitoring Challenges difficulty detecting real-time anomaliesand drifts in complex API request flows Ritvik Pandya (JPMC) leads payments team, presented on learnedexecution graphs for API monitoring Execution Graphs short-lived, acyclic graphs representing asingle request's flow through services Learned Approach leverages machine learning to understandnormal API behavior from graph patterns Anomaly Detection identifies deviations from learned normalbehavior in real-time API requestprocessing Drift Classification categorizes changes in API behaviorpatterns over time, indicating systemevolution Improved Issue Resolution faster identification and diagnosis ofperformance problems and servicedisruptions From startuphub.ai · The publishers behind this format
Visual TL;DR, startuphub.ai API Monitoring Challenges addressed by Ritvik Pandya (JPMC). Ritvik Pandya (JPMC) proposes Execution Graphs. Execution Graphs uses Learned Approach. Learned Approach enables Anomaly Detection. Learned Approach also enables Drift Classification. Anomaly Detection leads to Improved Issue Resolution. Drift Classification contributes to Improved Issue Resolution addressed by proposes uses enables also enables leads to contributes to API MonitoringChallenges difficultydetecting real-timeanomalies and… Ritvik Pandya(JPMC) leads paymentsteam, presented onlearned execution… Execution Graphs short-lived,acyclic graphsrepresenting a… Learned Approach leverages machinelearning tounderstand normal… Anomaly Detection identifiesdeviations fromlearned normal… DriftClassification categorizes changesin API behaviorpatterns over time,… Improved IssueResolution fasteridentification anddiagnosis of… From startuphub.ai · The publishers behind this format

Ritik Pandya, who leads the payments team at JP Morgan Chase, recently presented a talk on "Learned Execution Graphs for real-time anomaly detection & Drift Classification in APIs." The core idea revolves around leveraging execution graphs, which are short-lived graphs representing the flow of a request through various services, to identify deviations from normal behavior.

JP Morgan's Ritvik Pandya on Learned Execution Graphs for APIs - AI Engineer
JP Morgan's Ritvik Pandya on Learned Execution Graphs for APIs — from AI Engineer

Pandya distinguished these execution graphs from persistent or property graphs commonly used in knowledge representation. While traditional graphs are queried for relationships and data, execution graphs are traces built from spans, describing how a specific request was processed. These graphs are inherently acyclic and capture the causal flow of operations, making them ideal for understanding and diagnosing performance issues.

Understanding Execution Graphs

The presentation outlined a typical request processing pipeline, starting from an edge layer where requests enter, moving through gateways, authentication, orchestration, and finally to various backend systems that might be called in parallel. This entire process can be visualized as a Directed Acyclic Graph (DAG). The DAG structure simplifies understanding the order of service execution and the context passed between different nodes.

The concept extends to handling complex scenarios like retries and loops, where each iteration can be represented as a distinct entity within the graph for easier tracking.

Anomaly Detection and Drift Classification

Pandya explained a tiered approach to anomaly detection. The first tier involves a quick check, akin to a boarding pass scan at an airport. If the request execution appears normal end-to-end, no further checks are needed. However, if a delay is detected, the system progresses to deeper analysis. This analysis involves identifying structural changes (like added or removed nodes) or scale deviations.

The presentation differentiated between anomalies and drifts. An anomaly is a single, isolated event that deviates from the norm, while a drift signifies a gradual change in patterns over time. The system aims to detect both. Drifts can be categorized into structural (changes in topology), performance (changes in execution time), or covariate (changes in input distributions), each requiring different handling.

The "Learned" Approach

A key aspect of the proposed solution is the "learned" component, which emphasizes modeling the distribution of normal graphs rather than relying on predefined rules. This approach is crucial because hand-written thresholds often fail on every deployment. Instead, the system learns baselines from normal traffic and the graph's normal structure. This allows for more accurate and adaptive anomaly detection.

The talk also touched upon the challenges of trace assembly, including late spans, missing spans, sampling bias, and cold starts for new endpoints. To address these, the system leverages tools like OpenTelemetry for data collection, Kafka for streaming, and stream processing frameworks for real-time analysis.

Real-World Application and Benefits

Pandya shared an example of a benchmark experiment using millions of traces, where injecting anomalies helped train the system. The results indicated that this approach could significantly reduce the mean time to discovery for issues. By localizing problems within the execution graph, the system enables faster resolution, which is particularly critical in payment processing where speed and reliability are paramount.

The presentation concluded by highlighting the importance of clear labeling, defining appropriate time windows for analysis, and ensuring explainability of the data to make informed decisions. The overall goal is to create a more automated and efficient system for monitoring and maintaining the health of complex API ecosystems.

© 2026 StartupHub.ai. All rights reserved. Do not enter, scrape, copy, reproduce, or republish this article in whole or in part. Use as input to AI training, fine-tuning, retrieval-augmented generation, or any machine-learning system is prohibited without written license. Substantially-similar derivative works will be pursued to the fullest extent of applicable copyright, database, and computer-misuse laws. See our terms.