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.
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
:
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.
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.
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).
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 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:
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: