George Filippakis

A multidiscliplinary approach to Law, Finance and Technology

Leveraging AI to perform AML Gap Analysis: A Practical Guide to Reviewing AML Policies Under EU AMLD Requirements

AI tools and agentic solutions are increasingly embedded into regulatory and compliance operations. One of the most practical and immediately valuable use cases for legal and compliance professionals is AML policy gap analysis: a usually structured assessment process used to identify whether an AML policy (or, more broadly, a collection of AML policies and procedures) adequately covers applicable anti-money laundering legal and regulatory requirements, as well as any deficiencies, omissions or operational weaknesses that may expose an obliged entity to regulatory risk.

Conducting a comprehensive AML policy review in the “traditional” way is notoriously time-consuming. Legal requirements are fragmented across directives, regulations, guidelines, national transposition laws, supervisory expectations and evolving risk-based standards. Even experienced compliance professionals can struggle to ensure that every core obligation is adequately reflected in policy documentation.

This is where AI, agentic solutions and effective prompt engineering can become extremely powerful. The key lies in structured legal taxonomy design and high-quality prompting. Based on my experience, the quality, structure and precision of the instructions provided to the LLM are often the single most important factors determining whether an AML compliance assessment will be genuinely useful or largely unreliable.

Why Generic AI Prompts Often Fail in AML Reviews

Many professionals approach AI tools by uploading an AML policy and asking a simple question such as:

Review this AML policy for compliance with AMLD requirements.

In practice, this usually produces inconsistent and unreliable outputs. There are several reasons for this:

  • AML obligations are highly nuanced and context-specific;
  • LLMs frequently confuse legal sources;
  • legal provisions may be paraphrased inaccurately;
  • the model may identify a requirement but cite the wrong article;
  • AI models struggle to distinguish between mandatory requirements and supervisory guidance;
  • the model often lacks a structured methodology for legal mapping.

In most cases, the main issue is that the model lacks structured contextual grounding.

This is broadly consistent with the principles underlying Retrieval-Augmented Generation (RAG), where external authoritative material is supplied to the model in order to improve factual accuracy and reduce hallucinations. Rather than relying solely on the model’s internal training data, the model is provided with curated legal material relevant to the assessment task.

In the AML context, this means that before asking the AI to perform a gap analysis, the legal requirements themselves should first be translated into a structured and machine readable format. In addition, legal and compliance professionals may significantly improve the accuracy and reliability of AI-generated AML assessments by providing the LLM with clear interpretative guidance, supervisory context and practical implementation expectations relevant to the applicable AML framework.

The Importance of Creating an AML Legal Taxonomy

One of the most effective approaches is to build a structured AML legal taxonomy.

A legal taxonomy is essentially a simplified, organized and machine-readable representation of regulatory requirements.

Instead of requiring the AI model to independently interpret complex legislation, the taxonomy explicitly defines the legal obligations that must be assessed.

This approach may significantly improve consistency, traceability, explainability, legal accuracy and auditability of the AI assessment process. Most importantly, it helps reduce the likelihood of AI hallucinations, inaccurate legal interpretations and incorrect regulatory references when assessing compliance with EU AML requirements.

Example: AMLD Taxonomy for Customer Due Diligence Requirements

Below is an illustrative example using selected provisions from Directive (EU) 2015/849. Based on this logic, I have created an extensive taxonomy of AMLD obligations which you can find on my github.

Article 10 AMLD: Prohibition of Anonymous Accounts

<Article 10 (1) Directive (EU) 2015/849>
Financial institutions shall be prohibited from keeping anonymous accounts or anonymous passbooks. Owners and beneficiaries of existing anonymous accounts or anonymous passbooks shall be subject to customer due diligence measures as soon as possible and in any event before such accounts or passbooks are used in any way.
</Article 10 (1) Directive (EU) 2015/849>

Article 11 AMLD: When Customer Due Diligence Must Be Applied

<Article 11 Directive (EU) 2015/849>
Obliged entities should apply customer due diligence measures in the following circumstances:
(a) When establishing a new business relationship;
(b) When carrying out occasional transactions exceeding applicable thresholds;
(c) Cash transactions by persons trading in goods exceeding EUR 10,000;
(d) Gambling service transactions exceeding EUR 2,000;
(e) When there is suspicion of money laundering or terrorist financing;
(f) When there are doubts regarding previously obtained customer identification data.
</Article 11 Directive (EU) 2015/849>

Article 13 AMLD: Core Customer Due Diligence Measures

<Article 13 (1) Directive (EU) 2015/849>
Customer due diligence measures shall comprise:
(a) Identification and verification of the customer;
(b) Identification and verification of the beneficial owner;
(c) Understanding the purpose and intended nature of the business relationship;
(d) Ongoing monitoring of the business relationship.
</Article 13 (1) Directive (EU) 2015/849>

Article 14 AMLD: Timing of Verification

<Article 14 (1) Directive (EU) 2015/849>
Verification of the identity of the customer and beneficial owner shall occur before establishment of the business relationship or execution of the transaction.
</Article 14 (1) Directive (EU) 2015/849>

Why This Structure Works So Well for AI

This structured taxonomy-based approach can significantly improve AI performance in AML compliance assessments for several reasons. First, the legal source and regulatory basis become explicit, meaning that the LLM no longer needs to independently infer or guess which AMLD provision applies. Second, complex legislative drafting is normalized into simplified and machine-readable compliance obligations, making it easier for the AI model to assess whether specific AML policy provisions adequately address the relevant legal requirements. Third, the assessment process becomes far more deterministic and structured. Rather than attempting to interpret AML legislation in the abstract, the AI is effectively performing a controlled mapping exercise between predefined AML obligations and the corresponding policy language.

Another major advantage is auditability and regulatory traceability. Each assessment finding, identified gap or compliance observation can be linked directly back to a specific AMLD provision or regulatory requirement. This is particularly important in highly regulated sectors such as banking, payments, insurance and crypto-assets, where legal and compliance teams may need to justify their AML policy review methodology to internal audit functions, regulators, external advisors, boards of directors and competent authorities.

The Next Step: Prompt Engineering for AML Gap Analysis

Once the taxonomy is prepared, the next step is designing a robust assessment prompt. A strong prompt transforms the AI into a structured legal review assistant.

The objective here is to:

  • define the methodology;
  • define the expected output structure;
  • define the legal mapping exercise;
  • define escalation logic;
  • define how uncertainty should be handled.

The more explicit the instructions, the more reliable the assessment becomes.

Example Prompt for AML Policy Gap Analysis

Below is a practical example of a structured prompt that compliance professionals can adapt for AML reviews (AMLD taxonomy and AML policy to be inserted at the end of the prompt, or as an attachment to the LLM):

You are an experienced EU AML compliance lawyer conducting a legal and regulatory gap assessment of an AML policy.

Your task is to assess whether the AML policy adequately addresses the AML obligations contained in the AMLD taxonomy provided below.

Instructions:

1. Review each AMLD legal requirement individually.

2. Identify all corresponding provisions within the AML policy that address the requirement.

3. For each requirement:
   - quote the relevant AML policy provision(s);
   - explain whether the policy sufficiently addresses the requirement;
   - explain any deficiencies, ambiguities or incomplete coverage;
   - identify whether the language is operationally adequate for an obliged entity.

4. If no corresponding AML policy provision can be identified:
   - explicitly state that the requirement appears to be missing;
   - classify the issue as a potential gap requiring further legal assessment.

5. Do not hallucinate legal references.
   - Only rely on the AMLD taxonomy provided.
   - If uncertain, explicitly state the uncertainty.

6. Distinguish between:
   - fully addressed requirements;
   - partially addressed requirements;
   - missing requirements.

7. Consider practical implementation aspects relevant to obliged entities, including:
   - onboarding procedures;
   - beneficial ownership verification;
   - ongoing monitoring;
   - transaction scrutiny;
   - escalation and reporting obligations;
   - record keeping;
   - enhanced due diligence triggers.

8. Produce the output in the following table format:

| AMLD Provision | Legal Requirement | Policy Reference | Assessment | Gap Level | Comments |
|----------------|-------------------|------------------|------------|-----------|----------|

Gap Level classifications:
- Compliant
- Partially Compliant
- Potential Gap
- Unclear / Requires Legal Review

9. At the end of the assessment:
   - provide an executive summary;
   - identify the highest-risk deficiencies;
   - identify operational weaknesses;
   - identify areas requiring legal remediation.

AMLD Taxonomy:
[Insert AMLD Taxonomy]

AML Policy:
[Insert AML Policy]

Practical Enhancements for More Advanced AML Reviews

Experienced legal and compliance professionals can further enhance AI-driven AML policy gap analysis methodologies by introducing additional layers of risk assessment and regulatory contextualization. One particularly effective enhancement is the incorporation of risk-weighting criteria into the prompt and assessment framework. Not all AML deficiencies carry the same regulatory significance or enforcement exposure, and AI models can be instructed to classify identified gaps based on factors such as regulatory severity, enforcement risk, prudential impact and operational criticality.

Another important enhancement involves incorporating jurisdiction-specific AML requirements into the legal taxonomy and assessment process. One of the key limitations of conducting AML reviews solely at EU Directive level is that AMLDs operate as minimum harmonization instruments, meaning that national transposition laws and local supervisory expectations remain critically important. As a result, compliance professionals should consider expanding the AML taxonomy to include national implementing legislation, supervisory circulars, Financial Intelligence Unit (FIU) guidance, EBA Guidelines, ESMA expectations and national risk assessment findings.

AI Cannot Replace Legal Judgment

It is important to emphasize that AI-generated AML compliance assessments and AML policy gap analyses should never be treated as definitive legal conclusions or substitutes for expert legal advice. Large language models (LLMs), when used properly, may be extremely effective at performing structured regulatory comparisons, identifying missing AML concepts, organizing complex legal information, mapping legal requirements to policy provisions and accelerating large-scale document review exercises. In practice, AI can substantially improve the efficiency and consistency of AML compliance reviews, particularly for obliged entities operating across multiple jurisdictions or subject to complex EU AML regulatory frameworks.

However, despite these capabilities, AI tools still face significant limitations when dealing with nuanced legal interpretation, conflicting supervisory expectations, proportionality assessments, jurisdiction-specific enforcement practices and risk-based regulatory judgment. This is particularly relevant in the AML context, where the practical implementation of legal requirements often depends heavily on the nature, size and risk profile of the obliged entity, as well as evolving expectations from competent authorities, Financial Intelligence Units (FIUs) and supervisory bodies.

For this reason, maintaining a highly experienced human legal or compliance professional “in the loop” remains critically important. The most effective and defensible approach is typically a hybrid model in which AI performs a structured first-level AML policy review, followed by validation, refinement and legal judgment by experienced AML lawyers or senior compliance professionals. This combination of AI-assisted analysis and expert human oversight is currently where AI delivers the greatest value for AML compliance teams, financial institutions, fintech companies and crypto-asset service providers operating under the EU AML framework.

Conclusion

AI-assisted AML compliance reviews and AML policy gap analyses are likely to become an increasingly important component of modern compliance operations. When combined with structured legal taxonomies, carefully designed prompts, robust governance frameworks and experienced human oversight, AI can significantly improve the efficiency, consistency and scalability of AML compliance assessments under the EU AML framework. However, the effectiveness of these solutions ultimately depends on the quality of the underlying legal structure, prompting methodology and operational design.

For legal and compliance professionals exploring AI-driven AML compliance solutions, investing time in developing accurate legal taxonomies, well-structured prompt engineering methodologies and properly governed agentic workflows can provide substantial long-term value. If you are considering implementing AI-assisted AML policy reviews, developing AMLD legal taxonomies or designing agentic compliance assessment flows for financial institutions, fintech companies or crypto-asset service providers, feel free to reach out.


Leave a Reply

Your email address will not be published. Required fields are marked *