openvinotoolkit / openvinotoolkit/nncf

Cache Statistics in OpenVINO Accuracy Restorer

Open
#3,905 5 comments 0 reactions 1 assignee View on GitHub

@andrey-churkin is already working on this.

Since Feb 26, 2026.

Dominant language
Python
Stars
1.2k
Forks
305
Avg merge
1d 9h
Merged PRs (30d)
27

Description

Description

In the OpenVINO backend, statistics collection inside quantize_with_accuracy_control_impl can be redundant when hyperparameter tuning is enabled.

Currently, the same statistics may be recalculated during both the initial quantization pass and the subsequent tuning/restoration steps, which can double the runtime of an already expensive process.


Location

quantize_model.py:L254

Problem Summary

  • Statistics are recalculated unnecessarily during hyperparameter tuning
  • Leads to slower quantization
  • Wastes compute and reduces user experience for large models
  • The operation is expensive and redundant

Suggested Fix

  • Implement caching of statistics collected during the initial quantization pass
  • Reuse cached statistics for subsequent tuning or restoration steps
  • This avoids redundant computation and improves runtime

Example idea:

# Pseudocode
if statistics_cache_exists:
    use_cached_statistics()
else:
    collect_statistics()
    save_to_cache()

Expected Benefits

  • Faster hyperparameter tuning and accuracy restoration
  • Reduced computation overhead
  • Improved user experience and model quantization workflow
  • Maintains correctness of accuracy-aware quantization

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.