Ano Optimizer
Ano is the official implementation of the optimizer introduced in the paper
"Ano: Faster is Better in Noisy Landscapes"
This optimizer is designed for efficient and stable training in high-variance regimes, and includes both a standard and a logarithmic-scheduled variant (Anolog). Native support is provided for both PyTorch and TensorFlow.
Key Features
-
Sign–Magnitude Decoupling
Ano separates update direction and magnitude, using the sign of the momentum and the norm of the raw gradient respectively. This improves stability and performance in high-variance settings. -
Additive Second-Moment Estimation
Ano employs an additive second-moment update, inspired by Yogi, to ensure smoother convergence and mitigate issues with gradient sparsity. -
Logarithmic Momentum Schedule (Anolog)
A variant of Ano using a time-dependent momentum parameter, enabled vialogarithmic_schedule=True. This extension improves noise attenuation in stationary training regimes. -
Dual Framework Support
Compatible with both PyTorch and TensorFlow. Import the appropriate implementation viaano_optimizer.Anoorano_optimizer.tensorflow.AnoTF.
Installation
Install the PyTorch version (default):
pip install ano-optimizer
Install with TensorFlow support:
pip install 'ano-optimizer[tensorflow]'
Usage
PyTorch
from ano_optimizer import Ano
import torch
model = MyModel()
optimizer = Ano(model.parameters(), lr=1e-4)
for input, target in data_loader:
optimizer.zero_grad()
output = model(input)
loss = loss_fn(output, target)
loss.backward()
optimizer.step()
To enable Anolog:
optimizer = Ano(model.parameters(), lr=1e-4, logarithmic_schedule=True)
TensorFlow
from ano_optimizer.tensorflow import AnoTF
import tensorflow as tf
model = MyModel()
optimizer = AnoTF(learning_rate=1e-4)
with tf.GradientTape() as tape:
predictions = model(inputs)
loss = loss_fn(targets, predictions)
gradients = tape.gradient(loss, model.trainable_variables)
optimizer.apply_gradients(zip(gradients, model.trainable_variables))
To enable Anolog:
optimizer = AnoTF(learning_rate=1e-4, logarithmic_schedule=True)
Citation
If you use this work in your research, please cite the following paper:
@misc{kegreisz2025ano,
author = {Kegreisz, Adrien},
title = {Ano: Faster is Better in Noisy Landscapes},
year = {2025},
publisher = {Zenodo},
doi = {10.5281/zenodo.16422081},
url = {https://doi.org/10.5281/zenodo.16422081}
}
License
This project is licensed under the MIT License. See the LICENSE file for details.
Contributing
Contributions, issues, and suggestions are welcome. Please open an issue or submit a pull request.
Metadata
Release files for ano-optimizer 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ano_optimizer-1.0.0.tar.gz | 5.4 kB | Without provenance | Details for ano_optimizer-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ano_optimizer-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for ano_optimizer-1.0.0-py3-none-any.whl |
Total release size: 11.6 kB
Release files / ano_optimizer-1.0.0.tar.gz
| Download URL | ano_optimizer-1.0.0.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6cd59218c7814d4dd202ce5e52abebb9f311468aca5372f2348fae1e9c7b7ab9
|
|
BLAKE2b-256 checksum How to use checksums |
83ae6c0a73a54cdd3c10657341478484273df0b55070d286b2a7e61889ce51d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Release files / ano_optimizer-1.0.0-py3-none-any.whl
| Download URL | ano_optimizer-1.0.0-py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cea078249b92de027d1292ecbb627a5a411680e04d6d75dd20dae49fde8777c0
|
|
BLAKE2b-256 checksum How to use checksums |
f274e87f411bd986cc61ecb4b624efb1d119953be2560da7d67932c7146df373
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Security for ano-optimizer 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.