@rafmo20d3
Mohamed AhmadFounder▲5
Founder & CTO, OfinTech
2h ago · AI Engineering · Riyadh

How our finance AI learns from the accountant's verdicts, and why the model never touches a number

At OfinTech we build finance AI on one rule: a model never produces a number. Here is how the four parts fit together, and why each one sits where it does.

1. System One: learning from the accountant's verdicts

Matching a bank line to a payout or an entry is a closed decision, not a writing task. So we use a small scorer, not an LLM. Every time an accountant accepts or rejects a proposed match, the verdict is kept. The scorer refits on the workspace's own decisions, so the second month is more accurate than the first.

It also learns how sure it is allowed to be. A match is accepted without a person only above a threshold the team sets, and every automatic decision is audited.

The current scorer is deliberately simple: it classifies a bank line in about 0.03 ms on a 2-core CPU and retrains on 5,000 lines in 0.3 seconds. No GPU. A small multilingual encoder is next, but only for the lines the simple scorer gets wrong.

2. RAG with citations, not guesses

Documents are read with local OCR in English, Arabic, Spanish and French, and searched with keyword search plus optional embeddings. Every answer cites the document and page it came from. If the source isn't there, the answer says so.

3. CFAI: our own finance model

CFAI is our language model fine-tuned for finance and accounting work. On our finance benchmark it scores 97.3 against 94.3 to 95.1 for the model it was built from, and 100 on safety. Its job is to explain and to know when to decline, never to calculate.

4. Cowork: what we are building now

A request like "prepare October's management pack, compare it with September, and explain the three biggest changes" becomes an editable Word brief and Excel workbook. The engine computes one result set, the model writes only the sentences, and any sentence with a figure that isn't in that result set is rewritten or dropped. It says what changed and where, never a cause the ledger doesn't show.

The pattern across all four: deterministic code for the math, small models for closed decisions, and the LLM only for words.

For anyone building AI for regulated work: where do you draw the line on what the model is allowed to decide?

Comments

No comments yet
Start the conversation.
Log in to join the thread.