Analysis updated 2026-05-18
Generate text embeddings for reasoning-heavy document search.
Reproduce the BRIGHT benchmark results included in the repo.
Combine raw and rewritten queries to improve retrieval accuracy.
Study how a looping HRM backbone compares to a standard transformer for embeddings.
| okaybroda/hrm-embed | 0marildo/imago | 0xdfi/glm-5.2-1m-4x-dgx-spark | |
|---|---|---|---|
| Stars | 3 | 3 | 3 |
| Language | Python | Python | Python |
| Setup difficulty | moderate | easy | hard |
| Complexity | 4/5 | 2/5 | 5/5 |
| Audience | researcher | general | researcher |
Figures from each repo's GitHub metadata at analysis time.
Not compatible with sentence-transformers, requires trust_remote_code and manual pooling of the model's hidden state.
HRM-Embed is a research model that turns text into a list of numbers, called an embedding, which can then be used to search for similar or related documents. What makes it unusual is the underlying design. Instead of the typical transformer architecture most embedding models use, it is built on top of a different architecture called HRM, which loops over its own internal state multiple times rather than processing text in a single pass, an approach originally designed for reasoning tasks. The author's idea was that this looping behavior might help with a benchmark called BRIGHT, which tests retrieval that requires several logical steps rather than just matching similar wording. That hypothesis partly held up: the model does better on reasoning heavy searches. However, its accuracy is limited by the fact that its base model was trained on a fairly narrow slice of text, so it lacks broad general knowledge, which hurts it on knowledge heavy searches. The README explains that a plain query alone performs weakly, scoring 18.1 on the benchmark's scoring system, but performance jumps to 34.3 when an AI model first rewrites the query into a clearer form before searching. This rewriting step helps almost every subject area except code search, where it can actually hurt results. The project includes the full evaluation code so results can be reproduced. Using the model requires Python and the transformers library, plus code the author includes to pull the embedding out manually since it does not work with the standard sentence-transformers tool most embedding models use. It was trained entirely on a single consumer graphics card. The model builds on an existing open source HRM text model and is released under the Apache 2.0 license.
A text-embedding model built on a looping reasoning architecture instead of a standard transformer, aimed at multi-step reasoning search tasks.
Mainly Python. The stack also includes Python, PyTorch, Transformers.
Setup difficulty is rated moderate, with roughly 30min to a first successful run.
Mainly researcher.
This repo across BitVibe Labs
Verify against the repo before relying on details.