Neurithmetic/Credit Gym/version 0

Synthetic loan portfolio environments for training and evaluating AI agents

Credit Gym provides synthetic UK debt sale portfolios that reproduce the work of a credit analyst: cleaning a seller’s loan tape, identifying accounts that cannot be enforced, forecasting collections and pricing the portfolio. Each task is marked automatically against a hidden ground truth.

  • DomainConsumer credit, UK debt sale
  • Task types4
  • Tasks in sample20
  • FormatsCSV, Markdown, JSON
  • GradingDeterministic Python
  • DataFully synthetic
  • LicenceCommercial, on request

What Credit Gym offers

Credit Gym is a set of environments in which an AI agent is given the materials a debt buyer receives from a seller and is asked to make the decisions a credit analyst would make. The portfolios are generated by a simulator, so the true position of every account is known and every answer can be graded exactly.

The tapes are deliberately imperfect. Dates arrive in several formats, balances are stored as text, status codes follow legacy conventions and some accounts cannot lawfully be enforced. An agent that accepts the seller’s data at face value scores poorly.

Intended users

Evaluation teams
To measure how reliably a model handles messy financial data and domain rules, with scores that do not depend on a model grader.
Post-training and reinforcement learning teams
To train agents on tasks with exact, automatically computed rewards and fresh held-out sets.
Agent and tool developers
To test spreadsheet, code and analysis agents on a realistic multi-step analytical workflow.

Task types

clean

Tape cleaning

Identify duplicates, settled accounts and Scottish debts extinguished by prescription. Correct out-of-date balances and state the true face value of the pool.

trap

Exclusions

Identify statute-barred, prescribed, insolvent and deceased accounts without relying on the seller’s status codes.

forecast

Collections forecast

Forecast gross collections at 12, 36 and 84 months using the seller’s static pool history.

price

Portfolio pricing

Submit a bid for the whole portfolio after costs and discounting. Overpayment is penalised twice as heavily as underpayment.

How the environments are constructed

  1. Ground truthAccounts, balances, defaults and legal events are simulated so that the true position of every account is known.
  2. Behaviour modelPayment and collection behaviour is simulated over time, which produces the static pool history.
  3. Data degradationThe tape is then degraded as real seller data often is, with mixed date formats, balances held as text, legacy status codes, duplicates and free-text notes.
  4. GradingAnswers are scored deterministically against the hidden ground truth, with partial credit and with asymmetric penalties where a credit desk would apply them.

Rules reflected in the tasks include the Limitation Act 1980, the Prescription and Limitation (Scotland) Act 1973, IVAs, trust deeds and bankruptcy, county court judgments and static pool collections analysis. The rules are simplified for evaluation purposes and are set out in each prompt. They do not constitute legal advice.