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.
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.roundsystem 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; Pythondecimalwith 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

| System | Loans with a break | Loan-months with a break | Loans whose total cash differs | Largest per loan |
|---|---|---|---|---|
| Exact integer cents | 0 | 0 | 0 | — |
| float64 dollars, halves up | 3,063,008 (61.3%) | 250,702,247 | 706,749 (14.1%) | $4,563.58 * |
float64 dollars, numpy.round | 3,873,177 (77.5%) | 441,466,568 | 1,141,358 (22.8%) | $9,112.09 * |
| float64 holding integer cents | 0 | 0 | 0 | — |
\* 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).
| System | Escrow deposit half-cent | Cushion half-cent | Interest half-cent | Escrow growth half-cent | Reset payment | Other |
|---|---|---|---|---|---|---|
| float64 dollars, halves up | 2,046,735 | 565,070 | 442,890 | 8,313 | 0 | 0 |
float64 dollars, numpy.round | 2,254,937 | 1,079,522 | 520,501 | 18,217 | 0 | 0 |
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.

| Machine | Loans | Exact (ours) | float64 dollars kernel | float64 integer-cents kernel | PyTorch float64, fastest | NumPy float64, one core |
|---|---|---|---|---|---|---|
| A10G | 5,000,000 | 0.0616 | 0.731 | 0.335 | — | — |
| L4 | 5,000,000 | 0.0780 | 0.844 | 0.387 | — | — |
| Graviton4 / Zen 4 / Sapphire Rapids (32 threads) | 5,000,000 | 0.907 / 0.853 / 1.185 | 1.94 / 1.96 / 3.24 | 1.15 / 1.14 / 1.86 | — | — |
| A10G | 1,000,000 | 0.0125 | 0.147 | — | 0.0743 | — |
| L4 | 1,000,000 | 0.0144 | 0.169 | — | 0.1202 | — |
| Graviton4 / Zen 4 / Sapphire Rapids | 1,000,000 | — | — | — | — | 10.5 / 7.75 / 12.4 |
| Baseline | Loans whose total cash differs | Total abs. difference | Net | Largest | Differs from our float64 kernel on |
|---|---|---|---|---|---|
| NumPy float64, halves up (all three CPUs) | 145,373 | $6,177.54 | −$5,324.02 | $1.74 | 0 loans |
| PyTorch float64, eager (A10G and L4) | 162,742 | $6,291.05 | −$5,067.89 | $1.34 | 33,539 loans |
| PyTorch float64, torch.compile (A10G and L4) | 162,734 | $6,288.51 | −$5,065.39 | $1.34 | 33,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.

| Engine | Allowance | vs exact | Loans 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.83 | 2,133 | same per-loan cents on all five |
| float64, exact balances | $2,397,660,299.30 | −$0.66 | 462 | same per-loan cents on all five |
| PyTorch float64, every setting | $2,397,660,280.87 | −$19.09 | 2,257 | A10G 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:
| Machine | Exact (ours) | float64 kernel, own schedule | PyTorch float64, fastest | NumPy float64, one core |
|---|---|---|---|---|
| A10G | 0.0207 | 0.264 | 0.388 | — |
| L4 | 0.0279 | 0.306 | 0.780 | — |
| Graviton4 / Zen 4 / Sapphire Rapids (32 threads) | 0.557 / 0.721 / 0.925 | 0.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
- 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.
- 12 CFR 1024.17, Escrow accounts (Regulation X). Consumer Financial Protection Bureau; eCFR, as in force 1 November 2026.
- Financial Accounting Standards Board. Accounting Standards Update 2016-13, Financial Instruments—Credit Losses (Topic 326): Measurement of Credit Losses on Financial Instruments. June 2016.
- 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.
- 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.