Tech DeepDive: Machine Learning in Generative AI - How it Works
Kevin Zook
Global Lead - AWS Certification Readiness | Top Voice in Cloud | Product Visionary | AWS Certified x6 | MBA
There's been an increase in focus on the rapidly evolving world of artificial intelligence (AI) over the past 3 years. I wanted to take the time to break this down a bit more - after all, how does all of this really work? While not a "new" concept, the Generative stage of the AI lifecycle certainly is - and it's here to stay. At their core, both AI and Generative AI (GenAI) leverage machine learning (ML) to help them make decisions (predicted outcomes) based on a wide range of trained inputs (models). Regardless of the tool you are using, it relies on an underlying type of machine learning that leverages massive amounts of data to work. Any of the big names that you see in the news - like Midjourney , OpenAI 's ChatGPT , Amazon Web Services (AWS) , Google Cloud , and Microsoft Azure all follow the same foundational steps when leveraging ML for their services.
What is Generative AI? (and how it works in simple terms)
Generative AI refers to a subset of AI that focuses on creating (generating) new content. This technology learns from existing data and generates new items that retain the original data's characteristics. Unlike traditional AI, which is designed to recognize and classify data, Generative AI goes a step further—it creates!
But just like traditional AI, at the heart of it all is machine learning, particularly deep learning—a process that uses neural networks with many layers (hence 'deep'). These networks are trained on large datasets, allowing them to learn and generate complex patterns and information. In general, the larger the data set - the larger the opportunity for various outputs. Here's a breakdown of how this process works:
1. Data Collection and Preparation
Before anything else, you have to assemble a large and diverse dataset is. This dataset should be representative of the type of content you want the AI to generate. For example, if the goal is to generate new music, the dataset might consist of a thousands (or tens of thousands) of musical pieces across a variety of genres. While not a requirement, you can make it easier on your models if many of the files are in similar datatypes. It doesn't do much good to have a range of .mp4 files and a handful of .txt files. Look for consistency in data types and diversity of data inputs.
2. Choosing a Machine Learning Model
There are different types of machine learning models used in Generative AI, each suitable for different kinds of tasks. There are so many to cover, but you might here these common models more than others:
3. Training the Model
The selected model is trained using the dataset. During training, the model learns the patterns, styles, or characteristics of the data. For instance, a model trained on a dataset of paintings will learn various artistic styles and elements present in that dataset. This is where services like Midjourney come into play with their ability to bring an incredible range or artistic skillsets to bear.
领英推荐
4. Generating New Content
Once trained, the model can start generating new content. The generated content is based on what the model learned during training but is original and not a mere copy of the training data. Prompts is what really sets each tool apart. Entering a basic prompt like, "Generate an image of a flower in an oil painting style" will definitely return a result. However, the more detailed you can be - the better the outcome. We'd take the above prompt and instead say something like, "Illustration, night core, blue and teal in the kitchen, in the style of amanda clark, mandy disher, charming, idyllic rural scenes, glittery and shiny, alma woodsey thomas, konica big mini, the stars art group in style of whimsical naive art, nostalgic atmosphere, oil painting influence." As you can see, the more detailed the prompt, the more accurate the output since GenAI can further focus the input parameters from the training data.
5. Evaluation and Refinement
The outputs are evaluated to see how well they match the desired outcome. The model might be further refined and retrained to improve the quality of the generated content. For those of you that have used ChatGPT, this is the same function as clicking the 'regenerate' button and having the tool ask you if the second output was better/worse than the first. This human input allows the model to continue to learn and evolve itself to be able to better understand what we are prompting it to generate.
How can I use GenAI right now? Well let's take a look at some Amazon Web Services (AWS) examples!
I am biased since my 'home' cloud is AWS. It's what I am most familiar with and the cloud provider I chose early on in my career to specialize in. AWS offers a range of tools that simplify the use of machine learning for Generative AI. Unlike other providers, AWS focuses on providing tools to the end user (you) that let you build and train your own machine learning models. These tools are accessible to professionals without deep ML expertise, making it easier to implement and experiment with Generative AI models.
Next time you're in a conversation about ML and GenAI, you'll know some key AWS offerings:
Future of Generative AI and a Quick Recap
The future of Generative AI is incredibly exciting. But under the hood, it's relatively simple when we break things down. So remember, GenAI is a type of AI that can generate new content. It does this based on the underlying ML models that form the wide range of trained 'inputs' that it can draw on. Based on your prompts, GenAI will look at all of the data it has access to and generate a response it believes is the closest to your request. To get the best outcomes, you need to make sure your prompts are specific, defined, and as detailed as possible. As machine learning models become more sophisticated, more robust, and better trained the potential applications of Generative AI continue to grow. Don't let it grow without you! Spend the time now on learning how to craft prompts for tools like ChatGPT, MidJourney, and Scribe to build your skillsets before these services become common place.
st.joseph's college of Engineering
8 个月@ Kevin Zook .But make them a video..or something!
Understanding machine learning is key to unlocking its full potential in your work, and it's great to see you're sharing knowledge on this! ?? Generative AI can elevate the quality of your projects by streamlining tasks, enhancing creativity, and offering data-driven insights in less time. ?? I'd love to explore how generative AI can specifically benefit your current tasks and activities. Let's book a call to dive into the possibilities together! ?? Click here to join our WhatsApp group and set up a time: https://chat.whatsapp.com/L1Zdtn1kTzbLWJvCnWqGXn Cindy
Principal at PwC; Digital Assurance & Transparency
10 个月These are awesome....keep them coming. But make them a video....or something!
AWS Solution Architect @DigitalCloudAdvisor ltd # 4 x AWS Certified #AWS Solution Architect Professional #AWS security #AWS advanced Networking
10 个月Gould be great if you can drop few twitch power hour sessions about ML & AI. Do really enjoy this type of content. And thanks in advance