iTranslated by AI
re:Invent 2025: Achieving High-Precision Model Development with Reinforcement Fine-tuning on Amazon Bedrock
Introduction
By transcribing various overseas lectures into Japanese articles, we aim to make hidden, high-quality information more accessible. The presentation featured in this project is as follows!
For transcription articles of re:Invent 2025, please check the summary information in this Spreadsheet.
📖re:Invent 2025: AWS re:Invent 2025 - Unlock Advanced Model Training: Reinforcement Fine-tuning on Bedrock (AIM3327)
This video announces the new Reinforcement Fine-Tuning (RFT) capability in Amazon Bedrock. Unlike traditional Supervised Fine-Tuning, RFT using Nova Lite 2 allows you to customize models without massive amounts of high-quality labeled data or deep ML expertise. RFT explores multiple solutions and performs feedback-driven learning based on a reward function. In the Bedrock console, it can be easily implemented in three steps: data upload, reward function definition, and training start. The Salesforce Agentforce team developed an LLM-as-a-judge model called TaxEval using RFT, achieving a 97% F1 score, surpassing GPT-4o while keeping costs under 10%. It is available via on-demand inference with token-based pay-as-you-go pricing.
Please note that this article was automatically generated while maintaining the content of the existing lecture as much as possible. There is a possibility of typos or incorrect information.
Main Content
The Arrival of Reinforcement Fine-Tuning on Amazon Bedrock: Challenges with Traditional Supervised Fine-Tuning
Hello, everyone. Welcome. Today, I will be talking about the launch of our latest feature: Reinforcement Fine-Tuning using Nova Lite 2 on Amazon Bedrock, with support for additional models coming soon. Today, I will show you how to democratize RFT and bring it to all developers on Amazon Bedrock without requiring deep ML expertise. My name is Shalendra, and I serve as a product leader for Amazon Bedrock. Joining me today are my colleague Shreyas, an AWS Principal Data Scientist, and our customer Phil, SVP of Engineering for the Salesforce Agentforce team.
Let’s start with the basics. What is fine-tuning, and why is it necessary? Fine-tuning is a way to adjust existing base models to fit your specific use cases. For example, by using your own examples, such as customer chats or documents, you can teach the model your company's tone and style, enabling it to provide more accurate and consistent answers for your domain-specific tasks. But why is it necessary? Why aren't base models sufficient? It's because out-of-the-box base models are trained on vast amounts of internet data. They know a little bit about everything, but they don't know the specific details, tone, or style that your company needs.
For instance, a base model might know how to write an email, but it doesn't know your company's specific style or format. It might be able to summarize text, but perhaps not with the tone you prefer or the precision you require. That is why fine-tuning is needed. You are teaching the model to perform specific domain tasks more accurately, consistently, and efficiently than a generic base model could.
Many of our customers also use what is known as traditional Supervised Fine-Tuning, or SFT. And we launched SFT on Bedrock a little while ago. SFT means training a base model with a set of inputs and correct outputs that you provide. Simply put, you are showing the model how you want it to respond. For example, in a slide classification task, we know that "I love this" is a positive sentiment, "it's OK" is a neutral sentiment, and "terrible" is a negative sentiment. By training on many examples like these, the model learns to follow your preferred tone and style, making the answers more reliable and task-specific.
While SFT is very effective for specific use cases, such as classification or summarization, it also comes with its own challenges. First, it requires a lot of data. Customers often struggle to secure high-quality labeled datasets. You have to provide many clear and correct examples, and if the data is inconsistent or biased, the model will learn those errors as well. It is costly and time-consuming. Collecting, cleaning, and labeling training data requires effort, and training large-scale models involves significant computational costs. In other words, it is very data-intensive and requires massive high-quality labeled datasets, which is not something everyone can do.
Second, it is rigid. The model might memorize, but it might not adapt. There is a possibility that the model becomes overly focused on your examples. And third, there is model drift, where performance degrades over time. If your data or rules change frequently, you must retrain with a new dataset every time to keep the model up to date. Also, Supervised Fine-Tuning is not particularly good at preference learning or alignment to human preferences.
And we have heard these kinds of stories from our customers. For example, they might have 100 examples but need a production-quality model, or the model works well in testing with a few examples but drifts in a production environment, or they want structured output with reasoning but cannot afford to annotate thousands of high-quality labeled datasets. These are the challenges we have actually heard from customers who have been using traditional Supervised Fine-Tuning.
The Mechanics of RFT on Bedrock: Feedback-Driven Learning and Three Simple Steps
But what if your model could learn from a very small number of examples, automatically explore thousands of solutions, self-improve using the best ones, and continuously improve from production data? Welcome to Reinforcement Fine-Tuning on Bedrock. With RFT on Bedrock, customers can easily create models that continuously learn from feedback and scoring, resulting in high-quality, intent-aligned output for their specific business needs. With this launch, we are democratizing RFT and making it available to all developers using Bedrock with minimal ML expertise.
Unlike traditional fine-tuning techniques, customers do not need large, high-quality labeled datasets for training, nor do they need deep machine learning expertise to use this feature.
Reinforcement Fine-Tuning uses a feedback-driven learning loop where the model explores multiple solutions, scores them, and iteratively improves over time based on the reward signals and reward functions you select.
Let’s look at this example of a customer inquiry. A customer service agent is interacting with a customer who says, "I want to cancel my subscription." Here, the model explores multiple potential responses. Response 1 says, "I will cancel it." It is helpful, but blunt. Whether it is an automated agent or a human agent, you wouldn’t want such a response from a customer service representative. Response 2 says, "I understand. May I ask the reason for your decision, if you don't mind?" As you can see, this response is empathetic and would receive a high score based on the reward function I create. Response 3 says, "Understood, please fill out this form." As you can see in this use case, the model explores multiple solutions, which are scored based on your reward function and used to improve the model's weights.
What happens with Reinforcement Fine-Tuning is that the system actually explores the multiple solutions you just saw. It then collects reward signals for them and shifts the model's weights toward those patterns, leveraging the highest-scoring ones. Exploration ensures that new solutions are tested and explored, while exploitation ensures that the model increasingly prefers what consistently yields high rewards, balancing the techniques of exploration and exploitation.
Now, let's see how this Reinforcement Fine-Tuning works on Bedrock. It is very simple—just three easy steps. You provide data from multiple sources. We will look at those sources later. Second, you define what is good using ready-to-use templates. You can also create your own custom reward function using Lambda. Then you start training, and once training is complete, you deploy the fine-tuned model with on-demand inference. It is pay-as-you-go, and no machine learning expertise is required.
Now, take a look at this. You can access it from the left navigation of the Bedrock console. You will see "Tune," so select custom models and click "Create reinforcement fine-tuning job." Next, upload your data. You can choose to upload data from your computer or an S3 file, or provide access to model invocation logs. Everything is in the OpenAI chat completion JSONL format. You can see here that we are uploading data from one of these sources.
Next, let’s define what is good using a reward function. We provide two options that include ready-to-use, editable templates. You can use model-as-a-judge with evaluation rubrics, or use a Lambda function for verifiable rewards; both can be customized and edited. Here you can see model-as-a-judge. We offer ready-to-use templates for various tasks such as following instructions, summarization, chain-of-thought reasoning, and RAG faithfulness. We also provide evaluation rubrics, which you can edit for your judge prompt. In option 2, we provide Reinforcement Fine-Tuning using verifiable rewards through a custom Lambda function, which is also editable.
Once you select these and start the training job, we also provide visibility into training metrics. For example, training rewards, validation rewards, and training/validation episode lengths. Once training is complete, simply deploy the Reinforcement Fine-Tuned model using on-demand inference. For inference, there is token-based pricing based on the number of processed tokens. For Nova Lite 2, the inference price for a model fine-tuned with Reinforcement Fine-Tuning is the same as the base model inference, and we charge $1 per hour for training.
Shreyas's Hands-on Demo: From Data Preparation to Reward Functions, Training, and On-Demand Inference
Now, Shreyas will show you a practical demo of this feature. Shreyas, please go ahead. So, next, I want to show you how easy it is to get started with reinforcement fine-tuning. And as Shalendra said, you don't need to be an expert in reinforcement fine-tuning. You don't need to be a scientist. You just need to understand three basic steps. First, prepare the data. Second, create a reward function. And third, start the training. Let's start the demo.
First, we go to the console. Today, when you go to the console, you will see a new option for reinforcement fine-tuning when you want to create a custom model.
The first thing to select is which model you want to fine-tune. Here, I am selecting Nova 2 Lite. More open-source models will be available soon. Next, we select the JSONL file, our dataset. You can also choose an S3 location or call logs. But what does this JSONL-formatted data look like?
We will look at two simple use cases. The first is FinQA, a financial question and answering dataset. This is just one view of that dataset. There are multiple records in this dataset, which is what you see in the JSONL. This is a clearer view of it. Inside one of these records, there is a very complex prompt. It contains a table. There is context regarding financial information and performance for 2016 and 2018. The question we want to ask, and the one we want to train the model to handle well, is "What were the total operating expenses for 2018 in millions?" This involves understanding tables. It includes long context. It also involves mathematical calculations and matching with the precise answer we want to train the model on.
Let me introduce a slightly different dataset. This is a multilingual dataset called CHABSA. It is a sentiment analysis dataset, which Shalendra mentioned earlier. For this, we want to be able to analyze multiple languages, think through the reasoning, and understand what the final sentiment is. Again, we can match the sentiment we want to train the model on precisely. You can have thousands of such records.
The second major step is to create a Lambda function for rewards. One way to create a Lambda function is by writing custom code, and there are convenient templates you can use. However, if you want to write your own custom Lambda function, that is also possible. That is what I am scrolling through now. For verifiable rewards, you can also select several pre-templated Lambda functions. This is for format and constraint checking, which might be necessary for structured output like JSON. There are also some for mathematical reasoning, which is a fairly common use case. When you create the job, this Lambda function is created on your behalf. You can create it yourself, but in this case, this is the complete Lambda function. You have full control over what happens inside the Lambda function, but the only thing you must do at the end of the Lambda function is return the reward score for each sample entering the Lambda. That is the only requirement. In this case, I am just emphasizing that you can process samples in order and return a numeric score for each record.
Back to the console, let's explore this option as well. This uses a Lambda function with built-in AI feedback. Instead of rewriting the Lambda function completely, there are convenient templates. First, select the model you want to apply this template to. In the dropdown, you can select four different templates, such as inference or LLM as a judge. Those are: instruction following, summarization, reasoning evaluation, and RAG faithfulness. Each of these corresponds to a rubric that we have tested and benchmarked against a wide range of problems. For example, what we see here is the rubric, which is a simple text describing how you want to score each incoming input. Let's look at another one: instruction following. Here, there is a different set for how to score the model, and we want to limit the final score to a range of 0 to 1. This is not mandatory. Any score is fine, but it is a good practice to do so.
Again, when you create that Lambda function, in this case, a call to Nova Premier is fully constructed. This is the model chosen as LLM as a judge. You could also select GPT-4o S 120B. There are a few other options you can set. Obviously, you need a place to put the output data. You can save training logs and metrics here. There are important hyperparameters you can configure visually on the console. They are the number of epochs and the learning rate. Here, it is set to 1x10^-5. You can set the number of training samples per prompt and the evaluation interval to actually evaluate the current model on the validation dataset. Finally, create a role and click create. Behind the scenes, this creates the Lambda function for rewards, the role, and starts the training.
Now, remember, training can take time. Training is processing all the examples. It is repeatedly calling the reward function when it needs to train the model. After a few hours, training metrics will appear. In this case, training reward and validation reward are displayed, and you can see the lines are trending upward. This means the model is learning. The reward score is rising on both the training side and the validation set. There are other useful metrics as well. For example, training episode length, which in this case is the average number of prompt token outputs.
There are also things like gradient norm and critic advantages, which are very helpful, for example, for data science teams to debug what is happening behind the scenes.
Finally, once training is done, you want to see how it actually works. For that, you set up inference. What is really exciting is that you can actually set up on-demand inference without needing to set up provisioned throughput. This means you only pay for the tokens in and tokens out. In this case, we name it RFT model on-demand V1. The model is already pre-selected. This is a model fine-tuned with RFT. You could select other models, but in this case, we select the pre-selected model and click create. This takes a few minutes. What I will show you in the video is an example of a model where this on-demand inference is already set up. This is a test FinQA example. This is the first dataset, an example of financial service Q&A. Click on test in playground, and the playground familiar from the Bedrock console will open. Here, I paste an example from the financial Q&A dataset from the test set. There is a table there, a question, and I want to check it against the answer. As you can see, the model has already started. This is not me fast-forwarding the video. This is actually real-time. In 3 seconds, it returns the complete answer based on this very complex financial service question.
In the left sidebar, you can also set the inference parameters you are looking at now. What is really interesting when comparing with the base model is to click the compare mode toggle at the top. Then go back and select the base model, Nova 2.0 Lite, and compare side-by-side what improvements were made by RFT. If you look again, you can see that it has performance equivalent to the base model. And you only pay for the tokens in and tokens out at the base model rate. It is very easy to get started. Now, I will pass it over to Phil. Phil is from the Salesforce Agentforce team, and he will talk about how they are using Agentforce and RFT.
Salesforce's RFT Use Case in Agentforce: TaxEval Model and Enterprise Reasoning Innovation
Hello, everyone. First, I would like to start with a historical moment. About a year ago, in December, a certain paper was published. You might have heard of it as the DeepSeek V3 paper, from last December. And early this year, in January, another paper called the R1 paper was published by the same group. The technology behind it—the technology that is believed to have caused Nvidia to drop 25% when the paper was published—is the technology I am going to talk about today. For those of you wondering where this historically came from, I explained it.
I want to use this time to explain why such a technical development is impacting companies like Salesforce and the types of enterprise AI systems we are building. The slide in front of you is a slide that has probably been shown 20,000 times for those attending Dreamforce. This is about Agentforce. What is it? It is an enterprise AI system, an enterprise AI platform. This is not a new product. It is just a new veneer over all the Salesforce features, platforms, and acquisitions we have done over the past 26 years, but made agentic. "Agentic" means that they have all become tools, and we are also able to leverage our recent investments in Data Cloud and all the acquisitions we have made, such as Tableau and Slack.
So, at Dreamforce—about a month and a half ago—we announced the next version of Agentforce. This is the fourth version, which we call Agentforce 360. Everyone loves "360," right? Well, at the center of Agentforce 360, as the next evolution of Agentforce, we are providing both front-end customer-facing applications through this agentic platform. These are agents for service, sales, marketing, commerce, etc., and at the same time, we provide back-end operations. And we are very excited to announce brand new Agentforce agents: agents for supply chain, revenue management, IT services, ITSM, and so on. And in addition to providing automation through agents, we are providing support to many employees through agents now natively embedded in Slack, or Slackbot—if you haven't tried it yet, please do—or through agents for HR services. This is what we mean when we talk about Agentforce.
And of course, behind the scenes, there are all kinds of technologies. So, let's look at all the layers of these different technologies and see how the technology AWS is announcing today is helping us. In particular, we will look at a layer called the Trust Layer. We use a lot of models. As an enterprise, they want the option to choose any model they want in a reliable way. So, we provide a wrapper to ensure that it works for all the agentic applications you are thinking of.
A use case that caught our attention early this year, after reading the famous "Attention Is All You Need" paper, was: "Hey, the large frontier models out there—GPT-5.1, Claude 4.5—are truly amazing. But generally, the latency is high." So, if you have latency-sensitive applications like voice applications, you probably want to use something a bit more efficient. Our criteria are very simple: we want high accuracy, but we also want low latency and high explainability. And this need led us to consider creating our own fine-tuned Small Language Models, as they are usually called in the industry. This allows us to achieve low costs because we can host and manage them ourselves on AWS while balancing high accuracy and low latency.
So, the specific model we have been working on is currently released. It is called TaxEval. Internally, we call it TaxEval. This is our internal LLM-as-a-judge model. It has patents behind it. Currently, on a monthly basis, it handles about 130 million queries, and it is expected to double or triple in the next few months. This model drives numerous applications: guardrail applications, instruction adherence, task resolution, citations, automatic inline citation generation, and response quality evaluation in our Test Center product. This is our observability and testing experimentation platform.
The methodology we took is exactly as Shreyas described. There are a few things we were doing. This was before this amazing, easy-to-use product became available. It was quite a bit of work. The base model was GPT-4o S20B, fine-tuned using both publicly available datasets and synthetically generated SDG data. The pipeline went through a combination. This was a mixed model training approach between Supervised Fine-Tuning using reduced datasets and GRPO. GRPO is the Reinforcement Fine-Tuning technique Shreyas was talking about. And the result is TaxEval. It was completed literally within hours, whereas before it would have taken weeks.
Now, here is the slide that many of you, especially on the science side, have been waiting for. On the top row is the base model we are using for comparison, the GPT-4o 1120 version. Now, look to the far right and focus on the F1 score. Think of this as something like an accuracy score. It is for two use cases. The first is instruction adherence—how likely a response is to follow the given instructions. The GPT-4o F1 score is 88%. Completion is the task completion score. That is, last year's GPT-4o frontier model was 83%. Well, not bad, but it definitely costs money.
Now, for the GPT-4o S20B base model—remember, GPT-4o is probably a trillion-parameter model. So, a 20-billion-parameter model naturally performs worse. In fact, adherence is 64% and task completion is 79%. So, by using the standard technique number one that Shreyas and Shalendra introduced, Supervised Fine-Tuning, and using TaxEval, we were able to improve this, resulting in pretty good results, and the F1 score went up to 93%. Now, applying this Reinforcement Fine-Tuning natively, instruction adherence goes up to 95%, but for task completion, it stays at 79%. You might think, "Wait, what is happening?"
It turns out, as it were, the secret sauce is actually counterintuitive. If you take two different tasks—instruction adherence and task completion—and incorporate a dataset that goes beyond just instruction adherence, it actually improves both. The counterintuitive part is that instruction adherence is now improved to 97%, and task completion to 95%, both of which are significantly better than the frontier model GPT-4o, and the cost is a fraction of that—less than 10% on AWS. This is quite good.
As a next step, we are testing this, and it is currently running in production, and of course, we are planning to standardize this more and more. In fact, beyond the small task-specific models we have here, we are looking even further ahead. We are focusing on reasoning models. There is probably a better reason to move to something cheaper, faster, and perhaps even better right now.
As a final example, reasoning is likely the final frontier in getting agents to adhere to the constraints you want to give them. As part of the Salesforce Agentforce 360 launch, we launched a completely new way to handle enterprise reasoning. We call it an agent graph. To summarize in two sentences, we are externalizing complex reasoning into a graph of specialized agents coordinated by the Agentforce orchestrator. The key trick here is that state transitions from one specialist agent to another are controlled by finite state machines, or FSMs. For those from the CS field, this is a way to execute as deterministically as possible while retaining the natural-sounding voice of an LLM-based agent.
To achieve this, all the sub-specialist agents here can utilize a reinforcement fine-tuned language model as their base, as their reasoner. And we plan to work on this over the next year. Finally, I just want to show you—we are looking at the Trust Layer here—but I hope you can imagine that as we help many of you in this room revolutionize how enterprise agents work over the next few years, the impact of reinforcement fine-tuning could affect every component on this slide. Now, I will pass it back to Shalendra to wrap up.
Three Reasons to Choose Bedrock's RFT and Future Innovations
Shreyas and Phil, thank you. So, you have seen how reinforcement fine-tuning works on Bedrock and how customers like Salesforce are leveraging it for their own use cases. Today, you can see Reinforcement Fine-Tuning with the Nova Lite 2 model on Bedrock. Support for additional models, including open-weight models, will also be provided very soon. To summarize, here are the three main reasons to consider and use RFT on Bedrock. First, ease of use. Since we do all the end-to-end automation, you don't need to worry about infrastructure setup. You don't need deep ML expertise, either.
Second, better model performance. As you saw in Salesforce's and other experiments, using RFT yields an average improvement of up to 60-70% compared to the base model. And third, visibility into training metrics. This allows you to understand what is happening. And once training is complete and your RFT fine-tuned model is ready, you can deploy it with on-demand inference and pay only for the tokens you used.
Now, before wrapping up, I would also like to talk a little bit about the innovations we have been making across Bedrock. We continue to provide the latest and greatest foundation models on Bedrock, offering you a massive choice of models. And to provide you with better service, we will continue to invest more and more. Second, as you saw with the launch of RFT, we will continue to focus on model customization. Earlier this year, we launched model distillation capabilities and also launched on-demand inference for custom Nova and Llama models.
Third, we are investing heavily in Agentic AI and recently launched Agent Core. I hope you also saw the additional announcements regarding Agent Core agent evaluation and policy features. And fourth, we continue to launch new features for Bedrock Guardrails, and recently we launched support for coding-related use cases in Guardrails. We will continue to make Bedrock the most innovative GenAI platform in the industry so that you can build the most powerful, useful, and efficient GenAI apps for your customers. Thank you.
- This article is automatically generated using Amazon Bedrock, maintaining the information from the original video as much as possible.

































































Discussion