Help Center/ ModelArts/ Troubleshooting/ Training Jobs/ Training Job Accuracy Issues
Updated on 2026-07-10 GMT+08:00

Training Job Accuracy Issues

Symptom

When training algorithms on ModelArts, model accuracy anomalies occur. Common issues include:

  1. Training accuracy or validation accuracy is lower than expected.
  2. Multiple training runs with identical code yield inconsistent results.
  3. The loss function fails to converge, fluctuates wildly, or returns NaN.

Possible Causes

The possible causes are as follows:

  1. Changes in training code or training parameters
    • Modifications made to parameters such as learning rate, batch size, epoch, optimizer, or scheduler.
    • The random seed was not fixed.
    • Alterations in strategies such as mixed precision, gradient clipping, or gradient accumulation.
    • Anomalies in the checkpoint loading logic.
  1. Discrepancies in datasets or data preprocessing
    • Incorrect path configurations for training or validation sets.
    • Changes in the dataset version.
    • Data augmentation strategies that do not match expectations.
    • Errors in label files or misconfigured category mappings.
    • Anomalies in data reading sequences or shuffle settings.
    • Inconsistent splitting of training and validation data.
  1. Inconsistent environment dependency versions
    • Mismatched versions of core frameworks such as PyTorch, TensorFlow, or MindSpore.
    • Version discrepancies in third-party dependency libraries.
    • Changes in the image version, leading to differing operator behaviors or default parameters.
  1. Anomalies in distributed training configurations
    • Failure to scale the batch size or learning rate proportionally during multi-PU training.
    • Misconfiguration of the distributed sampler.
    • Anomalous configurations for rank or world size.
    • Gradient synchronization anomalies.
    • Unstable communication during multi-node training causing training exceptions.
  1. Anomalies in resources or runtime status
    • Abnormal NPU utilization.
    • Node faults, communication failures, or storage read/write exceptions.

Solution

  1. Check whether the training code and parameters have been modified.

    Loss function

    Optimizer

    Learning rate

    Batch size

    Number of epochs

    Random seed configuration

  2. Check whether the dataset is identical to the one used in normal training runs, or verify if the dataset has successfully yielded normal training results before.
  3. If accuracy fluctuates significantly across multiple training runs, check whether the random seed has been explicitly fixed.
  4. If the previous troubleshooting steps do not surface the issue, consider using a binary search approach to isolate node-specific faults. Recursively split the nodes from the current training job into smaller-scale jobs over multiple runs to pinpoint whether a silent failure on a specific node is driving the accuracy anomaly.