phanerozoic / threshold-cofiber-detection

huggingface.co
Total runs: 317
24-hour runs: 0
7-day runs: 317
30-day runs: 317
Model's Last Updated: April 12 2026
object-detection

Introduction of threshold-cofiber-detection

Model Details of threshold-cofiber-detection

Cofiber Detection Circuit

A depth-3 threshold gate network for multi-scale object detection on frozen vision transformer features. 61,520 INT8 learned parameters. 2,184,000 gates. The multi-scale decomposition is analytic (zero parameters); only the classification layer is learned.

Circuit
Input: feature grid [768, 40, 40] from frozen ViT at stride 16

Layer 0 — Pool (fixed, 0 learned params)
  pool(x)_{i,j} = 0.25 * (x_{2i,2j} + x_{2i+1,2j} + x_{2i,2j+1} + x_{2i+1,2j+1})

Layer 1 — Cofiber (fixed, 0 learned params)
  cofib(x)_{i,j} = x_{i,j} - upsample(pool(x))_{i,j}

Layer 2 — Classify (61,520 INT8 params)
  detect(i,j,c) = H( Σ_d w_{c,d} · cofib(x)_{i,j,d} + b_c )

Output: per-location, per-class binary detection decisions

The cofiber x - upsample(pool(x)) isolates information present at a given spatial scale but absent from the next coarser scale. Applied iteratively, it decomposes the feature grid into three scale bands (strides 16, 32, 64) with zero learned parameters. The classification layer operates on each band independently.

Equations

The decomposition satisfies three properties, proven in CofiberDecomposition.v :

  1. Block diagonal : The low-frequency block of any morphism between decomposed features equals the functorial low-frequency component. Classification on cofibers is equivalent to multi-scale classification on the original features.

  2. Cross-term vanishing (high→low) : Low-frequency input produces zero high-frequency output. A large object detected at stride 32 creates no signal in the stride-16 cofiber.

  3. Cross-term vanishing (low→high) : High-frequency input produces zero low-frequency output. Scale bands do not interfere.

These properties are consequences of the adjoint pair (bilinear upsample ⊣ average pool) forming a counit in a semi-additive category. The cofiber of the counit decomposes objects along an exact sequence, guaranteeing lossless scale separation.

Parameters
Layer Operation Weights Learned
0 Average pool 2x {0.25, 0.25, 0.25, 0.25} No
1 Subtract: x - upsample(pool(x)) {1, -1} No
2 Classify: H(w · cofib + b) 80 × 768 + 80 Yes (INT8)
Total 61,520
Gates
Scale Stride Spatial Pool gates Subtract gates Classify gates
0 16 40 × 40 307,200 1,228,800 128,000
1 32 20 × 20 76,800 307,200 32,000
2 64 10 × 10 8,000
Total 2,184,000

All layer 0–1 gates use integer weights from {-1, 0, 1}. Layer 2 gates use INT8 quantized weights. INT8 quantization produces 99.7% detection agreement with FP32.

Usage
from model import CofiberDetector

detector = CofiberDetector.from_safetensors("model.safetensors")

# features: [768, 40, 40] numpy array from any frozen ViT at stride 16
detections = detector.detect(features, score_thresh=0.3)

for d in detections:
    print(f"class {d['label']} at {d['box']} score {d['score']:.3f} scale {d['scale']}")
Proof

CofiberDecomposition.v contains a machine-checked proof (Coq/HoTT) of the three cross-term vanishing theorems. The proof establishes that the block structure of the decomposition is exact in any semi-additive category with a suspension-loop adjunction. The concrete instantiation (average pool, bilinear upsample, float32 tensors) satisfies the hypotheses up to machine precision (reconstruction error < 3e-7).

Files
threshold-cofiber-detection/
├── model.safetensors      # 241 KB circuit weights
├── model.py               # standalone inference
├── config.json            # architecture metadata
├── CofiberDecomposition.v # machine-checked proof
└── README.md
License

Apache 2.0

Runs of phanerozoic threshold-cofiber-detection on huggingface.co

317
Total runs
0
24-hour runs
266
3-day runs
317
7-day runs
317
30-day runs

More Information About threshold-cofiber-detection huggingface.co Model

More threshold-cofiber-detection license Visit here:

https://choosealicense.com/licenses/apache-2.0

threshold-cofiber-detection huggingface.co

threshold-cofiber-detection huggingface.co is an AI model on huggingface.co that provides threshold-cofiber-detection's model effect (), which can be used instantly with this phanerozoic threshold-cofiber-detection model. huggingface.co supports a free trial of the threshold-cofiber-detection model, and also provides paid use of the threshold-cofiber-detection. Support call threshold-cofiber-detection model through api, including Node.js, Python, http.

threshold-cofiber-detection huggingface.co Url

https://huggingface.co/phanerozoic/threshold-cofiber-detection

phanerozoic threshold-cofiber-detection online free

threshold-cofiber-detection huggingface.co is an online trial and call api platform, which integrates threshold-cofiber-detection's modeling effects, including api services, and provides a free online trial of threshold-cofiber-detection, you can try threshold-cofiber-detection online for free by clicking the link below.

phanerozoic threshold-cofiber-detection online free url in huggingface.co:

https://huggingface.co/phanerozoic/threshold-cofiber-detection

threshold-cofiber-detection install

threshold-cofiber-detection is an open source model from GitHub that offers a free installation service, and any user can find threshold-cofiber-detection on GitHub to install. At the same time, huggingface.co provides the effect of threshold-cofiber-detection install, users can directly use threshold-cofiber-detection installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

threshold-cofiber-detection install url in huggingface.co:

https://huggingface.co/phanerozoic/threshold-cofiber-detection

Url of threshold-cofiber-detection

threshold-cofiber-detection huggingface.co Url

Provider of threshold-cofiber-detection huggingface.co

phanerozoic
ORGANIZATIONS

Other API from phanerozoic

huggingface.co

Total runs: 1.2K
Run Growth: 1.2K
Growth Rate: 100.00%
Updated:April 25 2026