သဘောတရား
Debugging model convergence
Find out why training loss does not fall, and fix it: learning rate, initialization, gradients and data.
ဒီသင်ခန်းစာကို မြန်မာဘာသာ မပြန်ရသေးလို့ အင်္ဂလိပ်လို ပြထားပါတယ်။
Loss does not fall
- Likely cause
- Rate too low, bad data
- Fix
- Raise rate, check labels
Loss jumps or is NaN
- Likely cause
- Rate too high, exploding gradients
- Fix
- Lower rate, clip gradients
Early layers stop learning
- Likely cause
- Vanishing gradients
- Fix
- ReLU, residual links
Loss swings wildly
- Likely cause
- Rate high, tiny batches
- Fix
- Decay rate, bigger batch
Train falls, validation rises
- Likely cause
- Overfitting
- Fix
- Regularize, stop early
| Symptom | Likely cause | Fix |
|---|---|---|
| Loss does not fall | Rate too low, bad data | Raise rate, check labels |
| Loss jumps or is NaN | Rate too high, exploding gradients | Lower rate, clip gradients |
| Early layers stop learning | Vanishing gradients | ReLU, residual links |
| Loss swings wildly | Rate high, tiny batches | Decay rate, bigger batch |
| Train falls, validation rises | Overfitting | Regularize, stop early |
1 / 2
Loss does not fall
- Likely cause
- Rate too low, bad data
- Fix
- Raise rate, check labels
Loss jumps or is NaN
- Likely cause
- Rate too high, exploding gradients
- Fix
- Lower rate, clip gradients
Early layers stop learning
- Likely cause
- Vanishing gradients
- Fix
- ReLU, residual links
| Symptom | Likely cause | Fix |
|---|---|---|
| Loss does not fall | Rate too low, bad data | Raise rate, check labels |
| Loss jumps or is NaN | Rate too high, exploding gradients | Lower rate, clip gradients |
| Early layers stop learning | Vanishing gradients | ReLU, residual links |
2 / 2
Loss swings wildly
- Likely cause
- Rate high, tiny batches
- Fix
- Decay rate, bigger batch
Train falls, validation rises
- Likely cause
- Overfitting
- Fix
- Regularize, stop early
| Symptom | Likely cause | Fix |
|---|---|---|
| Loss swings wildly | Rate high, tiny batches | Decay rate, bigger batch |
| Train falls, validation rises | Overfitting | Regularize, stop early |
- 1The job runs with rules attached.
- 2A rule fires and stops the job or sends an alert.
- 3The job writes tensors to S3.
- 4Open TensorBoard to inspect gradients and compare jobs.
ဘာလဲ
A model has converged when the loss falls steadily and then levels off. Watch the training and validation loss at every step or epoch. The shape of the curve points to the cause, as the table shows.
ဘာလဲ
Learning rate too high: the loss bounces or turns NaN because steps overshoot. Too low: the loss falls very slowly. Bad initialization: weights that are all alike, or too large or small. Vanishing gradients: in deep networks the gradient shrinks on its way back, so early layers stop learning (common with sigmoid and tanh). Exploding gradients: weights turn NaN or infinite. Data problems: unscaled features, noisy labels, data in a fixed order. Fixes: lower or decay the rate, scale inputs, better initialization, ReLU-type activations, residual connections or batch normalization, clip gradients, and check the labels first.
ဘာလဲ
SageMaker AI Debugger attaches rules to a training job. Built-in rules include loss_not_decreasing, vanishing_gradient, exploding_tensor, poor_weight_initialization, saturated_activation, dead_relu, overfit, overtraining and class_imbalance. Up to 20 built-in rules can attach to one job. A rule can stop the job, send a notification, or run your own action through Amazon CloudWatch Events and AWS Lambda. Debugger also profiles CPU, GPU, memory and I/O, which finds a slow job, a speed problem and not a convergence problem.
ဘာလဲ
TensorBoard on SageMaker AI works with PyTorch, TensorFlow and Hugging Face jobs. The job writes tensors and scalars to S3, and TensorBoard shows loss curves, gradient and weight histograms, and compares jobs. MLflow tracks the loss per run, and a CloudWatch alarm can watch it. Status: Debugger has been closed to new customers since July 30, 2026. Existing customers can keep using it. Profiler is being retired: AWS ends support on June 30, 2027. AWS points to MLflow, TensorBoard and CloudWatch. Exam questions can still name Debugger rules.
မှတ်ထားရန်
- Loss flat: rate too low or bad data. Loss up or NaN: rate too high or exploding gradients.
- Debugger rules (up to 20 built-in) stop the job or alert. TensorBoard shows histograms.
စာမေးပွဲမှာ
- “Training loss turns into NaN after a few steps” points to a learning rate that is too high or to exploding gradients.
- “Stop the training job when the loss stops falling” points to the Debugger loss_not_decreasing rule.
- “Inspect gradient histograms from a PyTorch job” points to TensorBoard.
ဒါတွေနဲ့ မရောပါနဲ့
ဒီ task ထဲမှာ · 2.3
- Experiment tracking: managed MLflow
- Amazon Bedrock evaluations
- Performance baselines and drift detection
- Shadow variants and A/B tests
- Explaining model outputs
- Debugging model convergence
- Evaluating traditional ML models
- NLP and text-generation metrics
- Human evaluation and human-in-the-loop
- LLM-as-a-judge and AI output assessment
- Evaluating RAG retrieval and answers