Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

ConAtt

ConAtt is an open-source PyTorch library for attention on continuous, irregularly sampled, and constrained domains. It keeps ordinary attention as a first-class case while adding explicit integration measures, geometric masks, continuous-depth dynamics, neural-operator blocks, approximation certificates, and evidence gates for fair model comparison.

The package is designed for reusable scientific and engineering work rather than a single benchmark. Initial application targets include PDE surrogate models, irregular time series, physical simulation, scientific sensing, and spatiotemporal learning.

Release status: 0.1.0a1 is an alpha API. The package is buildable and tested locally. A PyPI upload requires the package owner's PyPI authentication.

Install

After the public release:

pip install conatt[torch]

From a local wheel or in Colab before publication:

pip install /content/conatt-0.1.0a1-py3-none-any.whl

Continuous attention in three steps

import torch
from conatt.torch_continuous import ContinuousAttentionOperator1D

coordinates = torch.tensor([[0.0], [0.03], [0.20], [0.74], [1.0]])
forcing = torch.randn(8, coordinates.shape[0], 1)

model = ContinuousAttentionOperator1D(
    input_channels=1, output_channels=1, width=64, heads=4, layers=4,
    use_measure=True,
)
prediction, attention_maps = model(forcing, coordinates)

The parameter-identical ablation is obtained with use_measure=False. This makes the effect of continuous-domain normalization directly testable without changing model capacity.

Included capabilities

  • NumPy and PyTorch scaled dot-product attention with positive measure weights;
  • continuous 1-D operator model for irregular grids and variable resolutions;
  • hybrid ConAttOperator1D coupling measure-aware attention with irregular Fourier/sine integral mixers and optional exact Dirichlet envelopes;
  • fixed-step Euler, midpoint, and RK4 integration for attention vector fields;
  • causal and metric-radius structure masks;
  • affine physical-constraint projection with residual certificate;
  • retained-mass, spectral-tail, and finite-horizon propagation certificates;
  • exact propagation-aware approximation-budget allocation;
  • paired-seed statistics, fairness records, and immutable experiment storage;
  • deterministic Poisson data generator and controlled killer tests.
  • auditable FNO and DeepONet references for local baseline checks.

Verify an installation

conatt verify
conatt benchmark-continuous --output continuous-killer-test.json

The controlled test isolates a known irregular-sampling failure. Its output is deliberately blocked from becoming a publication claim. Learned-model claims require real benchmarks, reproduced closest baselines, paired seeds, matched budgets, negative controls, and immutable artifacts.

See the five-track research program, baseline policy, and Colab quickstart.

License

MIT. See LICENSE.

Download files

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

Source Distribution

conatt-0.1.0a1.tar.gz (44.3 kB view details)

Uploaded Source

Built Distribution

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

conatt-0.1.0a1-py3-none-any.whl (38.7 kB view details)

Uploaded Python 3

File details

Details for the file conatt-0.1.0a1.tar.gz.

File metadata

  • Download URL: conatt-0.1.0a1.tar.gz
  • Upload date:
  • Size: 44.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.13

File hashes

Hashes for conatt-0.1.0a1.tar.gz
Algorithm Hash digest
SHA256 3b81aa8683a2a50c34e81a6836cc30eaa043642f4308ea1ec7999496bb7ee616
MD5 b893ece7741edcc16ee52af4124d0a63
BLAKE2b-256 117673decf630050440b3bfea3b19781104ae64f12141bfa398ba6106c93f779

See more details on using hashes here.

File details

Details for the file conatt-0.1.0a1-py3-none-any.whl.

File metadata

  • Download URL: conatt-0.1.0a1-py3-none-any.whl
  • Upload date:
  • Size: 38.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.13

File hashes

Hashes for conatt-0.1.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 fdcff1f92564b82b1cf757e84bd53cb4bc4926fc308d8261b7563b9b466b7720
MD5 cec11339b5f3b73273fc378fa0b7b757
BLAKE2b-256 92c5ab2f2483291c76f31f1ddd43fbd37d2b96d3a331c4e38243f78011fe603a

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0a1 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page