> ## Documentation Index
> Fetch the complete documentation index at: https://docs.amlok.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Document integrity and underwriting gaps

> Explore document forensics, applicant selection bias, changes before funding and loss estimates, with reported results and assessment boundaries.

AMLOK's document research connects extracted facts to evidence about their integrity. You can read a number correctly while missing inconsistent totals, changed account details or unsupported claims. You also need to know whether the population used to train a model resembles the applicants you will assess.

[Research paper RP-2026-07](https://docs.amlok.io/whitepapers/07-document-loss-models.md) addresses four related gaps: document integrity, learning from selected applicants, changes before funding, and estimating losses beyond the probability of default. Its reported results cover document integrity and applicant assessment.

## Read the comparison

The question is **whether combined document checks detect tampering while avoiding false alarms**. The source comparison concerns tampered bank statements and tax documents. Its document-test denominator is separate from the funded-deal and all-applicant populations discussed below.

| Measure | PDF metadata rules | Document-layout model + four forensic channels | Difference |
| - | -: | -: | - |
| Tampering F1 | 0.638 | 0.948 | **+0.310 F1 points** |
| False-positive rate | 4.1% | 0.4% | **3.7 percentage points lower** |

The combined method achieves a better balance of precision and recall, with fewer unaltered documents flagged in this test. F1 does not measure whether every extracted field is correct, and these results do not certify an individual document as authentic. Sources: [RP-2026-07, Figure 7.1A](https://docs.amlok.io/whitepapers/07-document-loss-models.md) and [RS-2026-06, document benchmarks, B5:C9](https://docs.amlok.io/research/resources/lifecycle-results.md).

## Preserve where each fact came from

The paper's document method associates an extracted field with its page, bounding box and confidence. That lets you inspect the source location rather than accepting an unexplained number.

It combines document structure, visual characteristics and financial consistency checks. The study examines PDF revision patterns, font and alignment differences, image-editing indicators, running balances and statistical digit patterns. Each check supplies evidence for review. An anomaly in one channel does not by itself establish that a document is fraudulent. [Source: RP-2026-07, document-intelligence and forensic method](https://docs.amlok.io/whitepapers/07-document-loss-models.md).

```mermaid theme={null}
flowchart LR
  D[Source document] --> E[Located extracted facts]
  D --> F[Structure and visual checks]
  E --> C[Arithmetic and cross-source checks]
  F --> R[Evidence for assessment]
  C --> R
```

Document text remains untrusted input. Instructions written inside an invoice or statement do not authorize a tool action, change the assessment policy or establish a financial fact.

## Account for applicants without funded outcomes

Historical loan outcomes usually cover borrowers who received credit. If a lender rejected other applicants, you do not observe how they would have performed under the same facility. A model trained only on funded cases can be poorly calibrated for the full applicant population.

RP-2026-07 studies this selection problem using a stated 275,019 funded cases and 118,400 declined or unfunded applications. Its augmented-loss objective combines a model of outcome observation with a parameter-dependent conditional loss. Fit nuisance models on separate borrower folds and use the stated overlap and missing-at-random assumptions. [Source: RP-2026-07, selection-bias method and corpus manifest](https://docs.amlok.io/whitepapers/07-document-loss-models.md).

Define the reference facility and independently specified outcome for every eligible applicant. A score cannot serve as its own evaluation label. Keep funded and rejected eligibility counts separate, and use the retrospective temporal protocol below for the reported comparison. See [datasets and scope](https://docs.amlok.io/research/datasets.md).

### All-applicant target and time protocol

The all-applicant reference endpoint uses all 59,009 applications with complete 365-day reference outcomes: 41,250 funded and 17,759 rejected. It predicts the credit-default cause with fraud retained as a separate competing cause. This differs from the 40,508-case credit-only benchmark that excludes fraud.

| Element | Normative definition |
| - | - |
| Credit target | For application i, define Y\_i(p) as first qualifying credit default within 365 days of the index assessment under reference facility p recorded for that application at the index date: product, amount, rate, term, and repayment schedule. Hold that facility fixed across the compared models and apply the same target rule to funded and rejected cases. Generate or observe this target independently of the model being evaluated; its own imputed PD is never the evaluation label. |
| Eligibility and fraud | Use mutually exclusive endpoint labels with confirmed fraud taking precedence over credit default. Set Y\_credit = 1 only for a qualifying nonfraud credit default; fraud and performing cases have Y\_credit = 0. The 742 known funded fraud cases remain in the 59,009 denominator as competing-cause negatives. No additional rejected fraud count is assumed. Both model rows use the same independent reference outcomes and all 59,009 rows. A credit-only exclusion, combined default-or-fraud target, or incomplete-follow-up analysis is a separately named endpoint with its own denominator; incomplete follow-up is censored, not labeled zero. |
| Retrospective split | Freeze borrower-disjoint training, tuning, and test membership; features stop at each assessment cutoff. Training and tuning labels may mature after early test assessment dates in this retrospective design. Model and calibrator are frozen before test outcomes are scored; no claim of availability at the earliest test date follows. |
| Prospective alternative | For a walk-forward result, freeze the model and calibrator at each deployment date using only labels already matured on that date. Fit transforms and selection models on the same permissible past data. Report this as a separate evaluation version. |
| Ranking and bias | AUROC gives half credit to positive-negative score ties. Make ten ascending-PD bins with a stable application-ID tie break and include their counts in the result record. Decile bias = 100 × (mean predicted PD - observed default fraction), in percentage points. A D9-D10 summary pools their counts; it is not an unweighted mean when sizes differ. |

## Assess changes before funding

The paper also studies the interval between an assessment and an intended disbursement. Changed beneficiary information or newly observed financing can warrant another assessment.

The research describes signals for beneficiary inconsistency and possible loan stacking. These are assessment outputs. Institution staff retain responsibility for funding and intervention in their own systems. The work does not introduce a public command to release, redirect or block a payment.

## Extend risk analysis beyond default probability

The size of a potential loss also depends on the exposure when default occurs and the portion that may remain unrecovered.

**Expected credit loss in the research pricing framework**

$$
\mathrm{EL}=\mathrm{PD}\times\mathrm{LGD}\times\mathrm{EAD}
$$

`PD` is the probability of default for the defined horizon. `LGD` is the loss fraction conditional on default. `EAD` is exposure at default. The components must refer to compatible populations, horizons and scenarios. A missing component cannot be replaced with zero to imply no expected loss. [Source: RP-2026-07, expected-loss and pricing method](https://docs.amlok.io/whitepapers/07-document-loss-models.md).

RP-2026-07 studies loss severity with collateral and guarantee evidence and models potential increases in revolving exposure. It then considers whether proposed credit terms meet a required return after accounting for risk. The return calculation uses one-year interest and fees less funding, operations, and expected loss, divided by positive economic capital in CAD. Term and revolving products use their own balance schedules; original principal times spread is only a constant-balance special case. Those are research calculations, not AMLOK product prices or a customer-specific lending recommendation. [Source: RP-2026-07, loss and risk-adjusted pricing method](https://docs.amlok.io/whitepapers/07-document-loss-models.md).

## What the study reports

The selected document-extraction model with forensic checks reports 0.948 F1 at a 0.4% false-positive rate, compared with 0.638 F1 for the study's metadata-rule baseline. F1 balances precision and recall; the false-positive rate counts unaltered documents incorrectly flagged in the test. [Source: RP-2026-07, benchmark table](https://docs.amlok.io/whitepapers/07-document-loss-models.md).

### Document tampering detection

Compare the reported ability to detect altered documents and the false alarms each method creates.

**Chart data: Document tampering detection**

Compare the reported ability to detect altered documents and the false alarms each method creates.

**Evidence:** Source-reported study results. **Evaluation conditions:** Document tampering classification. The proxy is a feature-defined metadata/layout comparator, not a measured claim about a named vendor. F1 and false-positive rates retain their separate denominators; the document paper defines the scoring contract.

The table preserves the source numeric values. Fractions use a 0-1 scale (for example, 0.542 means 54.2%). Scores are not percentages or accuracy rates. Each measure appears in a separate graphic. This table includes all reported measures and comparison rows.

| Method or cohort | Tampering F1 (score, 0-1) | False-positive rate (fraction, 0-1) |
| - | -: | -: |
| OCR + checksum rules | 0.512 | 0.068 |
| PDF metadata rules | 0.638 | 0.041 |
| Zero-shot vision model | 0.741 | 0.054 |
| Metadata and layout reference proxy | 0.842 | 0.019 |
| AMLOK document-layout model + four-channel forensics | 0.948 | 0.004 |

**Measure definitions**

* **Tampering F1:** Balances precision and recall for detecting document tampering. Higher is better.
  Source: [RS-2026-06](https://docs.amlok.io/research/resources/lifecycle-results.md), worksheet `01_WP07_Forensics_RAROC`, cells `B5:B9`.
  Source: [RP-2026-07, Figure 7.1A](https://docs.amlok.io/whitepapers/07-document-loss-models.md), Figure 7.1A, F1.
* **False-positive rate:** Share of non-tampered documents incorrectly flagged in the reported test. Lower is better.
  Source: [RS-2026-06](https://docs.amlok.io/research/resources/lifecycle-results.md), worksheet `01_WP07_Forensics_RAROC`, cells `C5:C9`.
  Source: [RP-2026-07, Figure 7.1A](https://docs.amlok.io/whitepapers/07-document-loss-models.md), Figure 7.1A, FPR.

**Sources**

* [RS-2026-06](https://docs.amlok.io/research/resources/lifecycle-results.md), worksheet `01_WP07_Forensics_RAROC`, cells `A5:D9`.
* [RP-2026-07, Figure 7.1A](https://docs.amlok.io/whitepapers/07-document-loss-models.md).

For its assessment of changed evidence before funding, the source table reports **89.4% precision and 86.2% recall**. Precision asks how many flagged cases are positive under the study labels; recall asks how many positive cases are detected. The precision and recall values describe different denominators and are retained as separate measures. [Source: RS-2026-06, worksheet `01_WP07_Forensics_RAROC`, row 12](https://docs.amlok.io/research/resources/lifecycle-results).

The paper also reports 0.881 AUROC for its all-applicant population, including declined or unfunded cases. Its loss-given-default error is reported as 0.054 on a 0-1 loss-fraction scale, or 5.4 percentage points, while exposure-at-default bias is -3.1%. You should evaluate each result with its own population and metric definition rather than combining them into one system accuracy measure. [Sources: RP-2026-07, benchmark table](https://docs.amlok.io/whitepapers/07-document-loss-models.md), and [RS-2026-06, worksheet `01_WP07_Forensics_RAROC`, rows 11-13](https://docs.amlok.io/research/resources/lifecycle-results).

## Read the methods with their limits

Use this work to understand why field provenance, population selection and timing matter alongside predictive performance. The [benchmark guide](https://docs.amlok.io/research/benchmarks.md) explains how to read the reported numbers; [study methods](https://docs.amlok.io/research/reproducibility.md) explains the populations and measurement choices.

[RP-2026-07](https://docs.amlok.io/whitepapers/07-document-loss-models.md) and [research supplement RS-2026-06](https://docs.amlok.io/research/resources/lifecycle-results.md) contain the source methods and tables. The [paper library](https://docs.amlok.io/research/library.md) connects these extensions to the foundation studies.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.