You are optimizing a deep learning model in SageMaker. Training is unstable with gradients that sometimes explode. You want a mitigation strategy consistent with common ML engineering practices in AWS training jobs. Which choice best addresses this?
Answer
Apply gradient clipping and use an appropriate optimizer/schedule, monitoring for divergence in training metrics
Explanation
Gradient clipping constrains extreme updates and improves stability. Pairing it with the right optimizer and monitored metrics helps prevent divergence and wasted compute.
Last reviewed: October 2026
Reviewed by FirstInTest Editorial Team
Related questions
A pipeline trains a model where labels are delayed by 30 days and missing labels are common. You need to minimize leakage while still monitoring early performance. Which approach best fits ML in AWS?
View question →
You need to choose between batch and streaming inference for an event-driven system. Events arrive continuously from Kinesis, and you need predictions to trigger downstream actions within minutes. Which choice and architecture is best?
View question →
A data scientist wants to use a stratified sampling strategy for cross-validation on an imbalanced dataset but must also preserve time ordering. Which approach is most appropriate for building folds?
View question →
An engineer uses AWS to implement an end-to-end workflow where training data uses a cutoff timestamp, and later they evaluate with “out-of-order” events. Which failure mode is most likely if they do not align features and labels by the prediction window?
View question →
A classification model shows poor calibration and you must improve decision thresholds under class imbalance. Which method is most appropriate for calibration-focused refinement before deployment?
View question →
During feature engineering, you consider using data from multiple sources that update at different cadences (hourly and daily). You must build a training set for a specific prediction window without using future updates. Which approach prevents leakage most effectively?
View question →