Skip to main content
XenonStack

AWS

XenonStack Blog Custom AI Agent Training with SageMaker Ground Truth

| Published | Updated

Custom AI Agent Training with SageMaker Ground Truth
9:23

Key takeaway

  • Custom AI agent training starts with labelled data. See how SageMaker Ground Truth labelling works, its status for new users and what to do first.

Custom AI agent training with Amazon SageMaker Ground Truth means using human-labelled data to teach a model the behaviour you want your agent to show. Ground Truth is the AWS service that manages the labelling work, so the labelled dataset that results can be used to train and evaluate a model.

This guide is for machine learning engineers and AI product owners who need labelled data for a custom model or agent. It explains how Ground Truth works, an important availability change, the steps of a labelling and training workflow, and how agents fit around the model.

What is SageMaker Ground Truth?

According to the Ground Truth documentation, Ground Truth helps you build high-quality training datasets for machine learning models, using workers from a vendor company you choose or from an internal, private workforce, along with machine learning. You can pick a built-in task type for a specific label type, or build a custom labelling workflow with your own interface and tools. Input data, an input manifest file and an output manifest file are held in Amazon S3, and job events are written to Amazon CloudWatch.

The same page describes automated data labelling as a process that uses machine learning to decide which data needs human labelling, which may reduce labelling time and manual effort.

Is SageMaker Ground Truth still open to new customers?

Check this before you plan around it. The AWS documentation states that Amazon SageMaker Ground Truth is no longer open to new customers. Existing customers can continue to use it as normal, and AWS says it continues to invest in security and availability improvements but does not plan to introduce new features. Teams starting a new project should confirm their options with AWS and treat the workflow below as a pattern for any labelling tool, not only this one.

How does a labelling and training workflow run?

The sequence is the same whichever tool does the labelling. The table maps each step to what happens in Ground Truth, as described in the AWS documentation.

Two-column diagram. Labelling side: define use case, prepare data, create labelling job, consolidate labels. Training side: review a sample, train and evaluate, deploy and monitor, feed failures back.
StepWhat you doGround Truth detail
1. Define the use caseState the behaviour the agent needs and the labels that describe itChoose a built-in task type or a custom workflow
2. Prepare dataCollect representative examples and remove data you may not useData sits in S3 with an input manifest file
3. Create a labelling jobWrite clear instructions and pick a workforcePrivate workforce, or a vendor from the AWS Marketplace
4. Review labelsSample the results and measure agreement between workersAnnotation consolidation combines several workers' answers
5. Train the modelUse the output manifest to train and evaluateOutput manifest file holds the labels
6. Deploy and monitorWatch real behaviour and send hard cases back for labellingStreaming jobs can keep sending new data to workers

How does Ground Truth decide the final label?

Several workers usually label each object, so Ground Truth has to combine their answers. The annotation consolidation notes explain that annotation consolidation combines the annotations of two or more workers into a single label, and that the label is a probabilistic estimate of what the true label should be. Using more workers can raise accuracy but also raises cost. The defaults are three workers for image classification, text classification, semantic segmentation and named entity recognition, and five for bounding boxes. The methods differ by task: bounding boxes, for example, are matched by their overlap and averaged.

The practical lesson is that a label is an estimate. Review a sample yourself, write instructions that remove ambiguity, and keep a record of which workers and instructions produced each batch.

How do AI agents change custom training?

A trained model is one part of an agent. The agent also needs tools, memory, permissions and rules for when to ask a person. Labelled examples teach the model how to classify or respond, but they do not decide what the agent is allowed to do. The strongest use of the labelling loop is to feed it from production: cases where the agent was unsure, was overruled or failed become the next batch to label, so the model improves where it is weakest. ElixirClaw is XenonStack's AI agents computing platform for building and running agents of this kind.

What are the risks and good practices?

RiskWhy it mattersPractice
Vague instructionsWorkers disagree and labels become noisyWrite examples of edge cases and test with a small batch
Unrepresentative dataThe model fails on real inputsSample from production, not only from clean sources
Sensitive dataLabelling exposes data to workersUse a private workforce and limit what is shared
No feedback loopQuality drifts after launchRoute failures and overrides back to labelling

What should you do first?

  1. Write down the one behaviour the agent must get right, and how you will measure it.
  2. Collect a small, representative sample and label it yourself to find where instructions are unclear.
  3. Check the current status and options of your labelling service with its provider.
  4. Run a pilot batch, review agreement between workers and fix the instructions.
  5. Train on the pilot, test on held-out data and plan how failures return to labelling.

To map one decision your agents make, and the data and policy it depends on, book a Context Workshop. See what happens in the workshop.

Next Steps in Training Custom AI Agents with AWS SageMaker Ground Truth

Talk to our experts about the Next Steps in Training Custom AI Agents with AWS SageMaker Ground Truth. Learn how industries and departments leverage Agentic Workflows and Decision Intelligence to enhance AI model accuracy, automate data labeling, and optimize training pipelines. Utilize AI to streamline model development, improve efficiency, and drive smarter, data-driven decisions.

Frequently asked questions

What is SageMaker Ground Truth used for?

It is used to build labelled training datasets for machine learning models, with a private workforce or a vendor doing the labelling and optional machine learning help to choose what humans label.

Can new customers use SageMaker Ground Truth?

AWS documentation says Ground Truth is no longer open to new customers. Existing customers can continue to use it, but no new features are planned.

How many workers label each item?

You choose. The AWS defaults are three workers for classification, segmentation and named entity recognition tasks and five for bounding boxes. More workers can raise accuracy but increase cost.

Is a consolidated label always correct?

No. AWS describes the consolidated label as a probabilistic estimate of the true label, so you should still review a sample.

Does labelled data make an agent safe to run?

No. Labels train the model. Permissions, approvals and logging decide what the agent may do and need to be designed separately.

Follow XenonStack on LinkedIn: XenonStack on LinkedIn for new guides on agentic AI, data and platform engineering.

Ready to put AI agents to work? Explore ElixirClaw, the agentic OS platform to build, orchestrate and govern AI agents.

Table of Contents

navdeep-singh-gill

Navdeep Singh Gill

Global CEO and Founder of XenonStack

LinkedIn profile

Navdeep Singh Gill is serving as Chief Executive Officer and Product Architect at XenonStack. He holds expertise in building SaaS Platform for Decentralised Big Data management and Governance, AI Marketplace for Operationalising and Scaling. His incredible experience in AI Technologies and Big Data Engineering thrills him to write about different use cases and its approach to solutions.

Get the latest articles in your inbox

Subscribe Now

Interested in solving your challenges with the XenonStack team?
Get Started

Tell us about you and your priorities so we can prepare the right conversation. It takes about 2 minutes.

Please Select your Industry
Banking
Fintech
Payment Providers
Wealth Management
Discrete Manufacturing
Semiconductor
Machinery Manufacturing / Automation
Appliances / Electrical / Electronics
Elevator Manufacturing
Defense & Space Manufacturing
Computers & Electronics / Industrial Machinery
Motor Vehicle Manufacturing
Food and Beverages
Distillery & Wines
Beverages
Shipping
Logistics
Mobility (EV / Public Transport)
Energy & Utilities
Hospitality
Digital Gaming Platforms
SportsTech with AI
Public Safety - Explosives
Public Safety - Firefighting
Public Safety - Surveillance
Public Safety - Others
Media Platforms
City Operations
Airlines & Aviation
Defense Warfare & Drones
Robotics Engineering
Drones Manufacturing
AI Labs for Colleges
AI MSP / Quantum / AGI Institutes
Retail Apparel and Fashion

Continue