AWS Certified AI Practitioner

Guidelines for Responsible AI

Responsible Model Selection Practices

Welcome back, students. In this article, we delve into responsible model selection practices—a critical step in AI development. The chosen model significantly impacts system performance, user experience, market strategy, and overall business profitability.

Selecting the right model from the start is imperative. A model that is too large may incur high resource costs and slow response times, whereas one that is not well-aligned with your application goals may lead to excessive expenses, subpar performance, and a poorer user experience. The diagram below shows how model selection influences performance, profitability, user experience, and market strategy:

The image is a diagram titled "Model Selection AI Systems – A Critical Step," showing how model selection is central to performance, profitability, user experience, and market strategy.

For instance, employing a commercial model in an open source–centric company can lead to spiraling costs due to third-party licensing fees. Similarly, a model that hasn't been sufficiently trained for its intended domain will fall short on performance. On the other hand, a well-tuned model can boost customer satisfaction, drive sales, and improve accuracy. The image below compares a well-tuned model against a poorly tuned one, highlighting their influence on customer satisfaction and sales accuracy:

The image compares a well-tuned model, which boosts customer satisfaction and increases sales with accuracy, to a poor model that reduces performance quality.

Narrowing Down the Application Use Case

It is crucial to precisely define your application use case by considering not only the technological aspect but also the underlying business objectives, target audience, and domain requirements. For example, facial recognition should not be viewed merely as a technical solution; it must serve a definitive purpose—such as aiding in gallery retrieval for finding missing persons or enabling virtual proctoring during examinations. Each scenario has different requirements for precision and recall. The diagram below emphasizes how a focused use case optimizes model performance:

The image illustrates the use cases of face recognition technology, specifically in gallery retrieval for finding missing persons and virtual proctoring for monitoring exam rooms. It emphasizes the importance of narrowing the use case to optimize model precision and recall.

For instance, in a gallery retrieval system for missing persons, high recall is prioritized to retrieve as many potential matches as possible—even at the expense of accepting some false positives. In contrast, a celebrity recognition system requires high precision, ensuring that the identified matches are reliably correct. The following diagram compares these two systems and their distinct performance objectives:

The image compares "Gallery Retrieval" and "Celebrity Recognition" systems, highlighting that the former focuses on recall by retrieving many matches, while the latter emphasizes precision to minimize incorrect matches.

Retail AI Use Cases

In retail AI applications, the use case may differ significantly:

  • Cataloging Products: Requires a neutral model that delivers clear, accurate product listings for a broad audience.
  • Personalized Engagement: Demands a model tailored for persuasive content and high engagement when targeting a specific demographic.

The diagram below illustrates these differing focuses in a generative AI retail use case:

The image illustrates a narrow use case for generative AI in retail, comparing "Cataloging Products" with "Persuading a Specific Demographic," highlighting different focuses and requirements for each.

Performance Considerations

Choosing a model that not only offers an excellent user experience but is also highly customizable, agile, and compliant with licensing restrictions is paramount. A model’s performance may vary significantly from one dataset to another, which requires ongoing evaluation and tuning as your data evolves. The bar chart below compares the performance of a model across three different datasets:

The image shows a bar chart comparing the performance of a model on three datasets (A, B, and C), with Dataset B having the highest performance. The title suggests choosing a model based on performance, and there's a note about testing on specific datasets.

Keep in mind that model performance is a function of both its architecture and the dataset on which it is tested. A model might excel with one dataset while struggling with another. Continuous evaluation and adaptation are essential. The graph below underscores the importance of ongoing performance tuning as both datasets and model versions evolve:

The image is a graph showing model performance as a function of dataset and model version, with two lines representing Dataset A and Dataset B. It emphasizes the importance of continuous evaluation and tuning to adapt to dataset evolution and model behavior over time.

Environmental and Ethical Considerations

Responsible model selection also encompasses environmental factors. Considerations such as energy consumption, resource utilization, and environmental impact are becoming increasingly important. While large models can deliver high accuracy, they often require significant energy, whereas smaller, more efficient models might serve your purpose just as well. The following diagram outlines strategies to address resource utilization:

The image illustrates the concept of "Responsible AI – Environmental Considerations," focusing on energy consumption, resource utilization, and environmental impact related to AI models.

Instead of focusing solely on performance, you might choose energy-efficient models or implement strategies such as optimizing for renewable energy usage and reducing carbon footprints. Consider hardware costs and sustainability—for example, reusing or sharing hardware components can significantly reduce electronic waste. As part of the well-architected framework, sustainability is a core component, as illustrated below:

The image outlines four strategies for reducing resource utilization: encouraging hardware reuse, implementing sustainable lifecycle management, planning for the entire lifecycle, and designing with sustainability in mind.

Responsible AI Practices

When making model selection decisions, assess both the direct and indirect impacts. Weigh benefits against risks including worker displacement, data monopolization, and ethical considerations.

Moral agency in AI refers to the ability of a model to align its decisions with ethical values. Although current AI systems do not yet possess human-level moral reasoning, establishing transparency, traceability, and accountability in your models is essential. This approach allows you to understand how inputs influence outputs and to hold the system accountable. The image below highlights these key responsible AI principles:

The image illustrates a balance between economic benefits and risks of AI, highlighting streamlined processes and automation benefits versus monopolization, worker displacement, and inequality.

The following diagram further outlines core principles such as moral agency, value alignment, transparency, traceability, and accountability:

The image outlines principles of responsible AI, focusing on moral agency and value alignment, emphasizing transparency, traceability, and accountability.

Conclusion

Selecting a model that embraces transparency and accountability is critical for aligning your AI systems with ethical standards. By carefully considering your application use case, evaluating model performance across datasets, addressing environmental impact, and incorporating ethical principles, you can optimize your model selection process for both technical excellence and responsible AI practice.

Thank you for reading. We look forward to guiding you through more insights in our next article.

For further reading, check out our Kubernetes Documentation and the Terraform Registry.

Watch Video

Watch video content

Previous
Tools for Identifying Responsible AI Features