Long-horizon software engineering agents trained with reinforcement learning typically only get a binary success/failure signal at the end of a trajectory, making it hard to learn which intermediate actions were productive. SWE-MILE addresses this by extracting fine-grained supervision signals from the agent's workflow runtime itself, without needing extra reward models or evaluators.
The method works by quantifying two types of potential: navigation potential (how much task-relevant files have been exposed) and verification potential (how many test states align with the target). Differences in these potentials between steps attribute progress or regression to individual actions. An asynchronous shadow probing mechanism runs verification in parallel to hide latency. Experiments on two long-horizon SWE tasks show substantial performance improvements over standard terminal-reward RL.