Elamur Research

Can LLMs perform structured graph reasoning?

Paper · 2024 · Palaash Agrawal, Shavak Vasania and Cheston Tan

Summary

A system may describe a graph algorithm convincingly and still fail to follow the connections in a particular graph. “Can LLMs perform structured graph reasoning tasks?” investigates that gap. Palaash Agrawal, Shavak Vasania and Cheston Tan ask whether large language models can read a graph represented as a matrix, maintain the relevant relationships, and produce a valid optimal route. The question matters because structured reasoning requires more than recognizing familiar words: a solver must distinguish connected from disconnected nodes, respect direction, track costs, and sometimes conclude that the requested route does not exist.

The authors construct 10 graph problems covering increasingly demanding forms of traversal. Some involve a simple chain or a branching structure; others require choosing among competing routes, adding edge costs, respecting directed connections, or passing through a checkpoint. A separate task asks whether an Euler traversal is possible from a specified starting node. Graphs appear as adjacency matrices, in which a cell records the connection between its row node and its column node. This keeps the input compatible with text interfaces while requiring the solver to recover relationships from a tabular arrangement. The study compares GPT-4 with GPT-3.5, and also evaluates Claude-2, Palm-2 and an instruction-tuned Llama-2 variant.

The results show substantial sensitivity to graph structure and presentation. Tree-like problems are generally easier than grid problems, and larger graphs usually reduce accuracy. Randomizing node labels makes even simple traversal difficult for some systems, suggesting reliance on familiar alphabetical sequences. Weighted routes introduce another burden because the answer must minimize accumulated cost rather than merely the number of connections. Examples in the prompt do not reliably solve these difficulties: they sometimes help, sometimes hurt, and can cause a response to address an example rather than the current question. Tasks without a valid route expose a further weakness: systems frequently produce an answer when rejecting the request would be correct.

The paper’s proposed intervention, PathCompare, changes what the response should contain before the final answer. Instead of asking only for the optimal route, it asks the solver to enumerate candidate routes and compare their costs. This makes alternatives available for explicit comparison instead of relying on a single generated traversal. In the authors’ task-level comparison, PathCompare improves performance on 5/8 tasks for GPT-3.5, 6/8 for GPT-4, and 5/8 for Claude-2. The appendix also shows important exceptions, including severe failure on simple chains for GPT-3.5 and weak recognition of impossible routes.

The contribution is therefore both an evaluation framework and a targeted prompting result. The framework separates several demands that broad reasoning scores can conceal: reading a representation, following edges, comparing alternatives, tracking numerical state, and recognizing absence. PathCompare demonstrates that requesting explicit alternatives can help with some of these demands. It does not establish dependable graph search, exhaustive enumeration, or a general solution to structured reasoning. The experiments use small collections of generated instances, and their strongest conclusions concern the particular tasks, representations and prompting conditions tested.

Interesting ideas

Test the representation as part of the task. An adjacency matrix and a list of connections can describe the same graph while imposing different reading demands. The paper deliberately preserves row–column relationships rather than spelling out every connection. This suggests a reusable evaluation principle: decide whether a test is meant to measure reasoning over already extracted facts or the ability to recover those facts from a structured representation. The distinction matters for tables, dependency structures and other forms of knowledge representation.

Change identifiers without changing relationships. Randomized node labels make a solver rely on connectivity rather than a familiar naming sequence. This is a useful control wherever arbitrary identifiers can accidentally reveal the answer. Variable names, entity labels, document identifiers and database keys can all carry shortcuts that disappear under renaming. A system that understands the relation should preserve its answer after the identifiers and the expected output are transformed consistently.

Separate candidate generation from comparison. PathCompare asks for alternatives before choosing a route. Its practical insight is that constructing an answer and selecting among explicit candidates place different demands on a solver. The same separation can help in interpretation, search, planning and mathematical problem solving. It also makes failures easier to inspect: a useful candidate may never have been generated, or it may have been generated and then incorrectly rejected.

Make impossibility a required answer. A benchmark containing only solvable requests cannot reveal whether a system invents solutions under pressure to be helpful. The no-route task tests whether the solver can recognize that its constraints rule out success. Comparable cases belong in question answering, retrieval, scheduling and rule application, where an unsupported positive answer can be more damaging than an explicit failure.

Use diagnostic credit beside complete correctness. A route can begin correctly and still fail to reach the destination. The paper’s prefix-based partial credit distinguishes that behavior from a response that is wrong immediately. Such diagnostics help locate the point where state tracking breaks down. They should accompany a complete-success measure, because partial progress does not make an invalid route usable.

Add constraints in controlled stages. The task families move from simple connectivity towards branching, weights, direction and checkpoint requirements. This helps connect a performance change to a specific demand rather than treating every error as generic reasoning failure. The approach transfers to linguistic and operational evaluation: preserve a basic problem while introducing the condition whose handling needs to be tested.

Evaluate prompting through the final decision. More examples and more visible reasoning do not consistently improve the answer. PathCompare itself helps many settings while failing badly in others. A prompt should therefore be judged on complete task outcomes, including negative cases, rather than on the amount of explanation it produces. This is especially useful when a system repeatedly revises its own instructions or chooses among alternative reasoning procedures.

Deep dive: Can LLMs perform structured graph reasoning?

Can language systems read graph structure? This study tests matrix-based traversal and introduces PathCompare to compare candidate routes. · about 40 minutes to read

How Mova uses it

Mova is a small, transparent language system implemented in Rust. Its native pipeline reads dependency structures into frames and maintains a world of entities, states and changes. Its mathematical and operational components also use explicit constraints, explanations and bounded procedures. Those mechanisms make the paper relevant without making its language-model findings evidence about Mova’s performance.

The connections below are proposed applications assessed against Mova’s documented mechanisms. The status marks describe apparent overlap, not a measured application of this paper. Where a proposal is marked new, that means a potentially new addition to the documented scope; the available account is incomplete. No graph-traversal result from this paper establishes an improvement in Mova.

Idea: Evaluate representation reading separately from reasoning. Where: Introduction and Section 2.2. Area: evaluation and data representation. Mova: частково є (the en → prag → world pipeline separates structural analysis from world interpretation). Mova could compare reasoning from an admitted graph with reasoning from a textual or tabular expression of that graph. This would distinguish an extraction failure from an inference failure. The paper motivates the distinction; the effect of such a comparison in Mova is unknown.

Idea: Test consistent identifier renaming. Where: Section 2.2 and Appendix A.1, Node Jumbling. Area: evaluation. Mova: нове. A proposed control would rename entities or graph identifiers while preserving every relation and transforming the expected answer consistently. This could test whether a reader follows structure or depends on familiar names. Why Mova: its logical-module direction benefits from answers that depend on declared relationships rather than incidental identifiers. Existing coverage of this exact control is unknown.

Idea: Generate alternatives before selecting an answer. Where: PathCompare prompting, Section 4. Area: reasoning and search. Mova: частково є (math::steps, deduct and the top-K judge already separate branches and judgments). Mova could retain candidate paths or interpretations as explicit objects and compare them using native checks. The proposal transfers the organization of PathCompare, not an assumption that its prompting gains will carry over. Whether the additional candidates improve Mova remains unverified.

Idea: Include impossible requests in every relevant evaluation family. Where: Problem 2.4 and Section 3.6. Area: evaluation and operational reasoning. Mova: частково є (the configured deputy retains unsupported or ambiguous requests as failures, and layers can mark escalation). Graph and planning checks could explicitly include cases where no admitted action sequence satisfies the constraints. This would test whether those failure mechanisms activate correctly, rather than merely confirming that a successful path works.

Idea: Report partial progress beside complete success. Where: Section 2.2, Partial Credit evaluation. Area: evaluation. Mova: нове. A route or multi-step derivation could receive a diagnostic showing the valid prefix before its first unsupported step, while complete correctness remains the principal result. Why Mova: retained reasons already make intermediate decisions inspectable, so a prefix diagnostic could localize failures cheaply. No equivalent traversal metric is established by the documented mechanisms.

Idea: Introduce reasoning constraints separately. Where: Section 2.1. Area: evaluation design. Mova: частково є (regression gates and contrast controls already test specific rule behavior). A graph-oriented suite could preserve a basic task while separately introducing branching, costs, direction or a checkpoint. This would make a regression attributable to a particular demand. The paper supports the experimental structure; it does not identify which constraint currently limits Mova.

Idea: Select prompts by complete outcomes. Where: Sections 3.4 and 4, with Appendix Tables 4 and 5. Area: evaluation and teacher workflow. Mova: частково є (teacher-separated assessment and regression-gated changes already require outcome checks). Any prompt change in a teacher or optional consultant workflow could be assessed on admitted outputs and failures, including impossible cases. Longer explanations would remain evidence to inspect rather than proof of better decisions.

Idea: Store direction as a relation property. Where: Problem 2.3 and Appendix A.1, Weighted and Directed graph representations. Area: data and logic. Mova: частково є (frames distinguish participants and roles, and typed correspondences describe declared relations). A traversal adapter should preserve which way an edge may be followed and check that property at each step. This is especially relevant when superficially similar relations have different logical directions. The proposed traversal adapter is not documented as implemented.

Idea: Keep accumulated cost separate from route length. Where: Section 3.3. Area: mathematics and state tracking. Mova: частково є (math provides exact arithmetic, quantities and justified steps). A weighted-path implementation could record both the current route and its accumulated cost, preventing a shortest-by-edges heuristic from silently replacing a least-cost objective. The paper’s failures motivate the distinction, while Mova would need its own measurements to establish correct integration.

Idea: Decompose checkpoint requests explicitly. Where: Problem 3.2. Area: task decomposition. Mova: частково є (deduct and bounded recursive self-use provide interfaces for subtasks). A request requiring passage through a named intermediate state could become separate obligations joined by a checked boundary. The final result would still need a global check that the checkpoint occurs and all task constraints hold. This is a proposal for configured tasks, not evidence of arbitrary planning.

Idea: Preserve a proof obligation for every traversed edge. Where: Sections 2.1 and 2.2, which define routes through graph connections. Area: reasoning and interpretability. Mova: частково є (native decisions retain rules, features or knowledge as reasons; groupants retain invariants and evidence). A candidate route could carry the source relation supporting each move. This would make a fabricated connection an identifiable failure rather than an unexplained wrong answer.

Idea: Verify optimality separately from validity. Where: Problems 1.3, 1.4 and 2.2. Area: mathematics and evaluation. Mova: нове. A proposed route checker would distinguish a legal route from a legal route that satisfies the requested optimum. Why Mova: explicit reasons can establish local correctness while still missing a better alternative, so a separate optimality obligation would prevent overclaiming. The documented system does not establish this particular checker.

Idea: Compare candidate coverage with selection quality. Where: Section 4. Area: search diagnostics. Mova: частково є (the mathematical solver keeps tried branches and a judge’s decision). Mova could record whether the correct candidate was absent or present but rejected. These failures call for different repairs: broader generation in the former case, better comparison in the latter. PathCompare motivates this diagnostic, but the paper does not itself report such a decomposition.

Idea: Avoid claiming exhaustive search from a candidate list. Where: Section 4. Area: reasoning and evidence. Mova: частково є (bounded interfaces and declared conformance profiles already limit claims). A list of explored routes should state its bounds and whether completeness was established. This would preserve the distinction between comparing available alternatives and proving that no better alternative exists. The proposal is particularly useful when native search and optional consultant suggestions meet.

Idea: Measure branching demands directly. Where: Sections 2.1 and 3.2. Area: evaluation and workload analysis. Mova: нове. A proposed task report could describe the available choices at intermediate states rather than treating graph size as the only difficulty indicator. Why Mova: bounded planners and recursive tasks need to distinguish a long narrow procedure from a shorter search with many alternatives. The authors’ qualitative association would need a separate Mova experiment before supporting a quantitative claim.

Idea: Test graph size independently from naming order. Where: Section 3.5 and Figure 4. Area: evaluation. Mova: нове. Size variation and identifier permutation could be recorded as separate experimental factors. Why Mova: a failure on a larger world may reflect representation handling, search effort or identifier sensitivity, and those possibilities suggest different fixes. The paper motivates the separation but does not establish a Mova-specific causal account.

Idea: Keep example state separate from active task state. Where: Section 3.4. Area: context management. Mova: частково є (nested capability calls retain their own source, configuration, budget and outcome). If examples accompany a configured task, their entities and results should remain outside the active world unless explicitly imported. The paper’s observed confusion suggests a useful test for that boundary. Its language-model behavior is not evidence that Mova currently mixes these states.

Idea: Treat context capacity as an evaluation condition. Where: Section 3.1. Area: resource accounting. Mova: частково є (worker calls have bounds, and job tools record memory and time estimates). Reports should distinguish a task that was attempted and answered incorrectly from one that could not be admitted under resource limits. This makes capability claims more interpretable. It also prevents an omitted run from being mistaken for a measured reasoning result.

Idea: Distinguish refusal, unsupported input and a proved negative. Where: Sections 3.1 and 3.6. Area: operational evidence. Mova: частково є (unsupported requests and missing context already retain explicit failures). A refusal to process a graph should not become evidence that its destination is unreachable. Mova could use separate outcomes for resource refusal, representation failure and constraint-based impossibility. The documented boundaries support this separation, while the exact outcome scheme remains a proposal.

Idea: Generate tasks together with their reference solutions. Where: Section 2.2, Automated graph generation. Area: data processing and evaluation. Mova: частково є (deterministic algorithms, owned fixtures and reproducible controls already support checked evaluation). A graph generator could retain the graph, requested objective and reference result together. This would make new test instances reproducible and reduce dependence on manual answer construction. No graph-generation benchmark for this paper is established in Mova.

Idea: Remove answer ambiguity deliberately. Where: Section 2.2. Area: evaluation design. Mova: нове. A proposed exact-route suite could admit only instances with a unique optimum, or explicitly validate any equally optimal answer. Why Mova: transparent evaluation should distinguish an incorrect answer from a different valid answer. The paper uses uniqueness for most tasks; Mova would need to choose and document an appropriate policy for its own domains.

Idea: Choose output form to match the property tested. Where: Problem 3.1 and Section 2.2. Area: evaluation and interface design. Mova: частково є (configured capabilities and typed observations already constrain outputs). Existence questions, path construction and optimization should use distinct result types. A yes-or-no judgment about possible traversal is not equivalent to producing the traversal. This separation would help keep task contracts narrow and prevent scores from being compared without regard to what was required.

Idea: Use the correct chance reference for classification tasks. Where: Section 3.7 and Appendix Table 3. Area: statistics and evaluation. Mova: вже є (school assessment reports controls and identifies the chance setting for its multiple-choice questions). The Euler analysis reinforces the need to interpret a binary decision score against its own baseline rather than against route-generation accuracy. Applying the principle to graph classification would require an appropriate benchmark, not reuse of the school’s chance reference.

Idea: Examine explanations for objective substitution. Where: Section 3.3. Area: analysis and interpretability. Mova: частково є (native decisions expose reasons, and the maths student retains opinions, branches and judgments). A trace audit could detect whether a solver minimizes edge count when the request concerns cost. This is a concrete example of using explanations to identify the wrong objective. A plausible explanation alone would still not establish that the trace is complete.

Idea: Keep algorithm descriptions separate from executed results. Where: Section 3.3. Area: operational verification. Mova: вже є (the operational layer follows admitted results, and different receipts and proofs remain different evidence types). A response describing a search procedure should not satisfy a contract requiring an actual route. The paper supplies a useful evaluation case for this existing boundary, especially when optional consultants produce persuasive procedural text.

Idea: Compare prompting procedures on the same task families. Where: Section 4 and Appendix Tables 4 and 5. Area: experimental design. Mova: вже є (mova-enrich requires comparisons on the same questions before and after a proposed improvement). The same principle applies when changing a graph reader or candidate comparator. Stable questions isolate the intervention more clearly than unrelated scores. It does not remove the need for held-out evaluation or appropriate controls.

Idea: Preserve failures caused by apparently helpful changes. Where: Figure 5 and Appendix Table 5. Area: regression analysis. Mova: вже є (self-play journals retain positive and negative experiments, and shipped rules require a gate). PathCompare’s failures on some tasks show why an aggregate improvement should not erase a local regression. A Mova experiment could retain the exact cases that worsen and decide whether the new procedure needs narrower routing.

Idea: Route reasoning procedures by supported task. Where: Section 4, where PathCompare targets traversal rather than every problem indiscriminately. Area: task routing. Mova: частково є (layers provides coverage-based routing, and operational handlers cover configured capabilities). A comparison procedure could be selected only when its assumptions fit the task and its validation evidence supports use. The paper does not establish such a selector, so this remains a Mova hypothesis.

Idea: Balance positive and negative existence cases. Where: Section 2.2, the Euler task construction. Area: data and evaluation. Mova: нове. A proposed existence benchmark could retain an explicit balance policy for satisfiable and unsatisfiable cases. Why Mova: otherwise a system that repeatedly chooses the common outcome may look capable without checking the structure. This is distinct from checking that negative cases merely appear somewhere in a larger suite.

Idea: Keep relational evidence separate from familiar sequence cues. Where: Section 3.5. Area: syntax and graph interpretation. Mova: частково є (readers operate on frame roles, and the language core preserves dependency relations). Renaming and reordering controls could be applied to admitted graph identifiers while checking that relation-sensitive answers persist. This would be useful for structured linguistic data as well as operational worlds, but it would not authorize arbitrary word reordering in natural-language tests.

Idea: Record evaluation provenance with each outcome. Where: Appendix Tables 1–5, which distinguish prompting settings, graph orders and unavailable runs. Area: data provenance. Mova: вже є (source-bound groupants, immutable source versions and retained worker identities already preserve provenance). A graph result should retain the instance, representation, procedure and resource status that produced it. The paper’s varied conditions illustrate why an accuracy value without that context is hard to interpret.

Idea: Check new source domains before generalizing a procedure. Where: the contrast between tree, grid and special tasks throughout Section 3. Area: evaluation and scope. Mova: вже є (vidtvorants and correspondences declare domains and conformance profiles). Success on a narrow traversal family should authorize claims only within that tested family. The same discipline applies to dictionary evidence and linguistic rules: a useful mechanism can remain valid locally without becoming a general understanding claim.

Idea: Preserve negative findings when preparing learning material. Where: Sections 3.4 and 4. Area: training workflow. Mova: частково є (mova-enrich stages reviewed proposals, and raw failures do not automatically become admitted training knowledge). Failed examples could become reviewed diagnostic material without being treated as correct supervision. This would help teach a missing distinction while preserving the separation between observations, proposed repairs and admitted knowledge.

The problem and its context

Graphs express relationships that cannot be understood by reading node names in sequence. A connection may join distant parts of a representation, a route may branch into several alternatives, and a locally reasonable choice may prevent reaching the destination. The paper uses these properties to examine reasoning that depends on maintaining a structured state.

The immediate concern is not whether a language system knows the definition of a shortest-path algorithm. It is whether the system can apply the relevant constraints to a graph placed in its input. This requires coordinating representation and inference. The solver must first recover what each matrix entry says, then use those entries consistently while constructing an answer.

The authors place their study alongside earlier demonstrations of arithmetic, logical, semantic and symbolic reasoning. They also discuss prompting approaches intended to improve reasoning, including chain-of-thought and self-consistency. Their point is that success in those settings leaves open a more specific question: how well does a text-based interface support reasoning over relationships whose structure is not simply the order of the words?

Why the representation matters

An adjacency list names a node and supplies its neighbors. This representation makes individual connections easy to retrieve. An adjacency matrix instead identifies a relationship through a row and a column. A solver reading a cell must know which node names index its position. Following a route then requires repeated use of that correspondence.

The paper treats matrices as a compromise. The graph still reaches the system through a sequence of text, but the sequence encodes a tabular relationship. This is what the authors mean by a semi-structured representation: the input is expressible as text without converting every relationship into a separate natural-language statement.

That distinction is central to the experimental question. If the task supplies every relevant connection in an immediately accessible verbal form, performance may mainly reflect retrieval and combination of those statements. A matrix introduces an additional requirement to recover the structure from its arrangement. The authors want to preserve that demand rather than remove it during preprocessing.

They describe earlier graph evaluations as commonly using adjacency lists or explicit descriptions of connections. Among the cited work is Talk like a Graph, which concerns graph encoding for language systems. The present paper’s contrast with such work is about what the input asks the solver to do. It does not supply a direct matrix-versus-list experiment demonstrating that one encoding universally provides a better measure of reasoning.

The authors also discuss Wang and colleagues’ earlier graph benchmark. In their account, that work showed preliminary traversal ability and found limits to advanced prompting. Custom instructions that encouraged elaboration of connections could help. Agrawal and colleagues seek finer distinctions among tasks and place greater emphasis on navigating a representation whose relationships remain tabular.

What traversal reveals

A traversal task can expose several different capabilities. Reaching the destination requires connectivity reasoning. Avoiding a dead end requires keeping alternatives available. Finding an optimum requires comparison across valid routes. Adding weights introduces numerical state, while direction can invalidate a move that would be allowed in an undirected graph.

The checkpoint task adds another distinction. A route can connect the start and destination yet fail because it omits a required intermediate node. The solver must preserve the whole request rather than satisfy its easiest part. The impossible-route task reverses the usual expectation: successful reasoning produces no route at all.

These cases make the benchmark more informative than a collection of interchangeable path questions. They create opportunities for recognizable error patterns. Ignoring weights is different from misreading an edge. Returning an algorithm description is different from computing an incorrect route. Producing a path in an impossible graph reveals a failure to respect the possibility of a negative answer.

The paper uses these patterns to motivate PathCompare. Its diagnosis is that a coherent forward explanation may still follow a poor candidate without adequately considering alternatives. The proposed prompt therefore changes the organization of the response, making route comparison explicit. That explanation is plausible and consistent with the examples, but the experiments do not independently measure every internal process involved.

The method, step by step

The study combines generated graph instances, controlled changes in difficulty, several prompting conditions and complementary correctness measures. It evaluates already available instruction-following systems instead of training a new graph solver. PathCompare is an instruction added to the task, not a learned graph representation or an external search engine.

From generated graph to evaluated traversal

The steps in order.

From generated graph to evaluated traversalStep 1: Choose a traversal task family1. Choose a traversal task familyStep 2: Generate a graph and reference answer2. Generate a graph and reference answerStep 3: Encode connections as an adjacency matrix3. Encode connections as an adjacency matrixStep 4: Select size, labels and prompting condition4. Select size, labels and prompting conditionStep 5: Request a route or existence judgment5. Request a route or existence judgmentStep 6: Score complete correctness and diagnostic progress6. Score complete correctness and diagnostic progressStep 7: Compare baseline prompting with PathCompare7. Compare baseline prompting with PathCompare

Graphs, nodes and edges

The paper begins with a graph consisting of nodes and connections.

G = {V, E}

Here, G denotes the graph, V its nodes, and E its edges. A traversal connects a specified starting node to a specified destination by following edges. The task determines whether the solver must find any permitted route, the route using the fewest connections, or the route with the lowest total cost.

The connection values use a common convention.

e ∈ {0, ℝ⁺}

The symbol e denotes a connection value, while ℝ⁺ denotes positive real values. In the paper’s representation, 0 indicates that the connection is absent. A value of 1 can represent an unweighted connection, and other positive values can encode costs. The appendix’s weighted examples use integers ≥ 1.

A crucial practical consequence follows from this convention: a zero cell does not provide a free move. It means that no corresponding edge may be traversed. A response that treats every matrix position as a possible move has misunderstood the representation before any optimization begins.

The tree-like task family

The first family begins with a chain. Nodes connect sequentially, so the route contains no branching decision. The paper represents the sequential relationship as follows.

eᵢ,ᵢ₊₁ = 1

The expression eᵢ,ᵢ₊₁ denotes the connection between node vᵢ and the following node vᵢ₊₁. Its value indicates an unweighted edge. This task tests whether the solver can recover and follow the chain from its representation. It is intentionally simpler than the other traversal problems.

The random-tree task introduces branches and dead ends while preserving a unique route between the requested endpoints. The solver must reject connections that do not lead to the destination. This adds a search requirement without yet asking the system to choose between several complete solutions.

The next task introduces multiple possible routes but retains a unique shortest answer. Here, a merely valid route is insufficient. The system must compare alternatives according to their number of edges.

The weighted version changes the objective again. The required answer is the unique least-cost route. A candidate using fewer edges may still be more expensive, so route length and accumulated cost must remain distinct.

The authors use “tree-based” as a broad organizational label. They acknowledge that the family includes tree-like structures with exceptions involving cycles. This qualification matters because multiple routes between the same endpoints would not fit a strict tree. The task names should therefore be read as the paper’s categories, not as a claim that every instance satisfies the narrow mathematical definition of a tree.

The grid task family

Grid graphs arrange nodes in rows and columns, with connections among immediate neighbors. The paper denotes the grid by G(M, N), where M and N specify its dimensions.

u = G(i, j), 1 ≤ i ≤ M, 1 ≤ j ≤ N

The symbol u denotes a node located at row i and column j. The inequalities specify the allowable row and column positions. The paper also uses another position, G(p, q), when describing a possible neighboring node.

The first grid task asks for a unique shortest route in an unweighted, undirected graph. Compared with the tree-like family, the grid offers more opportunities for cycles and alternative choices. A route can remain locally valid while moving away from the best solution.

The weighted grid task adds costs. The solver must preserve the graph’s connectivity while maintaining a running numerical objective. The directed, weighted task adds the requirement that every move follow the permitted orientation of its edge.

The no-solution grid task tests a different outcome. Directions are arranged so that the destination cannot be reached. Correctness requires recognizing the conflict instead of constructing a superficially plausible path. This is not a matter of producing an empty response accidentally; the intended result is an explicit conclusion that no valid route exists.

The special tasks

The Euler task asks whether a traversal covering every edge without reuse can begin at a specified node. The authors convert it into a True/False judgment because a graph may admit several such traversals. Requiring a particular route would introduce ambiguity unrelated to the property they want to measure.

The generated Euler cases are balanced between valid and invalid instances. That design gives the classification result a meaningful chance reference. It also makes a habit of answering positively visible as a weakness rather than a useful shortcut.

The checkpoint task asks for a least-cost route that passes through a randomized intermediate node. The authors describe this as a decomposition into a route reaching the checkpoint and a route continuing from it. The final answer must satisfy both parts in the same response.

This task probes whether the solver preserves a compound requirement. A direct route to the destination can be wrong even if it is otherwise valid and inexpensive. The checkpoint is part of the objective, not optional explanatory context.

Generating the instances

Graphs and corresponding reference answers are generated automatically. Most tasks are constructed to have a unique correct solution, which makes a returned node sequence unambiguous to score. The Euler task uses a classification answer instead, and the impossible-route task requires recognizing absence.

The smaller condition, O(10), contains graphs with 5 through 15 nodes. The larger condition, O(20), contains 16 through 26 nodes. These labels identify size ranges around the named orders; they are not performance guarantees or complexity bounds for the evaluated systems.

A further O(20) condition randomizes node labels. In the main description, the matrix remains alphabetically organized while the route’s labels lose their near-sequential arrangement. The purpose is to remove the assistance supplied by a familiar naming progression.

The appendix illustrates renaming by showing a chain whose node identifiers have been shuffled. Its displayed label ordering differs from the main explanation’s emphasis on an alphabetically ordered matrix. The stable experimental intention is clear: connectivity should determine traversal after familiar label order has been disrupted. The precise presentation of that transformation deserves attention when reproducing the condition.

The larger Euler settings are omitted. The authors attribute this to the computational expense of generating larger instances under their required conditions. That omission concerns dataset construction; it is separate from a system failing an attempted Euler question.

Turning a graph into a prompt

The base prompt identifies the graph type, explains the matrix values, states the endpoints and requests an answer. For ordinary path tasks, the required output is a sequence of node names. The appendix provides a chain running from A to J as an illustrative case.

Undirected connections appear symmetrically in the matrix. Directed connections need not have a matching reverse entry. This makes direction an input property that must be consulted, rather than inferred from the visual proximity of node names.

Weighted prompts explain that positive entries represent travel costs. The destination and the required objective are stated explicitly. The solver must therefore interpret both the matrix and the instruction: the same connectivity could support different answers under a shortest-route request and a least-cost request.

The few-shot conditions prepend generated examples with their answers. The study uses k = 0, k = 1 and k = 3. Here, k denotes the number of examples supplied before the active problem. These are prompt examples, not updates to the system’s parameters through fine-tuning.

The intention is to keep prompts comparable across the evaluated systems. However, context limits and refusal behavior prevent every setting from being completed under the same conditions. The study records those cases instead of presenting them as ordinary path errors.

Which systems are evaluated

The OpenAI comparisons use GPT-3.5 and GPT-4. The study also includes Claude-2 and Palm-2. Its Llama-2 evaluation uses the Hermes instruction-tuned version, with 13B parameters, rather than the underlying foundation system without that adaptation.

For some longer GPT-3.5 prompts, the authors use a larger-context variant. Its context window is reported as 16,383 tokens. Llama-2’s reported limit is 4,096 tokens, preventing evaluation of certain longer conditions.

These details affect interpretation. A result labeled with the same family name may involve a context variant in a particular setting. Likewise, a comparison between available answers cannot erase the fact that some systems could not accept or complete the longer prompts.

Scoring complete answers and partial progress

The main score is normalized binary accuracy. A route receives full credit only when the entire answer matches the required shortest or least-cost traversal. Each setting contains 10 examples, and the paper reports scores from 0 to 1 in increments of 0.1.

Partial credit asks how much of the reference route was followed correctly before the first wrong node. The paper describes it as the fraction of reference nodes in the correct initial sequence. It applies to the ordinary tree-like and grid route tasks, excluding the impossible-route problem.

This diagnostic is deliberately narrower than general route quality. It does not reward all correct nodes wherever they occur, and it does not establish that a later recovery was meaningful. Its value lies in showing whether an unsuccessful response began by tracking the graph correctly.

The evaluation description contains a procedural ambiguity. The main discussion distinguishes automated evaluation from additional manual partial-credit assessment, while the appendix says outputs were manually evaluated to accommodate formatting variation. The measures themselves are understandable, but the exact division of automated and manual work is not fully resolved in the account.

What PathCompare changes

PathCompare adds an instruction to identify possible routes and compare their costs before choosing the answer. The intervention changes the response’s intermediate organization. Instead of immediately committing to a route, the system is encouraged to construct a set of alternatives.

The authors argue that a standard explanation can already resemble an algorithmic walk. Asking for more reasoning therefore may not address the decisive weakness. If the response stays with a poor candidate, greater verbal detail can preserve the error rather than correct it.

PathCompare tries to make selection easier by placing candidates into the response where they can be compared. This is a targeted strategy for traversal problems. It does not supply an external implementation of search, and it does not prove that the generated candidates cover every possible solution.

That distinction is essential. The instruction encourages enumeration, but the output remains generated text. A system can omit the optimal route, invent an invalid candidate, calculate a cost incorrectly, or fail to recognize that no route exists. The experiments measure the resulting answers, not a formal guarantee of complete search.

Experiments and results

The experimental evidence is best understood as a collection of controlled task results instead of a single overall intelligence score. The benchmark varies graph family, size, node labeling and prompt examples. Additional comparisons examine chain-of-thought and PathCompare on O(10) graphs.

The appendix reports complete accuracy alongside partial credit for route tasks. Special tasks use their own appropriate outcomes. No overall average should be reconstructed from the displayed cells without a declared aggregation policy, especially because some settings are unavailable or involve refusals.

Baseline traversal performance

The simplest chain often produces strong results when labels follow their familiar order. Under O(10), zero-shot prompting, the baseline chain accuracy is 1.0 for the evaluated systems. That success alone does not imply broad graph competence: it can coexist with difficulty on branches, weights or renamed nodes.

Random-tree traversal creates a clearer separation. For O(10), zero-shot complete accuracy is 1.0 for GPT-4 and 0.7 for Claude-2. GPT-3.5 scores 0.2 in that setting. The contrast indicates that a branching structure creates meaningful difficulty even before competing complete routes must be ranked.

Adding multiple possible routes changes the task from finding a connection to selecting an optimum. GPT-4’s O(10), zero-shot complete accuracy is 0.8 for the unweighted multiple-route task. Its partial-credit value is 0.93. The distinction shows why the diagnostic matters: many unsuccessful responses can still share a substantial initial segment with the correct answer.

The paper’s general ordering places GPT-4 ahead of Claude-2 and GPT-3.5 across its aggregate interpretation. Llama-2 and Palm-2 perform poorly on many of the more demanding conditions, and the authors concentrate their later analysis on the stronger systems. This is an interpretation of the benchmark, not a ranking established for unrelated tasks.

Weighted routes and PathCompare

Weighted traversal is a useful setting for evaluating PathCompare because the solver must compare whole-route costs. A locally available edge or a short-looking sequence does not establish the optimum.

For the O(10), zero-shot weighted tree-like task, the appendix gives the following complete-accuracy comparison.

GPT-4 on O(10) weighted tree traversal, zero-shot complete accuracy

Explicit route comparison is strongest in this weighted traversal setting.

GPT-4 on O(10) weighted tree traversal, zero-shot complete accuracyBase prompting: 0.4Base prompting0.4Chain-of-thought: 0.6Chain-of-thought0.6PathCompare (this paper): 0.8PathCompare (this paper)0.8
The numbers
System or settingnormalized binary accuracy
Base prompting0.4
Chain-of-thought0.6
PathCompare (this paper)0.8

This result supports the practical value of asking for alternatives in that condition. It does not show that every candidate was valid or that comparison was exhaustive. The evidence is the higher rate of correct final answers.

The corresponding partial-credit values also differ. Base prompting reports 0.62, chain-of-thought reports 0.77, and PathCompare reports 0.89. These indicate different patterns of progress towards the correct route. They should remain secondary to complete accuracy because a partly correct least-cost route is still an incorrect final solution.

The weighted grid task provides another informative comparison.

GPT-4 on O(10) weighted grid traversal, zero-shot complete accuracy

PathCompare improves complete answers in a setting where the base prompt struggles.

GPT-4 on O(10) weighted grid traversal, zero-shot complete accuracyBase prompting: 0.0Base prompting0.0Chain-of-thought: 0.2Chain-of-thought0.2PathCompare (this paper): 0.6PathCompare (this paper)0.6
The numbers
System or settingnormalized binary accuracy
Base prompting0.0
Chain-of-thought0.2
PathCompare (this paper)0.6

The grid condition combines route alternatives with numerical tracking. PathCompare’s stronger result is consistent with the proposed benefit of making competing routes explicit. Nevertheless, the score still leaves unsuccessful examples, and the experiment does not isolate whether improvements arose from better candidate coverage, better arithmetic or better final selection.

For GPT-4’s unweighted multiple-route tree-like task, PathCompare reports complete accuracy of 1.0 across the O(10) shot conditions. That is a strong local result. It should be read alongside the weaker grid and checkpoint outcomes rather than used as a general guarantee.

Grid traversal remains difficult

Grid tasks are generally harder than the tree-like family. Even the stronger systems often fail to produce a complete optimal route. Under baseline O(10), zero-shot prompting, GPT-4’s unweighted grid accuracy is 0.3, with partial credit of 0.46.

The corresponding weighted grid baseline reaches complete accuracy of 0.0 despite partial credit of 0.44. This is a useful example of the gap between beginning a route correctly and solving the actual optimization problem. A solver may recover some valid local structure while failing to identify the required complete path.

Directed, weighted grids introduce further opportunities for invalid moves. In the O(10), zero-shot baseline, GPT-4 records complete accuracy of 0.2 and partial credit of 0.52. PathCompare reports 0.5 and 0.68 in that setting.

The authors interpret the broad tree–grid contrast through the greater number of available traversal choices in grids. The result supports an association between these task families and difficulty. It does not isolate branching as the only cause, because grids also differ in cycles, representation patterns and potential route alternatives.

Larger graphs and randomized labels

Increasing graph size generally lowers performance. GPT-4’s baseline random-tree task illustrates the pattern: zero-shot complete accuracy is 1.0 for O(10), 0.5 for O(20), and 0.1 for O(20) jumbled.

These conditions show that nominal success on a smaller structured problem may conceal sensitivity to scale and naming conventions. The randomized condition is particularly revealing because its purpose is to make the solver rely on connectivity rather than a predictable sequence of identifiers.

The chain task makes the point sharply. GPT-3.5 has complete accuracy of 1.0 for baseline O(20), zero-shot chains with ordinary labels, but 0.0 for the jumbled counterpart. A route with no branching can therefore become difficult when its surface sequence no longer suggests the answer.

GPT-4 is more robust on that comparison, with baseline O(20), zero-shot jumbled-chain accuracy of 0.7. Yet its decline still shows that arbitrary labels influence performance. The task’s graph-theoretic simplicity does not eliminate the burden of accurately reading and following the representation.

The authors also report omitted higher-letter nodes in some responses to larger graphs. They interpret this as evidence of expectations associated with smaller, alphabetically organized examples. The observed omissions support concern about label sensitivity; the proposed training-distribution explanation is more speculative.

Examples in the prompt

Few-shot prompting does not produce a consistent improvement. Figure 3 summarizes settings where added examples produce a decline or an improvement no greater than ≤ 5%. The reported counts are 6/8 tasks for GPT-3.5, 6/8 for GPT-4, and 5/8 for Claude-2.

The task-level cells show why a universal conclusion would be too strong. In the baseline O(20) random-tree task, GPT-4’s complete accuracy rises from 0.5 under zero-shot prompting to 0.8 with one example and 0.9 with three examples. Examples can therefore help particular conditions substantially.

Other tasks move in the opposite direction. The authors’ manual inspection finds responses that confuse the examples with the active question. Additional context can supply a useful response pattern while also creating more material that must be kept separate from the current graph.

The broad lesson is conditional. More demonstrations are not a reliable default improvement for these graph tasks. Their value depends on the task, system and response procedure, and cannot be inferred from their usefulness for formatting alone.

Recognizing that no route exists

The impossible-route task tests whether the solver can reject a request whose constraints cannot be satisfied. Several systems perform poorly, frequently returning a positive-looking solution.

For GPT-4 under O(10), zero-shot prompting, the comparison is:

GPT-4 on O(10) impossible directed grids, zero-shot complete accuracy

PathCompare does not retain the stronger rejection performance seen with chain-of-thought.

GPT-4 on O(10) impossible directed grids, zero-shot complete accuracyBase prompting: 0.3Base prompting0.3Chain-of-thought: 0.6Chain-of-thought0.6PathCompare (this paper): 0.3PathCompare (this paper)0.3
The numbers
System or settingnormalized binary accuracy
Base prompting0.3
Chain-of-thought0.6
PathCompare (this paper)0.3

The star identifies the paper’s proposed procedure, not the strongest result in every chart. This comparison is important because a prompt can improve route construction while doing less to support negative conclusions.

For Claude-2, PathCompare reports 0.0 across the O(10) no-route shot conditions. GPT-3.5 also records 0.0 across those PathCompare conditions. Asking for candidate routes can reinforce the assumption that some route should be found.

The appendix nonetheless contains exceptions to blanket failure. GPT-4’s baseline O(20) jumbled no-route accuracy reaches 0.9 in the one-shot condition. Negative-case performance is therefore uneven rather than uniformly absent.

Special tasks and technical failures

The Euler task has a random reference accuracy of 0.5 because its answer is binary and its cases are balanced. GPT-4’s baseline O(10) results are 0.5, 0.5 and 0.2 across the shot conditions. These values do not support reliable Euler-property recognition.

Llama-2 records 0.6, 0.8 and 0.7 on that task, in spite of weak performance on many route-generation tasks. This is why the paper cautions against treating a classification spike as directly comparable with constructing an exact route. The output spaces and chance expectations differ.

Checkpoint traversal is difficult as well. GPT-4’s baseline O(10) accuracy is 0.2 under zero-shot prompting, 0.3 under one-shot prompting and 0.2 under three-shot prompting. PathCompare does not turn this compound task into a consistently solved problem.

Technical failures further constrain the comparison. Longer Llama-2 prompts exceed its context capacity in some settings. Palm-2 sometimes returns a general inability statement rather than an attempted solution. Those outcomes matter operationally, but they should not be confused with a completed graph calculation that happens to be wrong.

What the ablations show

The paper offers controlled variations and prompt comparisons instead of an ablation of trained architectural components. Its strongest analyses concern changes in graph constraints, identifiers, size and requested response structure. These comparisons help identify likely failure pressures, although they do not always isolate a single causal factor.

Weights can expose objective substitution

The weighted-versus-unweighted comparison tests whether the solver follows the optimization objective. In an unweighted graph, fewer edges define a shorter route. In a weighted graph, the relevant quantity is accumulated cost, which can favor a route with more steps.

The authors report that GPT-3.5 sometimes reasons as though weights were absent. This is more specific than saying it makes arithmetic errors. It suggests that the response can solve a different problem from the one asked.

Manual examination is valuable here because complete accuracy alone cannot distinguish the explanations. A wrong weighted answer might arise from a nonexistent edge, an addition mistake, an omitted candidate, or substitution of an unweighted objective. The paper uses response content to make that distinction plausible.

However, visible reasoning is not a complete record of internal computation. The observations support a behavioral diagnosis: the answer and explanation sometimes align with ignoring costs. They do not establish an exhaustive causal account of how the system arrived there.

Renaming exposes dependence on familiar sequences

The jumbled-node condition targets a possible shortcut. Alphabetical labels can make a chain resemble a sequence-completion task. If the answer’s identifiers become unpredictable while graph connections are preserved, that shortcut becomes less useful.

The severe decline for some chain settings is especially informative because branching is absent. It shows that search complexity cannot explain every failure. Representation reading and label handling can defeat a solver even when there is no meaningful choice among routes.

The authors connect this behavior to the distribution of examples encountered during training. Their observations are compatible with that interpretation, particularly the tendency to omit later-letter nodes. Yet the study does not inspect training records or manipulate training exposure. The demonstrated result is identifier sensitivity, while the explanation about its origin remains an inference.

The appendix’s presentation of jumbling also leaves some implementation detail unclear. A careful reproduction should distinguish renaming nodes from rearranging displayed rows and columns, because both preserve a graph when done consistently but can impose different reading demands.

Prompt examples create competing effects

Examples can clarify the desired response form and illustrate how to read a matrix. They also lengthen the input and introduce additional graphs that must remain separate from the active instance.

The paper observes both effects. Some settings improve, while others deteriorate or produce answers aimed at demonstration questions. This helps explain why example count alone is a poor predictor of performance.

The authors describe many changes as lacking statistical significance, but the account does not supply a detailed significance-testing procedure for those claims. Figure 3’s ≤ 5% criterion should therefore be read as part of the reported descriptive summary, not as a substitute for a fully specified inferential analysis.

With 10 examples in each setting, individual outcomes strongly affect complete accuracy. The task-level patterns are useful for generating hypotheses about prompting, but stronger general conclusions would require clearer uncertainty estimates and repeated sampling.

Chain-of-thought and PathCompare differ in purpose

Chain-of-thought requests an explicit reasoning sequence. PathCompare requests alternative routes and comparison. The conceptual difference matters because a detailed sequence can remain committed to a single poor candidate.

The appendix shows settings where chain-of-thought helps. GPT-4’s O(10), zero-shot weighted tree-like accuracy is stronger with chain-of-thought than with the base prompt. Its impossible-grid result is also stronger under chain-of-thought in the comparison above.

These results qualify the authors’ broad language about limited benefit from chain-of-thought. The evidence supports uneven usefulness, rather than complete ineffectiveness. The same caution applies to PathCompare: its intended focus on alternatives frequently helps, but its benefit is task-dependent.

PathCompare’s GPT-3.5 chain results are a particularly important regression. Under O(10), its complete accuracy is 0.0 across the shot conditions. The baseline chain task had been easy. A procedure designed for comparing alternatives can therefore disrupt performance when alternatives are unnecessary.

This suggests a useful interpretation of the intervention. PathCompare is a specialized way to organize an attempted solution, not a universally beneficial reasoning wrapper. Its costs may include extra output, unnecessary candidate construction and stronger pressure to produce routes even when none exist.

Negative cases test a different part of competence

An impossible-route task changes what successful reasoning looks like. There is no candidate to select. The solver must establish that its search cannot reach the destination under the permitted directions.

PathCompare’s instruction to enumerate routes may work against that outcome by presupposing that useful candidates exist. The paper explicitly identifies stronger positive-response bias as a limitation of the method.

The results also show that negative-case recognition cannot be inferred from ordinary path accuracy. A procedure may become better at comparing available routes while remaining poor at proving absence. These are related but distinct obligations.

The Euler task reinforces this distinction from another direction. It asks for an existence judgment instead of a constructed route, yet the systems do not simply preserve their route-task ranking. The form of the question and its chance baseline change what a score means.

Partial credit explains some failures and conceals others

Prefix credit adds useful resolution to complete accuracy. A response that tracks the correct route for a while is behaviorally different from one that starts with a nonexistent move. The metric captures that difference.

It is nonetheless sensitive to where the first error occurs. It ignores later correct material, alternative valid routes and how close a wrong route comes to the requested cost. A long shared prefix can coexist with a decisive failure near the destination.

This makes partial credit a diagnostic instead of a general measure of graph competence. It can help locate breakdowns, but it cannot replace validity and optimality checks. The authors’ use of both measures is more informative than either alone.

Limitations

The authors identify several practical boundaries, and the experimental setup supports additional cautions. Separating those categories helps preserve the useful results without turning a small benchmark into a universal claim about structured reasoning.

Limits acknowledged by the authors

Context capacity prevents some evaluations. Llama-2 cannot accept certain longer prompts, and a larger-context GPT-3.5 variant is needed in some conditions. These limits mean that the experimental grid is incomplete and that not every reported comparison involves identical context conditions.

Palm-2’s refusal behavior creates another boundary. In longer prompt settings, the system sometimes supplies a general inability statement rather than a route. The study can report this as a failure to complete the task, but it cannot analyze the quality of a traversal that was never attempted.

The Euler task is evaluated only for O(10). The authors attribute the missing larger settings to the expense of their instance-generation process. The paper therefore does not establish how Euler judgments behave under its larger or jumbled conditions.

PathCompare has an explicit negative-case weakness. Its tendency to encourage route production can reinforce positive answers when the correct conclusion is that no route exists. This limits its suitability as a general replacement for other prompting procedures.

The study also evaluates systems available during the experiments. It notes that Claude-3 had not yet been released. The findings should remain attached to the evaluated versions and conditions rather than being extended to later systems by family name.

Cautions arising from the setup

Each setting contains 10 examples. This makes the benchmark manageable and allows detailed inspection, but it limits the precision of individual cell estimates. The paper does not provide confidence intervals for those accuracies.

The account also does not clearly establish repeated runs under varying generation randomness. A score may reflect properties of the sampled graph instances, the response procedure and the particular outputs obtained. Without a fuller account of repetition, those sources of variation are difficult to separate.

The representation choice combines several demands. A wrong answer may reflect difficulty reading a matrix, retaining row and column identity, searching alternatives, tracking costs or following instructions. The benchmark deliberately preserves representational difficulty, but it cannot treat every failure as a pure test of abstract graph reasoning.

The criticism of adjacency lists should be understood within that objective. The paper argues that explicitly listed neighbors simplify the task. It does not experimentally show that adjacency lists make graph reasoning trivial in general, or that matrix performance is the uniquely correct measure of structured understanding.

Generated instances reduce dependence on a fixed collection of familiar questions. They do not prove that no comparable graph pattern or task form appeared during pretraining. The authors’ claim of unfamiliar variations is best interpreted as a safeguard against reuse of particular instances, not a complete contamination analysis.

Mathematical and reporting ambiguities

The “tree-based” label covers structures that may include cycles. The paper acknowledges this broader usage, but a reader applying strict graph terminology could otherwise misunderstand the multiple-route tasks. Reproduction requires the actual generation constraints rather than the family name alone.

The discussion of Euler and Hamiltonian traversal also deserves caution. The paper gives a broad complexity-based rationale for choosing Euler judgments, but its wording about Hamiltonian paths and the associated complexity claim is imprecise. Those remarks are background motivation, not a result established by the experiments.

The description of output evaluation is not fully consistent about which parts are automated and which are manual. Formatting variation makes manual inspection understandable, but clearer reporting of the scoring workflow would strengthen reproducibility.

Some appendix entries have visibly irregular notation. Values appear in malformed combinations, and some missing-setting markers are difficult to distinguish from layout artifacts. Results should be drawn from unambiguous cells rather than silently repairing questionable entries.

The jumbling description likewise differs between the main explanation and the appendix illustration. The intended test of label-order dependence is clear, but the precise display transformation should be checked before attributing every effect to renaming alone.

What PathCompare does not establish

The method does not demonstrate exhaustive route enumeration. A prompt asking for alternatives cannot by itself certify that every valid candidate was considered. This matters whenever the conclusion is optimality rather than merely validity.

The study does not measure candidate-set completeness, cost-calculation accuracy and selection accuracy separately. As a consequence, the proposed explanation for improvement remains a useful hypothesis supported by final-answer outcomes, not a fully decomposed mechanism.

It also does not establish scalability to much larger or denser graphs. Explicitly generating alternatives can become demanding, and the tested size conditions do not demonstrate how that demand grows. No general runtime or token-cost guarantee follows from the reported accuracy gains.

The experiments do not compare PathCompare with an external exact graph solver used as a tool. They concern what the evaluated systems produce from prompts. A practical system deciding between native search, tool execution and text generation would need a different comparison.

Finally, the tasks use abstract node labels rather than rich semantic relationships. Their strength is the ability to control structure and constraints. Their limit is that success does not automatically establish reasoning over a real knowledge graph, where relation meanings, missing facts and uncertain evidence introduce additional problems.

The paper is most persuasive when read at this level of specificity. It shows that structured traversal performance changes markedly with representation, constraints, naming and response organization. It does not establish a complete theory of why language systems reason successfully or fail.

What came after

A Graph Talks, But Who’s Listening? Rethinking Evaluations for Graph-Language Models is a later citing work dated 2026. Its title places it in the discussion of how graph–language systems should be evaluated.

The citation establishes a connection to this study, but the available bibliographic information does not establish which experiments it extends or which claims it accepts. It would be unwarranted to describe it as a replication of PathCompare, an extension of the matrix benchmark, or a refutation of the reported results.

The continuing question is nevertheless clear from Agrawal and colleagues’ contribution: an evaluation must say which combination of representation reading, traversal, optimization and rejection it measures. Their benchmark makes those distinctions visible, while its ambiguities and uneven results show why the evaluation procedure itself deserves close scrutiny.

Cite

Cite as Palaash Agrawal, Shavak Vasania and Cheston Tan. 2024. Can LLMs perform structured graph reasoning?. arXiv:2402.01805.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.48550/arxiv.2402.01805 · arXiv 2402.01805

@misc{agrawal2024can,
  title = {{Can LLMs perform structured graph reasoning?}},
  author = {Palaash Agrawal, Shavak Vasania and Cheston Tan},
  year = {2024},
  doi = {10.48550/arxiv.2402.01805},
  eprint = {2402.01805},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.2402.01805}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/agrawal-2024-llms-perform-structured-graph-reasoning/

References

28 references, from the paper's own bibliography.

  1. Jin, B., Liu, G., Han, C., Jiang, M., Ji, H., & Han, J. (2023). Large language models on graphs: A comprehensive survey. arXiv preprint arXiv:2312.02783. OpenAlex ↗ · Scholar ↗
  2. Liu, C., and Wu, B. (2023). Evaluating large language models on graphs: Performance insights and comparative analysis. arXiv preprint arXiv:2308.11224. OpenAlex ↗ · Scholar ↗
  3. Zhang, Z., Wang, X., Zhang, Z., Li, H., Qin, Y., Wu, S., and Zhu, W. . LLM4DyG: Can Large Language Models Solve Problems on Dynamic Graphs?. Association for Computing Machinery (2024). OpenAlex ↗ · Scholar ↗
  4. Fatemi, B., Halcrow, J., and Perozzi, B. (2023). Talk like a graph: Encoding graphs for large language models. arXiv preprint arXiv:2310.04560. our card
  5. Chen, Z., Chen, L., Villar, S., and Bruna, J. (2020). Can graph neural networks count substructures?. Advances in neural information processing systems, 33, 10383-10395. OpenAlex ↗ · Scholar ↗
  6. Goldberg, A. V., and Harrelson, C. (2005, January). Computing the shortest path: A search meets graph theory. In SODA (Vol. 5, pp. 156-165). OpenAlex ↗ · Scholar ↗
  7. Bengio, Yoshua and LeCun, Yann: Scaling Learning Algorithms Towards AI. In: Large Scale Kernel Machines. MIT Press (2007) OpenAlex ↗ · Scholar ↗
  8. Hinton, Geoffrey E. and Osindero, Simon and Teh, Yee Whye: A Fast Learning Algorithm for Deep Belief Nets. Neural Computation 18, 1527–1554 (2006) OpenAlex ↗ · Scholar ↗
  9. Goodfellow, Ian and Bengio, Yoshua and Courville, Aaron: Deep learning, vol. 1. MIT Press (2016) OpenAlex ↗ · Scholar ↗
  10. White, Jules and Fu, Quchen and Hays, Sam and others: A prompt pattern catalog to enhance prompt engineering with ChatGPT. arXiv preprint arXiv:2302.11382 (2023) our card
  11. Choudhary, Nurendra and Reddy, Chandan K: Complex Logical Reasoning over Knowledge Graphs using Large Language Models. arXiv preprint arXiv:2305.01157 (2023) OpenAlex ↗ · Scholar ↗
  12. Zelikman, Eric and Huang, Qian and others: Parsel: A (de-)compositional framework for algorithmic reasoning with language models. Advances in Neural Information Processing Systems (Spotlight) (2023) OpenAlex ↗ · Scholar ↗
  13. Bian, Ning and Han, Xianpei and others: ChatGPT is a knowledgeable but inexperienced solver: An investigation of commonsense problem in large language models. Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation (LREC-COLING 2024). our card
  14. Shridhar, Kumar and Stolfo, Alessandro and others: Distilling multi-step reasoning capabilities of large language models into smaller models via semantic decompositions. Association for Computational Linguistics (2023) OpenAlex ↗ · Scholar ↗
  15. Yuan, Zheng and Yuan, Hongyi and others: Scaling relationship on learning mathematical reasoning with large language models. arXiv preprint arXiv:2308.01825 (2023) our card
  16. Adhikari, Ashutosh and Yuan, Xingdi and others: Learning dynamic belief graphs to generalize on text-based games. Advances in Neural Information Processing Systems 33, 3045–3057 (2020) OpenAlex ↗ · Scholar ↗
  17. Wang, Heng and Feng, Shangbin and others: Can Language Models Solve Graph Problems in Natural Language?. Advances in Neural Information Processing Systems (Spotlight) (2023) our card
  18. Touvron, Hugo and Martin, Louis and others: Llama 2: Open foundation and fine-tuned chat models. arXiv preprint arXiv:2307.09288 (2023) our card
  19. Anil, Rohan and Dai, Andrew M and others: Palm 2 technical report. arXiv preprint arXiv:2305.10403 (2023) our card
  20. Wu, Sean and Koo, Michael and others: A Comparative Study of Open-Source Large Language Models: GPT-4 and Claude 2: Multiple-Choice Test Taking in Nephrology. NEJM AI (2024) OpenAlex ↗ · Scholar ↗
  21. OpenAI: GPT-4 Technical Report. arXiv:2303.08774 (2023) our card
  22. Wei, Jason and Wang, Xuezhi and others: Chain-of-thought prompting elicits reasoning in large language models. Advances in Neural Information Processing Systems 35, 24824–24837 (2022) our card
  23. Qiao, Shuofei and Ou, Yixin and others: Reasoning with language model prompting: A survey. Association for Computational Linguistics (2023) our card
  24. Chai, Ziwei and Zhang, Tianjie and others: Graphllm: Boosting graph reasoning ability of large language model. arXiv preprint arXiv:2310.05845 (2023) OpenAlex ↗ · Scholar ↗
  25. Saba, Walid S: Stochastic LLMs do not Understand Language: Towards Symbolic, Explainable and Ontologically Based LLMs. In: International Conference on Conceptual Modeling, pp. 3–19. Springer (2023) OpenAlex ↗ · Scholar ↗
  26. Creswell, Antonia and Shanahan, Murray: Faithful reasoning using large language models. International Conference on Learning Representations (poster) (2024) our card
  27. Wang, Xuezhi and Wei, Jason and others: Self-consistency improves chain of thought reasoning in language models. International Conference on Learning Representations (poster) (2023) our card
  28. Brown, Tom and Mann, Benjamin and others: Language models are few-shot learners. Advances in neural information processing systems 33, 1877–1901 (2020) our card