/ Модель

Характеристики

Лицензия
Apache 2.0
Библиотека
graph-reasoning-model
Опубликована
25 сен 2026

graph-reasoner-1

Языковая модель3 профессии

Модель примерно на 99 млн параметров для поиска ответных цепочек отношений и доказательств в типизированных графах по структурированному запросу.

20скачиваний за 30 дней0лайковвеса обновлены25 сен 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

frontal-labs разработала graph-reasoner-1 — специализированную модель рассуждений по типизированным графам примерно со 99 млн параметров. Она принимает граф и структурированный запрос и выдаёт типизированный ответ с путями доказательств, проверенными детерминированным верификатором. Модель не принимает и не генерирует естественный язык.

Архитектура объединяет relation-aware GraphSAGE, трансформер рассуждений с учётом запроса и Path-Aware Transformer для анализа типизированных путей. Модель предназначена прежде всего для поиска цепочки отношений, отвечающей намерению запроса, когда путь заранее не задан, а также умеет воздерживаться от ответа при отсутствии подтверждающих данных. В тестах на графах FB15k-237 и WN18RR показаны результаты MRR 0,175 и 0,596 соответственно для двухшаговых запросов.

Модель обучена с нуля на синтетических типизированных графах в течение 2500 шагов; также проверялась на нескольких реальных графовых наборах. Она не является языковой моделью и не работает с прозой. На незнакомых онтологиях обобщение слабое, а механизм воздержания на реальных графах может блокировать все ответы; для нового домена рекомендуется обучение на собственной онтологии и настройка порога воздержания. Производительность невысока, масштабирование выше примерно 5000 узлов не проверено. Лицензия — Apache-2.0.

Сценарии применения

  • поиск цепочки отношений в графе знаний по структурированному запросу
  • ответы на многопереходные запросы к графу знаний
  • воздержание от ответа, когда в графе нет подтверждающего пути
  • ранжирование путей доказательств между сущностями графа

Ограничения

Слабое обобщение на онтологии с незнакомыми названиями отношений; на реальных графах механизм воздержания может срабатывать для всех запросов, поэтому требуется настройка порога или отключение abstain. Производительность ниже простого обхода, масштабирование выше примерно 5000 узлов не проверено, а на текстовых графах HotpotQA модель лишь сравнялась с эвристикой.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

graph-reasoner-1

A 99M-parameter graph-native reasoning model. Given a typed graph and a structured query, it returns typed answers together with verifier-checked evidence paths. It does not consume or emit natural language.

Architecture: relation-aware GraphSAGE encoder → query-conditioned reasoning transformer → Path-Aware Transformer (PAT) over typed path tokens → learned path selection → deterministic verifier.

98,994,604 parameters. Trained for 2,500 steps on synthetic typed graphs.

What it is actually good at

One thing: inferring which relation chain answers an intent, from graph structure, when the query does not name the path.

measurementvalue
exact match, in-distribution (150 stage-balanced examples)0.473
answer F10.546
selection precision0.455
endpoint precision0.701
vs. traversal heuristics (exact match 0.093)5.1×

Ablations, same slice — each component is load-bearing:

ablationexact match
full model0.473
without PAT0.153
without query conditioning0.187
without learned selection0.120
greedy instead of beam0.373

It knows when to say nothing

On examples where the supporting evidence has been deleted, abstaining is the only correct answer:

abstains on unanswerablefalse abstentionsbalanced accuracy
previous checkpoint0.0170.0340.491 (chance)
this checkpoint0.6500.0170.783

Real knowledge graphs, composition withheld

Both models receive only the question text, the start entities and a hop budget:

workloadG-Reasoner-34M MRRthis model MRR
FB15k-237 2-hop0.0840.175
WN18RR 2-hop0.2520.596

Limitations — read before using

These are measured, not hypothetical.

  1. The abstention gate does not transfer. Its evidence signals come from PAT query-compatibility, which saturates low on relation vocabulary the model has never seen. On real typed KGs it fires on 100% of queries and drives every metric to 0.000 — even when the gold relation path is supplied. Outside the training distribution you must pass abstain=False or lower abstention_threshold. Nothing warns you that it has fired on everything. This is the most important rough edge.
  2. It does not generalise across ontologies. On held-out graphs whose relation labels are renamed, exact match is 0.158 and PAT discrimination is 0.577 against a 0.5 floor — near chance. In practice this means you must train on your own ontology. It is a train-per-domain tool, not a drop-in model.
  3. It has never been run on a real product graph. Its entire experience is one synthetic ontology (10 entity types, 18 relations) plus FB15k-237, WN18RR and LLM-free HotpotQA entity graphs.
  4. If you already know the relation path, do not use this. A breadth-first traversal scores a perfect 1.000 where this model reaches 0.58–0.92, and runs at ~7,100 queries per second against this model's ~20.
  5. Throughput is low: ~49 ms / 20 qps at 100 nodes; ~323 ms / 3 qps at 1,000 nodes and 5 hops (A100).
  6. Scale is unverified above ~5,000 nodes.
  7. Calibration is mediocre: isotonic ECE 0.102. Use the calibrated confidence, not the raw head output.
  8. On text-derived graphs it merely ties a heuristic. HotpotQA bridge recall 0.518 against the heuristic's 0.518 — matching, not beating.
  9. 2,500 steps is deliberate. The same configuration trained to 6,000 steps was worse (abstention balanced accuracy 0.817 → 0.684), with seeds diverging in opposite directions. This configuration needs early stopping and is probably not at the architecture's ceiling.

Not a language model

This is not comparable to an LLM and has not been benchmarked against one. It takes a typed graph plus a structured query; it does not read or write prose. For graphs small enough to fit in a context window, a frontier LLM would very likely be more accurate. The only argument for this model is graphs too large for a context window, and that argument is unsupported — nothing above ~5,000 nodes has been tested.

Usage

from graph.export import load_inference_artifact
from graph.graph import GraphStore
from graph.types import GraphQuery

model = load_inference_artifact("path/to/graph-reasoner-1")
graph = GraphStore.from_dict(your_graph)
query = GraphQuery(text="which supplier is behind this project?", start_entity_ids=("n1",), max_hops=3)

result = model.reason(graph, query)              # in-distribution
result = model.reason(graph, query, abstain=False)  # out-of-distribution: see limitation 1

for answer in result.answers:
    print(answer.entity_id, answer.score)
for path in result.supporting_paths:             # every edge verified to exist
    print(path.relation_sequence, path.endpoint_id)

Code: graph-reasoning-model (Apache-2.0). Training data: frontal-labs/graph-reasoner1-trainning-data.

Provenance

run_manifest.json ships alongside the weights and records the config hash, dataset hash, seed, parameter buckets, platform and torch version. It carries the version strings grm-architecture-v2 / grm-synthetic-2 because those are what the training run actually emitted — the project was renamed from "GRM" to "Graph" after this checkpoint was trained, and the manifest is left as produced rather than retconned.

Derived in part from GFM-RAG / G-Reasoner (Apache-2.0); the retrieval subpackage is vendored. The weights here are trained from scratch and share no parameters with upstream.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · graph-reasoning-model

Нельзя запустить

Графовые модели пока не поддерживаются.

Ревизия весов
f931750

0 моделей