RegLens. DASC7600 / Final report Repository ↗

University of Hong Kong · 3 December 2026

A RAG-Based Compliance Audit Assistant

For CDD/KYC regulation in Hong Kong banking

Supervisor · Prof Chow Ka Ho

Abstract

Can an auditor trace a proposed compliance label back to the rule, condition or exception that determined it? RegLens brings regulatory search, evidence-linked reasoning and human review into one workspace. On 121 benchmark cases, specialist reranking improved primary evidence coverage. With the same model and retrieved passages, a three-valued engine increased pooled agreement with the experimental reference and reduced API use, while detecting fewer potential non-compliance cases.

Evidence Lab in 30 secondsSilent, illustrative walkthrough from source intake to audit findingRead about the workspace ↓

01 Introduction

First-pass review of a written customer due diligence (CDD) or know-your-customer (KYC) control requires finding applicable provisions, checking their conditions and exceptions, and judging what the text actually commits the institution to do. Public sources made it possible to study this task even though internal audit files were unavailable.

We ask how well hybrid retrieval and specialist reranking recover regulatory evidence, and how computing labels from extracted facts changes agreement, class recall and resource use. RegLens exposes the resulting evidence and decision trace for auditor review.

  1. RetrieveRank regulatory passages
  2. AssessExtract facts and apply rules
  3. ReviewInspect and record the decision

03 Data sources and benchmark construction

Two source streams feed the benchmark. The regulatory stream contains 22 Hong Kong regulatory source records and 509 stable passages, including AMLO Schedule 2 and the HKMA AML-2 guideline. The institutional stream contains 10 public banking documents from which the project extracted 214 bounded controls and derived 190 verified mapping dispositions. Primary passages anchor the duty. Supporting passages supply conditions, definitions or qualifications.

The team constructed 29 baseline controls and 93 single-change variants by removing a duty or component, changing timing, widening an exception or narrowing a trigger. Structured review checks scope and obligation-level alignment. An integrity gate excluded one record, leaving 121 cases from 79 source-control groups. All variants of a source control stay in the same split.

Revised research reference after targeted human review · final paper, Tables 12–13
SplitCasesCompliantPNCFIER
Train8592056
Validation181611
Test183411
Total121133078

On jointly valid raw assessments, the Benchmark reviewer agreed with Claude on 91/113 cases (80.5%, κ = 0.675) and Gemini on 79/97 (81.4%, κ = 0.683). Across three independent Benchmark runs, 103/118 jointly valid cases received the same label each time. The revised research reference had targeted team review and awaits independent domain validation.

04 Regulatory evidence retrieval

Ver4.2 queries each canonical source control once. Dense and lexical search produce a shared Top-100 candidate pool from 520 clause-aware chunks. Chunk hits are deduplicated by stable parent passage_id, the unit of citation and scoring. Four ranking methods reuse that pool.

M0
Quality. Generic cross-encoder and learned numerical ranker.
M1
Specialist. Cross-encoder trained with hard negatives.
M2
Weighted RRF. Fusion of hybrid, generic, specialist and field-compatibility ranks.
M3
Equal RRF. Equal fusion of M0 and M1. Its saved Top-10 became the reasoning handoff.

05 Compliance reasoning

Both arms use DeepSeek Flash, the same execution control and the same saved M3 Top-10 passages. The scoped baseline asks the model for evidence-linked obligation judgments. The engine asks for component states and computes obligation applicability and fulfilment in code. Both workflows derive the final label in code.

ApplicabilityAᵢ = min(Sᵢ, Tᵢ, 1 − Eᵢ)
FulfilmentMᵢ = min(Xᵢ₁, …, Xᵢₖ)

Scope S, trigger T, exception E and required checks X use yes (1), no (0) or unknown (½). An applicable obligation with an explicit failed check yields Potential Non-Compliance (PNC). Positive support for every stated claim with no material gap yields Compliant. An unresolved assessment yields Further Information or Escalation Required (FIER). The saved states let reviewers replay a fixed assessment.

06 Experimental design and evaluation

Retrieval retrospectively rescores saved rankings across 121 eligible cases and also reports equal weighting across 79 canonical queries. Hit measures whether any annotated primary appears by a cutoff. Recall measures the share of annotated passages recovered, with relevant recall counting both primary and supporting passages.

Reasoning compares paired workflows by split and across all 121 cases. Train and Validation informed development. Test predictions were sealed before scoring. Agreement, Macro-F1, class recall and processing failures describe different aspects of performance. Wall time and tokens reflect the recorded runs.

Reference revisions. The earlier scoring reference used in the reasoning tables has 13 Compliant, 20 PNC and 88 FIER cases. The later research reference in Section 3 has 13, 30 and 78. Each paired comparison uses a common reference within its own evaluation.

07 Results and error analysis

Specialist reranking put primary evidence earlier

On 121 cases, M1 placed an annotated primary first in 87 cases versus 36 for M0. M1–M3 each recovered at least one primary in 113 Top-10 lists versus 94 for M0. M2 recovered the largest share of primary and supporting evidence combined. Among the eight M3 primary misses, three lost the primary at candidate search and five at reranking.

Retrieval performanceSaved Ver4.2 rankings · 121 eligible cases

Primary Hit@1

  • M029.75%
  • M171.90%
  • M263.64%
  • M360.33%

Primary Hit@10

  • M077.69%
  • M193.39%
  • M293.39%
  • M393.39%

Relevant Recall@10

  • M063.29%
  • M163.02%
  • M268.46%
  • M367.84%

Each panel uses its own non-zero vertical scale. Compare column heights within a panel.

More FIER matches came with fewer PNC detections

Reference agreement58.7% → 69.4%71 → 84 matches
PNC recall90.0% → 30.0%18 → 6 of 20 cases
Recorded API tokens−25.2%1,011,093 → 756,501

On the pooled 121 cases, Macro-F1 declined from 0.547 to 0.513, Compliant recall fell from 7/13 to 4/13, and FIER recall rose from 46/88 to 74/88. Predicting FIER for every case would match 88/121 (72.7%). Recorded wall time fell 38.3%, from 93.7 s to 57.8 s. On Test alone (18 cases), agreement moved from 12 to 13 matches, Macro-F1 from 0.621 to 0.560, and PNC recall from 3/3 to 1/3.

Scoped baseline
Ref. ↓CPNCFIERFail
C7150
PNC01820
FIER1128463
Deterministic engine
Ref. ↓CPNCFIERFail
C4180
PNC06140
FIER39742
Earlier scoring reference, 121 eligible cases. Columns show predictions. C = Compliant. Fail = processing failure. Shared count bands: 0, 1–14, 15–29, 30–59, 60–74.

Where the workflow deferred

In nine of the 14 reference PNC cases that the engine routed to FIER, it found an explicit conflict but left applicability unresolved. The engine also predicted FIER on all eight M3 primary misses, matching seven labels. That agreement alone does not establish that the decisive evidence was retrieved.

Worked example · an unresolved statutory exception

In CASE-4EA18DE42114F7C8290C, the written control expressly omits gathering the purpose and nature of the relationship. The rank-3 passage describes the duty and an exception when the purpose and intended nature are obvious. With the exception unresolved, applicability is ½ and fulfilment is 0, so the engine returns FIER. Ruling out the exception would make applicability 1 and change the result to PNC.

08 The audit workspace prototype

RegLens replays stored cases through four review steps. An auditor compares the control with cited passages, inspects the extracted facts, follows the rationale, then records a verdict or a request for further information. The prototype supports local review records and Markdown or JSON export.

RegLens compares a written control with ranked regulatory evidence
Compare the control and cited passages.
RegLens form for recording an auditor decision and follow-up
Record the auditor’s decision or follow-up.

09 Discussion, gaps and future work

The engine’s trace shows whether a case was deferred because a provision was missing, a definition or procedure was unresolved, or a detected conflict had uncertain applicability. These cases require different review actions.

Historical fitting data overlap with 99 and 86 of the 121 cases for M0 and M1, respectively. Seventeen of 18 Test cases had corresponding source controls in the M0 fitting list. The earlier Test scoring reference contains three PNC cases. With model-assisted reference labels and single-control synthetic edits, these results characterize the retrospective evaluation. The next step is expert review on complete, unseen audit files, including evidence of implementation.

10 Conclusion

RegLens illustrates how regulatory retrieval and replayable reasoning can support first-pass audit review. Improved primary evidence coverage and lower reasoning cost came with a substantial decline in PNC recall. Reviewing the citation, the extracted facts and the proposed decision together is central to how the prototype supports auditors.

References and reproducibility

This abridgement follows DASC7600 Final Report v4, dated 3 December 2026. Figures and tables summarize the results recorded in that paper.