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.0a2 is a public alpha API, available from PyPI. Production stability is not yet guaranteed; scientific claims remain governed by the evidence gate below.

Install

pip install conatt[torch]

From a local wheel or in Colab before publication:

pip install /content/conatt-0.1.0a2-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;
  • LatentConAttOperator1D for measure-aware encode/process/decode between arbitrary observation points and a reusable continuous latent grid;
  • 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.0a2.tar.gz (44.5 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.0a2-py3-none-any.whl (38.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: conatt-0.1.0a2.tar.gz
  • Upload date:
  • Size: 44.5 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.0a2.tar.gz
Algorithm Hash digest
SHA256 3c046f73b8e9a0e1498b5978ce04344f86a8b3f3371734051f31520e777c306a
MD5 ba42d206abdf8db98fdad7a803ba22b0
BLAKE2b-256 59458f76784378625fd5dd5d235e62b1ea84afac38e685530c43d98293378c3c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: conatt-0.1.0a2-py3-none-any.whl
  • Upload date:
  • Size: 38.8 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.0a2-py3-none-any.whl
Algorithm Hash digest
SHA256 0a2a5243d999d03bc1bd74e5bf52dc99ed3ed4089d36f6243c28413e878d8fef
MD5 3b23402766e660d7dff49ec05ad6f309
BLAKE2b-256 e0dd0a292eea4149d5a84a0176bef88b0bbacaf40ed4434eb09ebe44cadbb742

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0a2 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