An e-commerce company uses a generative AI model to generate marketing copy. They notice that the model occasionally produces off-brand or inappropriate content. What is the best way to mitigate this?
Trains the model to adhere to brand style and content.
Why this answer
Fine-tuning the model on brand guidelines directly addresses the root cause of off-brand or inappropriate content by adjusting the model's weights to align with specific stylistic and content constraints. This supervised learning approach teaches the model the desired output patterns, making it inherently less likely to generate violations compared to post-hoc filtering or sampling adjustments.
Exam trap
Google Cloud often tests the misconception that sampling parameters (temperature, top-k) or safety filters are sufficient for content alignment, when in fact they only control randomness or block explicit violations, not the underlying model behavior that fine-tuning corrects.
How to eliminate wrong answers
Option A is wrong because reducing temperature lowers output randomness but does not enforce brand-specific constraints; it may still produce off-brand content that is simply less diverse. Option B is wrong because increasing top-k sampling restricts token selection to the top k most likely tokens, which can reduce creativity but does not incorporate brand guidelines or safety rules. Option C is wrong because a safety filter is a post-processing step that can catch explicit violations but does not prevent the model from generating subtly off-brand content that passes the filter, and it adds latency.