The validation process employed a simple methodology to maintain objective performance assessment:
- Validation Dataset: 20% of the generated data held out from training.
- Multiple Metrics: Comprehensive assessment using complementary evaluation metrics.
- Quantization Simulation: Validation performed using the same quantization scheme as the target hardware.
The quantization-aware trained Sine_64 model achieved good performance metrics, as expected for a simple ML model, that validate its effectiveness for NPU deployment:
- Validation Loss is measure by Mean Squared Error (MSE). Mean Squared Error measures the average of squared differences between predicted values (ŷi) and actual values (yi). Lower values indicate better model performance.
Equation 1.
- Mean Absolute Error measures the average absolute difference between predicted and actual values. Unlike MSE, this does not square the errors, which is less sensitive to outliers.
Equation 2.
- R² indicates how well the model explains the variance in the data compared to using the mean as a predictor. Values range from 0 to 1, with 1 representing perfect prediction. A validation R² score indicates the model explanation of variance of given data.
Equation 3.
Variables:
- yi = Actual (true) sine value for the ith sample
- ŷi = Predicted sine value from the neural network for the ith sample
- ȳ = Mean of all actual sine values in the validation dataset
Table 5-2 Training Validation Metrics| Metric | Metric | Significance |
|---|
| Validation Loss | 0.00038 | Extremely low mean squared error indicating high prediction accuracy |
| Validation MAE | 0.01305 | Mean absolute error of ~1.3% across the sine range (-1 to +1) |
| Validation R² Score | 0.9993 | Nearly perfect coefficient of determination, indicating the model explains 99.93% of the variance in sine values |
These metrics demonstrate several key achievements:
- High Precision: Despite quantization constraints, the model achieves sub-percent accuracy.
- Consistent Performance: Strong R² score indicates reliable prediction across the entire input range.
- Quantization Resilience: Minimal performance degradation despite integer-only operations.
- Deployment Readiness: Metrics validate the model's suitability for NPU implementation.