The Layered Architecture of AWS AI/ML Services - Flexibility Through the Three Tiers of SageMaker, Bedrock, and API Services

This article organizes AWS AI/ML services into three layers - SageMaker (full control), Bedrock (managed generative AI), and Rekognition/Comprehend/etc. (API-based) - and explains AWS's flexibility through comparisons with GCP Vertex AI and Azure OpenAI Service, including custom silicon integration.

Why AI/ML Services Need a 'Layered' Approach

AI/ML maturity varies across organizations. Some have data scientists building models from scratch, while others only need to call pre-trained models via APIs. With the emergence of generative AI, the intermediate need to customize foundation models has also grown. AWS addresses this diverse range of needs with a three-layer structure: SageMaker for full control, Bedrock for managed generative AI, and API-based services like Rekognition, Comprehend, and Transcribe. Each layer is independent yet interoperable, allowing organizations to start at the appropriate layer for their AI maturity and gradually progress to more advanced usage.

SageMaker - A Full-Control End-to-End ML Platform

SageMaker is a platform that covers the entire ML workflow. It provides a consistent environment for data preprocessing (Data Wrangler, Processing), model training (Training, HyperParameter Tuning), deployment (Endpoints, Serverless Inference), and monitoring (Model Monitor). SageMaker Studio serves as a browser-based IDE offering Jupyter notebooks, experiment management, model registry, and pipeline visualization. SageMaker can be combined with AWS compute infrastructure. Training jobs can use GPU instances (P5, P4d) or AWS's custom Trainium chips, while Inferentia chips are also an option for inference. Built-in distributed training libraries (SageMaker Distributed Training) also support large-scale model training.

Bedrock - A Multi-Model Strategy for Managed Generative AI

Bedrock is a platform that provides foundation models for generative AI as a managed service. It offers models from multiple providers - including Anthropic's Claude, Meta's Llama, Stability AI's Stable Diffusion, and Amazon's own Nova - through a unified API. This "multi-model" approach is one of the differences when compared with Azure OpenAI Service. Azure OpenAI Service centers on OpenAI models. With Bedrock, you can choose a model for each use case and also build a setup that does not depend on a specific provider. Knowledge Bases for RAG (Retrieval-Augmented Generation), Guardrails for content filtering, and fine-tuning for model customization are all provided as integrated Bedrock features.

API-Based Services - Embedding AI with Just Code

The third layer of AWS AI services consists of API-based services specialized for specific tasks. Many services are available, including Rekognition (image and video analysis), Comprehend (natural language processing), Transcribe (speech recognition), Translate (translation), Polly (text-to-speech), Textract (document analysis), and Personalize (recommendations). With these services, you can embed AI capabilities into your applications by calling REST APIs. Google Cloud also offers API-based services such as Vision AI, Natural Language AI, and Speech-to-Text, and AWS has services aimed at specific use cases, such as Textract's form analysis and Personalize's real-time recommendations. API-based services are still in use since the emergence of generative AI, and they are chosen after comparing them with general-purpose LLMs in terms of latency and cost.

Custom Silicon Integration - Inferentia and Trainium

The AWS AI/ML strategy also includes custom silicon. Inferentia for inference and Trainium for training are AI-specific chips designed in-house by AWS, built with an emphasis on cost-performance. Inferentia2 is a chip aimed at large language model inference. Trainium2 is intended for distributed training of large models and can be used transparently from SageMaker or EKS. Google Cloud has an AI-specific chip, the TPU (Tensor Processing Unit), which is offered in the Google Cloud environment. The makeup of Azure's AI chips differs from that of AWS. Custom silicon options are one of the factors to weigh when considering the cost of AI workloads.

Usage Patterns for the Three-Layer Structure

AWS's three-layer AI/ML structure enables staged adoption aligned with organizational maturity. In the early stages of AI adoption, you can quickly prove value with API-based services; as generative AI usage advances, you can transition to customization with Bedrock; and when custom model development becomes necessary, you can introduce SageMaker. This provides a clear growth path. The three layers are not mutually exclusive and can be used together within the same application. For example, you could classify user inquiries with Comprehend, generate responses with a Bedrock LLM, and evaluate response quality with a custom model trained in SageMaker.

Summary

AWS AI/ML services provide options for organizations at varying levels of AI maturity through the three-layer structure of SageMaker, Bedrock, and API-based services. Azure OpenAI Service offers OpenAI models, and Bedrock brings together models from multiple providers. Google Cloud's Vertex AI is an integrated platform. Furthermore, the custom silicon of Inferentia and Trainium is also one of the options related to AI workload costs. AI/ML adoption does not happen overnight - it deepens gradually. AWS AI/ML services are structured so that you choose a layer as you grow.

References (Official AWS Resources)

The primary sources for this page are the official AWS website and documentation. Check the official pages below for the latest specifications and pricing.

If this page and the official documentation disagree, treat the official documentation as authoritative.

Share