← AI Practitioner study path

Responsible AI, security and governance · 13 min

Legal risks of generative AI and how to choose a model

In this lesson you will learn what the five legal risks of generative AI named in the exam guide are, what AWS covers for intellectual property, what happens to your data in Amazon Bedrock and how to choose a model with sustainability in mind.

The legal risks of generative AI and the responsible choice of a model are two topics of task 4.1 of the AWS Certified AI Practitioner exam guide. The task asks you to identify the legal risks of working with generative AI and to define responsible practices for selecting a model. A legal risk is a problem that can end in a complaint, a fine or a lawsuit against the company. For example, an online store that uses generative AI to write its product descriptions and to serve its customers in a chat faces both topics: what happens if the model says something that gets it into trouble, and which model it should use.

What legal risks does the guide name?

The five legal risks of generative AI: intellectual property infringement claims, biased model outputs, loss of customer trust, end user risk and hallucinations

The exam guide names five legal risks of generative AI:

  • Intellectual property infringement claims, which come up when someone says that what the model generated copies their work. Intellectual property is the right a person has over what they created, such as a photo, a song or a text. For example, an illustrator says the image the model made for the store looks too much like one of their drawings.
  • Biased model outputs, which come up when the system treats a group of people differently. For example, the store's chat offers discounts to men and not to women.
  • Loss of customer trust, which happens when customers stop believing in your product after errors or harm. For example, customers stop buying because the chat gave them false delivery dates several times.
  • End user risk, which comes up when someone acts on a bad response. The end user is the person who uses the product at the end of the chain, such as the store's customer. For example, a customer buys a charger the chat said was compatible with their phone, and the charger damages it.
  • Hallucinations, which AWS defines as incorrect or misleading responses from the model. For example, a jacket's description says it is waterproof when it isn't.

Legal risks of a single incident

These risks don't come separately, because a single incident can fall into several of them at once. AWS shows this on its page about hallucinations with the case of a support agent who gives a customer the wrong solution, because the internal chatbot made it up. The made-up response is a hallucination, the customer who suffers the harm is an end user risk, and the company also loses that customer's trust. For example, if the store's chat makes up a return policy and a customer loses money by believing it, that same error is a hallucination, an end user risk and a loss of trust.

The same page has a more serious case. A coding assistant suggests that a developer install a that doesn't exist, and when the developer looks for it, they find that someone has already published a package with that name. By installing it, the developer ends up with on their computer, so a response made up by the model ends in harm to a real person.

Which legal risk is it?

0 of 4

Tap the risk that best describes each case.

  1. A photographer says that an AI-generated image in your campaign copies their work.

  2. The human resources assistant recommends female candidates less often.

  3. The chatbot cites a clause that doesn't exist in the contract.

  4. A patient takes the wrong dose because that is what the pharmacy assistant told them.

What does AWS cover for intellectual property?

According to the Amazon Bedrock FAQs, AWS offers uncapped indemnification for third-party claims of copyright infringement over what its indemnified generative AI services generate. Indemnification is a commitment to cover the costs of a legal problem, and copyright is the author's right over a work. Those services are the Amazon models and the others listed in section 50.10 of its . In practice, if a third party sues you because the output infringes their copyright, AWS defends you. For example, if the store generates a product image with an Amazon model and a photographer sues it saying the image copies their photo, AWS covers that lawsuit.

This indemnification has conditions. It doesn't apply if your own input data infringed copyright, or if you disabled the filters that come with the service, and AWS also asks that you use the services responsibly. For example, if the store gives the model another brand's photo and asks it to make an identical one, the indemnification doesn't cover it, because the copying started with what the store gave it.

Models from other providers

Models from other providers work differently, because each one has its own end user license agreement (EULA), which is the provider's contract with whoever uses its model, and the Bedrock documentation says that by invoking a third-party model you accept its EULA. That is why, when your application uses a or one you fine-tuned, that is, one you taught more with your own data, the AWS AI Security Scoping Matrix recommends reviewing two sets of terms: those of the service and those of the model provider. For example, if the store uses another company's model in Bedrock to make images, it reads both the AWS terms and that company's license before using the images in its advertising.

Your data in Bedrock

The same Bedrock FAQs explain what happens to your data. What you send to Bedrock and what you receive is not used to train the Amazon models or third-party models, and it isn't shared with the model providers either. For example, if the store's chat sends Bedrock a customer's question with their order number, neither Amazon nor the model provider uses that conversation to improve their models.

True or false?

0 of 3
  1. The AWS indemnification covers you even if your input data infringed copyright.

  2. When you invoke another provider's model in Bedrock, you accept its end user license agreement.

  3. If you turn off the service's filters, the indemnification may stop applying.

How do you choose a model responsibly?

Three steps for choosing a model with sustainability in mind: check whether generative AI is needed, choose the right size and pay only for what runs

The guide asks for responsible practices for selecting a model and gives environmental considerations and sustainability as an example. Sustainability, here, is using as little energy and equipment as possible to get what you need, because a larger model uses more electricity. The sustainability pillar of the AWS Generative AI Lens puts that choice in three steps:

  • The question of whether generative AI is needed, which AWS explains with the example of searching for information: a search engine returns results with fewer resources than a model that generates text. For example, for a customer to find "red sneakers" in the store, the website's search box is enough.
  • The choice of the right size, which matters because a small model tuned to your use case often gives results comparable to a large, general one, with less . For example, a small model fine-tuned with the store's descriptions can write new descriptions as well as a huge one.
  • Paying only for what runs, with and options, so that you don't have resources running without use. For example, if the store's chat gets almost no messages in the early morning, it shouldn't have equipment running and waiting at that hour.

Model size

The size of a model can be reduced with quantization, pruning and distillation. Quantization stores the model's numbers with less precision so it takes up less space, and pruning removes parts that barely affect its responses. Bedrock offers model distillation, which trains a small model to imitate a large one. In addition, the Bedrock catalog has models of very different sizes, such as Llama, which ranges from 1 billion (Llama 3.2 1B) to 405 billion (Llama 3.1 405B). For example, to summarize product reviews, the store can first try the smallest Llama and move to a larger one only if the summaries aren't good enough.

What do you change?

A company uses the largest model in its catalog to summarize internal emails and wants to reduce its environmental impact without losing much quality. What do you recommend?

Models in both accounts

If you want to compare models of different sizes in the Bedrock , keep the in mind, because in the new experience account your Region is us-east-2 and you can't use cross-Region inference, which is letting AWS handle your request in another Region. That is why in that account you will only see the models that can be invoked directly in that Region, while in the full account you choose the Region. For example, if a model is only offered with cross-Region inference, you won't be able to try it from the new experience account.

On the exam

Questions on this topic usually describe an incident or a decision about a model, and these words in the question point to the answer:

  • "Copyright claims", which points to intellectual property and to reviewing the license and the indemnification.
  • "Made-up response", which points to a hallucination.
  • "Reduce environmental impact" or "sustainability", which point to a smaller or distilled model, or to not using generative AI where it isn't needed.

For example, if the question says a school uses a huge model to sort messages into "questions" and "complaints" and wants to use less energy, the answer points to a smaller model.

Review question

An agency wants to use an image generation model from an external provider in Amazon Bedrock for its advertising, and it is worried about a copyright lawsuit. What should it review first?

Next

  • The Amazon Bedrock FAQs explain the indemnification and the use of your data.
  • Take an AI Practitioner practice exam at /examenes and review your result in domain 4.