File size: 1,568 Bytes
f8f8175 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | ---
license: mit
pipeline_tag: text-generation
---
# Solve the Loop: Attractor Models for Language and Reasoning
This repository contains the Attractor-140M model presented in [Solve the Loop: Attractor Models for Language and Reasoning](https://huggingface.co/papers/2605.12466).
[**Project Page**](https://attractor-models.github.io/) | [**GitHub**](https://github.com/jacobfa/Attractor) | [**Paper**](https://arxiv.org/abs/2605.12466)
## Introduction
Attractor Models are a family of models that use a backbone module to propose output embeddings and an attractor module to refine them by solving for a fixed point through implicit differentiation. This architecture allows training memory to remain constant relative to effective depth and enables iterations to be chosen adaptively. In language modeling, Attractor Models deliver a Pareto improvement over standard Transformers and stable looped models across sizes.
## Sample Usage
To use this model, you first need to install the package from the [official repository](https://github.com/jacobfa/Attractor):
```bash
pip install -e .
```
Then you can initialize the model as follows:
```python
from attractor.models.attractor import Attractor, AttractorConfig
config = AttractorConfig.from_name("attractor-small-140m")
model = config.construct_model()
```
## Citation
```bibtex
@article{feinashley2026attractor,
title={Solve the Loop: Attractor Models for Language and Reasoning},
author={Fein-Ashley, Jacob and Rashidinejad, Paria},
year={2026},
url={https://arxiv.org/abs/2605.12466}
}
``` |