> ## 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.

# Adaptive defense and constrained explanations

> Explore AMLOK research on changing fraud patterns, feasible evidence-sensitive counterfactuals and the source-reported tradeoffs of a smaller embedded inference path.

A detector can perform well on a fixed test and weaken when the behavior it observes changes. AMLOK's [RP-2026-10](https://docs.amlok.io/whitepapers/10-adaptive-defense-recourse.md) helps you examine that problem alongside two related questions: how to explain which feasible evidence changes could affect an assessment, and how to run a smaller assessment path quickly.

These are three separate research tasks with distinct evaluation settings. Read fraud recall, counterfactual feasibility, and runtime as distinct measurements. The [dataset guide](https://docs.amlok.io/research/datasets.md) explains why each task needs its own population and outcome definition.

## Read the comparison

The first question is **how much fraud the detector still finds after attacks adapt**. At round five, the paper compares a static detector with its hardened configuration at the same stated 1% false-positive rate.

| Measure at round five | Static detector | Hardened detector | Difference |
| - | -: | -: | - |
| Fraud recall | 48.2% | 74.5% | **26.3 percentage points higher** |

The hardened detector finds more of the labeled fraud cases in that challenge setting. This is a detector-training comparison, not a general ranking of language models. Sources: [RS-2026-07, adaptive-defense results, B9:C9](https://docs.amlok.io/research/resources/robustness-results.md) and [RP-2026-10](https://docs.amlok.io/whitepapers/10-adaptive-defense-recourse.md). The counterfactual and embedded-runtime sections below evaluate different tasks; this recall gain does not establish their feasibility or speed.

## Test against changing behavior

The adaptive-defense study uses a two-sided training setup. One component generates challenging variations, while another tries to detect them. The paper describes five rounds of adaptation covering document manipulation, payment patterns and graph structure. See [RP-2026-10, adaptive-defense experiment](https://docs.amlok.io/whitepapers/10-adaptive-defense-recourse.md).

The purpose is to test whether the detector learns more durable evidence patterns rather than relying on one easily changed cue. A successful result on the generated challenges still needs separate evaluation against held-out changes that the generator did not create.

### Detection under adapting attacks

Compare the static detector with the hardened detector at the attack stages supplied in the research.

**Chart data: Detection under adapting attacks**

Compare the static detector with the hardened detector at the attack stages supplied in the research.

**Evidence:** Source-reported study results. **Evaluation conditions:** Selected attack stages 0, 1, 2, 3, and 5. Recall is the held-out ROC estimate at 1% empirical FPR, using tied-score blocks and interpolation. Static and adapted detectors share the stage test suite. A prospectively fixed threshold is evaluated separately for its realized FPR.

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

| Method or cohort | Static detector: Fraud recall (fraction, 0-1) | Hardened detector: Fraud recall (fraction, 0-1) |
| - | -: | -: |
| Round 0: baseline distribution | 0.765 | 0.765 |
| Round 1: print-scan-rescan documents | 0.682 | 0.758 |
| Round 2: multi-hop kiting | 0.594 | 0.751 |
| Round 3: conforming invoice noise | 0.531 | 0.748 |
| Round 5: full red-team suite | 0.482 | 0.745 |

**Measure definitions**

* **Fraud recall:** Share of fraud cases detected after each stated attack stage. Only reported stages are shown. Higher is better.
  Source: [RS-2026-07](https://docs.amlok.io/research/resources/robustness-results.md), worksheet `02_Stackelberg_MILP_Embedded`, cells `B5:B9`.
  Source: [RS-2026-07](https://docs.amlok.io/research/resources/robustness-results.md), worksheet `02_Stackelberg_MILP_Embedded`, cells `C5:C9`.

**Sources**

* [RS-2026-07](https://docs.amlok.io/research/resources/robustness-results.md), worksheet `02_Stackelberg_MILP_Embedded`, cells `A5:D9`.
* [RP-2026-10](https://docs.amlok.io/whitepapers/10-adaptive-defense-recourse.md).

RP-2026-10 reports that a static detector moves from **76.5% recall initially to 48.2% after five rounds**, while its adaptive method reports **74.5% recall at round five**, at a stated **1.0% false-positive rate**. The adaptive result is 26.3 percentage points above the reported static round-five result. See [RP-2026-10, adaptive-defense comparison](https://docs.amlok.io/whitepapers/10-adaptive-defense-recourse.md).

The chart shows rounds 0, 1, 2, 3, and 5, as reported in [RS-2026-07](https://docs.amlok.io/research/resources/robustness-results.md). It plots the supplied stages without estimating an intermediate result. Read the recall comparison at the stated false-positive rate and within the study's challenge setting.

### Adaptive detector comparison protocol

The reported stages are 0, 1, 2, 3, and 5. They are selected challenge settings, not a complete five-step trajectory or a guaranteed detection floor.

| Element | Normative definition |
| - | - |
| Partitions | Partition borrowers and generated attack instances into training, tuning, and test sets before adaptation. Keep test seeds, template instances, documents, and transaction graphs out of generator and defender updates. Record attack-family counts and test clean/fraud counts for each displayed stage. |
| Within-round comparison | Freeze the stage-specific generator before drawing the paired test suite. Evaluate static and adapted detectors on the same clean cases and same changed fraud cases. Disclose which detector the generator targeted; a separate cross-play matrix is required for claims across adversaries. |
| Retrospective ROC point | Compute recall at 1% empirical FPR from the held-out ROC curve. Treat tied scores as one threshold block and linearly interpolate adjacent ROC points spanning 0.01, equivalent to randomized selection within the boundary block. Label it an interpolated ROC statistic, not an operational threshold. Bootstrap borrower clusters and recompute the ROC point in each replicate. |
| Deployment threshold | For a fixed-threshold claim, select the threshold on separate clean calibration data, freeze it, then report realized test FPR and recall with confidence intervals. Do not force its test FPR to equal 1% by retuning on the test set. |

## Explain feasible changes without promising an outcome

The second study uses a constrained optimization method to identify low-effort changes that could satisfy a specified model and policy calculation. The displayed formulation is conceptual nonlinear constrained optimization. A **MILP** implementation needs explicit linear or piecewise-linear constraints, integer variables, finite bounds, and error tolerances; monotonicity alone does not provide these.

This is a counterfactual question: if supported inputs changed in permitted ways, how would the calculation change? It is not evidence that the change will occur or that the institution will approve an application.

**Find a feasible change under explicit constraints**

$$
x^{*} = \underset{x\in\mathcal{F}(x_0)}{\operatorname{argmin}}\;c(x,x_0)
\quad\text{subject to}\quad P(x)=1
$$

Here, $x_0$ is the current evidence, $\mathcal{F}(x_0)$ is the set of allowed changes, $c$ measures their defined effort or cost, and $P$ is the specified policy calculation. This is a simplified statement of the paper's constrained-recourse objective.

In plain language, search only among feasible changes and explain the cheapest one under the chosen assumptions. If none exists, report that result instead of manufacturing a path.

Immutable attributes do not become action suggestions. A missing source can be requested only within the person's authorization, and the new evidence may improve, worsen or leave the assessment unchanged. Source verification and institutional judgment remain separate from mathematical feasibility.

RP-2026-10 defines an **expected positive capacity gain** score: average only upward changes in feasible capacity, then subtract connection cost on a declared capacity-equivalent CAD scale. It omits downside capacity changes and is not general economic value of information. The 88.7% reference share means positive-capacity events among completed evidence acquisitions under the revised scoring definition; acquisition coverage is reported separately. Calibration of a predicted gain probability instead requires a proper score and reliability analysis. See [RP-2026-10, positive capacity gain](https://docs.amlok.io/whitepapers/10-adaptive-defense-recourse.md#positive-capacity-gain-from-additional-evidence).

## Distill a smaller inference path

The embedded study combines a previously maintained state, incremental scoring and compiled financial calculations. More complex cases are routed to a deeper investigation path. This is an architecture for evaluating a latency tradeoff, not authorization for automated funding or adverse actions.

| Reported measurement | RP-2026-10 value | Interpretation |
| - | -: | - |
| Median latency | 38.4 ms | Source-reported middle of the study runtime distribution. |
| 95th-percentile latency | 54.2 ms | Reported duration covering 95% of requests under the study workload. |
| 99th-percentile latency | 66.1 ms | A reported experiment result, not a service guarantee. |
| Embedded credit-task AUROC | 0.879 | Ranking result for the embedded study's credit task and population. |
| Share routed to deeper investigation | 1.6% | A study-specific routing rate. |

Source: [RP-2026-10, embedded-inference results and reproducibility manifest](https://docs.amlok.io/whitepapers/10-adaptive-defense-recourse.md).

Component times do not add into an end-to-end latency percentile. Network time, warm state, failures, and fallback work affect the measured duration. Read runtime results within the workload and measurement boundary reported by the study.

### Outcome and recourse estimands

Recovery, renewal income, and recourse conversion use different eligible populations. The percentages are reported study summaries. Economic examples use them as explicit assumptions; an individual treatment effect remains a different quantity.

| Element | Normative definition |
| - | - |
| Recovery | Index an eligible distressed facility before action assignment. Let Y(a) be discounted recovery receipts minus recovery and incremental action costs in CAD over the next 365 days under action a. Deduplicate cost cash flows and subtract each once. Estimate E\[Y(1)-Y(0)] in CAD; relative lift is 100 × that difference / E\[Y(0)], defined only for a positive baseline. Fix assignment, action eligibility, and follow-up before scoring. |
| Renewal | Index a renewal-eligible facility before the renewal decision. Let Y(a) be 365-day interest and fees less funding cost, credit loss, and incremental action cost. Report the CAD treatment effect and, only with a positive control mean, relative net-income lift. Do not add its percentage to recovery lift. |
| Qini | Use the same 365-day discounted net recoveries as the CAD recovery endpoint, subtracting each recovery/action cost once, then divide by positive principal outstanding at the index date. Hold that denominator fixed under both actions. This normalized Y and its Qini index are dimensionless; the CAD recovery-lift endpoint stays separate. On held-out cases, rank by predicted effect on normalized Y, breaking score ties by stable borrower ID. Use known assignment probabilities or cross-fitted propensities with 0 \< e\_i \< 1 under the stated identification assumptions. At knots u = k/n, compute G(u) = (1/n) sum over the top k cases of \[W\_i Y\_i/e\_i - (1-W\_i)Y\_i/(1-e\_i)], with G(0) = 0. Join knots linearly and integrate G(u)-uG(1) using trapezoids. The reported 0.318 index is comparable only under this outcome scale and normalization. |
| Recourse conversion | Denominator: all eligible declined applications offered the specified feasible evidence/action plan. Numerator: those that satisfy the frozen model and policy constraints within 90 days. Report offered, attempted, completed, and qualifying counts separately. Conversion is a policy-feasibility event, not automatically disbursement. |
| Converted-group default | Denominator: converted cases that subsequently receive the reference facility and have completed 365-day outcome follow-up. Numerator: qualifying credit defaults in that group. Report unfunded conversions and censored cases separately. A group default frequency is not the predicted PD of the worked-example borrower. |
| Identification | Use randomized assignment or specify consistency, overlap, and conditional exchangeability given pre-action covariates. Cross-fit nuisance models by borrower. Report the target population, counts, effect interval, and sensitivity to confounding; cross-fitting alone does not establish a causal effect. |

## Bound the conclusions

RP-2026-10 reports **14.2% conversion of declined cases** and a **3.1% default rate** within its recourse experiment. These results belong to the paper's stated evaluation setting. Conversion, default frequency, and causal effects of an intervention are different quantities. See [RP-2026-10, constrained-recourse results](https://docs.amlok.io/whitepapers/10-adaptive-defense-recourse.md).

The three studies answer separate questions: adaptation measures detection under changing challenges, recourse measures feasibility under defined constraints, and embedded inference measures runtime under a stated workload. A result from one task does not establish performance on the other two.

**Insights** and **Signal** remain assessment products. Institutions make decisions and act in their own systems. See [datasets](https://docs.amlok.io/research/datasets.md), [benchmark interpretation](https://docs.amlok.io/research/benchmarks.md) and the [library](https://docs.amlok.io/research/library.md). Source: [RP-2026-10](https://docs.amlok.io/whitepapers/10-adaptive-defense-recourse.md).


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