Graph reasoning · Evolve on Graph
A graph can supply its own exercises, answer keys, and adaptive training signal
EoG trains one model to pose and solve graph questions without annotated training QA, using executed answers and variation across solver attempts.
Original paper · PDF
Zongyuan Sun, Shuai Zhao, Ke Shu and colleagues
Two successes, three misses: how should an agent learn?
Maya maintains a private graph QA agent with no annotated training questions. It must find the country shared by Jèrriais and French. In a teaching batch of five attempts, two return Jersey and three miss it.
A frozen agent cannot learn from those attempts. Buying annotations is expensive; sending private graph facts to a closed-source teacher may be impossible. §1
Making up questions is not enough: you also need reliable answer keys and feedback that does not simply reward questions every attempt fails.
Which parts of this scenario are invented?
Maya and the five-attempt batch are teaching examples, not a deployment reported in the paper. The Jèrriais/French facts and question come from its case study. §4.7
Let the graph supply exercises and answer keys
EoG executes grounded graph queries for complete answer keys, then trains one shared LLM to propose verified questions and solve them, rewarding the Proposer for variation in the Solver's answer scores. §§3.2–3.4
The graph provides logical exercises and their answer sets; the model turns those exercises into questions and practices answering them. Questions receive more Proposer reward when different solver attempts earn different F1 scores, rather than when every attempt succeeds or every attempt fails. Both roles improve the same model.
For Maya's task, execution supplies {Jersey}. The Proposer asks for the country shared by both languages without naming Jersey. After a validity check, the invented mixed attempts give variance 0.24—more Proposer reward than uniform success or uniform failure. §4.7; Eq. (15)
A graph triple is a directed, labeled fact: French —countries_spoken_in→ Jersey. An anchor is a supplied starting entity; the answer is a variable to find. The model chooses graph-tool calls, rather than receiving all facts at once. §3.1
“Without annotations” means training QA
The method assumes an existing queryable graph, not an empty database. It uses no annotated training questions or closed-source teacher. Humans still wrote evaluation questions. At deployment only the Solver runs. §3.1; Training loop; Appendix C.1
One fixed task pool, two roles, one model
Before training, SVTS grounds six logical shapes in graph facts and executes their queries. Projection follows an edge; intersection requires the same entity to satisfy multiple constraints. A two-hop path instead passes through a hidden intermediate. §3.3
- Graph environment
- Returns relations and triples. A trajectory is the sequence of tool choices and observations, not just its final output. §3.1
- Symbolically Verifiable Topology Synthesis (SVTS)
- Ground, compile, execute; discard empty, unnameable, or too-large answer sets, including counts at least . Retain the task pool before training. Grounding and execution; Appendix B
- Proposer
- Explore from named anchors and phrase the skeleton while hiding intermediate and answer names. Question generation
- Question verification
- Check extraction, length and nonleakage. One evidence-only Solver pass must return exactly the executed set. Failures skip both updates. Question verification; Training loop
- Solver
- Fresh graph exploration in five attempts; answer F1 and format credit feed GRPO. No prescribed exploration path is rewarded. Question solving; §4.1
- Boundary-Aware Graph Curriculum
- F1 variance supplies a return for the whole proposing trajectory. REINFORCE and GRPO update the same parameters, under different role prompts. §3.4
Six topology shapes
Arrows follow relations; A and B are anchors, y is hidden, x is the answer. Nested shapes put intersection before or after projection. Table 6
A hidden intermediate, the tools, and deployment
Goodison Park ←arena_stadium— Mid1@ —owner_s→ Ans@ becomes “Who is the owner of the team that plays at Goodison Park?” The placeholders cannot be used as tool arguments; exploration must start at a real anchor. Question generation
get_relations lists an entity's relations; get_triples returns triples under chosen relations. Both roles use <think>, <kg-query>, and <information> blocks. At test time only the Solver answers human-written questions with those tools. §§3.1–3.2; Training loop
Trace Jersey from graph facts to reward
With equal format scores, which five-attempt group gives the Proposer more reward: two exact Jersey answers plus three misses, or five exact Jersey answers?
The mixed group wins: variance 0.24, versus zero for five successes. Five successes maximize the Solver attempts' answer reward, not the Proposer's boundary return. At the illustrative width, their Proposer returns are 0.995012 and 0.043937.
Teaching calculation: the graph facts and question are from the paper. Five predictions, passing verification, format scores of one, and are invented inputs—not reported training outputs.
- Execute the grounded intersection query.
{Jersey} ∩ {Dominica, Mali, Chad, Jersey, Ivory Coast} = {Jersey}
Both constraints must hold; the full query, not one endpoint, defines the key. Eq. (10); Table 5
- Explore and write the question.
Anchors: Jèrriais, French. “In which country are both Jèrriais and French spoken?”
Both anchors are named; Jersey is hidden. The question preserves the intersection. Question generation; §4.7
- Apply the validity gate.
Rules: pass. Supplied verifier: {Jersey}. Exact equality: true. Valid: 1.
Both checks must pass. This verification output is a supplied teaching fixture. Eq. (13)
- Score the five supplied attempts.
F1: [1, 1, 0, 0, 0]; Solver rewards: [1, 1, 0.2, 0.2, 0.2]
An exact singleton earns full overlap; an empty prediction against a nonempty key earns none. Solver reward adds format credit. Precision is the fraction of proposed answers that are gold; recall is the fraction of gold recovered. Their F1 balance gives 0.666667 for {Jersey, Mali} against {Jersey}. Eq. (6)
- Compute population F1 variance.
Mean = 0.4; deviations = [0.6, 0.6, -0.4, -0.4, -0.4]; squares = [0.36, 0.36, 0.16, 0.16, 0.16]; variance = 0.24.
Subtract the mean, square, then average using the group size—not one less. Use F1, not the format-augmented rewards. Eq. (14)
- Assign the Proposer's return.
At illustrative h = 0.01: exp(-0.005) ≈ 0.995012.
The variance is close to the general target of one quarter. It is the largest attainable variance for five bounded scores. Eq. (15); Appendix A
- Send distinct signals to shared parameters.
Both update gates are open.
GRPO compares Solver attempts; REINFORCE weights the whole proposing trajectory. These are training signals and eligibility, not a simulated numerical parameter update. Solver optimization; Proposer optimization; Training loop
Relative-advantage arithmetic
Reward mean = 0.52; relative advantages ≈ [1.224745, 1.224745, -0.816497, -0.816497, -0.816497].
Subtract the reward mean and divide by its population standard deviation. When the deviation is zero, advantages are defined as zero. Appendix A
Exact relation directions
The incoming triple is Jersey —location.country.languages_spoken→ Jèrriais. The French triples point outward via language.human_language.countries_spoken_in. An inverse lookup returns the country on the incoming edge; it does not reverse the stored fact. Tables 4–5
A valid endpoint is not an answer key
A Solver returns both Kneading and Slashing dough. If its gold label contains only the sampled endpoint Kneading, what F1 does that complete answer receive?
It receives 2/3: precision is 1/2 and recall is 1 against the singleton key. The tempting answer 1 would be right against the complete executed key. This is a labeling problem, not a reasoning error.
The paper's two-hop example is Shaping —recipes→ Country Sourdough Bread —techniques→ an answer. Its execution returns Kneading and Slashing dough. Grounding and execution
One sampled answer versus the executed answer set
Same input on both sides: predict {Kneading, Slashing dough}.
Singleton walk label
Key: {Kneading}
Precision 0.5 · recall 1 · F1 0.666667
Executed key
Key: {Kneading, Slashing dough}
Precision 1 · recall 1 · F1 1
The one difference: enumerate every satisfying entity instead of keeping one valid endpoint. The singleton choice is illustrative. Eq. (10); Grounding and execution
A correct symbolic key is not a verified English question
Same input: the faithful language question, gold {Jersey}, rules passing, and a supplied empty verification answer.
Key-only acceptance
Keep it because the logical query executed successfully.
EoG's separate gate
Reject it: {} does not equal {Jersey}. Both updates are skipped.
The one difference: test the question with the Proposer's evidence, accepting the possibility of false rejection. Question verification; Training loop
Find the boundary—and break the validity gate
Starting from [1,1,0,0,0], replace the two successes with misses. What happens to the Proposer's return at fixed h?
All misses give zero variance, exactly like all successes. Difficulty and needing practice do not create within-group differences. At illustrative h = 0.01, return falls from 0.995012 to 0.043937, not literal zero.
Make the Proposer prefer mixed outcomes over both mastery and uniform failure. Then make the validity gate suppress both updates.
Teaching sandbox · signals, not RL training
The graph is fixed. Predictions, verification results and width are supplied fixtures; no LLM, gradients, token probabilities, clipping or KL penalty are simulated. Only the language intersection and bread path are executable here; real SVTS uses six shapes.
The width range and default are illustrative, not reported hyperparameters.
Try these changes
- Compare mixed, mastered, and failure. Which wins on Proposer return, not mean F1?
- Select uniform partial. Does identical partial credit create variance?
- Increase h at fixed scores. Which readouts stay unchanged?
- Choose Answer leak. Can exact verifier agreement rescue failed rules?
Rewarding failure versus rewarding score variance
Same inputs: mixed F1 [1, 1, 0, 0, 0] and uniform failure [0, 0, 0, 0, 0].
Adversarial success-rate reward
Mixed: 0.6; uniform failure: 1.
Prefers failure.
Gaussian boundary reward
Mixed: 0.995012; uniform failure: 0.043937.
Prefers variation.
The one difference: low success rate versus differences in answer-set F1. Comparator uses the sandbox width; profiles are fixed teaching inputs. §4.3; Appendix A, Remark
What increasing h changes—and what this toy leaves out
Our inference: At fixed feasible variance, increasing h raises Proposer return toward one. Zero-variance returns rise too, weakening reward discrimination. F1, variance and Solver rewards do not use h. Eq. (15)
Varying partial outcomes can supply variance; identical partial outcomes cannot. The sandbox computes signals, not improvement probabilities or learning progress. It omits stochastic generation and verification, learned tool selection, real gradients and deployment costs. All its answers are small, named and nonempty, so preprocessing rejection is explained rather than simulated.
Attach the notation to the values you already computed
Keep three objects separate: an executed answer set, a Solver reward per attempt, and a Proposer return per question. In the validity equation, sigma names a trajectory; in the boundary equations, sigma squared is score variance.
The gold set is the denotation of the compiled logical query on the target graph. This is worked step 1. Eq. (10)
| Symbol | Meaning · worked value |
|---|---|
| Complete gold set · {Jersey} | |
| Query evaluation · intersect the two country sets | |
| Compiled query · shared-country query | |
| Target graph · displayed language-country facts | |
| Logical query · two constraints on the same country variable | |
| All satisfying entities · {Jersey} |
A question passes only when its rules pass and one evidence-only Solver answer equals the full gold set. This is worked step 3. Eqs. (12)–(13)
| Symbol | Meaning · worked value |
|---|---|
| Sampled verification trajectory, not standard deviation · supplied output {Jersey} | |
| Solver-prompted shared policy and parameters · not instantiated by the toy | |
| Possible trajectories · one supplied result here | |
| Generated question · the Jèrriais/French question | |
| Anchors · Jèrriais and French | |
| Proposer exploration trajectory · scripted language exploration | |
| Union of retrieved triples · supporting Jèrriais/Jersey and French/Jersey evidence | |
| Validity and extraction/length/nonleakage checks · both one in the default fixture | |
| Indicator of exact set equality · one | |
| Verification set and executed set · both {Jersey} |
A Solver attempt earns weighted answer-set overlap plus interaction-format credit. This is worked step 4. Eq. (6)
| Symbol | Meaning · worked value |
|---|---|
| Solver rewards · [1, 1, 0.2, 0.2, 0.2] | |
| Attempt and its index · five supplied outputs | |
| Answer-set overlap · [1, 1, 0, 0, 0] | |
| Predicted sets · [{Jersey}, {Jersey}, {}, {}, {}] | |
| Executed key · {Jersey} | |
| Format score in · one throughout | |
| Paper's answer and format weights · unchanged |
Population variance measures how differently attempts score on the complete answer set. This is worked step 5. Eq. (14)
| Symbol | Meaning · worked value |
|---|---|
| Answer F1 in · [1, 1, 0, 0, 0] | |
| Predicted sets and executed key · [{Jersey}, {Jersey}, {}, {}, {}]; {Jersey} | |
| Rollout index and group size · five attempts | |
| Mean F1 · 0.4 | |
| Accepted language question | |
| Variance with divisor · 0.24 |
The Proposer receives more return as feasible F1 variance approaches the general upper bound of one quarter. The denominator is , not . This is worked step 6. Eq. (15); Appendix A
| Symbol | Meaning · worked value |
|---|---|
| Whole-trajectory return · 0.995012 | |
| Accepted language question | |
| Exponential · exponent -0.005 here | |
| F1 variance · 0.24 | |
| General upper bound · with five attempts only 0.24 is attainable | |
| Positive width · illustrative 0.01, not a reported setting |
REINFORCE uses the boundary return to weight the likelihood of every action in the proposing trajectory—not just its final question. This is worked step 7. Eq. (16)
| Symbol | Meaning · worked value |
|---|---|
| Proposer objective · not numerically evaluated | |
| Shared parameters and Proposer-prompted policy · not instantiated | |
| Expectation over tasks and trajectories · not estimated from one fixture | |
| Return and generated question · 0.995012; language question | |
| Proposer trajectory · scripted exploration and final question | |
| Policy-step/token count and index · no token count assigned | |
| Log probability · not evaluated | |
| Action and conditioning history · query/output actions and previous turns |
GRPO is a different update
GRPO standardizes rewards within each question's attempt group. It uses new-to-old token probability ratios, clips large changes, and penalizes divergence from a reference policy through KL regularization. The default teaching group's advantages are [1.224745, 1.224745, -0.816497, -0.816497, -0.816497]. A zero-variance reward group has zero advantages. Eq. (7); Appendix A
What the proof actually bounds
With equal format scores, group-normalized reward advantages equal normalized F1 deviations. Appendix A measures signal as mean absolute normalized advantage, at most one; it vanishes at zero variance. Five attempts cannot split evenly between zero and one, and their maximum variance is 0.24. Appendix A, Eq. (17)
Our inference: A bound on this advantage-based proxy is not a theorem of future test-accuracy improvement.
Glossary
- Knowledge graph
- Entities, relations and directed factual triples. §3.1
- Anchors
- Named starting entities; intermediate and answer names are hidden in the skeleton. Question generation
- Denotation
- Every entity satisfying a query on this graph. Eq. (10)
- Projection and intersection
- One-hop traversal and multiple constraints on one variable. Query patterns
- Graph Self-Play
- Two prompted exploration roles sharing one model. §3.2
- SVTS
- Symbolically Verifiable Topology Synthesis: grounded query shapes with executed answer keys. §3.3
- Capability boundary
- Accepted questions whose Solver attempts have differing F1. Capability boundary
- Hit@1 and F1
- Agreement with any normalized gold answer versus predicted/gold answer-list overlap. Hit@1 is not full-set exact match. Appendix C.2
- Unseen schema
- Test-query relations not all covered by the supervised reference's training annotations—not an unseen graph. §4.5
- Sigma
- A verification trajectory in one equation; score variance when squared in another. Eqs. (12), (14)
What the experiments establish
On five public benchmarks, Qwen-2.5-7B EoG improves average Hit@1 and F1 over the strongest average annotation-free baseline. These are percentage-point differences, not relative percentage gains. Table 2; Appendix C.2
| Annotation-free method | Hit@1 | F1 |
|---|---|---|
| Graph Reranker | 54.09 | 44.26 |
| EoG | 61.55 | 56.31 |
| Reported gain (points) | +7.46 | +12.05 |
Industrial graph: IndustryCarBench has 500 expert-written test questions and no training set. EoG exceeds ToG by 17.80 Hit@1 points. §4.1; §4.2; Figure 4
This is annotation-free training, not annotation-free evaluation. Absolute industrial scores are not stated in the available prose.
Multi-hop CWQ: Full EoG scores 50.58 / 49.27 Hit@1 / F1. Removing Proposer updates gives 36.22 / 35.83; random-walk answers give 35.93 / 35.64; removing Solver updates gives 46.39 / 42.15. Even that last variant improves over untrained ReAct's 16.06 Hit@1. Table 3; §4.4
The ablations support the combination here, not universal necessity. The random-walk variant only approximates GraphWalker. §4.1
The reward is not universally best: On WebQSP, triangular reward leads Gaussian EoG, 71.12 / 63.73 versus 70.13 / 62.10. On CWQ, it trails, 46.47 / 44.03 versus 50.58 / 49.27. Table 3
Unseen schema, not unseen graph: EoG exceeds WebQSP-trained and GrailQA-trained KG-R1† by 2.65 and 5.84 F1 points. CWQ-trained KG-R1† still leads by 3.33 on unseen schema, versus 5.05 on seen schema. Supervised training is stronger in distribution. §4.5; Figure 6
KG-R1† is the authors' full-Freebase variant, not published KG-R1. Its reward also omits EoG's format term, so this is not a perfectly isolated data-source comparison. §4.5; Appendix C.3
Exact public-benchmark and ablation rows
| Benchmark | Hit@1 | F1 |
|---|---|---|
| WebQSP | 70.13 | 62.10 |
| CWQ | 50.58 | 49.27 |
| GrailQA | 65.38 | 63.01 |
| GTSQA | 48.39 | 46.36 |
| WikiWebQuestions | 73.28 | 60.82 |
| Variant | WebQSP | CWQ | GrailQA |
|---|---|---|---|
| Untrained ReAct | 34.82 / 28.42 | 16.06 / 13.45 | 49.19 / 50.07 |
| No Solver update | 53.74 / 47.08 | 46.39 / 42.15 | 58.50 / 55.69 |
| No Proposer update | 63.14 / 56.91 | 36.22 / 35.83 | 55.67 / 55.18 |
| Random walk | 64.87 / 57.67 | 35.93 / 35.64 | 60.12 / 60.41 |
| Adversarial | 69.51 / 60.40 | 42.59 / 41.85 | 63.26 / 61.01 |
| Triangular | 71.12 / 63.73 | 46.47 / 44.03 | 63.46 / 62.10 |
| Full Gaussian EoG | 70.13 / 62.10 | 50.58 / 49.27 | 65.38 / 63.01 |
Resources, dynamics, and figure captions
Training uses 140 steps on 8 GH200 GPUs, 5 rollouts per task, learning rate , and at most 15 assistant turns. Train / PPO mini-batch size is 256 / 128; max response length 2560; rollout temperature 0.8; KL loss coefficient 0.01. §4.1; Table 7
Reported complex-topology synthesis rises from 17.9 to 31.3 while simple patterns level off near 34, narrowing the gap to 2.5 points. The 3p pattern rises from 16 to 41 after simpler patterns plateau. These observations support increasingly usable complex tasks; they do not add new shapes to the fixed pool. §4.6; Figure 7
No missing plot coordinates or unstated units are reconstructed here. Follow displayed captions: IndustryCarBench is Figure 4; unseen-schema analysis is Figure 6. Some prose links in the paper point to Figure 5 instead.
Our inference: These results do not prove guaranteed learning progress, universal Gaussian-reward superiority, or production economics. The public average excludes the industrial benchmark and does not establish superiority over every supervised reference. GPU and step counts alone do not specify time, query load or serving cost. Table 2; §4.1; Table 3; Appendix A
Where self-evolution stops
Lost training opportunities. A faithful question can fail the single verification attempt and be rejected. Question verification
Our inference: The shared-model sampled verifier is not a proof of English/query equivalence or a guarantee against correlated errors. A correct symbolic key cannot by itself certify the generated English.
Excluded tasks. Empty, abnormally large and unnameable answer sets are discarded, not solved. The appendix rejects counts at least . Grounding and execution; Appendix B
Our inference: The fixed positive conjunctive shapes do not establish training coverage of negation, aggregation, temporal constraints or arbitrary longer queries. Query patterns; Table 6
Our inference: Complete means complete relative to the graph, not the world. Execution cannot repair a missing or incorrect fact; this is reasoning over an existing graph, not graph construction or ontology validation. §3.1; Grounding and execution
Proof assumptions. Equal format scores are required for the stated correspondence to normalized F1 advantages. The learning-signal proxy is mean absolute normalized advantage; five attempts reach variance at most 0.24. Appendix A
Our inference: That proxy does not prove held-out accuracy improvement.
Empirical limits. Supervised KG-R1† is stronger in distribution; its CWQ-trained version still leads on unseen schema. Overlong Solver responses can be truncated and temporarily lower reward. §§4.5–4.6
Our inference: The paper reports no multi-seed uncertainty, training wall time, graph-query volume, or serving latency/cost measurements. Production economics and endpoint load remain open. §4.1; Table 7; Appendix C.3
Low measured overlap is not exhaustive leakage exclusion
BGE-M3 nearest-question cosine analysis reports 4.57%, 2.28%, and 0.71% above thresholds 0.85, 0.90, and 0.95, respectively, and mean similarity 0.634. Appendix C.4, Test-set leakage
Our inference: This measures one form of textual overlap. It cannot exhaustively exclude semantic leakage or pretrained benchmark memorization, despite the paper's broad no-leakage conclusion.
Open questions
- How much valid-question yield is lost to single-trajectory verification? Would independent checks help?
- What happens when a real answer is absent from the graph?
- Can the curriculum extend to negation, aggregation, temporal questions or longer structures?
- What query load, wall time and serving latency does it require?
- How robust are gains across seeds, graph density and boundary width?
- How can consistently partial but identical outcomes become useful when variance is zero?
Explain it, change it, transfer it
Answer each question in your head before opening its reference answer.
1 · Reconstruct the mechanism
Reconstruct one accepted round from symbolic task to the two updates. Where do complete answers come from, what may the verifier see, and which scores produce each role's reward?
Open the answer
Execute the grounded query for the full gold set. The Proposer explores from anchors and writes a question hiding intermediate and answer names. Rule checks and one Solver pass restricted to Proposer evidence must pass. Fresh Solver graph rollouts earn 0.8 F1 + 0.2 format and feed GRPO. Their F1 variance feeds the Gaussian Proposer return and whole-trajectory REINFORCE. Both update shared parameters. §§3.2–3.4
Why: symbolic correctness, question filtering and boundary scoring solve different problems, in that order.
2 · Predict a change
Five attempts keep producing the same incomplete answer set. At fixed h and equal format scores, what happens to boundary return if that set improves but is still identical across attempts?
Open the answer
Mean F1 and individual Solver rewards improve, but variance remains zero. The Proposer return stays at its fixed-width minimum; relative Solver advantages remain zero.
Why: within-group differences, not mean performance, produce this signal. Identical rewards cannot rank attempts. Capability boundary; Appendix A
3 · Transfer it
A hospital graph asks for drugs that both treat condition C and are stocked at clinic K. Execution returns {Drug A, Drug B}, but a walk label kept only Drug A. How is a complete answer scored under each key? What does “complete” fail to guarantee if the graph is missing Drug C?
Open the answer
Predicting {Drug A, Drug B} earns F1 1 against the executed key but only 2/3 against the singleton walk key. Execution still cannot recover a missing Drug C fact.
Why: intersection constrains the same drug variable and execution enumerates all satisfying recorded entities. This hospital scenario is a teaching example, not a reported experiment. Grounding and execution
Our inference: Graph-relative completeness is not completeness of real-world knowledge.