Key points
- AI tokens are the small chunks of text a language model reads and writes. They set the price, the speed and how much a model can read at once.
- Data tokenization swaps sensitive values, such as card numbers or IC numbers, for stand-in values before data leaves a secure system.
- In fintech, token counts drive the cost of AI at scale, and they vary by language. Malay and Chinese text can cost more than English.
- In regtech, long regulatory documents hit token limits. Pulling out the right clauses first, and citing them, matters more than a bigger model.
- Tokenizing customer data before it reaches an AI model lowers privacy risk, but under the PDPA the tokenized data usually still counts as personal data.
- Our Nakhoda perspective: preserve clause references and connected legal context when reducing model input, so a compliance officer can verify the resulting finding.
One word, two meanings
Ask an AI engineer and a payments engineer what "tokenization" means and you will get two different answers. Both are right, and both now affect any financial firm that uses AI.
| AI tokens | Data tokenization | |
|---|---|---|
| What it is | Splitting text into small pieces a language model can process | Replacing a sensitive value with a stand-in that is useless on its own |
| Who cares first | AI and product teams | Security, privacy and payments teams |
| What it affects | Cost, speed, how much the model can read, accuracy | Data exposure, breach impact, audit scope |
| Compliance question | Can the AI read the whole regulation and point to the right clause? | Which customer data reaches the AI provider, and where? |
There is a third meaning in finance: asset tokenization, which puts ownership of assets such as bonds or funds on a digital ledger. That is a separate topic, and this article doesn't cover it.
How AI models read: tokens in plain terms
A large language model doesn't read words the way people do. Before it sees your text, a tokenizer cuts the text into tokens. A token can be a whole common word, part of a longer word, a space, a punctuation mark or a few digits. The model reads tokens in and writes tokens out.
An example of how one sentence might be split. Every model has its own tokenizer, so the exact split and count change from one model to the next.
Three practical things follow from this:
- You pay per token. Most AI providers charge for the tokens you send and the tokens you get back, and output tokens usually cost more.
- A model can only read so many tokens at once. This limit is called the context window. Your instructions, the documents you attach and the answer all have to fit inside it.
- More tokens means slower answers. A long document takes longer to read, and a long answer takes longer to write.
What AI tokens mean for fintech
Estimate cost per completed task
A chatbot answering short questions uses few tokens. A workflow that reads a 40-page loan agreement, a set of bank statements or a customer complaint history uses far more for every single case. When you plan an AI rollout, estimate cost per task (tokens in, plus tokens out, times volume) rather than cost per user. Long instructions that you repeat with every request add up too. Many providers offer cheaper rates for repeated content, which is worth asking about.
Language changes the bill
Tokenizers represent languages differently. The same meaning written in Malay, Chinese or Tamil can take more tokens than English, depending on the model and the text. That affects cost and how quickly the context window fills. For a firm serving customers in Malaysia and the wider region, measure this with your own documents in each language you use.
An example of how a Malay phrase might be split. Words the tokenizer saw less often in training tend to break into more pieces.
Numbers are text to a language model
To a model, USD 1,250,000.00 is a handful of tokens, not a quantity. Language models are good at reading and explaining figures. They are not a reliable calculator. Do interest, fee and threshold calculations in ordinary code or your core system, and let the model handle the language around them.
What AI tokens mean for regtech
Regulations are long, and the details matter
A single regulatory framework can run to hundreds of pages once you add its amendments, FAQs and related guidance. Newer models accept very long inputs, but fitting a document in the window isn't the same as reading it well. Models can miss details buried deep in very long inputs, and in compliance the detail is often the whole point.
Good regtech tools don't paste everything in and hope. They first retrieve the sections relevant to a question, then give the model only those sections. That uses fewer tokens, costs less and tends to give more accurate answers.
Every answer needs a source
Before a tool can retrieve sections, it has to prepare documents for search. How it does this decides whether clause numbers, headings and cross-references survive. A tool that splits documents at arbitrary token counts can lose the reference an auditor will ask for. In Nakhoda, we preserve paragraph and clause references so an extracted obligation can be checked against its source. The surrounding headings and linked instruments matter too: they help establish who the requirement applies to and whether later guidance changes how it should be read.
Monitoring at scale is a token budget
Watching regulators means reading a steady flow of circulars, consultations and amendments. Token costs decide what you can afford to monitor automatically. A common approach is to sort and summarise new documents with a smaller, cheaper model, and send only the relevant ones for deeper analysis.
Data tokenization: the privacy layer for AI
The second meaning of tokenization answers a question every compliance team should ask before using AI: which customer data reaches the model?
Data tokenization replaces sensitive values with stand-in tokens before the data goes anywhere less trusted. An IC number becomes ID_7F3K, and a card number becomes CARD_91QX. The mapping back to the real values stays in a secured store, often called a token vault, inside your own environment. The AI model works with the stand-ins, and only authorised systems swap the real values back in where they are needed.
- Less exposure if prompts or logs at an AI provider are ever leaked or kept longer than expected.
- It supports data minimisation: the model only sees what it needs to do the task.
- For card data, tokenization is a well-known way to reduce how many systems fall under PCI DSS.
The limits compliance teams should know
- Tokenized is not anonymous. If you hold the key to reverse it, the data can still be linked to a person. Under Malaysia's Personal Data Protection Act, as under most privacy laws, treat tokenized personal data as personal data.
- Free text leaks. Structured fields such as account numbers are easy to tokenize. Complaint narratives, emails and call transcripts are not. "My husband Ahmad called from our Subang branch" contains identifying details that automated detection can miss.
- Context can identify people. A job title, a rare transaction and a date together can point to one person, even with every name removed.
Where Malaysian regulation comes in
The amended PDPA brings requirements on data protection officer appointments, qualifying breach notifications and cross-border transfers. Which duties apply depends on the organisation and its processing activities. Tokenizing data before it goes to an AI provider overseas reduces what you transfer and what a breach could expose. It doesn't remove applicable obligations. For firms regulated by Bank Negara Malaysia, assess external AI services against the technology and cloud risk expectations in the RMiT policy document. Confirm your approach with your DPO and legal adviser.
Questions to ask before you deploy an AI tool
- What does a typical task cost in tokens, in each language we work in?
- How does the tool handle documents longer than the model's context window?
- Does every answer cite the clause or page it came from?
- Which personal data reaches the model, and is it tokenized or masked first?
- Where are prompts, files and logs stored, in which country, and for how long?
- Is our data used to train the provider's models?
- Can we export an audit trail of what the AI was asked and what it answered?
Our Nakhoda perspective: preserve the rule before reducing the prompt
Our starting point when building Nakhoda is the compliance decision the text needs to support. A lower token count is useful when the input still contains the evidence needed to assess that decision. Removing an exception, an applicability heading or an amending circular can make an answer cheaper to generate and more expensive to correct.
Connect the sources that change the answer
Nakhoda's regulatory knowledge graph connects Acts, subsidiary orders, policy documents, amendments and FAQs. Those links support retrieval across the instruments relevant to a question. For example, an earlier policy paragraph may need to be read alongside a later circular before a reviewer can decide whether an internal policy needs updating.
This creates a real engineering trade-off. Related sources add tokens, but excluding them can remove legally significant context. We favour an input that preserves the basis of the finding. Review time, citation fidelity and missed obligations belong in the evaluation alongside token spend.
Keep data controls distinct
Nakhoda's isolated workspaces, Southeast Asian storage and commitment to keep uploaded documents out of foundation-model training address important data boundaries. Data tokenization addresses a separate question: which sensitive values a model receives. A firm evaluating a workflow involving customer records should establish how those values are masked or tokenized, where the reversible mapping is held, and who can access it. Workspace isolation alone cannot answer those questions.
Evaluate with a finding you can verify
When evaluating Nakhoda, use a regulatory question whose answer depends on a known amendment or FAQ. Check the cited clause, the document version and the connected source that changes its interpretation. Then compare the time needed to verify the finding with your existing process. That gives a compliance team a practical basis for judging both the value of the retrieval and the cost of using it.
This article is general information, not legal advice. Regulatory requirements change. Check the current text of the PDPA, RMiT and other rules that apply to your firm, and confirm decisions with your DPO or legal adviser.