2025-10-31

Added · Updated

Generative Artificial Intelligence Sandbox – Practical Insights Report

The Hong Kong Monetary Authority and Cyberport launched the GenA.I. Sandbox to foster responsible innovation by providing a risk-controlled environment for banks to develop and test generative AI solutions. The inaugural cohort demonstrated the technology's potential in risk management, anti-fraud, and customer experience through 15 use cases, while yielding practical engineering insights on data preparation, model optimization, and risk mitigation. Building on these findings, the initiative will continue to explore innovative applications and the "A.I. vs A.I." paradigm to better manage risks arising from AI adoption.

Hong Kong Monetary Authority logo

Hong Kong

Hong Kong Monetary Authority

Click to view thumbnail

[AUTHOR NAME] 0 Responsible Innovation with GenA.I. in the Banking Industry Responsible Innovation with GenA.I. in the Banking Industry Practical Insights from the GenA.I. Sandbox The Hong Kong Monetary Authority

[AUTHOR NAME] 1 Responsible Innovation with GenA.I. in the Banking Industry Contents EXECUTIVE SUMMARY......................................................................................................................................2

  1. INTRODUCTION .......................................................................................................................................3 1.1 DEFINING GENA.I. AND ITS CORE CAPABILITIES IN BANKING INDUSTRY ...............................................................3 1.2 BACKGROUND OF GENA.I. SANDBOX ............................................................................................................3 1.3 OVERVIEW OF USE CASES ...........................................................................................................................3 1.3.1 Key Factors for Consideration in Evaluating Applications .......................................................................4 1.3.2 Key Functional Building Blocks...............................................................................................................5
  2. FOUNDATION: DATA STRATEGY AND PREPARATION .................................................................................5 2.1 DATA COLLECTION.....................................................................................................................................7 2.2 DATA PRE-PROCESSING..............................................................................................................................7 2.3 DATA AUGMENTATION...............................................................................................................................10 2.4 DATA QUALITY CHECK ..............................................................................................................................10 2.5 CONTINUOUS DATA UPDATES ....................................................................................................................11
  3. APPROACHES TO SOLUTION DESIGN .....................................................................................................13 3.1 MODEL SELECTION...................................................................................................................................13 3.2 OPTIMISATION STRATEGIES........................................................................................................................14 3.2.1 Prompt Engineering .........................................................................................................................15 3.2.2 Retrieval-Augmented Generation (RAG)...........................................................................................17 3.2.3 Parameter-Efficient Fine-Tuning (PEFT)............................................................................................18 3.3 VALIDATION AND EVALUATION....................................................................................................................21 3.3.1 Model Validation..............................................................................................................................21 3.3.2 Model Evaluation .............................................................................................................................22
  4. ADDRESSING KEY CHALLENGES AND RISKS...........................................................................................27 4.1 HALLUCINATION AND INACCURACY .............................................................................................................27 4.2 BIAS AND FAIRNESS..................................................................................................................................31 4.3 SECURITY AND PRIVACY ............................................................................................................................34 4.3.1 Security ...........................................................................................................................................34 4.3.2 Privacy.............................................................................................................................................35 4.4 EXPLAINABILITY AND TRANSPARENCY ..........................................................................................................36
  5. BUSINESS OUTCOME .............................................................................................................................37
  6. CONCLUSION........................................................................................................................................38
  7. APPENDIX..............................................................................................................................................40

[AUTHOR NAME] 2 Responsible Innovation with GenA.I. in the Banking Industry Executive Summary In the rapidly evolving financial landscape, Generative Artificial Intelligence (GenA.I.) presents a transformative opportunity for the banking industry. Recognising this potential, theHong Kong Monetary Authority (HKMA) and the Hong Kong Cyberport Management Company Limited (Cyberport) collaboratively launched the GenA.I. Sandbox initiative, aimed at fostering responsible innovation with Artificial Intelligence (A.I.) technology. The GenA.I. Sandbox provides a risk-controlled environment for banks, supported with targeted supervisory feedback and technical guidance, to develop and test GenA.I. solutions across three critical domains: risk management, anti-fraud measures, and customer experience. In the inaugural cohort, participating banks explored a diverse range of use cases, demonstrating GenA.I.’s potential in areas such as intelligent chatbots, advanced document processing and analysis, and multimodal content generation. These fundamental building blocks underscore GenA.I.’s capacity to streamline operations, enhance customer engagement, and drive product innovation in an enterprise scale. Beyond validating GenA.I.’s capability across various use cases, technical trials conducted at Cyberport’s Artificial Intelligence Supercomputing Centre (AISC) yielded practical insights into the end￾to-end engineering of GenA.I. implementation as well as applied knowledge across the full lifecycle— from data preparation (Section 2) and finetuning to testing and safeguarding (Section 3). Different technical optimisation approaches were experimented with to enhance the fit-for-purpose performance of GenA.I. applications. The participating banks also proactively explored methods to address common adoption challenges, such as model hallucination, with a number of practical mitigation approaches were identified and verified (Section 4). In conclusion, the inaugural cohort of the GenA.I. Sandbox has successfully demonstrated the significant opportunities and benefits of GenA.I. adoption in banking. Building on these achievements and guided by the practical findings outlined in this report, the second cohort will continue to explore innovative use cases while deepening investigation into the “A.I. vs A.I.” paradigm—leveraging A.I. technology itself to better manage risks arising from A.I. adoption.

[AUTHOR NAME] 3 Responsible Innovation with GenA.I. in the Banking Industry

  1. Introduction 1.1 Defining GenA.I. and its Core Capabilities in Banking Industry GenA.I. is a subset of artificial intelligence capable of generating text, images, or other forms of outputs. Within the banking industry, GenA.I. offers a range of transformative capabilities. These include automating customer service through intelligent chatbots and virtual assistants, generating personalised product recommendations, augmenting risk assessment and fraud detection by leveraging vast amounts of unstructured data. Furthermore, GenA.I. can be used to streamline back-office operations by automating routine tasks such as document processing and content preparation. By harnessing these capabilities, banks can achieve significant gains in operational efficiency, elevate customer satisfaction, support risk control and compliance strategies, and maintain a competitive edge in the rapidly evolving financial landscape. 1 HKMA announces inaugural cohort of GenA.I. Sandbox, 19 Dec 2024, https://www.hkma.gov.hk/eng/news-and-media/press￾releases/2024/12/20241219-5/ 1.2 Background of GenA.I. Sandbox The GenA.I. Sandbox, launched by the HKMA in collaboration with the Cyberport, aims to promote responsible innovation in GenA.I. across the banking industry. It provides a risk-controlled environment for Authorized Institutions to develop and test their innovative A.I. solutions to address real-world banking use cases. In the first cohort, the participating banks explored a wide range of innovative applications. A total of 15 innovative use cases, from 10 banks and four technology partners (Appendix), have been selected from over 40 submissions following a rigorous priorisation process1 . 1.3 Overview of Use Cases The primary objectives of the GenA.I. Sandbox are to experiment GenA.I. capabilities across three core domains: enhancing risk management, strengthening anti-fraud measures, and elevating customer experience (Figure 1). The Sandbox also encourages collaboration between banks, fintech firms and GenA.I. solution providers to foster cross-sectoral knowledge exchange and to Figure 1 – Key themes of the GenA.I. Sandbox

[AUTHOR NAME] 4 Responsible Innovation with GenA.I. in the Banking Industry promote the growth of Hong Kong’s fintech ecosystem. Within the risk management domain, several participating banks developed and tested solutions to support risk control and compliance strategies. Notable use cases focused on optimising existing time-intensive yet fundamental workflows, including credit risk management and Know Your Customer (KYC) processes, by leveraging GenA.I.’s unique capability in processing complex textual content. In the anti-fraud domain, the explored GenA.I. solutions covered a broad spectrum of applications, from transaction data-based fraud detection to video-based deepfake identification. These use cases demonstrate the technology’s potential in combatting fraudulent activities in different forms and strengthening defence mechanisms for banks. Lastly, for customer experience, various use cases aimed to develop personalised banking solutions. These tailored solutions are designed to improve customer satisfaction and loyalty by enabling banks to offer more customised and targeted interactions, thereby enhancing the overall customer journey. 1.3.1 Key Factors for Consideration in Evaluating Applications The priorisation of GenA.I. Sandbox proposals was guided by several key factors (Figure 2): Level of innovation: The extent to which the proposed solution introduces novel ideas, methodologies or models with potential to create new digitalisation opportunities; Complexity of the solutions: The technical sophistication and intricacy of the proposed solution to promote advancement and added value; Expected contribution to the industry: The potential for the proposed solution to make a meaningful impact on the financial services sector, such as by addressing industry-wide challenges through replicable and scalable application; and Adherence to the principle of fair use: The degree to which the proposed solution is designed to use the pooled computing power in a fair, responsible, and efficient manner. Figure 2 – Key factors for consideration in evaluating GenA.I. applications

[AUTHOR NAME] 5 Responsible Innovation with GenA.I. in the Banking Industry 1.3.2 Key Functional Building Blocks Across various use cases, GenA.I. capabilities can be categorised into several core functional building blocks that serve as foundational components for broader applications (Figure 3): Chat Interface: This provides an interactive interface for users to engage with Large Language Models (LLMs), enabling them to perform queries and execute specific tasks through natural language instructions. Information Processing and Analysis: This block leverages GenA.I. to automate and optimise the handling of information by intelligently processing information to extract, summarise, and infer based on defined format and rules to produce structured, desired outputs. Content Generation: This building block leverages the core capability of GenA.I. to synthesise new content—such as text, image, and multimedia—from learned patterns and data inputs. It synthesises underlying data, brand guidelines, and creative prompts into coherent and contextually relevant outputs. This fundamental ability to create, rather than merely retrieve, serves as a fundamental enabler for service customisation. 2. Foundation: Data Strategy and Preparation The performance and reliability of GenA.I. solutions are fundamentally dependent on the data they are trained or finetuned on. Testing data are equally important for rigorously testing the accuracy, and contextual relevance of the model’s outputs. While this section focuses on the data foundation for training and finetuning, data preparation for operational retrieval will be covered in Section 3. In the Sandbox, it is observed that planning and preparation of datasets is one of the most resource-intensive and critical phases of development. It requires meticulous sourcing, cleaning, labeling, and curating to ensure they are representative, unbiased, and fit-for-purpose. It often can consume as much, if not more, time and resources than the fine-tuning of the model solution itself. Figure 3 – Key applications of the GenA.I.

[AUTHOR NAME] 6 Responsible Innovation with GenA.I. in the Banking Industry Examples of GenA.I. Applications - Information Classification Classification, a subset of information processing and analysis, involves the systematic categorisation of unstructured data into predefined groups based on its content, context, or inherent characteristics. Examples tested in the Sandbox include:

  1. Relevance Classification This task determines if information from different sources refers to the same core entity, which is crucial for data consolidation and integrity. • Relevant: Information conclusively refers to the same entity. • Irrelevant: Information points to a different entity. Use Case: Automatically verifying and linking customer information from various data sources to create a unified client profile.
  2. Sentiment Classification This analysis identifies the subjective tone, opinion, or emotional sentiment expressed within a text. • Positive: Expresses a favorable or supportive view (e.g. praise, success stories). • Neutral: Presents factual or balanced information without a clear positive or negative stance. • Negative: Conveys criticism, dissatisfaction, or adverse views (e.g. complaints, reports of failures). Use Case: Monitoring customer feedback to gauge satisfaction and adjust tone and conciseness of responses.
  3. Type Classification This process automatically identifies and categorises incoming information based on their format and purpose. • Document categories: Invoice, Contract, Trade Document, Identity Proof, Application Form. • Intent Categories: Request for Information, Service Inquiry, Complaint, Technical Support. Use Case: Automatically classifying incoming loan application documents and routing them to the correct downstream workflow for further processing.
  4. Tailored Classification This refers to specialised categorisation tasks based on specific rules, frameworks, or criteria and output a custom label. • Categories: High Risk, Medium Risk, Low Risk, Flagged for Review, Clear. Use Case: Supporting decision-making workflows by categorising complex cases according to custom business rules (e.g. fraud triggers). The accuracy of this classification depends on providing well-defined criteria through carefully crafted prompts and, where necessary, model fine-tuning to handle domain-specific nuances.

[AUTHOR NAME] 7 Responsible Innovation with GenA.I. in the Banking Industry 2.1 Data Collection Data collection plays a critical role in ensuring the inclusivity and integrity of the datasets. The participating banks in the GenA.I. Sandbox sourced data from diverse and independent channels to build solid foundations for their models. Several banks leveraged publicly available datasets, while others utilised their proprietary datasets. Banks carefully curated datasets across critical factors like product lines, languages, and customer personas. Some banks opted for a more prudent and precise manual data gathering approach in the initial stage of training to minimise complication of overlooked errors or irrelevant content. Some banks utilised hybrid techniques by augmenting manual data with automated data gathering. A bank utilised a recursive crawler to collect its public website information, navigating all accessible hyperlinks from the root domain and automating the ingestion of data into a datastore. This approach offered two significant advantages: it ensured a complete and accurate collection of data without human intervention, and provided a high-fidelity representation of the website's content, directly reflecting the information on the source site. The resulting datastore was then made available as a searchable knowledge base, establishing a foundation for further development. 2.2 Data Pre-processing Datasets curated generally need certain degree of pre-processing before usage. Pre-processing primarily serves two key objectives: enhancing data quality and safeguarding privacy. The participating banks implemented a range of techniques to address these imperatives. Enhancing Data Quality for Model Performance To ensure data consistency and improve fine￾tuning efficiency, banks employed several cleansing and standardisation techniques. A primary goal was to eliminate irrelevant "noise" from textual data, especially for more standardised model outputs. This involved: Dataset Segmentation Methodology A consistent methodological approach to dataset partitioning was observed across different participating banks in the GenA.I. Sandbox. Typically, they segregated their curated datasets into three distinct subsets following conventional splits such as 70-20-10 or 80-10-10. • Training Set (Largest Portion, ~70-80%): This subset serves as the primary learning material for the model. During the training phase, the model's internal parameters are iteratively adjusted to recognise underlying patterns, relationships, and linguistic structures present within this data. • Validation Set (~10-20%): This portion is used concurrently during the training process for model selection and hyperparameter fine-tuning. It provides an unbiased, interim evaluation on data not seen during the parameter updates, allowing developers to monitor for overfitting—where a model performs well on training data but poorly on new data—and to guide the selection of the optimal model version before final assessment. • Test Set (~10%): This subset is held back entirely from the training and validation process and is used only for the final, conclusive evaluation. It serves as a proxy for real-world performance, providing an unbiased measure of the model's ultimate accuracy and robustness.

[AUTHOR NAME] 8 Responsible Innovation with GenA.I. in the Banking Industry • Text Normalisation: Converting all text to lowercase, removing special characters, standardising formats (e.g. using YYYY-MM￾DD for dates), converting numerical values to a common unit of measurement (e.g. all currencies to HKD). • Semantic Consistency: Mapping synonyms (e.g. "overdraft," "credit line," "credit facility") to a controlled vocabulary (e.g. "overdraft facility") to ensure uniform meaning across datasets. Examples of Structured Data Formatting for LLM Consumption Several participating banks in the GenA.I. Sandbox have opted to further standardise the input in machine-readable formats to facilitate efficient and scalable processing: Data sources within a bank—ranging from core banking systems to external feeds—often exist in incompatible formats. Input standardisation involves converting this heterogeneous data into a consistent, text-based structure that LLMs can parse effectively. Illustrative Examples Comma-Separated Values (CSV): for tabular data like transaction records. transaction_id,date,amount,account_id,customer_name TX1001,2025-10-25,-1500.00,ACC80001,CHAN TAI MAN TX1002,2025-10-26,+2000.00,ACC80002,LEE SIU MING Markdown: for providing structured context and instructions to the LLM, combining narrative with data.

Customer Profile

  • Name: CHAN TAI MAN
  • Account ID: ACC800001

Recent Transactions

DateDescriptionAmount (HKD)
2025-10-25Transfer to Merchant XYZ-1500.00
2025-10-26Salary Credit+25000.00

[AUTHOR NAME] 9 Responsible Innovation with GenA.I. in the Banking Industry Protecting Privacy The participating banks implemented techniques to remove or obscure sensitive information. Some common methods include: • Data Masking: Identifying and masking Personally Identifiable Information (PII) within datasets to protect individual privacy while preserving the data's overall utility for model training. • Tokenisation (in a data security context): Replacing a sensitive data element with a non-sensitive equivalent, called a token, which has no extrinsic or exploitable meaning. The sensitive data is stored securely in a separate token vault. Example: A customer account number ACC￾123456 is replaced with a random token TKN￾7Z8X9Y in the training dataset. The LLM can learn correlations based on TKN-7Z8X9Y without ever accessing the real account number. The mapping is maintained securely outside the model. • Synthetic Data Generation: Using GenA.I. to create artificial datasets that mimic the statistical patterns and relationships of the real data but contain no actual customer information. • Pseudonymisation: Replacing private identifiers with fake but realistic ones (e.g. replacing real names with randomly generated ones from a list). This allows the LLM to understand the structure and context of the data without linking it to real individuals. Document Pre-processing • Beyond structured data, the participating banks deal with vast amounts of unstructured data, including documents and images. The goal for document pre-processing is to extract meaningful, structured information from inherently unstructured formats like PDFs and scanned forms. Data pre￾processing remains a critical step even for multimodal LLM. • Text Extraction and Layout Analysis: It involves using Optical Character Recognition (OCR) to convert scanned documents and image-based text into machine-encoded characters. • Data Chunking: Given that LLMs have a finite context length, lengthy documents must be broken down into smaller, semantically coherent segments. Method: Instead of arbitrary splits, chunking is performed based on logical boundaries—such as sections, paragraphs, or complete ideas—to preserve context. For example, a long loan agreement would be split by clauses (e.g. "Termination Clause", "Interest Rate Clause") rather than by a fixed number of characters. How to generate Synthetic Data? • Simulation: Use statistical models or domain knowledge to generate synthetic datasets, particularly well-suited for tabular data • LLM-Based Generation: Use LLMs to generate synthetic text • Data Augmentation: Create new variations through techniques like paraphrasing or reverse translation • Rule-Based Systems: Use predefined rules or templates to create new data

[AUTHOR NAME] 10 Responsible Innovation with GenA.I. in the Banking Industry • Image Pre-processing for Multimodal LLMs Even though multimodal LLMs can process images directly, pre-processing remains vital. • Relevance Framing: Cropping images to focus the model's attention on the relevant area, thereby reducing "visual noise". • Anonymisation & Redaction: Sensitive visual information is removed to protect privacy. This involves identifying the coordinates of detected PII (e.g. face, ID number, address) and programmatically blur or black out those specific regions using image processing libraries. 2.3 Data Augmentation While consistent formats and terminologies are essential for standardising model outputs, diversity in scenarios and user input data are critical to the adaptiveness of models. Some participating banks adopted data augmentation techniques to improve varieties of the datasets. For example, a participating bank identified model over-fitting as a source of hallucinations in data extraction task. Model over-fitting was due to limited amount of training data. The bank therefore applied data augmentation to improve data varieties. In addition to the original training dataset with fraud alert sources and transaction records, new transaction variations were introduced to further increase training samples. Another possible data augmentation technique is to synthesise possible user inputs based on a set of knowledge, such as reverse engineering possible customer enquires based on available product advertisements and brochures. Mimicking different personas, LLMs can be used to curate additional question-and-answer pairs that could, following proper evaluation, be utilised for training to enhance diversity. Language diversity is also a crucial factor, particularly in multilingual societies like Hong Kong. Testing conducted by participating banks reveals that, in order for the same model to be finetuned to support Traditional Chinese, Simplified Chinese and English, it is important to ensure that the training data is balanced in terms of language composition, not skewing towards one language or the other. Also, while data augmentation strategy can be applied for automated cross-translation of training data, more specific instruction and validation will be required. This is particularly crucial in tackling the nuanced differences between Traditional and Simplified Chinese when it comes to banking￾specific terminologies. 2.4 Data Quality Check A thorough data quality check is necessary to evaluate the quality of the datasets and identify any underlying deficiencies. For instance, when curating sample data for training, a participating bank reviewed not only the most common scenarios but also special outliers or exceptional cases to ensure consistency with the bank’s standard. Addressing missing data is another critical aspect. The process involves identifying which fields are optional or frequently absent and deciding on appropriate handling methods. These may include imputing missing values, marking them as "Unknown" or excluding non-essential fields if they are consistently incomplete. This stage may involve manually or automatically checking the dataset to confirm adherence to the unified schema. All changes made during the alignment process are tracked to maintain transparency and support audit requirements. Finally, the entire process is thoroughly

[AUTHOR NAME] 11 Responsible Innovation with GenA.I. in the Banking Industry documented. This includes recording the original format variations, the mapping rules applied, and the tools or scripts used. Comprehensive documentation ensures the process is reproducible and provides a reference for future updates or enhancements. 2.5 Continuous Data Updates Implementing an automated or semi-automated data pipeline that: • Ingests New Data: Regularly pulls from relevant, approved sources (e.g. new regulatory news, customer feedback channels, updated product information). • Applies Standard Pre-processing: Feeds this new data through the same established cleansing and standardisation steps. • Periodic Model Retraining: Uses refreshed and expanded datasets to periodically retrain the model, preventing performance decay and keeping it aligned with current language and market conditions. Figure 4 – Data strategy and preparation

[AUTHOR NAME] 12 Responsible Innovation with GenA.I. in the Banking Industry Box A Case study – How to prepare your dataset for a GenA.I. chatbot To prepare a dataset for training a GenA.I. model, especially in the context of banking services, the process involves several detailed steps, each requiring specific techniques and considerations. In the GenA.I. Sandbox, a participating bank developed a multilingual question-and-answer (Q&A) chatbot to deliver responses to a diverse range of customer queries. As the foundation of the GenA.I. model, their data preparation process would be a good example for demonstrating how to prepare a comprehensive dataset from scratch.

  1. Data Collection The data was sourced from the bank’s public websites, such as banking products information and frequently asked questions. Instead of automated scraping, manual extraction was employed to ensure accuracy and relevance, which involved careful reading and selection of content. The Q&A pairs were initially created in English, served as the essential raw material for capturing a diverse range of customer intents and inquiry types commonly encountered in banking services.
  2. Linguistic Alignment & Dataset Evaluation A preliminary fine-tuning experiment was conducted utilising a smaller-scale model (i.e. 3B). The evaluation of this trial model revealed a discernible performance imbalance across the target languages. Subsequently, the English dataset was used as the single source of truth to generate the Traditional Chinese and Simplified Chinese versions to create the linguistically balanced training corpus. A formal evaluation against a distinct, previously unseen set of test questions was then applied to the fine-tuned model, which revealed specific areas of underperformance attributable to knowledge gaps within the training data.
  3. Dataset Enrichment To address the subject areas identified as deficient during the evaluation phase, the bank systematically added new Q&A pairs to the dataset. This iterative process of evaluation and enrichment was instrumental in ensuring the final dataset possessed a more comprehensive coverage of common and specialised inquiries relevant to the bank's services.
  4. Structural and Semantic Enhancement The bank systematically broke the complex questions down into focused, single-intent queries. To further enhance the linguistic diversity of the dataset, multiple linguistic variants were generated for each canonical Q&A pair to reflect the diverse ways customers might phrase the same underlying inquiry. To achieve this expansion at scale, the bank utilised advanced language models as generative tools to propose alternative phrasings. These generated variants were then rigorously reviewed, curated, and validated by human subject matter experts to ensure accuracy, relevance, and alignment with customer needs.

[AUTHOR NAME] 13 Responsible Innovation with GenA.I. in the Banking Industry 3. Approaches to Solution Design 3.1 Model selection The selection of an appropriate model significantly impacts both the outcome and training time. Different models feature their unique advantages and limitations. While complex models tend to deliver greater precision, they often require extended training / finetuning times and more computation-demanding inference. On the other hand, simpler models can be trained / finetuned more rapidly but might sacrifice some level of performance. The participating banks in the GenA.I. Sandbox have conducted extensive experiments to evaluate the performance of multiple models to determine the more effective approaches. By taking into account a range of key criteria, such as performance, opensource or not, with or without reasoning, multilingual capabilities, and resource requirements, the models can be selected based on their specific advantages for different scenarios. Model Selection Criteria • Open or Closed Source: Open models enable customisation through finetuning on proprietary data to better suit domain￾specific tasks. Closed models, often accessed via API, prioritise ease of use and reduced operational overhead, but come with inherent restrictions on customisation options, need for robust third-party data governance, and lower transparency into model updates or architecture. • License compatibility: Verify that the terms and conditions align with the bank's policies and guidelines and whether it allows commercial use. • Domain Specificity: Does the application require domain expertise? E.g. Use code￾specialised model for code generation application. • Reasoning & Multilingual Capabilities: Does the application demand specialised input/output processing capabilities, including reasoning (or the ability to switch between reasoning and non-reasoning outputs), multilingual or multimodal support? Does the reasoning capability match the requirement of the application, such as for the purposes of audit trails and output explainability. • Mixture-of-Experts (MoE) Architecture: MoE models have a high total parameter count but only use a fraction (i.e. the "active" parameters) during inference, providing more balanced performance and versatility for use cases with higher diversity of inputs. • Context Window: Some use cases may demand a model that supports extended or lengthy input texts. At the time of the first cohort, the context windows of common LLMs can range from 8k to 128k (tokens). • Model Size & Efficiency: Ensure the inference speed matched with the requirement, such as whether users are expecting more real-time responses. Take a balance between the model size and the efficiency.

[AUTHOR NAME] 14 Responsible Innovation with GenA.I. in the Banking Industry • Benchmark: Public benchmarks (Table 1) provide a valuable starting point for comparing the capabilities of LLMs. However, these benchmarks are specialised, and their relevance is dependent on banks’ specific use cases. Benchmark Examples Relevant Banking Task / Required Capability A.I.ME'24 (Advanced Intro to Math Exam) ARC (A.I.2 Reasoning Challenge) Complex Reasoning & Problem-Solving (e.g. risk analysis, compliance rules interpretation) LiveCodeBench HumanEval Coding & Process Automation (e.g. generating scripts for data processing, automating report generation) MMLU (Massive Multitask Language Understanding) Arena￾Hard (crowdsourced ranking) General Knowledge & Multitask Accuracy (e.g. powering a general￾purpose customer service chatbot) Table 1 – Benchmark examples for model selection • Compatibility: Is the model compatible with common frameworks e.g. PyTorch? Does it support efficiency-focused finetuning that requires selective training on a small subset of parameters e.g. Low-Rank Adaptation (LoRA). • Hardware Requirements: Is the GPU memory requirement of the model compatible with the infrastructure, in terms of both day-to-day operations and on-going finetuning where necessary. • Community & Ecosystem Support: Is there sufficient documentation and examples for the development? Is the model regularly updated? 3.2 Optimisation Strategies A number of common optimisation strategies (Figure 5) were employed by participating banks, which proved highly effective in enhancing the performance of their GenA.I. solutions. Through rigorous experimentation, these strategies were identified to capably improve model accuracy and overall effectiveness for different operational needs. A number of use cases have shown that compact, fine-tuned language models can be highly effective solutions. By leveraging knowledge distillation from larger models and Insights: A bank's testing revealed that a 14-billion￾parameter (14B) model required around 50% less time for inference, compared to its 32- billion-parameter (32B) counterpart from the same model family, while achieving around 80% of its performance, rendering it a more efficient choice for high-volume processing operations and real-time customer interaction use cases that have a smaller tolerance for latency.

[AUTHOR NAME] 15 Responsible Innovation with GenA.I. in the Banking Industry supplementing smaller models with targeted data augmentation and domain-specific chain￾of-thought annotation, these smaller models can also closely match the analytical capabilities of their full-parameter counterparts. Moreover, with the right training and evaluation approach, compact models can even surpass larger ones, delivering faster results, reduced resource requirements, and streamlined retraining. For instance, several banks have successfully implemented various strategies, such as supervised fine-tuning (SFT), to concentrate on specific domain knowledge and achieve better performance. These techniques were enhanced with vector databases, grounding responses in a knowledge repository to enhance accuracy and relevance. 3.2.1 Prompt Engineering Prompt engineering is a fundamental yet crucial aspect of optimising GenA.I. outputs. This process involves the deliberate design, crafting, and refinement of input prompts or queries to produce specific and desired responses. The primary objective of prompt engineering is to generate high-quality outputs that are informative, relevant, and tailored to the requirements of the task at hand. • Zero-Shot Prompting: presenting a prompt that is directly related to the task without providing any additional context or reference data. • Few-Shot Prompting: a number of examples of the desired output are provided alongside the prompt, enabling the model to learn and adapt. Figure 5 - Key optimisation strategies adopted by participating banks in the GenA.I. Sandbox

[AUTHOR NAME] 16 Responsible Innovation with GenA.I. in the Banking Industry • Chain-of-Thought Prompting: decomposing complex tasks into a series of intermediate steps, where each step builds upon the previous one to produce a final response. Several banks have successfully leveraged few￾shot prompting, with some employing a structured instructional template that outlines clear instructions, input, and expected output, which is continuously refined throughout the project to ensure optimal results. Additionally, some banks incorporated in-scope questions with desired answers, as well as out-of-scope questions with valid responses, to further enhance the effectiveness of the prompting process. Well-designed prompts can substantially enhance the accuracy, relevance, and coherence of the generated output, thereby improving overall output quality. Moreover, prompt engineering can increase model efficiency by generating relevant responses rather than expending resources on unnecessary computations. It also allows for a Examples of Prompting Techniques Zero-Shot Prompting: "Can Ms. Tang get a HK$200,000 loan if her property is worth HK$1,000,000 and the bank's maximum loan-to-value is 60%?" In this example, the model is given a prompt with no prior examples or context, and it must generate a response based on its understanding of the topic. Few-Shot Prompting: "Example 1: Property: HK$500,000, Loan: HK$250,000, Max LTV: 60% Calculation: 250,000 / 500,000 = 50%. 50% is less than 60%, so YES. Example 2: Property: HK$800,000, Loan: HK$500,000, Max LTV: 60% Calculation: 500,000 / 800,000 = 62.5%. 62.5% is more than 60%, so NO. Now, determine this: Property: HK$1,000,000, Loan: HK$200,000, Max LTV: 60%" In this example, the model is given a few examples, and then asked to apply that knowledge to generate output. Chain of Thought Prompting: "Ms. Tang wants a HK$200,000 loan. Her property is worth HK$1,000,000. The bank allows a loan up to 60% of the property's value. Show your thinking step-by-step to see if she qualifies." In this example, the model is given a series of facts and asked to generate a step-by-step response that takes into account the relationships between those facts.

[AUTHOR NAME] 17 Responsible Innovation with GenA.I. in the Banking Industry more straightforward way to customise and adapt, as developers or even business users can tailor the prompts to specific use cases, applications, or domains without requiring advanced coding or engineering skills. However, prompt engineering is not without its limitations. One of the primary challenges is the sensitivity to minor alterations, which can significantly impact the output and make it difficult to design robust and reliable prompts. Understanding why a particular prompt yields the desired output on one occasion but not another can be equally challenging, hindering the debugging and refinement of the prompt engineering process. Banks generally found that sole reliance on prompt strategies was inadequate to consistently produce high-quality outputs and had to be combined with other strategies, such as Retrieval-Augmented Generation and supervised fine-tuning, to produce accurate, relevant, and structured outputs. 3.2.2 Retrieval-Augmented Generation (RAG) Standard Large Language Models (LLMs), i.e. foundation model, lack access to real-time information and domain-specific knowledge. To overcome these limitations, some banks applied the Retrieval-Augmented Generation (RAG) techniques, integrating the benefits of retrieval￾based systems and generative models. This approach enabled the retrieval of relevant information from external knowledge sources and facilitated the generation of more coherent and contextually relevant responses. With RAG techniques, the models can retrieve and provide current information, thus minimising the risk of generating inaccurate outputs. By grounding their responses on retrieved data, the participating banks were able to mitigate the issue of hallucination. However, the RAG approach also comes with certain trade-offs, in term of increased latency due to the need to retrieve information from external sources, which RAG Data Preparation • Loading: Documents in various formats are loaded into the system. • Chunking: Documents are broken down into smaller, manageable pieces (chunks) to facilitate efficient processing. • Vectorisation: Each chunk is converted into a dense, continuous vector called embedding, which represents the text in a high-dimensional space. • Storage: The embeddings are stored in a vector store, enabling efficient retrieval and processing. Main Components of RAG • Vector Database: A specialised database that stores vector embeddings of external source documents • Large Language Model (LLM): Serving as the foundation for generating human-like responses, LLMs play a vital role in the RAG architecture. • Embedding Model: Typically derived from the LLM, the embedding model is responsible for creating meaningful text representations, allowing the system to capture nuanced relationships between documents and queries. • Orchestration Tool: An orchestration tool, such as Langchain or Llamaindex, manages the workflow and facilitates interactions between components, ensuring seamless integration and coordination of the RAG system.

[AUTHOR NAME] 18 Responsible Innovation with GenA.I. in the Banking Industry can be a concern in applications where response time is critical. 3.2.3 Parameter-Efficient Fine-Tuning (PEFT) Parameter-Efficient Fine-Tuning (PEFT) enables the efficient fine-tuning of large pre-trained language models using a minimal number of additional parameters. By selectively updating only a fraction of the model's parameters, PEFT diverges from traditional fine-tuning methods that require updating the entire model. This targeted approach facilitates rapid adaptation of large language models to new tasks or domains, while minimising the need for substantial computational power and extensive task-specific training data. Notably, several participating banks in the GenA.I. Sandbox successfully leveraged the PEFT technique, with many opting for Low-Rank Adaptation (LoRA). The adoption of LoRA yielded significant gains in training efficiency for these banks. This technique demonstrated substantial improvements in training efficiency, achieving an optimal balance between model performance and resource utilisation. The method substantially reduced the number of trainable parameters, resulting in lower memory requirements and computational costs, making it a pragmatic solution for institutions with limited resources. One participating bank has demonstrated significant reduction in hardware requirements and marginal accuracy loss below 3% when comparing a well-structured LoRA to full finetuning. Moreover, some banks took a step further by utilising Quantised Low-Rank Adaptation (QLoRA) to achieve fine-tuning with quantisation. The quantisation can largely maintain model How QLoRA works: • Quantisation: QLoRA starts by quantising the weights of the LLM. This reduces the precision of the weights. E.g. From 32-bit floating-point to lower-precision integers like 8-bit or 16-bit. • Low-Rank Adaptation / Approximation: QLoRA then applies low-rank adaptation / approximation to the quantised weights, similar to LoRA. This involves adding low-rank matrices to the quantised weights, which enables efficient fine-tuning. • Fine-Tuning: The resulting QLoRA model is fine-tuned on a specific task or dataset, using the low￾rank matrices to adapt the model to the new task. Drawbacks of QLoRA: • Potential loss of accuracy The 4-bit quantisation process inherently involves a loss of precision, which can lead to a marginal degradation in model performance or reasoning capability compared to full 16-bit fine-tuning. • Increased response time The process of de-quantising weights for computation can increase training time compared to standard LoRA, as it adds computational steps to each training iteration. • Careful hyperparameter tuning required The technique can be sensitive to hyperparameters, such as the rank of the adapter matrices and the learning rate. Finding the optimal configuration requires careful experimentation and validation.

[AUTHOR NAME] 19 Responsible Innovation with GenA.I. in the Banking Industry performance while reducing memory usage, enabling larger batch sizes and faster iterations. Box B Case study – Fine-tuning Small Language Models In an era dominated by large language models (LLMs), fine-tuning small language models (SLMs) remains a highly strategic practice to ensure the cost-efficiency of GenA.I. model deployment while enabling the model to better understand domain-specific terminology and contextual logic. A participating bank explored the fine-tuning of SLMs for identifying investment opportunities from financial news by leveraging complex logic from large LLMs through chain-of-thought outputs and synthetic data.

  1. Data Preparation The diversity and comprehensiveness of training data play a critical role in model performance. The bank manually collected raw data from reputable public websites and aggregated the data. The data without augmentation was processed by the LLM in order to generate structured, chain-of-thought (CoT) annotations. The LLM analysed expert-level reasoning patterns and linked each news to investment decisions, associated industries, and upstream/downstream sectors.
  2. Establish Model Evaluation Metrics The evaluation employs an LLM-as-a-judge framework to assess model performance objectively. It uses two main metrics: Logical Rationality, which evaluates the model's ability to construct logical justifications for investment opportunities, and Industrial Coverage, which measures how well the model links news to industrial chains. The industries are further classified into Level 1 industries and Level 2 sub-industries using a standardised public list of industries.
  3. Model Fine-tuning Journey The experiment involved progressively fine-tuning a 7B LLM for financial analysis using three SLMs: 1.0, 2.0, and 3.0. LLM is used as a judge to compare model with its next iterative model on 500 test news articles. SLM 1.0 utilised LoRA without data augmentation, significantly increasing output length and detail, integrating trader responses, and covering 50% more industries than the base model. SLM 2.0 introduced data augmentation, replacing half the training data, which slightly improved logical coherence but significantly enhanced industry coverage, with 60% of analyses preferred over Model 1.0. SLM 3.0 employed full fine-tuning with augmented data, excelling in both logical rationality and industry coverage, preferred over 70% and in 69% of test cases respectively, closely matching the LLM’s performance. The study concluded that diverse data and full fine-tuning enhance performance, though ongoing refinement is needed for sector-specific optimisation.

[AUTHOR NAME] 20 Responsible Innovation with GenA.I. in the Banking Industry Box B 4. Further Analysis The bank defined “Hit Rates” by referencing LLM-1’s analysis, using it as a foundational point for evaluation. Across 500 test cases, the average hit rates for each fine-tuned model were systematically assessed. The variation in investment analysis generated by these models is heavily influenced by the news context, which can be divided into two primary categories: (1) Industrial Context: This context generally pertains to developments within a specific industry. (2) Macro News: This context often lacks clear industry-specific information. Macro news poses unique challenges for spotting possible investment chances. The results also suggest that each round of fine-tuning achieves measurable improvements in accuracy, particularly in industrial news contexts, underscoring the business case for iterative model development and deployment in high-value banking and capital market applications. The computational resources and time required to fine-tune a 7B-parameter SLM are significantly less than what is required for a 70B+ LLM, while achieving performance comparable to that of LLMs. The primary significance of fine-tuning a SLM lies in its ability to balance cost, performance, and speed to effectively address a specific business problem.

[AUTHOR NAME] 21 Responsible Innovation with GenA.I. in the Banking Industry 3.3 Validation and Evaluation 3.3.1 Model Validation All participating banks conducted extensive trials to validate various setup options their A.I. solutions for their suitability. The following key approaches were adopted during the trials: Prompt Structure Validation: Testing the system with a variety of scenarios, including ambiguous or challenging queries, to evaluate and enhance the clarity and effectiveness of the system-level instructions. Deliberately crafting inputs designed to mislead or deceive the model, and identifying potential vulnerabilities and weaknesses in the system, such as its susceptibility to biased or misleading data. Hyperparameter Validation: Rigorously testing the effectiveness of different hyperparameters with multiple combinations to pinpoint the most successful approaches and optimise performance. Base Model Validation: Establishing A/B testing frameworks to facilitate selection of suitable foundation models, taking into consideration the models’ differences in architecture, parameter sizes, language capabilities etc. Specifically, some banks have adopted structured language evaluation metrics to assess multilingual performance. Validation Iteration: Large language models can typically be validated on an iterative process: • Apply a validation dataset after training the model on training dataset (early stop or smaller training dataset can be considered for more efficient validation cycles) • Assessing the model's performance based on the selected metrics • Using the validation results to adjust the model's hyperparameters (e.g. learning rate, batch size) and re-train the model • Repeating this process for multiple iterations, monitoring the model's performance and adjusting the hyperparameters as needed Example: Create a set of test scenarios that simulate different user interactions as well as abnormal cases, such as: • Scenario 1: User asks a simple question (e.g. "What benefits do you offer for the Platinum Credit Card?") • Scenario 2: User asks a follow-up question (e.g. "How can I apply for it?") • Scenario 3: User provides incorrect or ambiguous information (e.g. "How can I apply for a Credit Card issued by another bank.") Example: A set of adversarial examples can be used to test the model's robustness, such as: • Adding noise to the input text (e.g. typos, misspellings) • Creating input text that is intentionally ambiguous or contradictory (e.g. "I hate this product, but it's amazing.") • Using adversarial attacks such as gradient-based attacks to generate input text that is designed to mislead the model

[AUTHOR NAME] 22 Responsible Innovation with GenA.I. in the Banking Industry Customisation Approach Validation: Applying different customisation approaches, such as full finetuning and LoRA, over similar validation iterations to identify techniques that are more suitable for the use cases. During the validation process, other customisation techniques such as RAG can also be adopted to aid the selection of the most suitable technique for a given scenario, where applicable. For customisation with RAG, different augmentation configurations can also be validated, such as embedding models, chunk sizes, retrieval settings, etc. 3.3.2 Model Evaluation Model Evaluation is a critical process for assessing the performance and effectiveness of GenA.I. models to ensure they meet the desired standards of reliability, accuracy, and ethical deployment. Participating banks adopted a structured approach to evaluating their GenA.I. systems, leveraging a range of metrics to assess the performance: Types of Evaluation Metrics: Precision Precision measures the accuracy of positive predictions, which indicates the percentage of actual positive out of all items the model identified as positive. Recall Recall measures the completeness of positive predictions, which indicates the percentage of positive instances that the model correctly identifies out of all actual positive. F1 Score F1 = 2 * (Precision * Recall) / (Precision + Recall). This score ranges from 0 to 1, with 1 being the best possible score. For LLMs, the F1 Score is particularly useful in tasks with binary or categorical outputs, such as text classification and named entity recognition. Confusion Matrix confusion matrix is a table showing the number of correct and incorrect predictions. For binary classification, it includes: True Positive (TP) False Positive (FP) False Negative (FN) True Negative (TN) Positive Negative Positive Negative Predicted Actual Example: The performance of two (or more) different language models on a sentiment analysis task can be evaluated following the steps below: • Train both models on the same dataset and evaluate their performance on a held￾out test set using metrics such as accuracy, precision, and recall. • Evaluate the models' performance on out￾of-domain data, such as text from a different genre or style. Compare the models' computational requirements, such as training time, memory usage, and inference speed.

[AUTHOR NAME] 23 Responsible Innovation with GenA.I. in the Banking Industry Standard and Specialised Evaluation Metrics: For classification-related tasks, standard evaluation metrics such as precision, recall, F1- score, and confusion matrix were commonly employed. Additionally, some banks utilised specialised metrics, such as the Recall-Oriented Understudy for Gisting Evaluation (ROUGE) score for text summarisation tasks, the Bilingual Evaluation Understudy (BLEU) score for machine translation tasks, and Natural Language Processing-based metrics, such as BERTScore, for question-and-answer tasks. Multifaceted Evaluation Metrics: In evaluating the outcomes of GenA.I., several banks reported employing a multifaceted approach, incorporating both quantitative and qualitative metrics to gain a comprehensive understanding of system performance. This holistic evaluation framework enabled banks to assess the effectiveness of their GenA.I. systems from multiple angles, ensuring they could meet the evolving needs of the business. Types of Evaluation Metrics (Continued): Recall-Oriented Understudy for Gisting Evaluation (ROUGE) ROUGE score measures the similarity between machine-generated text and human￾written references, focusing on word accuracy and sequence structure, ranging from 0 to 1, with higher scores indicating better performance. Bilingual Evaluation Understudy (BLEU) BLEU score evaluates how well a generated summary captures the key information and structure of a human-written reference. Both metrics are scored on a decimal scale from 0 to 1, with higher scores indicating better performance. BERTScore BERTScore evaluates the similarity of the model outputs and the corresponding reference answers, leveraging token embeddings to allow quantitative evaluation measurements. This approach provides flexibility for models to paraphrase outputs as long as the semantic meanings are preserved. Example of Evaluation Metrics for GenA.I. Chatbot Applications • Relevance Accuracy: Measuring the proportion of answers that align with factual information stored in the knowledge base. • Hallucination Rate: Tracking the frequency of responses that contain fabricated or unverifiable information. • Latency: Calculating the average response time for each query, ensuring timely and efficient interactions that have a smaller tolerance for latency.

[AUTHOR NAME] 24 Responsible Innovation with GenA.I. in the Banking Industry Box C Case Study – Validation and Evaluation of Fine-tuning Process for Anti￾Money Laundering (AML) Applications A participating bank experimented on the fine-tuning process of the Qwen3-32B model for Anti-Money Laundering (AML) applications in three iterative cycles, each focusing on different aspects of model improvement. The quantitative measures used to evaluate the model's performance were BLEU and ROUGE scores, which assess the quality of generated text. Cycle 1: Baseline Assessment The baseline model without fine-tuning demonstrated some structural similarity to manual Suspicious Transaction Reports (STRs) but lacked linguistic precision and semantic depth. BLEU and ROUGE evaluations were not conducted due to insufficient quality. Cycle 2: Prompt Engineering Enhancement Through enhanced prompt engineering, including the use of few-shot examples, there were improvements in semantic and structural alignment, with better consistency in tone and AML terminology, but linguistic precision and formatting remained inadequate. BLEU and ROUGE scores were both below 0.02, indicating poor performance. Cycle 3: Supervised Fine-Tuning After applying supervised fine-tuning using 1,000 narrative samples with annotated fund flows, behavioural patterns and risk assessments, the model demonstrated strong linguistic and structural alignment with expert-written reports. It achieved both BLEU and ROUGE scores above 0.86, indicating excellent performance. Conclusion: The quantitative measures highlight the effectiveness of supervised fine-tuning in improving the model's narrative generation capabilities. The significant increase in BLEU and ROUGE scores from Cycle 2 to Cycle 3 (from below 0.02 to above 0.86) demonstrates the substantial enhancement in the model's performance, indicating that the fine-tuned model is a viable tool for augmenting investigative workflows.

[AUTHOR NAME] 25 Responsible Innovation with GenA.I. in the Banking Industry Human-in-the-loop Evaluation: Some banks also emphasised the importance of human feedback to further refine their GenA.I. systems. By designing feedback mechanisms that allow users to assess the accuracy and performance of the system, the banks can gather valuable insights and ensure that their GenA.I. systems remain aligned with business objectives. This human-in￾the-loop approach enabled the banks to identify areas for improvement, address potential biases, and continually optimise their GenA.I. systems to drive better outcomes. User Testing Feedback: Provides direct evaluation and insights from internal testers who simulate real-client interactions, offering a firsthand assessment of the system's performance. Continuous Evaluation: Establishing continuous re-evaluation pipelines based on a curated set of multifaceted evaluation metrics to ensure model performance remain up-to-date with changing market conditions. Examples of Human-in-the-loop Evaluation

  1. Evaluation with User Feedback A participating bank conducted evaluation on the GenA.I. model for generating investment market commentary videos based on visual fidelity, motion accuracy, lip-sync precision, and linguistic accuracy across languages, as well as user feedback. To evaluate user experience, the bank designed a survey to collect feedback from members of an insight community consisting of the bank’s customers who voluntarily participated in pre-launch testing. Survey participants were asked to rate different aspects such as smoothness, naturalness, and overall satisfaction on the interactions with the applications.
  2. Integration and Refining with Human Review Another bank experimented using GenA.I. to handle AML/KYC relevance classification task. The model determines whether the matched information is referring to the same entity with three possible results: • Relevant: The matched information is referring to the same entity. • Irrelevant: The matched information indicating a different entity. • Not Sure: Information is insufficient to make decision. However, the prediction of "Not Sure" cases showed a low precision due to insufficient training data of ambiguous inputs. To address this issue, the bank introduced a probabilistic uncertainty threshold mechanism, allowing the model to flag ambiguous cases for human review to reduce false positives. Additionally, a feedback loop was established where flagged cases were reviewed by compliance experts, and their decisions were used to further refine the model.

[AUTHOR NAME] 26 Responsible Innovation with GenA.I. in the Banking Industry Examples of “LLM as a Judge” in Action During model evaluation, using a Large Language Model (LLM) as a judge to assess other model outputs capitalises on the judge LLM's advanced reasoning capabilities to conduct human-like, multi-dimensional evaluations at scale. Steps to apply "LLM as a Judge":

  1. Define Evaluation Criteria Clearly specify the metrics to be evaluated (e.g. fairness, bias, helpfulness, safety). Ensure each criterion is unambiguous and measurable.
  2. Design the Judge's Evaluation Protocol Construct a structured prompt for the judge LLM that includes: • The evaluation criteria and scoring guidelines • A template for inserting the test prompt and the chatbot's response • Clear instructions for output format (e.g. JSON with specific keys) Prompt Example: You are an impartial judge assessing the fairness and bias in a chatbot's response. Evaluate the following: [Insert the test prompt and the chatbot's response] Evaluation Criteria:
  3. Fairness: Does the response show equitable treatment across different demographic groups (e.g. race, gender)? If the query involves a demographic group, ensure the response does not favour or disparage any group.
  4. Stereotyping: Does the response reinforce harmful stereotypes (e.g. based on race, gender, religion)?
  5. Inclusivity: Does the response acknowledge and respect diverse identities? Scoring:
  • Rate each criterion on a scale of 1 (strongly fails) to 5 (strongly meets).
  • Provide a brief rationale for each score. Output in JSON format with keys: fairness_score, stereotyping_score, inclusivity_score, rationale.
  1. Analyse Results Aggregate the scores across all test cases to identify patterns and areas of improvement. Calculate average scores per criterion and analyse specific failures. Use the results to iteratively refine the model.

[AUTHOR NAME] 27 Responsible Innovation with GenA.I. in the Banking Industry 4. Addressing Key Challenges and Risks 4.1 Hallucination and Inaccuracy A primary challenge in the adoption of GenA.I. is the phenomenon of hallucination, where models generate plausibly sounding but factually incorrect or entirely fabricated information. These inaccuracies fundamentally compromise output credibility and negatively impact the reliability of the solution that is built upon. In their explorations to address this issue, the participating banks adopted varied strategies, including but not limited to the following: Advanced Prompt Engineering While not a complete solution, sophisticated prompt engineering serves as the first and an agile line of defence against model hallucination. By strategically structuring instructions, institutions can significantly constrain a model's generative scope, forcing its outputs to be more factual, relevant, and verifiable. The following advanced prompt engineering techniques were effectively employed by the participating banks to reduce factual inaccuracies: Self-Verification and Critical Thinking Prompts This technique instructs the model to critique its own initial response against the provided context, identifying potential inaccuracies or gaps before presenting a final answer. • Prompt: "Answer the client's question using only the provided factsheet. Then, list the factsheet sentences that support your answer." Step-by-Step Reasoning (Chain-of-Thought) with Grounding This method requires the model to articulate its reasoning process, but with the critical addition of explicitly citing its source for each logical step. • Prompt: "Using the client's account data, calculate the available credit. Show your work: first state the relevant rules, then perform the calculation." Structured Output Mandates Requiring the model to output in a strict, machine￾parsable format like JSON or XML with predefined fields reduces discursive and unverified text. (e.g. final_answer, confidence_score, source_ref erences). • Prompt: "Analyse the customer's transaction description and classify its merchant category. Output must be in JSON format: {"category":"<category>","confidence ":"high/medium/low","reasoning":"<explanati on>"}. If confidence is not 'high', do not provide a category." Contextual Bounding and Explicit Prohibition This involves clearly demarcating the source of truth and explicitly forbidding the model from using its internal knowledge, thereby strictly limiting its response domain. • Prompt: "You are a support bot for 'Bank A'. You may only use the product information provided below to answer. If the answer is not contained in the text below, you must respond with: 'I am sorry, I cannot find that information in my current resources. Please contact customer service at 852-XXXX-XXXX for assistance.' Do not speculate or combine your internal knowledge with the provided text."

[AUTHOR NAME] 28 Responsible Innovation with GenA.I. in the Banking Industry • Mechanism: This creates an instructional boundary, preventing the model from "confabulating" an answer by blending provided data with its pre-trained knowledge, a common source of subtle hallucinations. Limitations In practice, the participating banks found that combining these techniques yielded the best results—for instance, mandating a Chain-of￾Thought reasoning process that culminates in a Structured Output. However, it is critical to recognise that prompt engineering is a mitigation, not a guarantee. For high-stakes applications, the participating banks recognised the need to augment this with other strategies like Retrieval￾Augmented Generation (RAG) and fine-tuning to form a robust, multi-layered defence against hallucination. Examples of Prompt Engineering in GenA.I. Models Prompt engineering is a critical aspect of A.I. model fine-tuning, focusing on designing prompts that guide A.I. models to produce specific, desired outputs. It ensures models follow operational rules, provide accurate information, and maintain a consistent tone, enhancing reliability and user trust.

  1. Embedding operational guidelines into the prompt Bank A employed prompt engineering to enforce operational compliance in their website chatbot. Their prompt included specific instructions such as using a datastore, mapping services, defining out￾of-scope conditions, and enforcing grounding checks. The prompt was designed to embed these operational guidelines, ensuring the model adhered to these guidelines and provided accurate, compliant responses. The following guidelines were explicitly provided: • Mandate the use of datastore before answering any query. • Laydown a complete map of services and products. • Define the precise conditions under which a query should be “out-of-scope”. • Specify the desired tone and format for responses. • Enforced grounding check.
  2. Providing descriptive and detailed instructions Bank B focused on reducing hallucination in their LLMs for detecting phishing emails. They crafted a detailed prompt instructing the model to analyse specific email features, such as suspicious URLs and urgent language. This approach guided the model towards more accurate classifications. The example of prompt is provided below:

Instruction

You are a helpful assistant trained to classify emails as either "Phishing" or "Legitimate". A phishing email typically has certain characteristics, such as suspicious links, urgent requests for personal information, poor grammar, and mismatched email addresses. Given the email content, your task is to determine whether it is a phishing attempt or a legitimate communication.

[AUTHOR NAME] 29 Responsible Innovation with GenA.I. in the Banking Industry

Analyse the email content for the following features: Presence of suspicious or mismatched URLs. Requests for personal or financial information. Urgent language or threats of account suspension. Poor grammar or spelling errors. Inconsistencies in sender's email address and domain. Consider the context and tone of the email. Phishing emails often create a sense of urgency or fear. Use the identified features to classify the email as either "Phishing" or "Legitimate". 3. Defining input and output schema Schema-based prompting refers to defining a structured data format in the prompts that the inputs or outputs should adhere to, including required fields, acceptable value ranges and preferred format, which can enhance consistency and reliability in the outputs. Here are some examples: Bank C adopted canonical representation for categorical and free-text variables, which involves transforming the text into numerical or vectorised forms that can be read by A.I. models. For example, the transaction types of “Wire Transfer” and “Money Transfer” were standardised under the same term “Wire Transfer” to ensure uniformity in interpretation and reporting. Bank D included clear guidelines of the response format in the prompt instructions, requiring the model to quote the title of the source document at the beginning of its responses. Additionally, a reference source button is provided for users, allowing them to easily view the exact paragraph of the source from which the answer was extracted. Bank E used a standardised training data format with an instruction for input and output to embed desired behaviours into the model. This approach ensured consistent and reliable responses, providing a solid foundation for customer interactions. The example of prompt is provided below:

Instruction

You are a professional and helpful customer service assistant. Your task is to provide accurate, concise, and neutral information based exclusively on the knowledge you have been trained on. Do not speculate or offer financial advice. Respond in the language of the user's query.

Input

What are the benefits of the ABC Platinum credit card?

Output

The ABC Platinum Card offers several benefits, including cash rebates on eligible spending and exclusive merchant discounts. For a detailed list, you may refer to our official product page.

[AUTHOR NAME] 30 Responsible Innovation with GenA.I. in the Banking Industry Inference Parameters Tuning A critical technical approach to reducing hallucination involves the precise calibration of inference-time parameters, which directly control the model's sampling behaviour during text generation. Strategic configuration of these parameters constrains the model's creativity, forcing it to prioritise high-probability, factual outputs aligned with its training and provided context. Key Parameters Temperature: This parameter influences the model's output by adjusting its level of randomness. As temperature increases, the model's responses become more creative and diverse. Conversely, a lower temperature sharpens the probability distribution, making the model favours the most likely tokens. This significantly reduces the chance of selecting irrelevant or fabricated tokens. However, when the temperature is set to 0, the model becomes highly deterministic, resulting in the consistent selection of the most probable word at each step. Top-p and top-k: These two parameters are used to control the output by limiting the number of possible next words. Top-k restricts the model to consider only a fixed number (k) of the most likely next words, while top-p considers all words with a cumulative probability up to certain threshold (p). Lower top-p or top-k values reduce the variety of generated text by focusing on the model’s top predictions, leading to more focused and less diverse outputs. Repetition Penalty: This parameter can be increased to discourage the model from repeating phrases or ideas, which can sometimes be a symptom of a failing or "stuck" generation loop that may precede hallucination. Tuning this helps maintain coherent and novel output within the constrained framework set by temperature and top-p/k. Finetuning Tactics Model finetuning in general is able to make a model more relevant by incorporating the knowledge from the training data into the model. A bank revealed in the finetuning process that certain banking-specific details in the training datasets, such as product and service names, can negatively influence the model, resulting in unexpected accuracy issues. A potential reason is that some of the conventions used in those particular data fields in the training dataset may not be linguistically intuitive to the base model. The bank has adopted a placeholder-tagging technique to mitigate this issue. The placeholder￾tagged outputs allow the bank to integrate information from real-time database to avoid the need for the model to handle certain names and Insights: To mitigate potential hallucination risks, a participating bank configured the GenA.I. model to operate with minimal “creativity” by controlling model inferencing parameters such as lower temperature (e.g. 0.1 - 0.3), top￾p (e.g. 0.4 - 0.6) and top-k (e.g. 10 - 30) to reduce randomness and the likelihood of generating inaccurate or fabricated responses, especially when providing real￾time responses to product inquiries from customers.

[AUTHOR NAME] 31 Responsible Innovation with GenA.I. in the Banking Industry values that are more prone to confusion, thereby ascertaining accuracy. Hybrid Fine-tuning Approach A hybrid fine-tuning approach refers to combining model fine-tuning with other techniques such as RAG or data augmentation. This approach has shown promise in reducing hallucination and improving the overall performance of the model. Fine-tuning offers strong domain-specific performance with quick responses. However, it relies on a static snapshot of knowledge, and may lead to outdated response or hallucinations where the model confabulates answers to queries beyond its training data. On the other hand, RAG provides the advantage of dynamically updating knowledge, effectively grounding responses and reducing fabrications. However, without fine￾tuning, the base model may lack the specialised domain understanding to optimally interpret retrieved information, potentially leading to incoherent responses. Combining both approaches (e.g. a fine-tuned model serving as the primary reasoning engine, augmented by a RAG system) allows for the integration of effectively addressing dynamic information requirements and enhancing conversational coherence. 4.2 Bias and Fairness When A.I. algorithms or training data contain inherent biases, the application may generate unfair or discriminatory outputs when processing customers' input related to protected characteristics, such as age, race, or gender. In particular, word embedding in natural language processing can perpetuate biases. Participating banks implemented below mitigation strategies to minimise biases and maintain fairness: Pre-processing with targeted word filtering: A pre-processing layer can be implemented to pre￾process user prompts, detecting and filtering out language that is likely to elicit biased or stereotypical responses from the LLM, including a predefined list of words, phrases, and concepts. Example: A prompt containing "Is this product suitable for an elderly retiree?" might be transformed to "Is this product suitable for an individual with a low-risk tolerance and fixed income?" before being sent to the LLM, preventing age￾based assumptions.

[AUTHOR NAME] 32 Responsible Innovation with GenA.I. in the Banking Industry Structured promptingwith a neutral persona: By setting the conversation with a prompt that explicitly instructs the LLM to remain neutral, objective, and unbiased, e.g. with explicit directives such as: "You are a customer advisor who must provide objective, equitable advice. Do not make assumptions or recommendations based on a user's perceived age, gender, or background. Focus solely on the stated queries." This constrains the model's responses, mitigating inherent biases and promoting a consistent, impartial tone throughout the interaction. Insights: GenA.I. Architectural Design and Application in Fraud Investigation Report Generation The development of GenA.I. applications, particularly in complex domains like fraud investigation, requires a thoughtful and modular approach. A participating bank conducted Proof-of-Concept (PoC) on the fraud investigation report generation, which demonstrated the importance of breaking down complex use cases into smaller, manageable tasks. This approach, rooted in general software design principles, enhances the system's maintainability, testability, and iteration speed, making it particularly applicable to GenA.I. development. The PoC identified two primary tasks: data extraction from fraud information sources and report generation from the extracted information. The bank strategically applied GenA.I. to the data extraction task, leveraging its natural language understanding capabilities. This decision was based on the fact that data extraction is a targeted task during large language model (LLM) training, enabling more consistent outputs. By focusing GenA.I. on this task, the bank aimed to improve accuracy through fine-tuning, which would ultimately enhance the reliability of the report generation process. The bank's decision to focus on improving data extraction accuracy through LLM fine-tuning highlights the importance of targeted application of GenA.I. resources by prioritising tasks where GenA.I. can deliver the most value. This approach also underscores the need for careful consideration of the context and constraints when integrating GenA.I. into applications, as not all tasks may warrant the use of advanced GenA.I. capabilities.

[AUTHOR NAME] 33 Responsible Innovation with GenA.I. in the Banking Industry Box D Case study – Bias Management in Chatbot Bias in GenA.I. models can arise from the selection and processing of training data and algorithms, leading to unfair outputs. Addressing bias requires continuous effort throughout the model's lifecycle. This involves curating diverse datasets, conducting regular audits, using fairness-aware algorithms, engaging users for feedback, maintaining transparency, fostering collaboration, and adhering to ethical guidelines. A participating bank in the GenA.I. Sandbox integrated bias assessment into their testing process, demonstrating practical bias assessment.

  1. Data-Level: Tackling the Data Source The bank identified sensitive attributes including gender, race, age, nationality, and income that could lead to bias. To ensure diverse and representative datasets, they proportionally represented all relevant groups across these attributes. Additionally, the bank defined "privileged", which historically received more favourable treatment, and "non-privileged" groups for each attribute to identify potential biases.
  2. Model-Level: Building Fairness In Before testing, the bank created two types of questions: (1) neutral questions and (2) paired questions, each consisting of two versions that are identical except for one demographic attribute. These questions were then used to query the chatbot one by one, and the responses were recorded. Before conducting the evaluation, any demographic attributes in the chatbot’s responses were replaced with placeholders to ensure the evaluation was free from demographic biases.
  3. Bias Assessment After the model generated results, the bank conducted assessments for more than 500 results across below categories: (1) Traditional NLP similarity analysis: This analysis assessed statistically significant differences across demographics by calculating ROUGE-L and BLEU scores for masked answers. The scoring system ranged from 0 to 5, with higher scores indicating greater similarity. (2) Embedding similarity: This involved computing sentence embeddings and calculating cosine similarity. (3) Clarity and conciseness testing: This test evaluated whether the answers provided clear and concise responses using large language models (LLMs). (4) Sentiment/ Tone: classify each answer’s sentiment or tone using an LLM.

[AUTHOR NAME] 34 Responsible Innovation with GenA.I. in the Banking Industry 4.3 Security and Privacy 4.3.1 Security LLM faces a distinct set of security challenges that requires specialised attention, for instance, prompt injection, sensitive information disclosure, improper output handling, and misinformation. Some banks implemented comprehensive governance frameworks and mitigation strategies to address these risks (Table 2). Risks Mitigation Strategies Prompt injection - Malicious actors craft inputs designed to override system instructions, potentially manipulating the model into performing unauthorised actions. • Implement monitoring and detection system for tackling the prompt injection attack • Reject query that are out of scope • Implement strict separation between system instructions, retrieved context, and user input to prevent instruction override. • Deploy secondary classifier models to detect and block potentially malicious prompts before processing by the primary LLM. • Establish dynamic rules that evaluate prompt intent and context rather than relying solely on keyword blocking. Sensitive Information Disclosure - Models may inadvertently reveal proprietary algorithms, customer data, or internal processes either through • Implement tokenisation to pre-process and sanitise sensitive information • Restrict model access to sensitive data based on the principle of least privilege • Implement strict access control on vector database Box D 4. Bias Mitigation The bank outlined two methods to be implemented to mitigate bias: (1) Prompt engineering with a multilingual persona, which guides the model’s behaviour by crafting a system prompt that defines an unbiased, objective character for the A.I. to embody; (2) preprocessing with target word filtering, which involves programmatically scanning and modifying user input queries before they are sent to the Chatbot model. Addressing bias is an iterative process. As societal norms evolve and new data is collected, models must be re-assessed and updated regularly to maintain standards of fairness and responsibility.

[AUTHOR NAME] 35 Responsible Innovation with GenA.I. in the Banking Industry Risks Mitigation Strategies direct extraction or inference attacks. • Incorporate statistical noise during training to prevent memorisation of individual data points while maintaining aggregate model utility. • Deploy automated scanners to detect and redact potentially sensitive information (account numbers, personal identifiers) in real-time before delivery to users. Improper Output Handling • Apply proper input validation on responses coming from the model to backend functions • Implement robust logging and monitoring systems to detect unusual patterns in LLM outputs • Structured Output Schemas: Enforce strict output validation against predefined schemas, rejecting any responses that deviate from expected formats. Misinformation • Specify the exact conditions that determine when a query falls outside the scope • Require models to provide confidence scores for factual statements, enabling automatic escalation of low-confidence responses for human review. • Maintain detailed audit trails linking model responses to their source materials, facilitating rapid verification and accountability. Table 2 - Mitigation strategies 4.3.2 Privacy Data privacy is another crucial area in the development of GenA.I. models to ensure protection of sensitive information, prevention of bias and discrimination, compliance with legal requirements, as well as maintenance of user trust. To address privacy concerns, the following mitigation methods were implemented by the participating banks: Intelligent Data Masking: Participating banks implemented automated data masking to anonymise Personally Identifiable Information (PII) such as the customer’s name, Hong Kong Identity Card (HKID) number, account number, phone number, etc. To streamline the data masking process, a bank used Named Entity Recognition (NER), which is a natural language processing technique that can automatically identify and categorise key elements and other important concepts. This approach enabled efficient processing of large text corpora while maintaining privacy. Synthetic Data Generation: Several banks replaced sensitive information with randomly generated or synthetic data. Additionally, differential privacy technique was applied to the synthetic data by introducing controlled randomness or noise into the dataset to further protect individual privacy. Data Minimisation: During preparation stage, participating banks adhered to strict data minimisation principles, collecting only essential data fields required for specific model objective.

[AUTHOR NAME] 36 Responsible Innovation with GenA.I. in the Banking Industry Temporal and Access Control: Banks implemented role-based access controls to knowledgebase as well as limited retention periods to provide assurance that models and personnel only accessed sensitive data when necessary, following the principle of least privilege. Monitoring: Participating banks also implemented logging mechanisms with detailed audit trails of all data access and processing activities, enabling comprehensive monitoring. 4.4 Explainability and Transparency The participating banks focused on practical, deployable "glass-box" strategies that made the opaque LLM model's reasoning process visible and auditable, while acknowledging the longer￾term research required for full mechanistic understanding. Chain-of-Thought (CoT) for Credit Assessment A bank fine-tuned a model to assess the eligibility of a SME for a loan. The prompt engineering required the model to output its decision that included dedicated reasoning process. This allowed loan officers to quickly validate the model's logic, ensuring decisions were based on correct factors and enabling easy escalation when reasoning was flawed. Source Citation in RAG-Powered Chatbots For a customer service chatbot answering product questions, banks used Retrieval￾Augmented Generation (RAG). The system was designed to always cite the specific document and paragraph it used to generate its answer. This built verifiability. Customers and staff could confirm the answer was not a hallucination but was grounded in official document. Illustrative examples: "Step 1: The applicant's 3-year average revenue is HKD 15M, exceeding the minimum requirement of HKD 10M." "Step 2: The debt coverage ratio (DCR) is 1.4, which is above the policy threshold of 1.2." "Step 3: No red flags were identified in the transaction history provided." "Step 4: Based on Steps 1-3, the application meets all key criteria for approval." Illustrative example: User: What is the early withdrawal penalty for a 12-month fixed deposit? Chatbot: According to Section 4.2 of the 'Fixed Deposit Terms & Conditions (v2024-11)', the penalty for early withdrawal of a 12-month deposit is forfeiture of 60 days of interest. [Source: Doc_ID: BA-TC-2024, Paragraph 12]

[AUTHOR NAME] 37 Responsible Innovation with GenA.I. in the Banking Industry 5. Business Outcome The first cohort of the GenA.I. Sandbox has yielded compelling evidence of GenA.I.'s operational impact across the banking sector. Participating banks consistently reported substantial efficiency improvements and positive user acceptance. Below are some highlights of the results: Time Savings with Quality Assurance GenA.I. demonstrated significant time reductions across critical banking tasks, while also maintaining or enhancing quality: • Achieved 30-80% reduction in preparation time for Suspicious Transaction Reports and case narratives. • Reduced memo document processing from one day to approximately five minutes. • Cut production time for high-quality outputs by 60% compared to manual methods. Cost Saving with Sufficient Performance • Successfully analysed 100% of case narratives using their fine-tuned LLM, compared to traditional sampling methods that covered only a fraction of cases, enabling comprehensive risk assessment. Strong User Acceptance and Satisfaction • Received positive feedback, with 86% of GenA.I. outputs rated favorably by users. • Over 70% of GenA.I.-generated credit assessment outputs were rated as valuable references by users. These results collectively demonstrate that GenA.I. technologies can be effectively integrated into essential banking operations—streamlining document processing, automating complex data extraction, and enhancing the accuracy and speed of assessment workflows. The consistent pattern of efficiency improvements, coupled with strong user acceptance and responsible innovation, has well positioned GenA.I. as a transformative capability for the banking industry. Figure 6 – Business outcomes of the GenA.I. Sandbox

[AUTHOR NAME] 38 Responsible Innovation with GenA.I. in the Banking Industry 6. Conclusion The inaugural GenA.I. Sandbox has conclusively demonstrated the transformative potential of GenA.I. to redefine banking. It has proven its ability to deliver exceptional customer experiences, unlock operational efficiencies, support risk control and compliance, and maintain a sustainable competitive edge within an evolving financial landscape. The diverse use cases have validated these benefits, which are not merely theoretical, but are achievable through disciplined implementation. Proven Implementation Framework The extensive technical trials established critical success factors for GenA.I. adoption: • Data Foundation: Superior outcomes depend on accessible, high-quality data structured for optimal model training • Multi-dimensional evaluation: Robust evaluation frameworks enable detection of performance issues, ensuring sustained reliability • Iterative Testing with Mixed Strategies: Systematic experimentation, combining various approaches, enabled the progressive refinement of model performance, achieving optimal accuracy while maximising resource efficiency. Strategic Model Optimisation The sandbox revealed that domain-specific fine￾tuning delivers superior performance over general-purpose models. The participating banks achieved substantially improved cost￾effectiveness and operational efficiency by leveraging various techniques including: • Specialised fine-tuning of Small Language Models (SLMs) with data specific to a single domain; • Parameter-Efficient Fine-Tuning (PEFT) methods, including LoRA, which enable rapid model adaptation with reduced computational overhead; and • Synthetic data generation for comprehensive training. Future-Ready Governance and Innovation The participating banks pioneered advanced validation methodologies, particularly the "LLM￾as-Judge" or “A.I. vs A.I.” approach, which enables rapid, consistent and continuous Figure 7 – Key cornerstones for GenA.I. adoption

[AUTHOR NAME] 39 Responsible Innovation with GenA.I. in the Banking Industry evaluation while maintaining human oversight for critical decisions. Building upon this essential approach, the second cohort of GenA.I. Sandbox will focus on: • Integrating A.I. governance into three lines of defense • Developing "A.I. vs A.I." paradigms for proactive risk management • Implementing adaptive guardrails and self￾correcting systems The evidence is clear: GenA.I. represents both an immediate opportunity and a strategic imperative. Banks are invited to explore these technologies through continued experimentation and integration, embarking on a journey of “responsible innovation” that could unlock new opportunities in the evolving landscape of A.I.- powered banking.

[AUTHOR NAME] 40 Responsible Innovation with GenA.I. in the Banking Industry 7. Appendix First cohort of GenA.I. Sandbox and examples of proposed use cases Participating Banks Technology Partners • Bank of China (Hong Kong) Limited • China CITIC Bank International Limited • China Construction Bank (Asia) Corporation Limited • Citibank (Hong Kong) Limited • Dah Sing Bank, Limited • Hang Seng Bank, Limited • Hongkong and Shanghai Banking Corporation Limited • Livi Bank Limited • Societe Generale • Standard Chartered Bank (Hong Kong) Limited • Aereve • Alibaba Cloud • Beijing Baidu Netcom Science Technology Co., Ltd. • Forms Syntron Information (HK) Limited Theme Example Use Cases Risk Management • A.I.-assisted financing approval • A.I.-powered AML Suspicious Transaction Reporting (STR) • Enhanced Know Your Customer (KYC) with unstructured data Fraud Detection • Intelligent assistant for fraud investigator • Protection against fraudulent account openings Customer Facing • A.I. advisor for financial knowledge and updates • Banking chatbot with A.I.-enhanced interactivity

[AUTHOR NAME] 41 Responsible Innovation with GenA.I. in the Banking Industry Fact Sheets / Supplementary Reports Participant QR Code / Link Participant QR Code / Link Bank of China (Hong Kong) Limited Link China CITIC Bank International Limited Link China Construction Bank (Asia) Corporation Limited Link Citibank (Hong Kong) Limited Link Dah Sing Bank, Limited Link Hang Seng Bank, Limited Link Hongkong and Shanghai Banking Corporation Limited Link Livi Bank Limited Link Standard Chartered Bank (Hong Kong) Limited Link Note: Any positions or statements made in the above factsheets / supplementary reports as prepared by Sandbox participants do not necessarily represent the views of the HKMA.

More like this from HKMA

HKMA published 11 documents in the last 30 days. We email you each new one the day it's published.

Topics
Share