potentialpaper

Graph-Energy Reinforcement Learning: Adaptive Reward Design for API Usage Pattern Mining with OOD Detection

An Xi, yili xuan

ICLR 2026 submission

Edit this page

Or clone it with git

The page gets its repository with its first edit, so start in the web editor.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

Abstract. \begin{abstract} We propose its a novel framework Graph-Energy Reinforcement Learning (GERL), in which the goal is in the case of mining API usage patterns with robust out of distribution (OOD) detection capabilities. Growing complexity of API ecosystems demands adaptive methods to differentiate between in-distribution and anomalous patterns, however, often existing approaches rely on static thresholds or do not have structural awareness. GERL addresses this by integrating energy based OOD scoring with graph diffusion in a reinforcement learning (RL) framework, which makes it possible to dynamically design rewards which guides exploration in graph-structured API Spaces. The core innovation lies the in Graph-Energy Reward Function which combines; node level energy scores calculated using a Graph Neural Network with multi-hop topological dependencies as represented by diffusion. This joint formulation gives freedom for RL agent to change the exploitative of known patterns and discovering of novel ones, while the policy network, built on Transformer-XL, processes variable length API sequences with structural context. In addition, using a graph-based Markov Decision Processes creates realistic scenarios of API use, transitions modeled by a Graph Variational Auto Encoder for Predicting Likely Subgraph Evolutions. Experiments show that in compared with conventional methods, GERL is more both pattern mining accuracy as well as OOD detection robustness, particularly when making recursive or many-hop applications of the API \end{abstract}

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

add · history

No versions are recorded yet: its preprint, the venues it went to and what they decided, the camera-ready. Missing a version?

We don't know of a submission of this paper to a venue with open reviews. Missing a submission?

Loading the discussion…