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

# Transaction understanding and reconciliation

> Explore bilingual transaction categories, payment deduplication and cross-system reconciliation, with reported results and source links.

AMLOK's transaction research starts with what each financial event represents. You need that meaning before using a transaction to assess a business. A deposit might be a customer payment, a loan advance, an internal transfer or a processor payout. Counting every deposit as revenue would give you the wrong picture.

[Research paper RP-2026-01](https://docs.amlok.io/whitepapers/01-transaction-reconciliation.md) studies that first step. It combines bilingual transaction classification, grouping of records from the same payment event, and reconciliation across connected systems. Its purpose is to produce financial measures whose meaning you can trace back to evidence. The comparisons below report classification and reconciliation results against the study's reference labels.

## Read the comparison

The question is **whether the model assigns the right economic meaning to a transaction**. On the paper's 125,000 audited bilingual transactions, the flat classifier is the reference method and TE-327 is AMLOK's hierarchical configuration.

| Measure | Flat ModernBERT-395M | TE-327 + reconciliation | Difference |
| - | -: | -: | - |
| F1 across 327 leaf categories | 0.834 | 0.891 | **+0.057 F1 points** |

The higher F1 means a better balance between correct category assignments and missed assignments on this test. It is not a 5.7% increase in accuracy. This compares the study's complete configurations; it does not isolate the contribution of reconciliation alone. Source: [RP-2026-01, section 6 and Figure 1.1](https://docs.amlok.io/whitepapers/01-transaction-reconciliation.md). The charts below also separate category matching, failed-payment grouping, and revenue reconstruction because they test different outputs.

## Classify the economic event

The hierarchical **Transaction Encoder (TE-327)** classifies transaction descriptions through 14 broad groups, 45 groups across the declared hierarchy and 327 leaf categories. A classification moves from a broad meaning to a more specific one. The hierarchy helps preserve useful information when the final category is uncertain. [Source: RP-2026-01, classification method](https://docs.amlok.io/whitepapers/01-transaction-reconciliation.md).

For example, evidence may support a payroll classification without identifying a more specific payroll subtype. The method returns `group_only`, the supported group ID, and a null category in that case. If only the macro is supported, it returns `macro_only`. The [complete hierarchy mapping](https://docs.amlok.io/research/resources/metric-taxonomy.md#complete-parent-and-child-map) preserves all 327 category keys. If even the broad category is uncertain, it uses `unknown.unclassified`. Missing classification does not become zero activity.

The paper's transaction-encoder training method uses English and French descriptions and supervisory information from accounting records. Its teacher model produces training targets offline. The classification task evaluates the meaning of individual transactions; the revenue-reconciliation task evaluates connected financial events. [Source: RP-2026-01, training method](https://docs.amlok.io/whitepapers/01-transaction-reconciliation.md). Read [datasets and scope](https://docs.amlok.io/research/datasets.md) for the study populations.

## Count failures once

A returned payment can produce several rows: an attempted principal payment, a reversal and a bank fee. You want one failed-payment event, with the principal amount distinguished from its fee.

The paper uses a matching mechanism to connect those related rows within a business-day window. Its non-sufficient-funds (NSF) event count counts the resulting failure groups. Its returned-payment amount sums distinct returned principals. This prevents a fee from becoming another failed payment or inflating the principal that failed. [Source: RP-2026-01, payment-event matching](https://docs.amlok.io/whitepapers/01-transaction-reconciliation.md).

## Reconcile the path to cash

An order, a processor payment and a bank deposit describe different steps in the same commercial activity. The study connects five evidence relationships:

```mermaid theme={null}
flowchart LR
  O[Order] --> P[Payment]
  P --> S[Processor payout]
  S --> B[Bank entry]
  I[Invoice] --> B
  B --> J[Accounting journal]
```

Processor fees, refunds, reserves and settlement timing can explain differences between gross sales and the eventual deposit. The method accounts for these differences before matching records. A missing link remains missing evidence. It does not automatically mean fraud or a reconciliation failure across every transaction. [Source: RP-2026-01, five-hop reconciliation](https://docs.amlok.io/whitepapers/01-transaction-reconciliation.md).

**Operating net cash flow**

$$
\mathrm{NCF}_{\mathrm{op}}(W)=I_{\mathrm{op}}(W)-O_{\mathrm{op}}(W)
$$

`W` is the observation window. `I_op` and `O_op` sum the positive and negative unique settled operating cash effects within that window, including supported refunds, chargebacks, recoveries, and reversals. A processor net deposit is counted once; adjustments already embedded in it are not deducted again. The [versioned policies](https://docs.amlok.io/research/resources/metric-specifications.md#signed-operating-cash-and-supported-capital-expenditure) define the cash set and its coverage mask. Financing proceeds and internal transfers require their own treatment before you interpret this measure as operating performance. [Source: RP-2026-01, `operating_net_cash_flow`](https://docs.amlok.io/whitepapers/01-transaction-reconciliation).

**Share of eligible value supported by reconciliation**

$$
R(W)=\frac{V_{\mathrm{matched}}(W)}{V_{\mathrm{eligible}}(W)}
$$

`V_matched` is the value supported by cross-evidence matching. `V_eligible` is the value eligible for that comparison under the same scope. An absent or non-positive denominator produces an undefined measure, not a zero that implies poor reconciliation. [Source: RP-2026-05, `reconciled_value_share`](https://docs.amlok.io/whitepapers/05-monitoring-investigation).

## What the study reports

The paper reports a comparison on 125,000 study-labeled bilingual transactions from a later evaluation period than the training data. TE-327 with reconciliation reports 0.964 F1 for broad categories, 0.891 F1 across 327 leaf categories and 0.884 leaf F1 for Quebec French descriptions. F1 balances precision and recall; these figures are not the percentage of all future transactions guaranteed to be correct. [Source: RP-2026-01, benchmark table and Figure 1.1 caption](https://docs.amlok.io/whitepapers/01-transaction-reconciliation.md).

### From transactions to reconciled evidence

Compare AMLOK transaction classification and reconciliation with rules, a zero-shot language model, and a flat classifier on each stated task.

**Chart data: From transactions to reconciled evidence**

Compare AMLOK transaction classification and reconciliation with rules, a zero-shot language model, and a flat classifier on each stated task.

**Evidence:** Source-reported study results. **Evaluation conditions:** RP-2026-01 reports a locked Cohort C benchmark. Its classification evaluation uses 125,000 audited bilingual transactions; the revenue-error subset is described separately.

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 | 327-category F1 (score, 0-1) | Quebec French category F1 (score, 0-1) | Insufficient-funds event F1 (score, 0-1) | Revenue reconstruction error (fraction, 0-1) |
| - | -: | -: | -: | -: |
| Aggregator / regex proxy | 0.312 | 0.241 | 0.584 | 0.169 |
| Zero-shot language model | 0.748 | 0.731 | 0.812 | 0.054 |
| Flat ModernBERT-395M classifier | 0.834 | 0.819 | 0.885 | 0.026 |
| AMLOK TE-327 + five-hop reconciliation | 0.891 | 0.884 | 0.988 | 0.019 |

**Measure definitions**

* **327-category F1:** Balances precision and recall across the leaf transaction categories. Higher is better.
  Source: [RP-2026-01, benchmark table](https://docs.amlok.io/whitepapers/01-transaction-reconciliation.md), Reported benchmark table, column `L3 (327-Cat) F1`.
* **Quebec French category F1:** Reported category F1 for the Quebec French subgroup. Its separate subgroup count is not supplied. Higher is better.
  Source: [RP-2026-01, benchmark table](https://docs.amlok.io/whitepapers/01-transaction-reconciliation.md), Reported benchmark table, column `QC French L3 F1`.
* **Insufficient-funds event F1:** Reported F1 for grouping an insufficient-funds payment, its reversal, and associated fee into one failure event. The source does not supply a separate event count for this metric. Higher is better.
  Source: [RP-2026-01, benchmark table](https://docs.amlok.io/whitepapers/01-transaction-reconciliation.md), Reported benchmark table, column `NSF Dedup F1`.
* **Revenue reconstruction error:** Mean absolute percentage error for reconstructed revenue on the source-described honest-SMB subset. Its separate business count is not supplied. Lower is better.
  Source: [RP-2026-01, benchmark table](https://docs.amlok.io/whitepapers/01-transaction-reconciliation.md), Reported benchmark table, column `Rev MAPE`.

**Sources**

* [RP-2026-01, benchmark table](https://docs.amlok.io/whitepapers/01-transaction-reconciliation.md).

The selected pipeline also reports 0.988 F1 for grouping NSF records into events and 1.9% mean absolute percentage error against reference revenue on the paper's honest-business subset within the study. Those measures evaluate different tasks and populations. You should not combine them into one accuracy score. The reported baselines are the study's implementations and proxies, not independently audited measurements of competing services. [Source: RP-2026-01, benchmark table](https://docs.amlok.io/whitepapers/01-transaction-reconciliation.md).

## How to use the findings

Use this research to understand why financial assessment needs classified events, explicit scope and corroborating records. Preserve the distinction between observed cash, recognized accounting revenue and evidence-supported revenue. A good category label alone cannot resolve every accounting question.

The paper also reports fast attribute calculation, but its timing does not establish an AMLOK synchronization interval or service commitment. Consult [benchmark interpretation](https://docs.amlok.io/research/benchmarks.md) and [study methods](https://docs.amlok.io/research/reproducibility.md) for the meaning and scope of performance measures.

The [catalog](https://docs.amlok.io/research/catalog.md) explains how this work contributes 79 metrics and the windowed attribute framework, as listed in [RP-2026-01](https://docs.amlok.io/whitepapers/01-transaction-reconciliation.md). [Research supplement RS-2026-05](https://docs.amlok.io/research/resources/metric-taxonomy.md) provides the metric formulas and category keys.


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