BWSK ResNet-50
ResNet-50 (25M params) trained in 6 variants (3 BWSK modes x 2 experiments) on CIFAR-10 with full convergence training and early stopping.
This repo contains all model weights, configs, and training results in a single consolidated repository.
What is BWSK?
BWSK is a framework that classifies every neural network operation as S-type (information-preserving, reversible, coordination-free) or K-type (information-erasing, synchronization point) using combinator logic. This classification enables reversible backpropagation through S-phases to save memory, and CALM-based parallelism analysis.
Model Overview
| Property | Value |
|---|---|
| Base Model | microsoft/resnet-50 |
| Architecture | Cnn (image_cls) |
| Parameters | 25M |
| Dataset | CIFAR-10 |
| Eval Metric | Accuracy |
S/K Classification
| Type | Ratio |
|---|---|
| S-type (information-preserving) | 37.3% |
| K-type (information-erasing) | 62.7% |
Fine-tune Results
| Mode | Final Loss | Val Accuracy | Test Accuracy | Peak Memory | Time | Epochs |
|---|---|---|---|---|---|---|
| Conventional | 0.0423 | 94.4% | 93.7% | 3.0 GB | 10.4m | 8 |
| BWSK Analyzed | 0.6931 | 82.5% | 82.4% | 3.0 GB | 1.6m | 2 |
| BWSK Reversible | 1.0717 | 78.7% | 78.9% | 3.0 GB | 1.6m | 2 |
Memory savings (reversible vs conventional): 0.0%
From Scratch Results
| Mode | Final Loss | Val Accuracy | Test Accuracy | Peak Memory | Time | Epochs |
|---|---|---|---|---|---|---|
| Conventional | 0.7903 | 85.2% | 84.6% | 3.0 GB | 14.6m | 10 |
| BWSK Analyzed | 0.2578 | 85.7% | 84.9% | 3.0 GB | 14.6m | 10 |
| BWSK Reversible | 0.2643 | 86.1% | 85.3% | 3.0 GB | 14.6m | 10 |
Memory savings (reversible vs conventional): 0.0%
Repository Structure
βββ README.md
βββ results.json
βββ finetune-conventional/
β βββ model.safetensors
β βββ config.json
β βββ training_results.json
βββ finetune-bwsk-analyzed/
β βββ model.safetensors
β βββ config.json
β βββ training_results.json
βββ finetune-bwsk-reversible/
β βββ model.safetensors
β βββ config.json
β βββ training_results.json
βββ scratch-conventional/
β βββ model.safetensors
β βββ config.json
β βββ training_results.json
βββ scratch-bwsk-analyzed/
β βββ model.safetensors
β βββ config.json
β βββ training_results.json
βββ scratch-bwsk-reversible/
β βββ model.safetensors
β βββ config.json
β βββ training_results.json
Usage
Load a specific variant:
import torch
# Load fine-tuned conventional variant
# Weights are in the finetune-conventional/ subdirectory
Training Configuration
| Setting | Value |
|---|---|
| Optimizer | AdamW |
| LR (fine-tune) | 1e-03 |
| LR (from-scratch) | 5e-03 |
| LR Schedule | Cosine with warmup |
| Max Grad Norm | 1.0 |
| Mixed Precision | AMP (float16) |
| Early Stopping | Patience 3 |
| Batch Size | 32 |
Links
Citation
@software{zervas2026bwsk,
author = {Zervas, Tyler},
title = {BWSK: Combinator-Typed Neural Network Analysis},
year = {2026},
url = {https://github.com/tzervas/ai-s-combinator},
}
License
MIT
Model tree for tzervas/bwsk-resnet50
Base model
microsoft/resnet-50Dataset used to train tzervas/bwsk-resnet50
Evaluation results
- accuracy on cifar10self-reported0.937
- accuracy on cifar10self-reported0.824
- accuracy on cifar10self-reported0.789
- accuracy on cifar10self-reported0.846
- accuracy on cifar10self-reported0.849
- accuracy on cifar10self-reported0.853