ULGAN 1

erlic AI β€” Compact Adaptive Computation Research

ULGAN 1 is a compact recurrent PyTorch model for three synthetic binary-sequence tasks: parity, majority and last-bit prediction.

This repository contains three independent seed checkpoints. They are separate models, not an ensemble.

Model facts

Property Value
Parameters 200,777
Seeds 11, 23, 42
Maximum thinking steps 12
Adaptive threshold 0.95
Maximum evaluated sequence length 256

Load the model

from load_ulgan import load_ulgan
from model import TASKS

model = load_ulgan(seed=11)

bits = [1, 0, 1, 1, 0, 1]
prediction, steps, halt_probability = model.predict_one(
    bits, TASKS["parity"], threshold=0.95
)

print(prediction, steps, halt_probability)

Or use the command line:

python predict.py --bits 101101 --task parity --seed 11

Tasks

  • parity: 1 if the number of ones is odd.
  • majority: 1 if strictly more than half of the bits are 1.
  • last_bit: the final bit in the sequence.

Reported adaptive benchmark

Evaluation range Macro accuracy
Seen: 1–128 99.99%
Held-out: 129–256 99.74%

These are synthetic benchmark results, not evidence of language ability or general-purpose reasoning. Constructed edge cases can still fail. Do not use this model for consequential decisions.

Files

  • model.py: ULGAN architecture.
  • load_ulgan.py: strict checkpoint loader.
  • predict.py: command-line inference.
  • config.json: architecture and task configuration.
  • weights/: three independent PyTorch state dictionaries.

This is a custom PyTorch model package, not a Transformers AutoModel checkpoint. Load it using the supplied Python code.

Source code and research records: https://github.com/erlic-AI/ulgan

License: Apache-2.0.

Downloads last month
38
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Collection including erlic/ulgan-1