apophatic-opt
Apophatic Gradient Optimization Engine Subtractive Noise Filtering (¬X), Assertion Pressure Reduction (P_A), and Baseline Relaxation (B_0).
apophatic-opt implements a novel optimization paradigm grounded in the Nicht-Theorie framework. Rather than adding arbitrary model capacity or hyper-parameters to enforce convergence, the apophatic optimizer operates by direct noise subtraction, eliminating non-essential gradient fluctuations and minimizing systemic friction (W -> 0).
Installation
pip install apophatic-opt
Quickstart
import numpy as np from apophatic_opt import ApophaticOptimizer
Initialize optimizer with subtractive threshold sigma
opt = ApophaticOptimizer( learning_rate=0.01, sigma_threshold=0.1, gamma_relaxation=0.001 )
weights = np.random.normal(0, 1, size=1000) gradients = weights.copy()
Perform optimization step
relaxed_weights, metrics = opt.step(weights, gradients)
print( f"PA Reduction: {metrics['PA_reduction']:.4f} | Sparsity: {metrics['sparsity']:.2%}" )
Core Benchmarks
The suite validates four core theoretical properties:
- Jevons' Rebound Cancellation: Prevents systemic inflation beyond saturation boundaries.
- Gossen Pruning: Kills sub-marginal weight branches where friction exceeds utility.
- Fiat Noise Isolation: Separates structural substrate signals from entropy noise.
- Kolmogorov Bounds: Proves zero friction (W = 0) under non-distorted conditions.
API Reference
ApophaticOptimizer
class ApophaticOptimizer: def init( self, learning_rate: float = 0.01, sigma_threshold: float = 0.1, tolerance: float = None, gamma_relaxation: float = 0.001, ):
- learning_rate (eta): Step size scaling factor for surviving gradients.
- sigma_threshold (sigma): Subtractive gating threshold. Gradients with an absolute magnitude below this value are aggressively pruned to zero (B_0).
- tolerance: Backward-compatible alias for sigma_threshold.
- gamma_relaxation (gamma): Baseline relaxation coefficient governing continuous gravitational decay toward zero.
Methods
- step(weights: np.ndarray, gradients: np.ndarray = None) -> tuple[np.ndarray, dict]:
Executes a single subtractive update cycle. If gradients is omitted, defaults to copying the current weight vector. Returns a tuple containing the updated np.ndarray weights and a telemetry dictionary:
- PA_reduction: Magnitude reduction of the active gradient field.
- friction_W: Residual systemic friction (W).
- sparsity: Fraction of parameters successfully collapsed to baseline.
Computational Complexity
- Time Complexity: O(N) per update step, where N is the total parameter dimension. Vectorized NumPy operations execute entirely in optimized C routines without iterative Python loops.
- Space Complexity: O(N) auxiliary memory allocation for transient Boolean masks and intermediate array transformations.
Theoretical Details
- The Apophatic Paradigm (¬X): Borrowed from theological apophaticism—which defines absolute truth by negation—this optimizer models high-dimensional landscapes by systematically subtracting noise, speculative fiat fluctuations, and sub-marginal utility rather than adding parametric capacity.
- Friction Suppression (W -> 0): Bypasses traditional gradient explosion hazards and heavy-tail drift by enforcing a hard structural collapse to baseline (B_0) whenever local gradient energy drops beneath the empirical significance boundary sigma.
Metadata
Release files for apophatic-opt 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| apophatic_opt-0.0.2.tar.gz | 9.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| apophatic_opt-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.2 kB
Release files / apophatic_opt-0.0.2.tar.gz
| Download URL | apophatic_opt-0.0.2.tar.gz |
|---|---|
| Size | 9.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b07b735563db938a8451baa9adc8bb7e91fe434c228552c407bc46c3451f9ef1
|
|
BLAKE2b-256 checksum How to use checksums |
2a34639a8c634ceb4c9ceb9abbea78a388b4d39de13672586e733b49e66d0b67
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.15
|
Release files / apophatic_opt-0.0.2-py3-none-any.whl
| Download URL | apophatic_opt-0.0.2-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0139cc8f98b77fd919ee5be4286c5c50f6bee61868ab65defd04b38bf79e770f
|
|
BLAKE2b-256 checksum How to use checksums |
8025ff2a9eccda40ec5b8bb647775cdb6564d09c335a534a9f3f7f19d51f46b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.15
|