Skip to main content

Instance noise reduction framework based on Deep Learning gradients agnostic to the network architecture.

Project description

DenoGrad: Deep Gradient Denoising Framework

arXiv Python License

📄 Description

DenoGrad is a novel gradient-based denoising framework designed to enhance the robustness and performance of Artificial Intelligence models, with a specific focus on interpretable (white-box) models.

Unlike conventional techniques that simply remove noisy instances or significantly alter the data distribution, DenoGrad leverages the gradients of a reference Deep Learning (DL) model—trained on the target data—to dynamically detect and correct noisy samples.

🚀 Key Features

  • Gradient-Based Correction: Utilizes gradient information from deep models to guide the noise reduction process effectively.
  • Distribution Preservation: Corrects instances while maintaining the original data distribution, avoiding oversimplification of the problem space.
  • Task Agnostic: Validated effectively on both tabular data and time-series datasets.
  • Interpretable AI Enhancement: Specifically engineered to boost the performance of interpretable models in noisy environments without sacrificing transparency.

🛠️ Installation

pip install denograd

📖 Basic Usage

from denograd import DenoGrad

# Initialize the denoiser with your reference model
denoiser = DenoGrad(
    model=my_deep_model, # DL model fitted to noisy data
    criterion=nn.MSE(),
    is_ts=False, # Is it a time series problem?
    is_cnn=False # Has the DL model a CNN layer at the beginning?
)

# Fit the noisy data
denoiser.fit(x_noisy, y_noisy)

# Denoise the dataset
x_clean, y_clean, x_gradients, y_gradients = transform(
    nrr = 0.05, # Noise Reduction Rate. Same functionality as learning rate but for denoising porposes.
    nr_threshold = 0.01, # "Level" of noise allowed.
    max_epochs = 200, # Max number of epochs to perform the denoising process.
    plot_progress = False, # 2D and 3D data exclusive.
    path_to_save_imgs = '', # Path where to save the imgs generated for 2D or 3D data.
    denoise_y = True, # It is recommended to set to False for time series (TS) problems.
    batch_size = 1024, # Only used in TS problems.
    save_gradients = True # Save all the gradients calculated through the denoising process.
)

📝 Citation

If you use DenoGrad in your research, please cite our paper:

@article{denograd2025, title={DenoGrad: Deep Gradient Denoising Framework for Enhancing the Performance of Interpretable AI Models}, author={Alonso-Ramos, J. Javier and [Other Authors]}, journal={arXiv preprint arXiv:2511.10161}, year={2025} }

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

denograd-0.1.2.tar.gz (19.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

denograd-0.1.2-py3-none-any.whl (19.3 kB view details)

Uploaded Python 3

File details

Details for the file denograd-0.1.2.tar.gz.

File metadata

  • Download URL: denograd-0.1.2.tar.gz
  • Upload date:
  • Size: 19.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.21

File hashes

Hashes for denograd-0.1.2.tar.gz
Algorithm Hash digest
SHA256 42bf5e7a835d553cade9962f2239d05eb1d696abe2388aff018a1695e6db3eb7
MD5 497bbd043031d3f64486120429732856
BLAKE2b-256 4e8f4c0fb8b0ae1fbdb4127a0ff73f87d73fd21a34e9343baaa5f83c7070ba98

See more details on using hashes here.

File details

Details for the file denograd-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: denograd-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 19.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.21

File hashes

Hashes for denograd-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 32d08b422885645cae41e5135854bcb6f005b0aaeb04a946b6aa81fe02140f73
MD5 fe252f0df7223a43334e51db8366fe01
BLAKE2b-256 6f6facd1b5a4aa84fa1977564047b954727b36c428c00afe0e7d0a2d01d9b088

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page