RESEARCH · NOVEMBER 2026 · PREPRINT
DECODE: Decomposable Environments for COntrolled Sequential-Decision Evaluation
Paper (arXiv) Code (GitHub) Data (Zenodo) Cite
A decision system's score shows how far it falls short of the best possible decisions, but not what would improve them. DECODE is a set of simulated debt-collection environments built from known equations, so the best decisions made with full knowledge of each borrower's hidden state can be computed. Its experiments change one part of a decision system at a time, such as how far ahead it plans or what it knows about each borrower, and measure how far the system then stands from that optimum.
The problem: a score does not say what to fix
In debt collection, a policy sets the monthly action for each overdue loan. It specifies whether to contact the borrower, through which channel (text message, WhatsApp or phone), and which settlement discount to offer. A decision system, called a solver here, learns such a policy from the records of past decisions and their outcomes.
A solver may fall short because it plans too few months ahead, misses information about each borrower, or predicts repayment poorly. With real data the best possible policy is never observed, so there is no fixed yardstick for testing a change. DECODE supplies one, though it does not fully separate these explanations.
A simulation where the best decisions are known
DECODE writes down how each borrower's situation evolves. Every borrower has a hidden state that changes from month to month, partly in response to contacts. A solver never sees this state directly, but receives a noisy reading of it and account details such as how overdue the loan is and its balance. Because the equations are known, DECODE can compute the exact optimum, the best plan given the true hidden state and the borrower's traits. Policy results are reported as a score, the policy's value as a percentage of the exact optimum, and differences are given in points of that score. In the two noisy environments the reference is instead the value of re-planning monthly with the true hidden state.
Solvers are built from the records of one simulated portfolio and graded on another. To test what limits a solver, DECODE replaces one of its inputs at a time with a reference quantity computed from the known equations and grades it again. The replacement may be a filter's estimate of the hidden state or the true repayment model. A filter tracks a hidden quantity from noisy readings. The five released environments vary two parameters. The memory parameter makes the effect of each contact depend on earlier contacts, while process noise adds random shocks to the hidden state. The base environment, Base, has neither, and two of the others also use a lower base repayment rate.
1. On Base, the horizon mattered more than the choice of solver
On Base, the same fitted solver scores 15 to 17 points higher when it plans six months ahead instead of one, that is, with a six-month planning horizon. At a fixed horizon, the point estimates of the differences between the tested solvers are all below 4 points. Only two solvers, GBM-lags and GBM-flat, were graded at both horizons. Both use gradient-boosted models to predict repayment, with GBM-lags using six months of past readings and contacts and GBM-flat using the current month only.
Base was built to reward planning. Its construction required the best six-month plan to beat the best one-month plan by 15 to 40 points, so the chart shows what planning is worth in this setting, not in general.
Switch between the one-month and six-month horizons. Hover over or tap a row for its values. Numbers in brackets are 95% intervals, which show the uncertainty of each estimate.
The choice among the tested solvers mattered much less than the horizon. The largest difference at six months, 3.75 points, is between GBM-lags and GBM-flat, which differ only in their history inputs. CE-Seq uses a recurrent model and, unlike GBM-lags, also reads earlier account states, yet scores 2.12 points below GBM-lags. GBM-cash predicts monthly cash directly, and LLM-agent applies fixed rules written by a language model. Both GBM-lags and GBM-flat plan with the simulator's own equations for write-off, cash and contact fatigue and fit only the repayment response, so the horizon effect measures planning with a partly known model.
How this was measured
Each of the 4,000 loans in the Base evaluation portfolio is graded over six months of decisions. Policy value is the expected net cash up to the first repayment within the six-month evaluation window, with discounts counted as lost and contact costs included. Intervals are 95% paired bootstrap intervals over loans (10,000 resamples), and differences are divided by the cohort's average exact optimum. Each solver uses one training portfolio and one fit, so the intervals do not include variation from retraining. LLM-agent's rules were written from a censored copy of the training records. A random policy scores 29.11.
Show the numbers
2. Swapping in known quantities, one at a time
Even with a six-month planning horizon, the best graded solver, GBM-lags, stays 15.6 points below the exact optimum. DECODE replaces its inputs with reference quantities one at a time, in a declared order. Exact fatigue evaluation, filter features and propagation of those features during planning lower its score by 6.3 points in total. Replacing its fitted repayment model with the true response, evaluated with the hidden borrower traits, then raises it by 15.6. Overall, the sequence recovers 9.35 of the 15.6 points.
Move the slider to apply the steps in order. Hover over or tap a bar for its interval.
Each step is measured after the preceding steps, so its effect depends on the order and the fitted model. The steps do not split the gap into unique causes. The filter used for the state inputs ignores past repayments, so its small step does not show that estimating the hidden state is unimportant. Replacing the repayment model supplies both the true response and the hidden traits, combining information with knowledge of the model.
A structured estimator and an 11-month history window, both fitted to the same records without hidden information, did not establish an improvement over GBM-lags. The structured estimator, a solver with more built-in structure, scored 1.73 points lower (95% interval 0.86 to 2.60 lower), while the longer history window scored 0.63 higher, with an interval from −0.12 to +1.47 that includes zero. What limits GBM-lags remains open. Random exploration in the records was held fixed, so its role was not tested.
How this was measured
The four steps are applied to GBM-lags on the same 4,000 Base loans with one shared bootstrap. Exact fatigue evaluates the borrower's contact fatigue exactly along each candidate plan instead of interpolating it, a numerical control rather than hidden information. Filter features replace the six-month history with the state estimates of a Kalman filter that knows how the hidden state evolves and how readings are generated. Rolled belief propagates that estimate through the planned months instead of holding it fixed. Exact response replaces the fitted repayment model with the simulator's true response, including the hidden borrower traits. The intervals divide each resample's mean difference by that resample's mean exact optimum. The steps add up to the total gain by construction.
Show the numbers
3. History helps predict, by an amount that varies with memory
A predictive probe measures how much of the variation in borrowers' true repayment propensity a gradient-boosted model can explain from a given set of information. The results shown here are R² values between 0 and 1. The snapshot uses the current month only, while history adds the last six months of readings and contacts. The true-state probe adds the hidden state itself to the snapshot, information the graded solvers do not see directly. History improves on the snapshot at every memory setting, most at a memory parameter of 0.5.
Move the slider to change the memory parameter (δ). Values 0, 0.5 and 4 correspond to released environments.
A peak in the history gain is not an optimal amount of memory. It may reflect a balance between the information history carries and the predictor's ability to use it, a mechanism these experiments do not isolate. Across five independently drawn versions of the simulator's matrices, history beat the snapshot in all 15 combinations of draw and the three released memory settings, and the gain at δ = 0.5 exceeded the gain at δ = 0 in four of the five draws.
Further tests asked how much of this history learned memories could use. On the environment with the strongest memory (δ = 4), recurrent networks gained between 0 and 38% of the margin between the history probe and an analytic reference, at the training budgets used, while a filter that knows how the hidden state evolves and how readings are generated gained 69%. A separate predictive comparison tests whether history also helps with real loans. In Fannie Mae mortgage data, adding a loan's earlier delinquency history raised the area under the receiver operating characteristic curve (AUC, where 0.5 is chance and 1 is perfect) for predicting a return to current status by 0.041 (95% interval 0.031 to 0.050), against 0.010 to 0.013 in the simulated environments. The populations and targets differ, so the sizes are not comparable as a ratio and the real data do not calibrate the simulator. Better prediction does not by itself establish better decisions.
How this was measured
Probe scores are out-of-fold R² values of a gradient-boosted regressor fitted to the true repayment logit, averaged over three folds, on rows where the logging policy chose a phone contact at random. The sweep uses smaller unreleased portfolios of 100,000 borrowers over 12 months, generated on the released environments' matrices. Portfolios at different δ are not matched populations, so changes in the snapshot score cannot be attributed to δ alone. The analytic reference assumes the hidden traits are known but ignores past repayments the probes can see, so it neither bounds nor validates them, and the percentages are a normalization rather than shares of attainable information. The real-data comparison uses 20,677 delinquency spells and a different label, return to current status within six months.
Show the numbers
4. Re-planning under noise, and one planner's view of its own plan
With process noise (σ), the hidden state receives random shocks every month. The re-observation gain is the value of re-planning every month on fresh readings minus the value of carrying out the plan chosen at the start. For a reference planner that knows the simulator's equations and each borrower's hidden traits, and tracks the hidden state with a filter, the gain is about zero on Base and positive in both noisy environments, larger at the stronger noise. Here points are measured against each environment's upper reference. On Base this is the exact optimum, and in the noisy environments it is the value of re-planning monthly with the true hidden state.
Switch between the environments to compare. The line on Base is its 95% interval. For the noisy environments, the interval is instead given per loan in the readout.
The two noisy environments also differ in their base repayment rate, so the difference between them cannot be attributed to the noise level alone. The near-zero gain on Base is a measurement, not a guarantee, because its readings are still noisy.
A planner's own valuation of its plan
A planner computes a value for each plan it considers. One shortcut, called chaining, averages each month's repayment chance over its uncertainty and strings these averages together as if the months were independent. This ignores that the same uncertain hidden state drives every month. For the filter-based planner on Base, chaining valued its chosen plan about 11% higher than integrating the same plan jointly under the same uncertainty. The direction of this gap is a result for this planner and setting, not a general rule.
How this was measured
Re-observation gains are in points of each environment's upper reference, which under noise is the value of re-planning monthly with the true hidden state. That reference normalizes the scores but is not an upper bound. The noisy environments use 2,000 loans with 24 random paths each, and their 95% intervals resample loans together with their paths. In expected recovered value per loan, in the simulator's currency units, the gains are +9.4 (4.3 to 14.8) at σ = 0.1 and +87.1 (63.0 to 116.1) at σ = 0.2. The Base gain uses a closed-form comparison. The overstatement uses 4,000 Base loans and 512 posterior draws per loan, with a loan bootstrap that holds the draws fixed.
Show the numbers
What to take from it
- 1. On Base, the horizon mattered more than the choice of solverCheck how far ahead each system plans before comparing models. On Base, the planning horizon changed scores by 15 to 17 points, more than any difference between the tested solvers at a fixed horizon.
- 2. Swapping in known quantities, one at a timeCompare input replacements in a declared order against a known optimum. Here exact fatigue evaluation, filter features and their propagation during planning lowered the score by 6.3 points, and the recovery came only when the true repayment response was supplied, conditional on that order.
- 3. History helps predict, by an amount that varies with memoryTreat predictive gains as evidence about prediction. History helped at every memory setting and in real loan data, but better prediction does not by itself mean better decisions.
- 4. Re-planning under noise, and one planner's view of its own planIn noisy settings, compare re-planning on fresh information with keeping a fixed plan, and check how a planner values its own plans before trusting that value.
Limits
These results come from a simulator with assumed equations, not calibrated to any real portfolio. Policy values use one draw of the simulator's matrices, one training portfolio and one fit per solver, and the intervals do not include variation from retraining. Graded solvers were run on Base only, and Base was selected for a large gap between one-month and six-month planning. The intervention sequence was run in one order, and no optimum under a solver's own information is computed, so the experiments do not separate missing information from learning error. No offline reinforcement-learning method that learns a value function over the planning horizon was graded. The real-data comparison concerns prediction, not the effects of collection policies. Policy value counts net cash up to the first repayment within the six-month evaluation window.
Glossary
- Solver
- A decision system built from the records of past decisions and graded on a separate portfolio.
- Exact optimum
- The value of the best plan computed with the true hidden state and borrower traits.
- Policy
- A rule for how to collect each overdue loan each month.
- Planning horizon
- How many months ahead a solver plans when it chooses an action.
- Score and points
- A policy's value as a percentage of the exact optimum, or in the noisy environments of the value of re-planning monthly with the true hidden state. A point is one percentage point.
- Environment
- One released setting of the memory parameter, the process noise and the base repayment rate.
- Memory parameter (δ)
- How strongly each contact's effect depends on earlier contacts.
- Process noise (σ)
- The size of the random monthly shocks to the hidden state.
- Filter
- A standard method for tracking a hidden quantity from a series of noisy readings.
- Declared intervention sequence
- A fixed order in which a solver's inputs are replaced by reference quantities from the known equations, with the solver graded again after each step.
- Re-observation gain
- The value of re-planning every month on fresh readings minus the value of keeping the initial plan.
- Chaining
- Valuing a plan by averaging each month's repayment chance over its uncertainty and stringing these averages together as if the months were independent.
CITE
@misc{prado2026decode,
title = {{DECODE}: Decomposable Environments for {COntrolled}
Sequential-Decision Evaluation},
author = {Prado, Diego Silva and de Souza, Bruno Caldas
and de Jesus, Tiago Amaral Penteado
and Herrmann, Ricardo Guimar{\~a}es and Breuel, Cristiano
and De Oliveira, Cristiano Bevitori Maffia},
year = {2026},
eprint = {2611.18367},
archivePrefix = {arXiv},
primaryClass = {cs.LG},
url = {https://arxiv.org/abs/2611.18367}
}
Prado, D. S., de Souza, B. C., de Jesus, T. A. P., Herrmann, R. G., Breuel, C., & De Oliveira, C. B. M. (2026). DECODE: Decomposable environments for controlled sequential-decision evaluation. arXiv. https://doi.org/10.48550/arXiv.2611.18367
Code: github.com/alpha-synthesis/decode-arxiv.
Data (code, configurations and evidence): doi.org/10.5281/zenodo.24200270.