ViT-Beatrix: Fractal PE + Geometric Simplex Vision Transformer
This repository contains Vision Transformers integrating Devil's Staircase positional encoding
with geometric simplex features for vision tasks.
Key Features
Fractal Positional Encoding
: Devil's Staircase multi-scale position embeddings
Geometric Simplex Features
: k-simplex vertex computations from Cantor measure
SimplexFactory Initialization
: Pre-initialized simplices with geometrically meaningful shapes (regular/random/uniform)
Adaptive Augmentation
: Progressive augmentation escalation to prevent overfitting
Beatrix Formula Suite
: Flow alignment, hierarchical coherence, and multi-scale consistency losses
Simplex Initialization
Instead of random initialization, the model uses
SimplexFactory
to create geometrically sound starting configurations:
Regular
(default): All edges equal length, perfectly balanced symmetric structure
Random
: QR decomposition ensuring affine independence
Uniform
: Hypercube sampling with perturbations
Regular simplices provide the most stable and mathematically meaningful initialization, giving the model a better starting point for learning geometric features.
Adaptive Augmentation System
The trainer includes an intelligent augmentation system that monitors train/validation accuracy gap and progressively enables more augmentation:
Baseline
: RandomCrop + RandomHorizontalFlip
Stage 1
: + ColorJitter
Stage 2
: + RandomRotation
Stage 3
: + RandomAffine
Stage 4
: + RandomErasing
Stage 5
: + AutoAugment (CIFAR policy)
Stage 6
: Enable Mixup (α=0.2)
Stage 7
: Enable CutMix (α=1.0) - Final stage
When train accuracy exceeds validation accuracy by 2% or more, the system automatically escalates to the next augmentation stage.
# install the repo into your environment
pip install -q git+https://github.com/AbstractEyes/lattice_vocabulary.git
Loading Models
from geovocab2.train.model.vit_beatrix import SimplifiedGeometricClassifier
from safetensors.torch import load_file
from huggingface_hub import hf_hub_download
import json
# Download and view manifest to see all available models
manifest_path = hf_hub_download(
repo_id="AbstractPhil/vit-beatrix",
filename="manifest.json"
)
withopen(manifest_path, 'r') as f:
manifest = json.load(f)
# List all available models sorted by accuracyfor key, info insorted(manifest.items(), key=lambda x: x[1]['accuracy'], reverse=True):
print(f"{info['model_name']} ({info['timestamp']}): {info['accuracy']:.4f}")
# Download weights for the latest training session of beatrix-simplex4-patch4-512d-flow
weights_path = hf_hub_download(
repo_id="AbstractPhil/vit-beatrix",
filename="weights/beatrix-simplex4-patch4-512d-flow/20251008_115206/model.safetensors"
)
# Load model
model = SimplifiedGeometricClassifier(
num_classes=100,
img_size=32,
embed_dim=512,
depth=8
)
# Load weights
state_dict = load_file(weights_path)
model.load_state_dict(state_dict)
model.eval()
# Inference
output = model(images)
Citation
@misc{vit-beatrix,
author = {AbstractPhil},
title = {ViT-Beatrix: Fractal Positional Encoding with Geometric Simplices},
year = {2025},
url = {https://github.com/AbstractEyes/lattice_vocabulary}
}
License
MIT License
Runs of AbstractPhil vit-beatrix on huggingface.co
12
Total runs
1
24-hour runs
3
3-day runs
4
7-day runs
1
30-day runs
More Information About vit-beatrix huggingface.co Model
vit-beatrix huggingface.co is an AI model on huggingface.co that provides vit-beatrix's model effect (), which can be used instantly with this AbstractPhil vit-beatrix model. huggingface.co supports a free trial of the vit-beatrix model, and also provides paid use of the vit-beatrix. Support call vit-beatrix model through api, including Node.js, Python, http.
vit-beatrix huggingface.co is an online trial and call api platform, which integrates vit-beatrix's modeling effects, including api services, and provides a free online trial of vit-beatrix, you can try vit-beatrix online for free by clicking the link below.
AbstractPhil vit-beatrix online free url in huggingface.co:
vit-beatrix is an open source model from GitHub that offers a free installation service, and any user can find vit-beatrix on GitHub to install. At the same time, huggingface.co provides the effect of vit-beatrix install, users can directly use vit-beatrix installed effect in huggingface.co for debugging and trial. It also supports api for free installation.