Skip to main content

SAGE — Superquadric-based Adaptive Geometric Explainability

A non-neural, interpretable object recognition system for robotic manipulation. Objects are represented as superquadrics fit directly to point clouds via nonlinear least-squares — every number the system reasons over is a named physical quantity (a radius, a roundness exponent, a color hue), not a learned embedding. A category vocabulary is learned online, with no gradient descent and no neural network weights anywhere in the pipeline.

Classification uses a non-neural tree ensemble (ExtraTrees) over these physically interpretable features — on held-out, video-disjoint YCB-Video data, this reaches 89.4% top-1 accuracy from a single observation, and 95.7% when multiple viewpoints of the same object are fused before classification (5-fold cross-validated, statistically significant improvement, p=0.0072). See the project's paper for the full accuracy characterization, including honestly-reported limitations and negative results.

Install

pip install sage-superquadrics

Quick start

from sage_superquadrics import SAGE

# Loads a pretrained model, downloading and caching it on first use
model = SAGE.load("SAGE_V2")

# point_cloud: an (N, 3) numpy array of XYZ points, isolating one object
pred = model.predict(point_cloud)
print(pred.label, pred.confidence)   # e.g. "mug", 0.87
print(pred.top_k)                     # [("mug", 0.87), ("bowl", 0.09), ...]

Online learning from scratch

from sage_superquadrics import SAGE

model = SAGE()  # fresh, untrained

# Each call is one real, confirmed example -- no batching required
model.train(point_cloud_1, "mug")
model.train(point_cloud_2, "mug")
model.train(point_cloud_3, "bowl")

# Build the classifier from whatever's been confirmed so far
model.rebuild_classifier()

pred = model.predict(new_point_cloud)
model.save("my_model.json")

Why superquadrics instead of a learned embedding?

Every prediction traces back to physically meaningful numbers you can inspect directly:

print(model.describe("mug"))
# I know 2 structural variant(s) of "mug":
#   - graph mode a1b2c3d4 (n=14): parts=['dominant', 'secondary_0']
#       dominant: ~81x78mm footprint, 75mm tall, eps=(0.10,0.91), ...

When something misclassifies, you can look at why — a specific fitted dimension, a roundness exponent that hit its optimizer bound — not just a confidence score with no further explanation available. This is the actual trade-off, stated plainly: a full raw-point-cloud black-box baseline (PointNet) outperforms SAGE on raw accuracy under the same evaluation protocol (93.2% vs. 89.4%). SAGE's contribution is interpretability and a non-neural, physically-grounded representation, not a claim of beating black-box accuracy.

What's in this package

The core fitting, online-learning, and classification pipeline only — SAGE, Registry, superquadric fitting, and graph-based multi-part matching. Dataset-specific training/evaluation tooling (used to produce the accuracy numbers above) lives in the GitHub repository, not in this package, to keep the installable library small and general-purpose.

Citation

If you use this in research, please cite the accompanying paper (see the GitHub repository for the current reference).

License

Apache-2.0

Metadata

Release files for sage-superquadric 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sage-superquadric 1.0.0
File Size Uploaded Provenance Actions
sage_superquadric-1.0.0.tar.gz 33.1 kB With provenance Details for sage_superquadric-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sage-superquadric 1.0.0
File Interpreter ABI Platform Actions
sage_superquadric-1.0.0-py3-none-any.whl Python 3 none any Details for sage_superquadric-1.0.0-py3-none-any.whl

Total release size: 70.5 kB

Release files / sage_superquadric-1.0.0.tar.gz

Download URL sage_superquadric-1.0.0.tar.gz
Size 33.1 kB
Tags Source
SHA-256 checksum
How to use checksums
322b5145af5ca3b23ce400d6c051299c321d32d46a8a666e33c3f445f680dfb1
BLAKE2b-256 checksum
How to use checksums
219c76f835e3b3447cfe5e6eb34d2544703f360c851d1d08c2a24c0ad69ebd08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 4, 2026.

Transparency log

Release files / sage_superquadric-1.0.0-py3-none-any.whl

Download URL sage_superquadric-1.0.0-py3-none-any.whl
Size 37.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6c521e4cf6c5f31095c90a15173bfeee8829d830ae2598e40c9eabeb925842ac
BLAKE2b-256 checksum
How to use checksums
ee48bcfe30e8a833fb7850ab8b9f17f06ea98a7cd08e2c72ce74c01ef4871c13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 4, 2026.

Transparency log

Security for sage-superquadric 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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for sage_superquadric-1.0.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 4, 2026.

Transparency log

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.

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