Automatic Deduction Path Learning via Reinforcement Learning with Environmental Correction

Shuai Xiao, Chen Pan, Min Wang, Xinxin Zhu, Siqiao Xue, Jing Wang, Yunhua Hu, James Zhang, Jinghua FengarXiv 2023

Abstract

Automatic bill payment is an important part of business operations in fintech companies. The practice of deduction was mainly based on the total amount or heuristic search by dividing the bill into smaller parts to deduct as much as possible. This article proposes an end-to-end approach of automatically learning the optimal deduction paths (deduction amount in order), which reduces the cost of manual path design and maximizes the amount of successful deduction. Specifically, in view of the large search space of the paths and the extreme sparsity of historical successful deduction records, we propose a deep hierarchical reinforcement learning approach which abstracts the action into a two-level hierarchical space: an upper agent that determines the number of steps of deductions each day and a lower agent that decides the amount of deduction at each step. In such a way, the action space is structured via prior knowledge and the exploration space is reduced. Moreover, the inherited information incompleteness of the business makes the environment just partially observable. To be precise, the deducted amounts indicate merely the lower bounds of the available account balance. To this end, we formulate the problem as a partially observable Markov decision problem (POMDP) and employ an environment correction algorithm based on the characteristics of the business. In the world's largest electronic payment business, we have verified the effectiveness of this scheme offline and deployed it online to serve millions of users.

Introduction

In digital finance, automatic bill payment is a standard feature designed to improve user experience and operational efficiency. However, a significant hurdle exists: if a user’s bank balance is lower than their total bill, a single "full deduction" attempt will fail. To minimize overdue fees and protect credit scores, companies use "intelligent deductions"—breaking the bill into smaller, sequential amounts, known as a deduction path.

Designing these paths manually is challenging due to three primary factors:

  1. Huge Search Space: Millions of users and infinite ways to partition a bill make manual optimization impossible.
  2. Extreme Data Sparsity: Successful deduction records are rare, hindering standard machine learning models.
  3. Partial Observability (POMDP): Due to privacy protocols, platforms cannot see a user's actual bank balance. They only know the "lower bound"—if a deduction succeeds, the balance was at least that amount, but the true total remains unknown.
The challenge of partial observability: successful deductions only provide a lower bound on the unknown account balance.

Methodology

The proposed framework addresses these hurdles through a dual-pronged approach: Hierarchical Reinforcement Learning (HRL) and Environmental Correction.

Overview of the end-to-end deduction path learning framework, integrating balance prediction and hierarchical RL agents.

Hierarchical Reinforcement Learning (HRL)

Instead of a "flat" RL model, the system uses a two-level hierarchy to reduce the exploration space:

  • Upper-level Agent: Decides the "sub-goal"—specifically, how many deduction steps to attempt on a given day (e.g., 0 to 5).
  • Lower-level Agent: Given the sub-goal, this agent decides the specific amount for each step. This structure allows the model to prune invalid decisions and focus on promising paths, effectively bypassing the "cold start" problem typical in sparse-reward environments.

Environmental Correction

To handle the "hidden balance" problem, the authors treat the environment as a Partially Observable Markov Decision Process (POMDP). They developed a Bi-LSTM model with an attention mechanism that analyzes a user’s historical consumption data to predict the available balance. This prediction acts as a "correction term," allowing the RL agent to train in a more accurate, simulated environment rather than relying solely on sparse, lower-bound feedback. The core insight is that spending patterns serve as a strong proxy for hidden account liquidity.

Experimental Results

The study utilized real-world, anonymized data from Ant Group, including a balance prediction dataset of approximately 198,000 samples and historical deduction trajectories.

In offline evaluations, the proposed DQN-A2CE model achieved an 85.4% success rate, significantly outperforming several baselines:

  • Full Deduction: 68.1% success rate.
  • Heuristic Search (Expert Rules): 76.4% success rate.
  • Vanilla DQN: 78.9% success rate.

In a real-world online A/B test serving millions of users, the proposed method increased the successfully deducted amount by 9% compared to the previous expert-designed binary search strategy. The system has been deployed in production since November 2021.

Conclusion

This research demonstrates that combining hierarchical reinforcement learning with predictive environmental correction can solve complex, partially observable decision-making tasks in fintech. While predicting bank balances remains inherently noisy, using consumption behavior as a proxy significantly improves debt recovery. Future work may involve building larger foundation-style models to better estimate balances and applying this automatic path-searching logic to other domains like logistics and supply chain management.

Summary updated

BibTeX
@misc{xiao2023automatic,
  author = {Shuai Xiao and Chen Pan and Min Wang and Xinxin Zhu and Siqiao Xue and Jing Wang and Yunhua Hu and James Zhang and Jinghua Feng},
  title = {{Automatic Deduction Path Learning via Reinforcement Learning with Environmental Correction}},
  year = {2023},
  eprint = {2306.10083},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.10083},
}
Figure