ulgan
Collection
ULGAN is an independent AI research project by erlic AI, focused on adaptive neural computation, efficient reasoning, and compact language models. β’ 1 item β’ Updated β’ 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.
| Property | Value |
|---|---|
| Parameters | 200,777 |
| Seeds | 11, 23, 42 |
| Maximum thinking steps | 12 |
| Adaptive threshold | 0.95 |
| Maximum evaluated sequence length | 256 |
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
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.| 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.
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.