Rules, ML, Generative AI, or No AI

Choosing by the nature of the problem: deterministic rules, traditional ML, generative AI or ordinary software, where AI fits in reconciliation, how to evaluate it, and RAG versus fine-tuning.

  • Intermediate to advanced
  • About 27 minutes
  • Includes an exercise and a knowledge check

The concept Start with the nature of the problem

Customers increasingly ask for AI-powered solutions, but not every problem needs AI. In financial workflows, putting AI into deterministic decisions without controls can cause serious harm. Look at the problem first.

A decision tree. Is the answer an exact rule you can write and explain? Yes: deterministic rules, for example payment matching conditions. Is it a prediction from historical patterns? Yes: traditional ML, for example equipment failure prediction. Does it involve understanding or producing language? Yes: generative AI with review, for example summarizing exception notes. None of these, ordinary data processing: software with no AI, for example parsing and validating a settlement CSV. Never by AI alone: posting financial transactions, changing loan balances, approving adjustments, overriding policy rules or inventing missing settlement data.
Ask about the problem, not the tool. Each branch leads to a different, testable approach.
CategoryBest suited forExample
RulesExplicit, deterministic decisionsIf the provider ID, currency and amount match and the settlement status is eligible, mark a candidate match
Traditional MLPrediction and pattern detection with historical data and a measurable targetFraud risk or equipment failure prediction
Generative AILanguage, documents, summarization, assisted reasoning, with validation and reviewSummarizing why an exception could not be resolved
No AIOrdinary application logic and data processingConverting a settlement CSV into validated records

Apply it Where AI fits in reconciliation

The Apex reconciliation pipeline as an assembly line with five stations. 1 matching engine with exact IDs, amounts, currency, dates and status: rules. 2 exception classifier into known categories: rules. 3 evidence summary from approved records only, suggesting next steps: optional LLM, advisory. 4 human decision by an authorized finance user: person. 5 audit trail of evidence, rule versions, approvals and actions: software. The language model never posts, approves or changes balances.
AI as an assistant, not an authority: rules match, people decide, everything is audited.

Do not let a language model act as an uncontrolled authority to post transactions, change loan balances, approve adjustments, override mandatory policy rules or invent missing settlement information. Financial calculations and authoritative decisions stay in tested deterministic systems unless a formally governed alternative has been validated and approved.

If AI is right Evaluate it with numbers

  • Inputs and outputs: input quality and the expected output.
  • A benchmark dataset: labeled, representative examples the model never trained on, including the hard cases. At Apex, a few hundred past exceptions with the resolution an analyst chose.
  • A baseline to beat: compare with the current process or simple rules on the same dataset. If rules score nearly as well, use the rules.
  • Precision and recall: of the cases the model flags, how many are right (precision), and of the real cases, how many it finds (recall).
  • The cost of each mistake: a false positive sends an analyst to chase a payment that is fine; a false negative lets a real problem through. Agree with the business which one costs more.
  • Hallucination risk: is every answer grounded in authorized evidence, and does it state uncertainty?
  • Controls: human review, privacy and security.
  • Operations: latency, cost per operation, monitoring and rollback.
  • Human override rate: how often reviewers change the model output. A rising rate is an early warning.
  • Drift monitoring: keep measuring on fresh labeled samples after launch, because providers, formats and fraud patterns change.

For document processing, measure field-level extraction quality, not whether the answer sounds convincing.

Two techniques RAG and fine-tuning

TechniqueWhat it doesUseful when
RAG (retrieval-augmented generation)Retrieves relevant, approved information and gives it to the model as contextThe model needs changing or organization-specific knowledge
Fine-tuningChanges model behavior through additional trainingYou need specific behavior, formats or domain patterns, with an evaluation plan

Fine-tuning does not replace RAG for knowledge that changes. Fine-tuning changes how a model behaves; it does not keep facts current. When Apex updates a policy, a fine-tuned model still remembers the old one until it is trained again, while RAG retrieves the current approved version the next time it is asked. Use RAG for changing facts and fine-tuning, if at all, for stable behavior.

Practice Classify six capabilities

Practical exercise

Rules, ML, GenAI or conventional software?

Choose for each Apex capability and name any human control it needs.

  1. Exact transaction matching.
  2. Detecting unusual payment patterns.
  3. Summarizing investigation notes.
  4. Validating a settlement CSV schema.
  5. Explaining a complex exception using approved evidence.
  6. Approving a financial adjustment.
Show sample answers
  • Exact matching: rules; versioned and tested.
  • Unusual patterns: traditional ML if labeled history and a baseline exist; alerts go to a person.
  • Summarizing notes: generative AI; a person reads it before acting.
  • CSV schema: conventional software; no AI.
  • Explaining an exception: generative AI with RAG over approved, access-controlled records; cites its sources; advisory only.
  • Approving an adjustment: an authorized person, recorded in the audit trail. Never AI.

3 questions

Check your understanding

1. A customer wants an LLM to approve financial adjustments. What do you recommend?
2. Which problem suits traditional ML?
3. What does RAG do?
Answer every question to submit.

What you can do now

  • Classify a problem as rules, ML, generative AI or no AI.
  • Place AI safely in a financial workflow.
  • Define how an AI capability will be evaluated.
  • Explain RAG and fine-tuning and their limits.