RiptideRiptide
Download Riptide SDKInstall Riptorch
Menu
Whitepapers · Riptide · Mortgages

Two servicing systems, one loan book, and a CECL allowance that is the same on every machine

Servicing systems, investor reports and payoff statements have to agree to the cent, and allowance runs have to be reproducible for audit and model validation. This paper runs one synthetic book of five million loans through four servicing systems with identical rules, counts every month where their cents part, and runs a loan-level CECL lifetime loss calculation exactly and in float64, on CPUs and GPUs.

Version
1
Date
1 December 2026
Author
Samario Torres, Riptide
Software
Riptide exact servicing and CECL engine (C++ / CUDA from one source, not published); NumPy 2.5.5, PyTorch 2.15.0+cu132, CuPy (CUDA 12), Python 3.12 decimal; g++ 13, -O3 -march=native
Download PDFOpen in new tabriptidecompute.com/whitepapers/exact-servicing-cecl

Abstract

On 1 December 2026 Riptide serviced one synthetic book of 5,000,000 mortgages, 1,748,072,268 loan-months, with four systems that follow exactly the same rules: monthly interest rounded half up to the cent, level payments, whole-dollar curtailments, 5/1 adjustable-rate resets, and an escrow account with a one-twelfth monthly deposit, a one-sixth cushion, an annual analysis that refunds surpluses of $50 or more and spreads shortages over 12 months, and a refund at payoff. One system keeps every amount in integer cents (exact); two keep dollars in float64 and round half up, one as floor(100x + 0.5) / 100 and one as numpy.round does; the fourth keeps integer cents in float64. The same book was run through a loan-level CECL lifetime expected-credit-loss calculation, exactly and in float64. Everything ran on three AWS CPUs (Graviton4, Sapphire Rapids, EPYC Zen 4) and two GPUs (NVIDIA A10G, L4).

  • Same rules, different cents. The float64 dollar system that rounds half up differs from the exact system in at least one month on 3,063,008 loans (61.3%), 250,702,247 loan-months. Its total cash collected differs on 706,749 loans (14.1%): by 1–99 cents on 706,715, by $1–$10 on 33, and on one loan by $4,563.58, where a 1-cent balance difference moved the payoff month across the escrow analysis month. The numpy.round system differs on 77.5% of loans, and the two float64 systems differ from each other on 2,083,523 loans (41.7%).
  • Every break has a cause. Each first difference traces to a rounding event in the exact system at or before it: an escrow deposit that is exactly half a cent (2,046,735 loans), a cushion half-cent (565,070), a month of interest that is exactly half a cent (442,890), an escrow growth half-cent (8,313). None are unexplained.
  • A careful float64 system is exact too. Keeping integer cents in float64 and evaluating the same integer formulas gives zero breaks. Exactness is achievable in float64 with care; the exact engine makes it a property of the arithmetic instead of a property of every formula.
  • One answer on five machines. The exact system, and each float system, gave the same per-loan results on all five machines, with fused multiply-add on and off.
  • Fast and cheap. The exact system services the 5,000,000-loan book in 0.062 s on an A10G and 0.078 s on an L4, against 0.73 s and 0.84 s for a float64 dollar kernel. On the first 1,000,000 loans with identical events it takes 12.4 ms on the A10G against 74.3 ms for PyTorch float64 at its fastest setting (torch.compile with max-autotune and one CUDA graph): 6.0× faster, and PyTorch's results differ from the exact system on 16.3% of those loans. A careful decimal system in Python agrees with the exact system on every loan tested, at about 0.7 ms per loan on one core.
  • CECL. The exact allowance is $2,397,660,299.96 on every machine, any thread count, fused multiply-add on or off. Float64 is close: −$17.83 with its own dollar schedule (2,133 loans differ by one cent), −$19.09 in PyTorch. A full lifetime run takes 0.021 s on an A10G, 12.8× faster than a float64 kernel and 18.7× faster than PyTorch float64 at its fastest.

This paper describes arithmetic on synthetic loans, not any servicer's system or a regulatory or accounting interpretation; it is not legal or accounting advice.

What this lets you do

  • Reconcile two systems to the cent. Run both books through the exact engine and get, for every loan, the first month where each system's interest, payment, balance or escrow parts from the exact answer, and the rounding event that caused it.
  • Prove a migration. When a book moves from one servicing platform to another, the exact engine is the reference both are checked against, on any machine, with the same answer every time.
  • Rerun an allowance and get the same cents. Auditors and model validators can reproduce a CECL run on a laptop, a server or a rented GPU and compare per-loan hashes instead of tolerances.
  • Run a whole book in a fraction of a second. A 5-million-loan servicing pass costs about $0.00002 of GPU time and a lifetime-loss run about $0.000006, so what-if runs (rate paths, escrow assumptions, prepayment speeds) become cheap.

The engine is a Riptide prototype and is not published. Evaluation builds are available through Request an evaluation.

Method

This section describes the methods at the level of the algorithm. The source is not published.

The book

5,000,000 loans from a deterministic generator keyed by the loan index (Philox4x32-10 [1]): origination months from January 1999 to June 2026, amounts from a lognormal fraction of the year's conforming loan limit, note rates from the month's 30-year average offer rate plus a spread in 1/8-point steps, 360-month terms. Each loan's attributes and monthly events (curtailments, ARM reset rates, escrow growth) come from the same keyed generator, so every machine and every library sees identical inputs. No real loan data was used.

Servicing rules (identical in every system)

  • Payment. The level payment is rounded half up to the cent, with the monthly rate. The exact system certifies it: a double evaluation decides unless the cents fraction is within of a half; then an exact integer computation decides. 100 ARM resets in this book needed it.
  • Interest. Each month, balance × annual rate / 12, rounded half up to the cent. In integer cents with the rate in thousandths of a percent this is with .
  • Curtailments. About 2% of months, a whole-dollar extra principal payment of up to 1% of the original balance.
  • ARMs. 30% are 5/1 ARMs: from month 61, the rate resets every 12 months by a whole number of 1/8 points, with caps of 2 points per reset and 5 over life and a 1% floor; the payment is recomputed over the remaining term.
  • Escrow (simplified from Regulation X [2, 5]): annual taxes and insurance of 0.80–2.50% of the loan, growing −1% to +6% a year. The monthly deposit is one twelfth of the coming year's disbursement plus a cushion; Regulation X allows a cushion of no more than one sixth of the year's disbursements (12 CFR 1024.17(c)(1)(ii)), and the model uses that maximum. At each annual analysis a surplus of $50 or more is refunded (1024.17(f)(2)(i), which also requires the borrower to be current and the refund within 30 days of the analysis) and a shortage is spread in equal payments over 12 months, one of the options 1024.17(f)(3) allows (at least 12 months). At payoff the escrow balance is refunded, as 12 CFR 1024.34(b)(1) requires within 20 days (excluding weekends and legal public holidays).

The four systems differ only in number representation: integer cents; float64 dollars rounded half up as floor(100x + 0.5) / 100; float64 dollars rounded as numpy.round (half to even on the binary value); and float64 holding integer cents with the same integer formulas.

Comparison

All four systems run in lockstep per loan. A month is a break for a system when its interest, payment, principal balance, escrow balance or refund differs from the exact system's. Each system's first break is attributed to the most recent rounding event in the exact system at or before that month: an interest half-cent tie, an escrow deposit or cushion half-cent tie at an analysis, an escrow growth tie, or a reset payment that differs. Per-loan hashes (FNV-1a over every month's record, summed over loans) show whether two machines produced the same results.

CECL lifetime loss

A loan-level discounted expected-loss calculation (probability of default × loss given default × exposure, discounted) as of 30 September 2026 [3, 4]: the contractual balance at the as-of date, then for each remaining month

with the scheduled balance, a monthly default probability by credit band (5) × loan-to-value band (5) × loan age, by loan-to-value band (10–40%), a constant prepayment rate (CPR 8%), and discounting at the loan's note rate. The default and loss curves are illustrative, not calibrated to any lender. The allowance is the sum over loans of rounded half up to the cent.

The exact engine computes the same model in fixed point: balances in cents, probabilities as multiples of , the discount factor as a multiple of , losses in units of cent, and every product rounded half up through a 128-bit intermediate. Every operation is an integer operation, so the result does not depend on the machine, thread count or compiler. The float64 lanes compute the same model in double precision, once with the float engine's own dollar schedule and once with the exact balances.

Setup

  • CPUs: AWS c8g.8xlarge (Graviton4), c7i.8xlarge (Xeon Sapphire Rapids), c7a.8xlarge (EPYC Zen 4), 32 vCPUs each, g++ 13 with -O3 -march=native -fopenmp -std=c++20, also built with -ffp-contract=off.
  • GPUs: g5.xlarge (NVIDIA A10G) and g6.xlarge (NVIDIA L4), driver 620.70.06, kernels compiled at run time from the same source as the CPU build, with and without fused multiply-add; PyTorch 2.15.0+cu132.
  • Baselines at their fastest: PyTorch float64 implementing the half-up dollar rules (eager, torch.compile max-autotune-no-cudagraphs, and each of those inside one CUDA graph around the whole 360-month loop); NumPy float64 on one core; Python decimal with 34 digits and ROUND_HALF_UP. Library baselines take the events as dense arrays, so servicing baselines ran on the first 1,000,000 loans; our kernels were timed on both 1M and 5M.
  • Timing: best of three GPU runs (events), wall clock on CPUs; costs at on-demand us-east-1 prices ($1.006/h A10G, $0.805/h L4).
  • Total AWS cost: $1.98.

Results

Bar chart of the share of 5,000,000 loans with a break and with different total cash, per system
Figure 1. Each system against the exact integer-cents system. The careful float64 system and the exact system agree everywhere.
Table 1. Servicing, 5,000,000 loans, identical on Graviton4, Sapphire Rapids, Zen 4, A10G and L4 (fused multiply-add on and off).
SystemLoans with a breakLoan-months with a breakLoans whose total cash differsLargest per loan
Exact integer cents000—
float64 dollars, halves up3,063,008 (61.3%)250,702,247706,749 (14.1%)$4,563.58 *
float64 dollars, numpy.round3,873,177 (77.5%)441,466,5681,141,358 (22.8%)$9,112.09 *
float64 holding integer cents000—

\* The largest differences come from a few loans whose payoff month shifts by one: a 1-cent principal difference leaves one system a 1-cent final payment in the escrow analysis month, so that system pays the year's tax and insurance bill before refunding the escrow balance, while the other refunds the balance a month earlier. Payoff month differs on 12 and 19 loans. Leaving those aside, the cash differences are small: for the half-up system 706,715 loans differ by 1–99 cents and 33 by $1–$10, $23,584.70 in total across the book ($28,148.28 including the $4,563.58 loan).

Table 2. First-break cause (most recent rounding event in the exact system at or before the first differing month).
SystemEscrow deposit half-centCushion half-centInterest half-centEscrow growth half-centReset paymentOther
float64 dollars, halves up2,046,735565,070442,8908,31300
float64 dollars, numpy.round2,254,9371,079,522520,50118,21700

A deposit of one twelfth of an annual disbursement is exactly half a cent whenever the disbursement in cents is 6 more than a multiple of 12; in binary float64 that half is stored a little above or below, so the rounding goes either way. Over a 30-year loan with an annual analysis, most loans meet such a month.

Bar chart of servicing time for 1,000,000 loans on an A10G and an L4
Figure 2. Exact against a float64 dollar kernel and PyTorch float64 (fastest setting and eager), same loans and events.
Table 3. Servicing speed (seconds).
MachineLoansExact (ours)float64 dollars kernelfloat64 integer-cents kernelPyTorch float64, fastestNumPy float64, one core
A10G5,000,0000.06160.7310.335——
L45,000,0000.07800.8440.387——
Graviton4 / Zen 4 / Sapphire Rapids (32 threads)5,000,0000.907 / 0.853 / 1.1851.94 / 1.96 / 3.241.15 / 1.14 / 1.86——
A10G1,000,0000.01250.147—0.0743—
L41,000,0000.01440.169—0.1202—
Graviton4 / Zen 4 / Sapphire Rapids1,000,000————10.5 / 7.75 / 12.4
Table 4. What the baselines return, first 1,000,000 loans, against the exact system.
BaselineLoans whose total cash differsTotal abs. differenceNetLargestDiffers from our float64 kernel on
NumPy float64, halves up (all three CPUs)145,373$6,177.54−$5,324.02$1.740 loans
PyTorch float64, eager (A10G and L4)162,742$6,291.05−$5,067.89$1.3433,539 loans
PyTorch float64, torch.compile (A10G and L4)162,734$6,288.51−$5,065.39$1.3433,556 loans
Python decimal, 34 digits, half up (20,000 loans)0$0.00$0.00$0.00—

PyTorch's eager and compiled results also differ from each other, because the compiler fuses and reorders the float64 arithmetic. The careful decimal system is exact but takes 632–710 µs per loan on one core: about 53–59 minutes for the 5,000,000-loan book on one core, against 0.9 s for the exact engine on a 32-vCPU CPU and 0.062 s on an A10G.

Bar chart of CECL run time per 5,000,000 loans on an A10G and an L4
Figure 3. Exact against a float64 kernel and PyTorch float64 at its fastest setting.
Table 5. CECL lifetime allowance, 5,000,000 loans, as of 30 September 2026.
EngineAllowancevs exactLoans that differ (each by 1 cent)Machines
Exact fixed point (ours)$2,397,660,299.96——all five, any thread count, FMA on and off
float64, own dollar schedule (our kernel and NumPy)$2,397,660,282.13−$17.832,133same per-loan cents on all five
float64, exact balances$2,397,660,299.30−$0.66462same per-loan cents on all five
PyTorch float64, every setting$2,397,660,280.87−$19.092,257A10G and L4

Float64 is accurate for this calculation: −$17.83 on $2.4 billion. With exact balances, the float64 model and the fixed-point model differ on 462 loans by one cent, which bounds the effect of the fixed-point rounding. The unrounded float64 totals differ between the CPUs and the GPUs in the last digits (2,397,660,260.783834 against 2,397,660,260.7839713 dollars). What the exact engine adds is that the allowance and every per-loan cent are the same by construction, and the speed:

Table 6. CECL speed (seconds per full lifetime run, 5,000,000 loans).
MachineExact (ours)float64 kernel, own schedulePyTorch float64, fastestNumPy float64, one core
A10G0.02070.2640.388—
L40.02790.3060.780—
Graviton4 / Zen 4 / Sapphire Rapids (32 threads)0.557 / 0.721 / 0.9250.816 / 0.670 / 0.847—49.1 / 44.3 / 94.7

One exact lifetime run on an A10G costs about $0.000006 at on-demand prices.

Limitations and next steps

The limits of these results, each with its cause and, where one is planned, the next step.

  • Synthetic book, illustrative CECL inputs. Cause: no lender or agency data was used; agency loan-level datasets come with usage terms that would need to be cleared before publishing derived results. Next step: run the same comparison on a client's book inside their systems.
  • Simplified escrow analysis. No projected low point, deficiency handling or short-year statements. Cause: kept to the rules that create rounding. Next step: implement the full Regulation X Appendix E aggregate analysis.
  • Float systems written by us. No vendor servicing platform was run; each float system implements the stated rules directly. Cause: no vendor servicing platform was available to test. Next step: compare against a production servicing export.
  • A careful float64 system is also exact here. Keeping integer cents in float64 gave zero breaks. Cause: every amount stays an integer below . The exact engine's advantage is that it does not depend on every formula being written that carefully, plus its speed.
  • CECL accuracy. Float64 is within $19.09 of the exact allowance on $2.4 billion. Cause: the calculation is smooth and well conditioned; the exact engine's edge there is reproducibility and speed, not accuracy.
  • CPU speed. On the CPUs the exact CECL run takes 0.56–0.93 s against 0.67–0.85 s for the float64 kernel: about the same speed. Cause: the 128-bit fixed-point products cost more on CPUs than the float64 multiply; on GPUs with limited float64 throughput, integer arithmetic is the faster unit.
  • Two GPU types. Only the A10G and L4 were measured. Cause: L40S and H100 capacity was not available in us-east-1 during the run. Next step: H100 and L40S runs, where native float64 is faster.
  • Simplified ARM model. Resets move the rate by whole 1/8 points with caps, without an index lookback period or index rounding. Cause: the experiment targets rounding in servicing arithmetic, not index mechanics. Next step: add index lookback and rounding to the reset rule.
  • CECL method simplified. No reasonable-and-supportable forecast period or reversion to historical loss rates, and the default and loss curves are illustrative, not calibrated. Cause: the experiment measures arithmetic and reproducibility, not a credit model. Next step: plug in a client's calibrated PD/LGD curves and forecast scenarios.
  • Library baselines on 1,000,000 loans. Cause: PyTorch and NumPy take the events as dense arrays (360 months × loans). Our kernels were timed on both sizes.

Reproduction notes

All inputs are generated from integer seeds; the generated book has SHA-256 0c1dabd16aa2ff856153d278b403d9a63f870a37e07bac079cd1213eec22d63b on every machine. Evaluation builds are available through Request an evaluation.

References

  1. J. K. Salmon, M. A. Moraes, R. O. Dror, D. E. Shaw. Parallel random numbers: as easy as 1, 2, 3. Proceedings of SC11, 2011. doi:10.1145/2063384.2063405.
  2. 12 CFR 1024.17, Escrow accounts (Regulation X). Consumer Financial Protection Bureau; eCFR, as in force 1 November 2026.
  3. Financial Accounting Standards Board. Accounting Standards Update 2016-13, Financial Instruments—Credit Losses (Topic 326): Measurement of Credit Losses on Financial Instruments. June 2016.
  4. Board of Governors of the Federal Reserve System et al. Frequently Asked Questions on the New Accounting Standard on Financial Instruments—Credit Losses. federalreserve.gov.
  5. 12 CFR 1024.34, Timely escrow payments and treatment of escrow account balances (Regulation X). Consumer Financial Protection Bureau; eCFR, as in force 1 November 2026.

Date and version

1 December 2026 · Version 1.

Working with Riptide

Riptide works with a small number of teams. Each engagement starts with 4 weeks inside your systems, learning how your models, data and infrastructure work. Only then does Riptide apply its software to them. Contact samario@riptidecompute.com or riptidecompute.com/evaluate.