AWS Builder Center
Extending your bank foundation model with Amazon Nova Forge (Part 4)

Extending your bank foundation model with Amazon Nova Forge (Part 4)

Build a banking language model with Amazon Nova Forge — CPT, SFT, RFT, and a hybrid architecture pairing structured FM embeddings with language AI.

Data and Ai lead at AWS
In Parts  1 ,  2 , and  3  of this series, I showed you how to build a custom foundation model for structured banking data — fraud detection, credit scoring, AML, lifetime value prediction. That model excels at quantitative prediction tasks because it was purpose-built for structured event sequences.
But banks don't just make predictions. They explain decisions to customers. They classify regulatory obligations. They summarise complaints. They generate compliance reports. These are language tasks — and they need a language model.
In this companion post, I show you how to use  Amazon Nova Forge  to build a banking-specific language model that works in tandem with the custom foundation model from Parts 1–3. By the end, you'll have a hybrid architecture where structured embeddings from your custom FM feed into a domain-adapted Nova model — giving you both quantitative precision and language fluency in a single system.

Prerequisites

In addition to the deployed custom foundation model from Part 3, you need:
  • An Amazon Nova Forge subscription (provides access to intermediate checkpoints and data mixing)
  • SageMaker HyperPod cluster for continued pre-training (ml.p5.48xlarge instances)
  • Amazon Bedrock access for on-demand inference
  • Banking domain text corpus: regulatory documents, internal policies, customer correspondence, complaint records
  • Python 3.10+ with the Nova Forge SDK and boto3

Solution overview

This post covers five steps:
  1. Continued Pre-Training (CPT) on banking domain text from a Nova intermediate checkpoint
  1. Supervised Fine-Tuning (SFT) on banking instruction pairs
  1. Reinforcement Fine-Tuning (RFT) with a compliance reward function
  1. Deploy to Amazon Bedrock for on-demand inference
  1. Build the hybrid integration: custom FM embeddings + Nova Forge language model
The following architecture diagram shows how both models fit together:

Figure 1: Hybrid architecture — custom FM for structured prediction, Nova Forge for language understanding, orchestration layer combining both.

Why two models, not one?

Before diving into code, it's worth explaining why you can't solve both problems with a single model.
Your custom FM from Parts 1–3 processes structured event sequences — key-value-time tokens representing transactions, digital engagement, and risk events. It produces dense embeddings that capture behavioural patterns. It cannot generate text, explain decisions, or understand regulatory language.
A language model like Nova processes text. It can reason about compliance rules, summarise complaints, and generate explanations. But it cannot natively process structured banking event sequences — serializing transactions as text destroys the structural relationships that carry predictive signal (as discussed in Part 1).
The hybrid architecture gives you both: quantitative precision from the custom FM, and language fluency from Nova Forge. The orchestration layer bridges them.

Step 1: Continued Pre-Training on banking domain text

Start from a Nova intermediate checkpoint — specifically the mid-trained checkpoint, which balances plasticity (ability to absorb domain knowledge) with stability (won't forget general capabilities). For a banking CPT with 5–20B tokens of domain text, the mid-trained checkpoint is the optimal starting point.

Prepare the domain corpus

Banking domain text falls into four categories. Collect and deduplicate text from each:
from dataclasses import dataclass, field
from typing import List

@dataclass
class BankingCorpusConfig:
"""Configuration for banking domain CPT corpus."""

# Corpus sources and approximate token counts
regulatory_docs: str = "s3://bank-fm-text/corpus/regulatory/"
# PRA rulebook, FCA handbook, Basel III/IV, MiFID II, UK GDPR guidance
# ~2B tokens

internal_policies: str = "s3://bank-fm-text/corpus/policies/"
# Credit policy, AML procedures, complaint handling, operational risk
# ~500M tokens

customer_correspondence: str = "s3://bank-fm-text/corpus/correspondence/"
# Pseudonymized complaint letters, decision explanations, adviser notes
# ~3B tokens

financial_filings: str = "s3://bank-fm-text/corpus/filings/"
# Annual reports, Pillar 3 disclosures, RNS announcements
# ~1B tokens

total_tokens: int = 6_500_000_000 # ~6.5B tokens
max_sequence_length: int = 8192

# Data mixing ratio (Nova-curated : domain)
# Start with 30% Nova / 70% domain for a 6.5B token corpus
nova_data_ratio: float = 0.30
domain_data_ratio: float = 0.70

# Nova-curated data category weights (simplified — see note below)
nova_categories: dict = field(default_factory=lambda: {
"reasoning": 0.30, # Preserve logical reasoning
"code": 0.15, # Maintain code understanding
"math": 0.20, # Financial calculations
"general": 0.35, # Broad language capabilities
})

Data mixing format note: The four categories above are a conceptual simplification. The Nova Forge SDK requires  23 specific category percentages  (e.g.,  nova_agents_percent ,  nova_chat_percent ,  nova_reasoning-math_percent , etc.) that must sum to 100. Map the four groups above to the specific categories that best match your use case — for banking, weight  nova_reasoning-math_percent ,  nova_reasoning-factuality_percent , and  nova_code_percent  most heavily.
Data mixing rationale: Without mixing Nova-curated data, training exclusively on banking text causes catastrophic forgetting — the model loses reasoning, instruction-following, and general language capabilities. The 30/70 split preserves general intelligence while deeply adapting to banking language. Experiment with ratios between 20/80 and 40/60 depending on your corpus size.
I've found that ratios below 20% Nova data cause the model to lose basic instruction-following within 10K training steps — test this on a 1B-token subset before committing to a full 5-day run.

Launch CPT with the Nova Forge SDK

from amzn_nova_forge.trainer import ForgeTrainer
from amzn_nova_forge.core import ForgeConfig
from amzn_nova_forge.manager import HPRuntimeManager
from amzn_nova_forge.model.model_enums import Model, TrainingMethod

# Configure HyperPod runtime for CPT (compute-intensive)
runtime = HPRuntimeManager(
instance_type="ml.p5.48xlarge",
instance_count=8, # 8 nodes for distributed CPT
execution_role="arn:aws:iam::111122223333:role/NovaForgeTrainingRole",
)

# Configure the CPT job
config = ForgeConfig(
model=Model.NOVA_LITE_2,
checkpoint="nova-lite-2/pretraining-text-CE", # Mid-trained checkpoint
method=TrainingMethod.CONTINUED_PRETRAINING,
output_s3_uri="s3://bank-fm-models/nova-forge/cpt/",
hyperparameters={
"max_steps": 50000,
"global_batch_size": 256,
"max_length": 8192,
"learning_rate": 2e-5,
"warmup_steps": 1000,
"weight_decay": 0.01,
},
# Data mixing configuration (Nova Forge-specific)
data_mixing={
"nova_data": {
"reasoning": 0.30,
"code": 0.15,
"math": 0.20,
"general": 0.35,
},
"customer_data": 0.70,
},
encryption_key="alias/bank-fm-kms",
)

# Prepare domain data — the SDK handles format conversion
trainer = ForgeTrainer(config=config, runtime=runtime)

trainer.add_data(
source="s3://bank-fm-text/corpus/",
format="text", # Raw text files, one document per file
)

# Performance tip: For fastest throughput, pre-stage your corpus on
# Amazon FSx for Lustre (use dataset_catalog="cpt_text_lite" in the recipe).
# For lower storage costs at slightly reduced throughput, stream directly
# from S3 (dataset_catalog="cpt_text_lite_s3").

# Launch CPT — runs on HyperPod for ~3-5 days at this scale
job = trainer.train()
print(f"CPT job started: {job.job_name}")
print(f"Monitor at: {job.cloudwatch_url}")

Cost note: CPT on 8× ml.p5.48xlarge for 5 days at on-demand pricing ($55.04/hr per instance) costs approximately $52,800–$79,000 depending on run duration. However, for a planned multi-day training run you should use  SageMaker Training Plans  (70–75% below on-demand, ~$13K–$20K for this run) or  EC2 Capacity Blocks for ML  (40–50% below on-demand, ~$26K–$40K). This is a one-time investment that amortises across every downstream language task. Compare to hiring a team to build bespoke NLP models for each application separately.

Step 2: Supervised Fine-Tuning on banking instructions

After CPT, your model deeply understands banking language but doesn't yet follow instructions well (the mid-trained checkpoint has no instruction tuning). SFT teaches it to perform specific banking tasks in an instruction-following format.

Prepare instruction datasets

Structure your data as instruction pairs across four banking language tasks:
import json

# Example instruction pairs for each task
BANKING_SFT_EXAMPLES = {
"compliance_classification": {
"system": "You are a UK banking compliance classifier. Classify the regulatory obligation into exactly one category: CONDUCT, PRUDENTIAL, AML, DATA_PROTECTION, OPERATIONAL_RESILIENCE.",
"query": "The firm must ensure that its complaints handling procedures are fair, consistent, and prompt, and that redress is provided where appropriate under DISP 1.4.",
"response": "CONDUCT"
},
"decision_explanation": {
"system": "You are a lending decision explainer. Given a structured risk profile and a lending decision, generate a clear, compliant explanation suitable for sending to the customer under Consumer Duty requirements.",
"query": "Decision: DECLINED. Risk signals: credit_score=bucket_2 (low), debt_to_income=bucket_45 (high), recent_defaults=2, employment_tenure=bucket_1 (short). Product: unsecured personal loan £15,000.",
"response": "We've carefully reviewed your application for a £15,000 personal loan. Unfortunately, we're unable to approve your application at this time. The main factors in our decision were: your current level of existing debt relative to your income, and recent missed payments on your credit file. We want to ensure any lending is affordable and in your best interests. You may wish to review your credit file with a credit reference agency, and you're welcome to reapply in future if your circumstances change. If you'd like to discuss this decision, please contact us."
},
"complaint_summarisation": {
"system": "You are a complaint analyst. Summarise the customer complaint in 2-3 sentences, identifying the root cause, the product involved, and whether regulatory escalation is required.",
"query": "[Full complaint text — 800 words about a PPI mis-selling claim with timeline and emotional context...]",
"response": "Customer alleges PPI was added to their mortgage without informed consent in 2008, discovered during annual statement review. Root cause: potential mis-selling at point of sale. Product: mortgage PPI. Regulatory escalation: Yes — FOS referral likely if not resolved within 8 weeks per DISP timelines."
},
"regulatory_qa": {
"system": "You are a regulatory knowledge assistant for UK banking. Answer questions about PRA, FCA, and Bank of England requirements accurately, citing specific rules where possible.",
"query": "What are the notification requirements when a bank identifies a material outsourcing arrangement failure?",
"response": "Under PRA SS2/21 (Outsourcing and third party risk management), firms must notify the PRA without delay when a material outsourcing arrangement suffers a significant failure or disruption. Specifically: (1) notify via the usual supervisory channels within 24 hours of identifying the failure; (2) provide an initial impact assessment including affected customers and services; (3) submit a remediation plan within 5 business days. Additionally, under FCA SYSC 8.1, the firm must assess whether the failure triggers a Principle 11 disclosure obligation to the FCA."
},
}


Run SFT with the Nova Forge SDK

from amzn_nova_forge.trainer import ForgeTrainer
from amzn_nova_forge.core import ForgeConfig
from amzn_nova_forge.manager import SMTJRuntimeManager
from amzn_nova_forge.model.model_enums import Model, TrainingMethod
from amzn_nova_forge.dataset import CSVDatasetLoader

# Use SageMaker Training Jobs for SFT (smaller scale than CPT)
runtime = SMTJRuntimeManager(
instance_type="ml.p5.48xlarge",
instance_count=4,
execution_role="arn:aws:iam::111122223333:role/NovaForgeTrainingRole",
)

# Load SFT data from CSV
loader = CSVDatasetLoader(
query="instruction", # Input column
response="output", # Expected output column
system="system_prompt", # System prompt column
)
loader.load("s3://bank-fm-text/sft/banking_instructions.csv")
loader.transform(method=TrainingMethod.SFT, model=Model.NOVA_LITE_2)
loader.validate(method=TrainingMethod.SFT, model=Model.NOVA_LITE_2)

sft_data_uri = loader.save_data(
"s3://bank-fm-text/sft/transformed/banking_sft.jsonl"
)

# Configure SFT from CPT checkpoint
sft_config = ForgeConfig(
model=Model.NOVA_LITE_2,
checkpoint="s3://bank-fm-models/nova-forge/cpt/final/", # Your CPT output
method=TrainingMethod.SFT,
output_s3_uri="s3://bank-fm-models/nova-forge/sft/",
hyperparameters={
"max_steps": 5000,
"global_batch_size": 64,
"max_length": 4096,
"learning_rate": 5e-6, # Lower LR for SFT (don't override CPT)
"warmup_steps": 200,
},
# Data mixing during SFT to prevent forgetting
data_mixing={
"nova_data": {
"reasoning": 0.40,
"general": 0.60,
},
"customer_data": 0.80, # 80% banking instructions, 20% Nova
},
encryption_key="alias/bank-fm-kms",
)

trainer = ForgeTrainer(config=sft_config, runtime=runtime)
trainer.add_data(source=sft_data_uri, format="jsonl")
sft_job = trainer.train()
print(f"SFT job started: {sft_job.job_name}")


Evaluate after SFT

from amzn_nova_forge.evaluator import ForgeEvaluator
from amzn_nova_forge.core import EvaluationTask

evaluator = ForgeEvaluator(
model_path="s3://bank-fm-models/nova-forge/sft/final/",
runtime=SMTJRuntimeManager(
instance_type="ml.p5.48xlarge",
instance_count=1,
execution_role="arn:aws:iam::111122223333:role/NovaForgeTrainingRole",
),
)

# Evaluate on banking-specific benchmarks
eval_results = evaluator.evaluate(
eval_data="s3://bank-fm-text/eval/banking_eval.jsonl",
tasks=[
EvaluationTask.ACCURACY, # Compliance classification
EvaluationTask.ROUGE, # Summarisation quality
EvaluationTask.CUSTOM, # Banking-specific metrics
],
custom_metrics={
"regulatory_citation_accuracy": "s3://bank-fm-text/eval/citation_scorer.py",
"consumer_duty_compliance": "s3://bank-fm-text/eval/duty_scorer.py",
},
)
print(f"SFT Evaluation: {eval_results.summary()}")


Step 3: Reinforcement Fine-Tuning with compliance reward

SFT teaches the model what good responses look like. RFT teaches it why — by providing feedback from a reward function that verifies compliance against your bank's rules engine. This is where Nova Forge really shines for regulated industries: you can wire real compliance checks into the training loop.

Define the reward function

The reward function calls your bank's existing compliance rules engine and returns a scalar reward. Higher reward = more compliant output.
import json
import boto3

# reward_function.py — deployed as a Lambda function
# Nova Forge RFT calls this for each generated response

lambda_client = boto3.client("lambda")

def compute_reward(query: str, response: str, reference: str) -> float:
"""
Reward function for banking compliance RFT.

Checks:
1. Does the response cite correct regulatory references?
2. Does it avoid prohibited language (guarantees, promises)?
3. Is it factually consistent with the reference answer?
4. Does it meet Consumer Duty 'fair, clear, not misleading' standard?

Returns: float between 0.0 and 1.0
"""
reward = 0.0

# Check 1: Regulatory citation accuracy (0.3 weight)
rules_response = lambda_client.invoke(
FunctionName="bank-compliance-rules-engine",
Payload=json.dumps({
"action": "verify_citations",
"text": response,
"domain": "uk_banking",
}),
)
citation_score = json.loads(
rules_response["Payload"].read()
)["accuracy"]
reward += 0.3 * citation_score

# Check 2: Prohibited language detection (0.2 weight)
prohibited_patterns = [
"guarantee", "promise", "definitely", "always",
"no risk", "cannot lose", "assured",
]
has_prohibited = any(p in response.lower() for p in prohibited_patterns)
reward += 0.2 * (0.0 if has_prohibited else 1.0)

# Check 3: Factual consistency with reference (0.3 weight)
consistency_response = lambda_client.invoke(
FunctionName="bank-nli-checker",
Payload=json.dumps({
"premise": reference,
"hypothesis": response,
}),
)
consistency = json.loads(
consistency_response["Payload"].read()
)["entailment_score"]
reward += 0.3 * consistency

# Check 4: Consumer Duty compliance (0.2 weight)
duty_response = lambda_client.invoke(
FunctionName="bank-consumer-duty-scorer",
Payload=json.dumps({
"text": response,
"criteria": ["fair", "clear", "not_misleading"],
}),
)
duty_score = json.loads(
duty_response["Payload"].read()
)["overall_score"]
reward += 0.2 * duty_score

return reward


Launch RFT

from amzn_nova_forge.trainer import ForgeTrainer
from amzn_nova_forge.core import ForgeConfig
from amzn_nova_forge.model.model_enums import TrainingMethod

rft_config = ForgeConfig(
model=Model.NOVA_LITE_2,
checkpoint="s3://bank-fm-models/nova-forge/sft/final/", # SFT output
method=TrainingMethod.RFT,
output_s3_uri="s3://bank-fm-models/nova-forge/rft/",
hyperparameters={
"max_steps": 2000,
"global_batch_size": 32,
"max_length": 4096,
"learning_rate": 1e-6, # Very low LR for RFT stability
"kl_penalty_coefficient": 0.05,
},
reward_function={
"type": "lambda",
"function_arn": "arn:aws:lambda:eu-west-2:111122223333:function:bank-rft-reward",
},
encryption_key="alias/bank-fm-kms",
)

# RFT data: same format as SFT but response field is used as seed/reference
rft_trainer = ForgeTrainer(config=rft_config, runtime=runtime)
rft_trainer.add_data(
source="s3://bank-fm-text/rft/compliance_scenarios.jsonl",
format="jsonl",
)
rft_job = rft_trainer.train()
print(f"RFT job started: {rft_job.job_name}")

Architecture note: Nova Forge RFT (HyperPod tier) calls your reward function via an API endpoint in your VPC — not via direct Lambda invocation. This removes the 15-minute timeout constraint and supports complex multi-turn evaluation. Deploy your reward function behind API Gateway or an ALB; the Lambda shown above is the compute behind that endpoint.
Design decision: SFT teaches by imitation — the model copies patterns from your training examples. RFT teaches by consequence — the model learns that citing the correct PRA rule produces higher reward than citing an incorrect one. For regulated industries where precision matters more than fluency, RFT is what closes the gap between "plausible-sounding" and "actually correct."
In my experience, the compliance reward function catches hallucinated regulatory citations that SFT alone misses — a problem you won't spot until a regulator does. RFT is the difference between a model that sounds compliant and one that actually is.

Step 4: Deploy to Amazon Bedrock

Deploy the RFT-tuned model to  Amazon Bedrock  for on-demand inference. LoRA-based customizations support on-demand pricing (pay per call) — no provisioned throughput required.
Regional availability: As of this writing, Bedrock on-demand inference for custom Nova models is available in US East (N. Virginia) and US West (Oregon). For a UK-regulated bank, this means cross-region latency for inference calls (~100ms added). Check the  Amazon Bedrock pricing page  for the latest regional availability — EU expansion is on the roadmap. For latency-sensitive production workloads in  eu-west-2 , deploy to a SageMaker endpoint instead using  ForgeDeployer  with  DeploymentTarget.SAGEMAKER_REALTIME .
from amzn_nova_forge.deployer import ForgeDeployer
from amzn_nova_forge.core import ForgeConfig
from amzn_nova_forge.model.model_enums import DeploymentTarget

deployer = ForgeDeployer(
model_path="s3://bank-fm-models/nova-forge/rft/final/",
target=DeploymentTarget.BEDROCK_ON_DEMAND,
config=ForgeConfig(
model=Model.NOVA_LITE_2,
encryption_key="alias/bank-fm-kms",
),
)

# Deploy — creates a custom model in Bedrock
deployment = deployer.deploy(
model_name="bank-nova-compliance-v1",
tags={"Environment": "production", "RegulatoryTier": "Tier2"},
)

custom_model_id = deployment.model_id
print(f"Deployed to Bedrock: {custom_model_id}")
print(f"Invoke via: bedrock-runtime invoke-model --model-id {custom_model_id}")

Verify the deployment:
import boto3
import json

bedrock_rt = boto3.client("bedrock-runtime", region_name="eu-west-2")

response = bedrock_rt.invoke_model(
modelId=custom_model_id,
contentType="application/json",
body=json.dumps({
"messages": [{
"role": "user",
"content": "Classify this obligation: 'Firms must maintain a complaints register recording each complaint received and the measures taken for its resolution.' Category?",
}],
"system": [{
"text": "You are a UK banking compliance classifier. Classify into: CONDUCT, PRUDENTIAL, AML, DATA_PROTECTION, OPERATIONAL_RESILIENCE."
}],
"inferenceConfig": {"maxTokens": 50, "temperature": 0.0},
}),
)

result = json.loads(response["body"].read())
print(f"Classification: {result['output']['message']['content'][0]['text']}")
# Output: "CONDUCT"


Step 5: Build the hybrid integration

This is where the two models — the custom structured FM from Parts 1–3 and the Nova Forge language model — come together. The pattern: retrieve dense embeddings from the custom FM's SageMaker endpoint, then inject them as structured context into Nova Forge prompts.

The integration architecture

import boto3
import json
import numpy as np
from dataclasses import dataclass
from typing import Dict, List, Optional

@dataclass
class HybridBankAI:
"""
Orchestration layer combining:
- Custom FM (structured event prediction) via SageMaker endpoint
- Nova Forge (language understanding) via Bedrock
"""
fm_endpoint: str = "bank-fm-fraud-realtime" # Part 3 endpoint
nova_model_id: str = "bank-nova-compliance-v1" # Step 4 deployment
region: str = "eu-west-2"

def __post_init__(self):
self.sm_runtime = boto3.client(
"sagemaker-runtime", region_name=self.region)
self.bedrock_rt = boto3.client(
"bedrock-runtime", region_name=self.region)

def get_customer_embedding(self, user_hash: str) -> Dict:
"""Retrieve structured signals from the custom FM."""
response = self.sm_runtime.invoke_endpoint(
EndpointName=self.fm_endpoint,
ContentType="application/json",
Body=json.dumps({"user_hashes": [user_hash]}),
)
result = json.loads(response["Body"].read())
return {
"fraud_score": result["fraud_score"],
"credit_risk_bucket": result["credit_risk_bucket"],
"aml_alert_level": result["aml_alert_level"],
"ltv_percentile": result["ltv_percentile"],
"segment": result["segment"],
"recent_behaviour_summary": result["behaviour_tags"],
}

def generate_with_context(
self,
task: str,
query: str,
user_hash: str,
system_prompt: str,
) -> str:
"""
Generate language output enriched with structured FM signals.
The custom FM provides quantitative context; Nova Forge provides
language generation.
"""
# Step 1: Get structured signals from custom FM
signals = self.get_customer_embedding(user_hash)

# Step 2: Format signals as structured context for Nova
structured_context = self._format_signals(signals, task)

# Step 3: Build the enriched prompt
enriched_query = f"""## Customer Context (from behavioural model)
{structured_context}

## Task
{query}"""

# Step 4: Call Nova Forge via Bedrock
response = self.bedrock_rt.invoke_model(
modelId=self.nova_model_id,
contentType="application/json",
body=json.dumps({
"messages": [{"role": "user", "content": enriched_query}],
"system": [{"text": system_prompt}],
"inferenceConfig": {
"maxTokens": 1024,
"temperature": 0.1,
},
}),
)
result = json.loads(response["body"].read())
return result["output"]["message"]["content"][0]["text"]

def _format_signals(self, signals: Dict, task: str) -> str:
"""Convert FM outputs to natural language context for Nova."""
lines = []
if task in ("decision_explanation", "complaint_response"):
lines.append(
f"- Risk assessment: {signals['credit_risk_bucket']}"
)
lines.append(
f"- Fraud score: {signals['fraud_score']:.3f}"
)
lines.append(
f"- Customer segment: {signals['segment']}"
)
lines.append(
f"- Lifetime value percentile: {signals['ltv_percentile']}"
)
if task == "aml_narrative":
lines.append(
f"- AML alert level: {signals['aml_alert_level']}"
)
lines.append(
f"- Recent behaviour: {', '.join(signals['recent_behaviour_summary'])}"
)
return "\n".join(lines)


Example: explain a lending decision using both models

# Instantiate the hybrid system
hybrid = HybridBankAI()

# Use case: Customer asks "Why was my loan declined?"
explanation = hybrid.generate_with_context(
task="decision_explanation",
query="Generate a Consumer Duty-compliant explanation for why this customer's £25,000 personal loan application was declined.",
user_hash="a3f8c91b2e4d...", # Pseudonymized customer ID
system_prompt=(
"You are a lending decision explainer for a UK retail bank. "
"Generate explanations that are fair, clear, and not misleading "
"per FCA Consumer Duty requirements. Use the customer context "
"provided by the behavioural model to ground your explanation "
"in specific, relevant factors. Never reveal raw model scores."
),
)

print(explanation)
# Output: A clear, personalised explanation grounded in the customer's
# actual risk signals — not a generic template.


Example: generate an AML Suspicious Activity Report narrative

sar_narrative = hybrid.generate_with_context(
task="aml_narrative",
query="Draft a SAR narrative for this customer based on the AML alert. Include the behavioural pattern that triggered the alert and the supporting evidence from transaction history.",
user_hash="7b2e4f9a1c8d...",
system_prompt=(
"You are an AML analyst assistant. Draft SAR narratives in the "
"format required by the UK Financial Intelligence Unit (UKFIU). "
"Be factual, cite specific transaction patterns, and avoid "
"speculation. Use the behavioural model signals to ground "
"the narrative in observed patterns."
),
)

This is the power of the hybrid approach. The custom FM identifies that something is suspicious and what patterns triggered the alert. Nova Forge explains why in compliant natural language — something no embedding-based model can do alone.

Cleanup

To avoid ongoing charges:
  1. Delete the Bedrock custom model:  bedrock.delete_custom_model(modelIdentifier=custom_model_id) 
  1. Delete HyperPod cluster resources
  1. Remove training artifacts from S3:  aws s3 rm s3://bank-fm-models/nova-forge/ --recursive 
  1. Remove the domain corpus if no longer needed

Conclusion

Across this extended series, you now have a complete dual-model architecture for banking AI:
  • Custom FM (Parts 1–3): Handles structured prediction — fraud, credit, AML, LTV, recommendations. Purpose-built for banking event sequences. Deployed on SageMaker with sub-50ms latency.
  • Nova Forge (this post): Handles language tasks — compliance classification, decision explanations, complaint summarisation, regulatory Q&A. Domain-adapted via CPT + SFT + RFT. Deployed on Bedrock with on-demand pricing.
  • Hybrid orchestration (Step 5): Bridges both models — injects structured signals into language generation, producing outputs that are both quantitatively grounded and linguistically fluent.
The key insight: these are complementary capabilities, not competing approaches. A bank needs both quantitative precision and language fluency. Building each with the right tool — custom architecture for structured data, Nova Forge for text — gives you the best of both without the compromises of forcing one model to do everything.
Start by deploying the hybrid for a single use case — lending decision explanations are ideal because they combine a clear quantitative signal (the credit model's output) with a clear language requirement (Consumer Duty-compliant explanation). Measure customer satisfaction and regulatory compliance scores. Then expand to complaint handling, AML narratives, and regulatory Q&A.



References

  1. Ostroukhov et al. (2026). "PRAGMA: Revolut Foundation Model." arXiv:2604.08849.
  1. "Building specialized AI without sacrificing intelligence: Nova Forge data mixing in action." AWS Machine Learning Blog, 2026.
  1. "Kick off Nova customization experiments using Nova Forge SDK." AWS Machine Learning Blog, 2026.
  1. FCA. (2023). Consumer Duty. PS22/9.
  1. PRA. (2023). Model Risk Management Principles. SS1/23.
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article