Deceptron

Deceptron is a PyTorch package for solving repeated nonlinear inverse problems with a learned reverse map. It implements D-IPG and the Jacobian Composition Penalty (JCP).

A. L. Kachhadiya. Local Inverse Geometry Can Be Amortized. arXiv:2605.13068, 2026.

Installation

Deceptron requires Python 3.9 or later, PyTorch 2.0 or later, and NumPy 1.24 or later.

Install the latest release from PyPI.

python -m pip install deceptron

To install the latest code from the GitHub main branch, use the following command. This option requires Git.

python -m pip install git+https://github.com/AadityaKachhadiya/deceptron.git

Quick start

This example uses a known reverse map for the measurement equation y = 2x.

import torch
from deceptron import DIPG, DeceptronModule, SolverConfig
model = DeceptronModule(lambda x: 2 * x, lambda y: y / 2)
result = DIPG(model, torch.tensor([0.8]), torch.zeros(1), SolverConfig(tolerance_eps=1e-5))
print(result["x_hat"])  # approximately tensor([0.4000])