Improve model card and add metadata
#1
by nielsr HF Staff - opened
README.md
CHANGED
|
@@ -1,3 +1,44 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: mit
|
| 3 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
pipeline_tag: text-generation
|
| 4 |
+
---
|
| 5 |
+
|
| 6 |
+
# Solve the Loop: Attractor Models for Language and Reasoning
|
| 7 |
+
|
| 8 |
+
Attractor Models are a family of models that use a backbone module to propose output embeddings, followed by an attractor module that refines them by solving for a fixed point using implicit differentiation. This architecture allows for iterative refinement with constant training memory and adaptive inference-time computation.
|
| 9 |
+
|
| 10 |
+
[**Project Page**](https://attractor-models.github.io/) | [**Paper (arXiv:2605.12466)**](https://arxiv.org/abs/2605.12466) | [**GitHub**](https://github.com/jacobfa/Attractor)
|
| 11 |
+
|
| 12 |
+
## Introduction
|
| 13 |
+
Attractor Models offer a promising alternative to feed-forward computation by iteratively refining latent representations. In language modeling, Attractor Models deliver a Pareto improvement over standard Transformers, improving perplexity and downstream accuracy while reducing training cost. This repository contains the **Attractor-370M** model.
|
| 14 |
+
|
| 15 |
+
## Sample Usage
|
| 16 |
+
|
| 17 |
+
To use this model, you need to install the `attractor` package from the [official repository](https://github.com/jacobfa/Attractor):
|
| 18 |
+
|
| 19 |
+
```bash
|
| 20 |
+
git clone https://github.com/jacobfa/Attractor
|
| 21 |
+
cd Attractor
|
| 22 |
+
pip install -e .
|
| 23 |
+
```
|
| 24 |
+
|
| 25 |
+
Then, you can construct the model in Python:
|
| 26 |
+
|
| 27 |
+
```python
|
| 28 |
+
from attractor.models.attractor import Attractor, AttractorConfig
|
| 29 |
+
|
| 30 |
+
# Loading the configuration for the 370M model
|
| 31 |
+
config = AttractorConfig.from_name("attractor-medium-370m")
|
| 32 |
+
model = config.construct_model()
|
| 33 |
+
```
|
| 34 |
+
|
| 35 |
+
## Citation
|
| 36 |
+
|
| 37 |
+
```bibtex
|
| 38 |
+
@article{feinashley2026attractor,
|
| 39 |
+
title={Solve the Loop: Attractor Models for Language and Reasoning},
|
| 40 |
+
author={Fein-Ashley, Jacob and Rashidinejad, Paria},
|
| 41 |
+
year={2026},
|
| 42 |
+
url={https://arxiv.org/abs/2605.12466}
|
| 43 |
+
}
|
| 44 |
+
```
|