YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

๐Ÿ”— View the complete codebase and training scripts on GitHub


license: mit

Unified Highway Transformer (UHT)

DOI

Official repository for the Unified Highway Transformer (UHT). The UHT introduces an O(1) parallel memory bus to solve Latent Amnesia and PreNorm Dilution in deep networks. It eliminates gradient stagnation, with successful stress tests conducted up to 180 layers.


Quick Start & Reproducibility

  1. Installation Clone the repository and install the required dependencies:
pip install -r requirements.txt
  1. Dataset Preparation Download and tokenize the WikiText-103 dataset using the standard GPT-2 encoder:
python prepare.py
  1. Rapid Evaluation (10-Second Verification) You can instantly verify the 120-layer terminal validation loss (4.31) and perplexity (74.88) claimed in the paper without running a 50-epoch training cycle:

Download the pre-trained weights (uht_120L_lean.pt) from the Releases tab on the right side of this repository page.

Place the .pt file in the main repository directory.

Run the evaluation command:

python train.py --eval_only --checkpoint uht_120L_lean.pt
  1. Full Training Run To initiate a full training cycle from scratch on your own hardware (automatically logs gradient deciles and variance tracking to a CSV):
python train.py

Visualization of Convergence

120L_gradient_comparison

Above: 120-Layer UHT vs. Baseline Pre-LN Transformer. The UHT maintains dynamic gradient flow deep in the network, while the standard architecture stagnates near zero.

180L_gradient_comparison

Above: 180-Layer UHT stress test, verifying sustained gradient activity and stability at extreme architectural depths.


Read the Paper

The complete manuscript detailing the methodology, Amorphous Neural Network diagnostic proxies, and empirical test results is available directly in this repository: ๐Ÿ“„ Read the UHT Paper (PDF)


Citation

If you use this architecture or diagnostic methodology in your research, please cite:

@article{simon2026uht,
  title={Designing Better Transformers: Using Amorphous Network Proxies to Engineer the Unified Highway Transformer},
  author={Simon, Anthony Luke},
  year={2026},
  publisher={Figshare},
  doi={10.6084/m9.figshare.33510313},
  url={https://doi.org/10.6084/m9.figshare.33510313}
}
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support