Skip to main content
QUICK REVIEW

[Paper Review] Graph Property Inference in Small Language Models: Effects of Representation and Inference Strategy

Podstawski, Michal|arXiv (Cornell University)|Feb 24, 2026
Advanced Graph Neural NetworksComputer Science0 citations
TL;DR

The paper systematically studies how input representation (adjacency list vs edge list) and inference strategy (baseline, Chain-of-Thought, Graph-of-Thoughts) affect graph property inference in small instruction-tuned language models, showing adjacency representations and multi-branch reasoning improve structural estimation and ordinal consistency.

ABSTRACT

Recent progress in language modeling has expanded the range of tasks that can be approached through natural language interfaces, including problems that require structured reasoning. However, it remains unclear how effectively limited-capacity language models can infer formal properties of relational structures when those structures are presented in textual form. Understanding the conditions under which structured reasoning succeeds or fails is essential for applying small models in graph-based domains. We conduct a systematic study of graph-theoretic property inference in small instruction-tuned language models, isolating the roles of input representation and reasoning strategy. Across a diverse set of local and global graph metrics, we find that structural performance is highly sensitive to how relational information is organized. Representations that preserve neighborhood structure consistently improve estimation stability and ordinal consistency, while multi-branch reasoning yields the most reliable aggregate gains across configurations. These results show that graph property inference in small language models depends critically on representational organization and inference design. Structural competence is therefore shaped not only by model scale, but by how relational information is encoded and how predictions are elicited. The findings identify practical levers for improving structured inference under constrained model capacity.

Motivation & Objective

  • Isolate factors affecting structural inference in small language models (SLMs) for graphs by comparing serialization formats and reasoning strategies.
  • Evaluate performance across diverse local and global graph metrics using small instruction-tuned transformers.
  • Identify practical levers to improve structured inference under limited model capacity.
  • Assess whether representation and reasoning design influence ordinal sensitivity and discrete invariant estimation.

Proposed method

  • Compare two graph serializations: adjacency-list (Adj) vs edge-list (Edge) while keeping graph size information constant.
  • Use three inference modes: Baseline, Chain-of-Thought (CoT), and Graph-of-Thoughts (GoT) with multi-branch aggregation (B=15, T=0.7).
  • Evaluate on TinyGraphEstimator dataset across twelve graph properties spanning degree statistics, clustering, path-based metrics, and invariants.
  • Evaluate using normalized error (NRMSE_std) and Spearman rank correlation; report exact-match and within-1 accuracy for discrete properties.
  • Use JSON schema to constrain outputs for reliability.
Figure 1: Macro-averaged Spearman rank correlation ( $\rho$ ) across graph properties. Higher values indicate stronger preservation of the relative ordering of graphs between graphs. Adjacency-list encoding generally improves rank consistency, and GoT aggregation achieves the highest $\rho$ for Qwen
Figure 1: Macro-averaged Spearman rank correlation ( $\rho$ ) across graph properties. Higher values indicate stronger preservation of the relative ordering of graphs between graphs. Adjacency-list encoding generally improves rank consistency, and GoT aggregation achieves the highest $\rho$ for Qwen

Experimental results

Research questions

  • RQ1How does serialization format (Adj vs Edge) influence magnitude and ordinal accuracy of graph property estimates in small LMs?
  • RQ2What is the impact of inference strategy (Baseline, CoT, GoT) on magnitude accuracy and ordinal consistency in graph property inference?
  • RQ3Do adjacency-based representations and multi-branch reasoning strategies yield more robust structural inference across heterogeneous graph metrics?
  • RQ4To what extent can small LMs approximate discrete graph invariants under structured prompts and GoT aggregation?

Key findings

  • Adjacency-list representations consistently reduce macro-level error and improve rank consistency compared to edge-list encodings.
  • GoT aggregation yields the largest macro-level improvements across models and representations.
  • Despite high absolute error (NRMSE_std > 1.0), Spearman rank correlations are positive in many settings, indicating preserved ordinal sensitivity.
  • GoT reduces NRMSE_std by up to 0.689 in some configurations, with GoT generally outperforming CoT.
  • Discrete properties show bounded accuracy under GoT with Adj, e.g., chromatic number exact 31.7% (Qwen) and within-1 up to 75.8% for chromatic number.
  • Discrete metrics like degree min and diameter achieve within-1 accuracy around 66-69% for Qwen and Llama variants.
Figure 2: Macro-level improvement in standard-deviation-normalized error (NRMSE ${}_{\text{std}}$ ) relative to baseline prompting. Bars show $\Delta$ NRMSE ${}_{\text{std}}=\text{NRMSE}_{\text{Baseline}}-\text{NRMSE}_{\text{Strategy}}$ ; positive values indicate reduced error. Graph-of-Thoughts (Go
Figure 2: Macro-level improvement in standard-deviation-normalized error (NRMSE ${}_{\text{std}}$ ) relative to baseline prompting. Bars show $\Delta$ NRMSE ${}_{\text{std}}=\text{NRMSE}_{\text{Baseline}}-\text{NRMSE}_{\text{Strategy}}$ ; positive values indicate reduced error. Graph-of-Thoughts (Go

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.