This article introduces three AWS Well-Architected Lenses (Responsible AI, Machine Learning, and Generative AI) designed to guide the architecture, development, and operation of AI/ML workloads. These lenses provide best practices, principles, and actionable guidance across the AI lifecycle, from experimentation to large-scale production deployments, with a focus on reliability, security, performance, cost optimization, sustainability, and responsible AI considerations.
Read original on AWS Architecture BlogThe AWS Well-Architected Framework provides a structured approach to designing and operating cloud workloads, focusing on six pillars: operational excellence, security, reliability, performance efficiency, cost optimization, and sustainability. Lenses extend this framework with specific guidance for particular technology domains or industry segments. This article highlights three key lenses for AI/ML workloads: Responsible AI, Machine Learning (ML), and Generative AI. These lenses aim to help architects and developers build robust, efficient, and ethical AI systems on AWS, providing a consistent methodology for evaluating architectures and identifying areas for improvement.
The Responsible AI Lens is foundational, emphasizing the critical need to embed trust and ethical considerations into AI systems from inception. It guides developers in assessing and tracking AI workloads against best practices for responsible AI. Key architectural considerations include managing unintended impacts, anticipating uses beyond original intent, and recognizing Responsible AI as an enabler for innovation and stakeholder trust. This lens provides a framework to proactively address potential risks associated with AI applications.
The updated Machine Learning Lens offers a comprehensive set of cloud-agnostic best practices aligned with the Well-Architected Framework pillars, covering the entire ML lifecycle. It provides guidance for designing, building, and operating various ML workloads, from traditional supervised/unsupervised learning to modern AI applications. Updates incorporate recent AWS ML capabilities, emphasizing collaborative workflows, AI-assisted development, distributed training infrastructure, model customization, and enhanced observability. Architects can apply this guidance during design or as part of continuous improvement in production.
Building upon the ML Lens, the Generative AI Lens offers specialized guidance for architectures utilizing large language models (LLMs) and generative AI applications. It addresses unique considerations like model selection, prompt engineering, model customization, workload integration, and continuous improvement. The lens incorporates best practices derived from thousands of customer implementations, including updated guidance for complex generative AI workflows, enhanced Responsible AI discussions, strategic data architecture for generative AI, and new paradigms for agentic AI systems. It also provides eight architectural scenarios for common generative AI business applications.
Architectural Best Practices for AI/ML
These lenses provide a robust framework for designing, implementing, and optimizing AI/ML systems. Architects should use them to ensure their AI solutions are not only performant and cost-effective but also reliable, secure, sustainable, and ethically responsible.