Structurally Speaking: Motif-Oriented Graph Captioning through Bidirectional Graph-Text Translation
Summary
The paper introduces Structurally Speaking, a structured prompting protocol for motif-oriented graph captioning that improves compactness and consistency while maintaining graph recovery compared to direct prompting of LLMs.
View Cached Full Text
Cached at: 09/11/26, 08:19 AM
# Structurally Speaking: Motif-Oriented Graph Captioning through Bidirectional Graph-Text Translation
Source: [https://arxiv.org/html/2609.10923](https://arxiv.org/html/2609.10923)
Dongyu LiuKwan\-Liu MaEmail:[\{hyllu,dyuliu,klma\}@ucdavis\.edu](mailto:)Affiliation:Department of Computer Science, University of California, Davis
###### Abstract
Graph captions should help readers understand graph structure, rather than simply translate adjacency matrices into long textual edge lists\. A useful graph caption abstracts connectivity into recognizable motifs, such as hubs, paths, cycles, cliques, and bridges, because these motifs provide compact structural units that are easier to read, compare, and recover\. In this paper, we study motif\-oriented graph captioning as a bidirectional graph\-text translation task, where captions must both preserve enough topology for graph recovery and express the graph through concise motif\-level descriptions\. We show that direct prompting of GPT\-5\.1 often produces graph\-recoverable captions by enumerating node\-to\-node connections, but these captions are verbose and can contain inconsistent motif interpretations\. To address this gap, we introduceStructurally Speaking, a lightweight structured prompting protocol that guides translation between explicit connectivity and motif\-level abstraction\. Experiments on a synthetic motif\-based dataset show that structured prompting produces shorter and more motif\-consistent captions while maintaining comparable graph recovery\. These results suggest that explicit topology\-to\-motif reasoning guidance can make LLM\-generated graph captions more interpretable without model fine\-tuning\.
## 1Introduction
Graphs encode relationships among entities, but raw representations such as adjacency matrices are difficult to read and compare directly\. Graph captions can make graph structure more accessible by translating connectivity into natural language\. However, a useful caption should do more than list edges: it should abstract topology into recognizable motifs, such as hubs, paths, cycles, cliques, bridges, and tails\. These motifs provide compact structural units that help readers understand how local connections compose into larger graph patterns\.
This distinction matters because graph recoverability alone is not sufficient for evaluating graph\-caption quality\. A caption may encode all edges through enumeration while offering little interpretable structural abstraction\. Such captions can be verbose, difficult to read, or inconsistent in their motif\-level structural inference\. We therefore argue that interpretable graph captioning should be evaluated along two dimensions: structural recoverability and motif\-level compactness\.
Motivated by this gap, we formulatebidirectional graph\-caption translationas a controlled diagnostic task\. Given a graph adjacency matrix, the model generates a caption; given a caption, the model recovers the graph\. This formulation allows us to probe whether LLMs can move between raw graph topology and motif\-oriented natural language\. Under direct prompting, GPT\-5\.1 often produces graph\-recoverable captions, but these captions rely heavily on explicit node\-to\-node connection descriptions and sometimes contain inaccurate or self\-contradictory motif interpretations\. This suggests that direct prompting often falls back on edge enumeration rather than producing compact motif\-level structural inference, even when graph recovery is successful\.
To address this issue, we introduceStructurally Speaking, a lightweight structured prompting protocol for topology\-to\-motif abstraction\. For graph\-to\-caption translation, the protocol guides the model to convert adjacency information into local neighborhoods, analyze motifs, and generate a compact caption\. For caption\-to\-graph translation, it guides the model to parse motif descriptions, assign nodes, construct edges, and recover the adjacency matrix\. This is not merely caption style transfer, because the model must infer motif structure from raw topology while preserving enough information for graph recovery\.
We evaluate this formulation using a synthetic motif\-based dataset and two cycle\-consistency evaluations\. Graph\-Caption\-Graph measures whether generated captions preserve enough structural information for graph recovery, while Caption\-Graph\-Caption measures whether motif\-oriented descriptions remain accurate and compact after translation through graph structure\. Experiments show thatStructurally Speakingreduces verbosity and inconsistent motif inferences while maintaining comparable graph recovery\. In summary, we contribute: \(1\) a bidirectional graph\-captioning formulation that separates structural recoverability from motif\-level abstraction; \(2\) a cycle\-consistency evaluation that reveals recoverable captions can still be verbose and motif\-inconsistent; and \(3\) a lightweight structured prompting protocol that improves caption compactness and motif consistency without fine\-tuning\.
## 2Related Work
Recent work on LLMs and graphs spans three related directions\. First, graph\-to\-text generation produces natural language from graph\-structured inputs such as meaning representations, knowledge graphs, and scientific graphs[Ribeiro et al\. \(2021\)](https://arxiv.org/html/2609.10923#bib.bib2), with recent work evaluating LLMs for graph\-to\-text generation through planning and grounding\-oriented tasks[He et al\. \(2025\)](https://arxiv.org/html/2609.10923#bib.bib1)\. While closely related, these works focus mainly on semantic graph structures and text fluency or factuality\. We instead study motif\-oriented captioning of raw topology, where captions should expose compact structural abstractions while remaining recoverable\.
A second line of work instead optimizes how topology is serialized or represented for LLMs, including adjacency linearization[Fatemi et al\. \(2023\)](https://arxiv.org/html/2609.10923#bib.bib15), learned graph encodings for frozen LLMs[Perozzi et al\. \(2024\)](https://arxiv.org/html/2609.10923#bib.bib16), and broader graph transformation strategies[Yu et al\. \(2026\)](https://arxiv.org/html/2609.10923#bib.bib8)\. A third line of work shifts from graph representation and generation to graph reasoning, learning, and query execution, including LLM\-graph learning frameworks[Jin et al\. \(2024\)](https://arxiv.org/html/2609.10923#bib.bib11);[Shang and Huang \(2025\)](https://arxiv.org/html/2609.10923#bib.bib7);[You et al\. \(2025\)](https://arxiv.org/html/2609.10923#bib.bib12), graph\-specialized prompting and structured interfaces[Tang et al\. \(2024\)](https://arxiv.org/html/2609.10923#bib.bib9);[Wang et al\. \(2024\)](https://arxiv.org/html/2609.10923#bib.bib10);[Jiang et al\. \(2023\)](https://arxiv.org/html/2609.10923#bib.bib18);[Li et al\. \(2025\)](https://arxiv.org/html/2609.10923#bib.bib13), empirical analyses of graph reasoning generalization[Guo et al\. \(2023\)](https://arxiv.org/html/2609.10923#bib.bib17);[Zhang et al\. \(2024\)](https://arxiv.org/html/2609.10923#bib.bib14), and natural\-language\-to\-graph\-query systems[Liang et al\. \(2024\)](https://arxiv.org/html/2609.10923#bib.bib6);[Hains et al\. \(2019\)](https://arxiv.org/html/2609.10923#bib.bib5)\.
Figure 1:A wheel\-motif graph with one added edge as structural variation\. Its adjacency matrix is paired with a human\-verified motif\-oriented caption that compactly describes the central hub, rim structure, and additional rim connection\. In contrast, the generated caption is graph\-recoverable but verbose and sometimes self\-contradictory, relying heavily on explicit node\-to\-node connection descriptions rather than compact motif\-level abstraction\.
## 3Problem Formulation
Given a graphG=\(V,E\)G=\(V,E\), graph\-to\-caption translation aims to generate a natural\-language captionCCthat summarizes the topology ofGG\. Given a captionCC, caption\-to\-graph translation aims to reconstruct a graphG^\\hat\{G\}\. A high\-quality caption should satisfy two criteria:graph recoverabilityandmotif abstraction\.
Specifically, we define amotif\-oriented captionas one that satisfies the following requirements:
- •identifies dominant motifs, such as stars, paths, cycles, cliques, and wheels;
- •describes node roles, such as hubs, rim nodes, bridge nodes, and leaves;
- •describes deviations or perturbations, such as missing edges or added chords;
- •avoids exhaustive edge enumeration unless specific connections are needed for graph recovery\.
To support this task, we construct a synthetic motif\-based graph dataset containing 220 undirected, unweighted graphs, each controlled to be within 30 nodes\. Graphs are initialized from common motifs, including stars, cycles, paths, cliques, and wheels, and are then perturbed with random edge additions and removals to introduce structural variation\. This process produces graphs with diverse topologies and varying levels of motif complexity\. Illustrations are provided in[Appendix A](https://arxiv.org/html/2609.10923#A1)\.
From these 220 graphs, we select 40 representative examples for caption annotation\. These graphs are chosen to cover diverse motif families and perturbation levels\. Each selected graph is paired with a human\-verified motif\-oriented caption, as shown in[Figure 1](https://arxiv.org/html/2609.10923#S2.F1)\. The captions are written in free\-form natural language rather than templates to preserve linguistic diversity and allow natural rephrasings\. This set of 40 graph\-caption pairs serves as the unified test set for our experiments and analyses\. It is intentionally curated for controlled diagnosis rather than benchmark\-scale evaluation\.
For LLM input, each graph is represented as an adjacency matrix serialized into text\. This representation preserves explicit topology while remaining compatible with autoregressive language models\.
## 4Direct Prompting Analysis
We first examine GPT\-5\.1 under direct prompting to probe how a strong LLM approaches bidirectional graph\-caption translation without task\-specific guidance or fine\-tuning\.
Our results \([Table 2](https://arxiv.org/html/2609.10923#S5.T2)\) show that direct prompting often preserves enough connectivity information for graph recovery\. However, across captions, we observe three recurring failure modes: \(1\) edge enumeration instead of motif abstraction, \(2\) low caption compactness, and \(3\) inconsistent or inaccurate motif interpretation\.[Figure 1](https://arxiv.org/html/2609.10923#S2.F1)provides a representative example, annotated in[Table 1](https://arxiv.org/html/2609.10923#S4.T1)\. These observations show that graph recoverability can be achieved through edge enumeration, and therefore does not by itself provide sufficient evidence of motif\-level abstraction\. This motivates a prompting strategy that separates connectivity extraction from motif abstraction before generating the final caption\.
Table 1:Representative direct\-prompting failure modes\.
## 5Structurally Speaking
To better balance graph recovery and motif\-level abstraction, we introduceStructurally Speaking, a structured chain\-of\-thought reasoning protocol for bidirectional graph\-caption translation\. This protocol is designed to enforce an intermediate representation between adjacency matrices and captions: neighbor lists expose explicit local connectivity, while motif analysis groups local edges into higher\-level structural units\. Instead of asking the model to directly produce captions or graphs in a single step, our protocol decomposes each translation direction into graph\-specific reasoning stages before generating the final output\.
The structured reasoning protocol follows the prompt templates below\. The exact prompts used are provided in[Appendix B](https://arxiv.org/html/2609.10923#A2)\. For graph\-to\-caption translation, we use:
Step 1:Convert adjacency matrix to neighbor list \(0\-indexed\)\.Step 2:Analyze structure \(i\.e\., what motifs are in this pattern\)\.Step 3:Generate final caption\.
For caption\-to\-graph translation, we use:
Step 1:Parse structural descriptions \(i\.e\., identify the number of nodes and motifs\)\.Step 2:Assign indices and layout \(i\.e\., assign nodes to different motifs\)\.Step 3:Create edge list \(i\.e\., analyze the edge required to construct the motifs\)\.Step 4:Build neighbor list for each node\.Step 5:Convert neighbor list to adj matrix\.
Table 2:Cycle\-consistency evaluation using GPT\-5\.1 for all prompting methods\. Graph\-Caption\-Graph evaluates graph recovery using edge precision, recall, and F1\. Caption\-Graph\-Caption evaluates caption reconstruction using ROUGE\-1 precision and recall, and caption compactness using average generated caption length \(in characters\)\.The graph\-to\-caption template moves from connectivity extraction to motif\-level abstraction, while the caption\-to\-graph template maps motif\-oriented language back to explicit topology\. We compare three prompting settings\. Direct prompting uses only the task instruction\. Notably, the direct prompt already asks the model to describe graph motifs, as shown in[Appendix B](https://arxiv.org/html/2609.10923#A2)\. Zero\-shot structured prompting uses theStructurally Speakingtemplates without labeled examples, testing the reasoning scaffold alone\. Few\-shot structured prompting uses the same templates with example graph\-caption pairs with full human\-verified intermediate reasoning paths and motif\-oriented captions, serving as a demonstration\-informed upper bound for this task; these examples are disjoint from the 40\-example test set\. All methods use the same underlying GPT\-5\.1 model and fixed decoding settings[Singh et al\. \(2025\)](https://arxiv.org/html/2609.10923#bib.bib3)\.
## 6Evaluation
### Cycle\-Consistency Evaluation\.
We evaluate two cycle\-consistency settings\. InGraph\-Caption\-Graph, the model generates a caption from a graph and then reconstructs a graph from that caption\. This measures graph recovery, i\.e\., whether the caption preserves enough information to recover the original topology\. Given the original edge setEEand reconstructed edge setE^\\hat\{E\}, we compute edge precisionP=\|E∩E^\|\|E^\|P=\\frac\{\|E\\cap\\hat\{E\}\|\}\{\|\\hat\{E\}\|\}, recallR=\|E∩E^\|\|E\|R=\\frac\{\|E\\cap\\hat\{E\}\|\}\{\|E\|\}, andF1=2PRP\+RF1=\\frac\{2PR\}\{P\+R\}\.
InCaption\-Graph\-Caption, the model reconstructs a graph from a reference caption and then generates a new caption from the reconstructed graph\. This measures whether motif\-oriented descriptions remain accurate and compact after translation through graph structure\. We treat the human\-written motif\-oriented caption as the reference and the model\-generated caption as the hypothesis\. We use ROUGE[Lin \(2004\)](https://arxiv.org/html/2609.10923#bib.bib4)as a lightweight proxy for lexical overlap with human\-verified motif captions, interpreted together with caption length \(in characters\) and qualitative inspection\. We use therouge\-scoreimplementation with stemming enabled\. ROUGE\-1 recall measures how much motif\-relevant content is covered, while ROUGE\-1 precision reflects how much additional wording is introduced\. Thus, lower precision with longer captions may indicate verbose adjacency\-oriented details rather than missing motif content alone\. Together, these cycles evaluate both structural faithfulness and motif\-level abstraction quality\.
### Structured Reasoning Analysis\.
As introduced in[section 5](https://arxiv.org/html/2609.10923#S5), we evaluate three prompting schemes using GPT\-5\.1\.[Table 2](https://arxiv.org/html/2609.10923#S5.T2)shows three main trends\.
First,direct promptingachieves perfect edge precision, recall, and F1 in Graph\-Caption\-Graph, but produces the longest captions and lowest ROUGE\-1 precision in Caption\-Graph\-Caption\. This indicates that recovery is driven mainly by edge enumeration rather than motif abstraction\. Its moderate ROUGE\-1 recall may partly reflect this verbosity: the generated captions mention several motif\-relevant terms, increasing lexical coverage, but these terms are sometimes embedded in inaccurate or self\-contradictory motif interpretations\.
Second,zero\-shot structured promptinggreatly reduces caption length and improves ROUGE\-1 precision and recall over direct prompting, suggesting that theStructurally Speakingscaffold helps elicit more focused topology\-to\-motif abstraction without any labeled examples\. Its small drop in Graph\-Caption\-Graph recall indicates that more compact captions may omit some edge details\.
Third,few\-shot structured promptingmaintains near\-perfect graph recovery while producing the shortest captions and highest ROUGE\-1 precision\. This suggests that demonstrations help align the desired output convention with motif\-level abstraction, enabling compact captions without sacrificing recoverability\. Qualitative examples in[Figure 1](https://arxiv.org/html/2609.10923#S2.F1)and[Appendix C](https://arxiv.org/html/2609.10923#A3)further show that structured prompting results in shorter captions that actually correspond to better motif abstraction, not just shorter text\.
We therefore interpret the few\-shot setting as a demonstration\-informed upper\-bound condition, while the zero\-shot setting more directly tests the benefit of our structured reasoning scaffold\. Overall, these results suggest that structured prompting helps balance graph recoverability with compact and accurate motif\-oriented captioning\. Additional detailed results are provided in[Appendix D](https://arxiv.org/html/2609.10923#A4)\.
## 7Conclusion
We studied graph captioning as a diagnostic probe of whether LLMs can infer motif\-level structure from raw graph topology\. Through bidirectional graph\-caption translation, we evaluated both graph recovery and motif\-oriented caption compactness\. Our cycle\-consistency evaluation shows that direct prompting can preserve topology through verbose edge enumeration, but does not necessarily reflect interpretable motif\-level abstraction\.Structurally Speakingreduces this mismatch by guiding topology\-to\-motif reasoning, eliciting more accurate and consistent motif\-level structural inference while maintaining comparable graph recovery\.
## Limitations
This work is a controlled diagnostic study rather than a comprehensive benchmark\. Our experiments use a synthetic motif\-based dataset and a single LLM, so the results may not generalize to all graph families, larger graphs, or other models\. The captioned evaluation set is also small because motif\-oriented captions require human verification\. In addition, ROUGE\-1 and caption length provide only approximate signals of motif\-oriented caption quality; we therefore interpret them together with graph recovery metrics and qualitative examples\. Future work should expand the dataset, evaluate additional models, and incorporate human judgments of caption usefulness and abstraction level\.
## Ethical Considerations
This work uses synthetic graph structures and human\-written motif\-oriented captions, and does not involve personal, sensitive, or human\-subject data\. As such, we do not identify direct ethical risks from the dataset itself\. The main consideration is a general risk of LLM\-based graph\-language systems: generated captions may appear fluent and plausible while omitting, distorting, or over\-specifying structural information\. We address this risk in our study by evaluating captions through graph recovery, caption reconstruction, caption length, and qualitative inspection rather than relying on fluency alone\. In practical applications, generated graph captions should be verified against the underlying graph before being used for analysis or decision\-making\.
## References
- Fatemiet al\.\(2023\)B\. Fatemi, J\. Halcrow, and B\. PerozziTalk like a graph: encoding graphs for large language models\.arXiv preprint arXiv:2310\.04560\.Cited by:[§2](https://arxiv.org/html/2609.10923#S2.p2.1)\.
- Guoet al\.\(2023\)J\. Guo, L\. Du, H\. Liu, M\. Zhou, X\. He, and S\. HanGpt4graph: can large language models understand graph structured data? an empirical evaluation and benchmarking\.arXiv preprint arXiv:2305\.15066\.Cited by:[§2](https://arxiv.org/html/2609.10923#S2.p2.1)\.
- Hainset al\.\(2019\)G\. Hains, Y\. Khmelevsky, and T\. TachonFrom natural language to graph queries\.In2019 IEEE Canadian Conference of Electrical and Computer Engineering \(CCECE\),Edmonton, Canada,pp\. 1–4\.External Links:[Link](https://hal.science/hal-04047470),[Document](https://dx.doi.org/10.1109/CCECE.2019.8861892)Cited by:[§2](https://arxiv.org/html/2609.10923#S2.p2.1)\.
- Heet al\.\(2025\)J\. He, Y\. Yang, W\. Long, D\. Xiong, V\. Gutierrez Basulto, and J\. Z\. PanEvaluating and improving graph to text generation with large language models\.InProceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies \(Volume 1: Long Papers\),L\. Chiruzzo, A\. Ritter, and L\. Wang \(Eds\.\),Albuquerque, New Mexico,pp\. 10219–10244\.External Links:[Link](https://aclanthology.org/2025.naacl-long.513/),[Document](https://dx.doi.org/10.18653/v1/2025.naacl-long.513)Cited by:[§2](https://arxiv.org/html/2609.10923#S2.p1.1)\.
- Jianget al\.\(2023\)J\. Jiang, K\. Zhou, Z\. Dong, K\. Ye, W\. X\. Zhao, and J\. WenStructgpt: a general framework for large language model to reason over structured data\.InProceedings of the 2023 Conference on Empirical Methods in Natural Language Processing,pp\. 9237–9251\.Cited by:[§2](https://arxiv.org/html/2609.10923#S2.p2.1)\.
- Jinet al\.\(2024\)B\. Jin, G\. Liu, C\. Han, M\. Jiang, H\. Ji, and J\. HanLarge language models on graphs: a comprehensive survey\.IEEE Transactions on Knowledge and Data Engineering36\(12\),pp\. 8622–8642\.External Links:[Document](https://dx.doi.org/10.1109/TKDE.2024.3469578)Cited by:[§2](https://arxiv.org/html/2609.10923#S2.p2.1)\.
- Liet al\.\(2025\)Q\. Li, C\. Huang, S\. Li, Y\. Xiang, D\. Xiong, and W\. LeiGraphotter: evolving llm\-based graph reasoning for complex table question answering\.InProceedings of the 31st International Conference on Computational Linguistics,pp\. 5486–5506\.Cited by:[§2](https://arxiv.org/html/2609.10923#S2.p2.1)\.
- Lianget al\.\(2024\)Y\. Liang, K\. Tan, T\. Xie, W\. Tao, S\. Wang, Y\. Lan, and W\. QianAligning large language models to a domain\-specific graph database for nl2gql\.InProceedings of the 33rd ACM International Conference on Information and Knowledge Management,CIKM ’24,New York, NY, USA,pp\. 1367–1377\.External Links:ISBN 9798400704369,[Link](https://doi.org/10.1145/3627673.3679713),[Document](https://dx.doi.org/10.1145/3627673.3679713)Cited by:[§2](https://arxiv.org/html/2609.10923#S2.p2.1)\.
- Lin \(2004\)C\. LinROUGE: a package for automatic evaluation of summaries\.InText Summarization Branches Out,Barcelona, Spain,pp\. 74–81\.External Links:[Link](https://aclanthology.org/W04-1013/)Cited by:[§6](https://arxiv.org/html/2609.10923#S6.SS0.SSS0.Px1.p2.1)\.
- Perozziet al\.\(2024\)B\. Perozzi, B\. Fatemi, D\. Zelle, A\. Tsitsulin, M\. Kazemi, R\. Al\-Rfou, and J\. HalcrowLet your graph do the talking: encoding structured data for llms\.arXiv preprint arXiv:2402\.05862\.Cited by:[§2](https://arxiv.org/html/2609.10923#S2.p2.1)\.
- Ribeiroet al\.\(2021\)L\. F\. R\. Ribeiro, M\. Schmitt, H\. Schütze, and I\. GurevychInvestigating pretrained language models for graph\-to\-text generation\.InProceedings of the 3rd Workshop on Natural Language Processing for Conversational AI,P\. Budzianowski, M\. Gasic, H\. Minlie, I\. Vulić, C\. Zhang, I\. Casanueva, T\. Wen, P\. Su, and S\. Ultes \(Eds\.\),Online,pp\. 211–227\.External Links:[Link](https://aclanthology.org/2021.nlp4convai-1.20/),[Document](https://dx.doi.org/10.18653/v1/2021.nlp4convai-1.20)Cited by:[§2](https://arxiv.org/html/2609.10923#S2.p1.1)\.
- Shang and Huang \(2025\)W\. Shang and X\. HuangA survey of large language models on generative graph analytics: query, learning, and applications\.IEEE Transactions on Knowledge and Data Engineering37\(12\),pp\. 6799–6819\.External Links:[Document](https://dx.doi.org/10.1109/TKDE.2025.3609877)Cited by:[§2](https://arxiv.org/html/2609.10923#S2.p2.1)\.
- Singhet al\.\(2025\)A\. Singh, A\. Fry, A\. Perelman, A\. Tart, A\. Ganesh, A\. El\-Kishky, A\. McLaughlin, A\. Low, A\. Ostrow, A\. Ananthram,et al\.Openai gpt\-5 system card\.arXiv preprint arXiv:2601\.03267\.Cited by:[§5](https://arxiv.org/html/2609.10923#S5.p6.1)\.
- Tanget al\.\(2024\)J\. Tang, Y\. Yang, W\. Wei, L\. Shi, L\. Su, S\. Cheng, D\. Yin, and C\. HuangGraphgpt: graph instruction tuning for large language models\.InProceedings of the 47th International ACM SIGIR Conference on Research and Development in Information Retrieval,pp\. 491–500\.Cited by:[§2](https://arxiv.org/html/2609.10923#S2.p2.1)\.
- Wanget al\.\(2024\)J\. Wang, J\. Wu, Y\. Hou, Y\. Liu, M\. Gao, and J\. McAuleyInstructgraph: boosting large language models via graph\-centric instruction tuning and preference alignment\.InFindings of the Association for Computational Linguistics: ACL 2024,pp\. 13492–13510\.Cited by:[§2](https://arxiv.org/html/2609.10923#S2.p2.1)\.
- Youet al\.\(2025\)Y\. You, Z\. Liu, X\. Wen, Y\. Zhang, and W\. AiLarge language models meet graph neural networks: a perspective of graph mining\.Mathematics13\(7\),pp\. 1147\.Cited by:[§2](https://arxiv.org/html/2609.10923#S2.p2.1)\.
- Yuet al\.\(2026\)S\. Yu, Y\. Wang, R\. Li, G\. Liu, Y\. Shen, S\. Ji, B\. Li, F\. Han, X\. Zhang, and F\. XiaGraph2text or graph2token: a perspective of large language models for graph learning\.ACM Trans\. Inf\. Syst\.44\(3\)\.External Links:ISSN 1046\-8188,[Link](https://doi.org/10.1145/3786600),[Document](https://dx.doi.org/10.1145/3786600)Cited by:[§2](https://arxiv.org/html/2609.10923#S2.p2.1)\.
- Zhanget al\.\(2024\)Y\. Zhang, H\. Wang, S\. Feng, Z\. Tan, X\. Han, T\. He, and Y\. TsvetkovCan llm graph reasoning generalize beyond pattern memorization?\.InFindings of the Association for Computational Linguistics: EMNLP 2024,pp\. 2289–2305\.Cited by:[§2](https://arxiv.org/html/2609.10923#S2.p2.1)\.
## Appendix AMotif\-Based Graphs
[Figure 2](https://arxiv.org/html/2609.10923#A1.F2)shows examples from our synthetic motif\-based graph dataset\.
Figure 2:Examples from our synthetic motif\-based graph dataset\. Each row corresponds to a base motif family: cycle, star, path, wheel, and clique\. The left column shows clean motif examples, while the right column shows examples from the same motif family with a single edge addition or removal perturbation\. The two columns illustrate clean and perturbed cases but do not necessarily depict paired versions of the same graph\.Figure 3:Examples of generated captions across prompting settings\. The top row shows perturbed motif graphs with human\-verified motif\-oriented captions, followed by captions generated by direct prompting, zero\-shot structured prompting, and few\-shot structured prompting\. Structured prompting reduces verbosity and self\-contradictory descriptions, while better focusing on motif\-oriented graph patterns\.
## Appendix BPrompting Schemes
For the three prompting schemes evaluated in this paper, we use the following exact instructions to prompt GPT\-5\.1\.
- •Direct Prompting: Caption to Graph:You are to generate a graph pattern in its adjacency matrix form that matches the given caption\. Please write the adjacency matrix in a clear format, starting with ’Adjacency Matrix:’ followed by the matrix itself, expressed as list of lists in string form\.Graph to Caption:You are to generate graph pattern caption describing the graph motifs from the given adjacency matrix\. Start the output with ’Caption:’ and then write the caption\.
- •Zero\-shot structured prompting: Caption to Graph:You are to generate a graph pattern that matches the above given caption\. Please reason through these steps: step 1: Parse structural descriptions \(i\.e\., identify the number of nodes and motifs\), step 2: Assign indices and layout \(i\.e\., assign nodes to different motifs\), step 3: Create edge list \(i\.e\., analyze the edge required to construct the motifs\), step 4: Build neighbor list for each node, step 5: convert neighbor list to adj matrix\. Please output the reasoning steps for a given graph pattern caption and start the output for the last step with ’Adjacency Matrix: ’ followed by the matrix itself, expressed as list of lists in string form\.Graph to Caption:You are to generate graph pattern captions\. Please reason through these steps: step 1: convert adjacency to produce neighbor lists, step 2: analyze structure \(i\.e\., what motifs are in this pattern\), step 3: generate final caption\. Please output the reasoning steps for a given adjacency matrix and start the output for the last step with ’Caption: ’\.
- •Few\-shot structured prompting: Caption to Graph:You are to generate a graph pattern that matches the above given caption\. As you can observe in assistant examples: step 1: Parse structural descriptions \(i\.e\., identify the number of nodes and motifs\), step 2: Assign indices and layout \(i\.e\., assign nodes to different motifs\), step 3: Create edge list \(i\.e\., analyze the edge required to construct the motifs\), step 4: Build neighbor list for each node, step 5: convert neighbor list to adj matrix\. Please learn from those assistant examples and output these reasoning steps and the final adj matrix for a given graph pattern caption\.Graph to Caption:You are to generate graph pattern captions\. As you can observe in assistant examples: step 1: convert adjacency to produce neighbor lists, step 2: analyze structure \(i\.e\., what motifs are in this pattern\), step 3: generate final caption\. Please learn from those assistant examples and output the reasoning through these steps reaching the final caption for a given adjacency matrix\.
Table 3:Cycle\-consistency evaluation on clean and perturbed motif graphs using GPT\-5\.1, where perturbed graphs contain random edge additions or removals from the base motif structure\.Table 4:Cycle\-consistency evaluation by base motif family using GPT\-5\.1\.
## Appendix CAdditional Qualitative Examples
[Figure 3](https://arxiv.org/html/2609.10923#A1.F3)presents additional examples comparing generated captions across prompting settings\. These examples illustrate how the captions differ in motif abstraction, structural accuracy, specificity, and length\. Overall, these supplementary qualitative results further support our claim that structured prompting reduces verbosity and self\-contradictory descriptions while producing captions that better capture motif\-oriented graph patterns\.
## Appendix DAdditional Quantitative Analyses
We further analyze model performance across graph perturbation settings and motif families\. These analyses use the same evaluation metrics as in the main paper: Graph\-Caption\-Graph F1 for graph recovery, ROUGE\-1 precision and recall for Caption\-Graph\-Caption caption reconstruction, and average generated caption length for caption compactness\.
As shown in[Table 3](https://arxiv.org/html/2609.10923#A2.T3), all prompting schemes perform better on clean motif graphs than on perturbed graphs\. This is expected because edge additions and removals introduce structural variation beyond the base motif patterns\. To avoid inflating the aggregate results with many easy clean examples, our test set includes only a small number of clean graphs, with two clean examples per motif family\. As a result, the overall results in[Table 2](https://arxiv.org/html/2609.10923#S5.T2)more closely reflect performance on perturbed graphs, which better approximate the structural irregularities found in natural graph patterns\.
[Table 4](https://arxiv.org/html/2609.10923#A2.T4)further shows that Wheel patterns are among the most challenging motif families across prompting schemes\. This is also expected because a wheel combines a central hub with a rim structure, requiring the model to recognize both star\-like and cycle\-like organization and their composition\. Nevertheless, the Wheel\-specific results are broadly consistent with the overall trends in[Table 2](https://arxiv.org/html/2609.10923#S5.T2): structured prompting improves caption compactness and motif\-oriented reconstruction while maintaining comparable graph recovery\. This suggests thatStructurally Speakinghelps guide the model through motif composition even for more structurally complex patterns such as wheels\.Similar Articles
Beyond LLMs: A Linguistic Approach to Causal Graph Generation from Narrative Texts
This paper proposes a hybrid framework combining LLM summarization, a linguistically grounded Expert Index, and STAC classification to generate causal graphs from narrative texts, outperforming GPT-4o and Claude 3.5 on benchmark stories.
Visual Graph Scaffolds for Structural Reasoning in Large Language Models
This paper explores using visual graph mind maps as reasoning scaffolds for LLMs, finding that visual guidance remains effective even without direct answer hints, while textual flattening of graphs loses benefits.
Mapping Text to Multiplex Graph: Prompt Compression as L\'evy Walk-Guided Graph Pruning
This paper proposes RAGP, a prompt compression method that models text as a multiplex graph and uses Lévy walks for redundancy-aware graph pruning, achieving superior performance on LongBench compared to existing LLM-based compression methods.
Interpreting Style Representations via Style-Eliciting Prompts
This paper proposes a framework to interpret style representations by using style-eliciting prompts—natural language instructions that steer LLMs to generate text with specific stylistic attributes. The method outperforms baseline LLM prompting techniques in both describing and imitating writing styles.
Back to Basics: Improving Molecular Understanding in LLMs via SMILES-Graph Translation
This paper proposes MolBasic, a structure-first framework that strengthens molecular understanding in LLMs via SMILES-Graph translation, using a multi-level structure perception benchmark and progressive learning with Chain-of-Thought to improve structural grounding and downstream task performance.