Manuscript Offprint
arXiv:2610.36650TACO-Graph: Automated Construction of Text-Atributed Graphs
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
TACO-GRAPH: AUTOMATED CONSTRUCTION OF TEXT-ATTRIBUTED GRAPHS
Amiri Hayes
MIT CSAIL
Kristina Wicke
New Jersey Institute of Technology
ABSTRACT
Graph-structured representations of text data have become foundational across machine learning, yet it remains unclear how to systematically construct a graph from a given dataset for a target task. Choices about which entities become nodes, which relationships become edges, and what text each node contains can substantially affect downstream performance. In practice, finding optimal constructions often requires expert knowledge or manual trial and error. We introduce TACO-Graph, a decision tree framework for learning which graph construction choices are most effective for a given dataset and task. Specifically, we focus on text-attributed graphs (TAGs) constructed from multi-attribute tabular data. TACO-Graph enumerates valid TAG representations, scores each using fast proxy evaluation on small representative subsets, and trains an interpretable decision tree on those scores. Across five datasets spanning citation networks, product reviews, and bibliographic relationships, our decision trees predict construction quality on separately drawn evaluation samples with mean Spearman above 0.9 for node classification and above 0.8 for GraphRAG retrieval. Our trees systematically identify which constructions perform better across both GNN and GraphRAG tasks, and the full pipeline is released as an open-source library to support evaluation on new tasks and datasets at https://github.com/AmiriHayes/text_attributed_graphs. TACO-Graph provides a systematic and interpretable guide for determining how to convert tabular data to text-attributed graphs for downstream tasks.
We propose TACO-Graph (Text-Attributed Construction Optimizer for Graphs), a predictive framework that learns effective TAG constructions for a given dataset and task (Figure 1). Rather than selecting constructions ad hoc, TACO-Graph systematically enumerates valid choices and evaluates these choices on small, representative data subsets. These evaluations train interpretable decision trees to rank constructions without full-dataset evaluation. We evaluate TACO-Graph across five datasets spanning three domains, focusing on building graphs for node classification and GraphRAG retrieval. Our results show that trees trained on small subsets accurately predict performance on separately drawn data, with reliable rankings emerging from small sample budgets across both GNN classification and GraphRAG retrieval, though optimal constructions differ by task.

- SELECT BEST TEXT-ATTRIBUTED GRAPH CONSTRUCTION AND DEPLOY FOR DATASET & TASK
Figure 1: Overview of TACO-Graph. (1) A relational dataset's columns are mapped to a generalized schema and characterized using automated statistical and validity checks. These dataset level properties are stored for each dataset, and train/test subsets are sampled. (2) For a specified downstream task, TACO-Graph enumerates the space of potential TAG constructions (variants) by defining node, edge, and text-fidelity choices. (3) Each construction is evaluated on representative subsamples by scoring (via lightweight GNN or small-sample GraphRAG), yielding Score(variant, subsample). (4) A decision tree is fit to variant construction scores and validated on separately drawn data using Spearman correlation and tree edit distance. (5) The interpretable ranking from the tree reveals optimal and suboptimal graph construction choices, informing the practitioner.
2 RELATED WORK
2.1 LEARNING FROM TEXT-ATTRIBUTED GRAPHS
Inference on text-attributed graphs spans multiple axes: the textual content of nodes encodes semantic meaning, node types determine what entities are represented, and edge structure defines the relationships. TAGs have been used across a range of applications, including academic research (Clement et al., 2019), e-commerce (Hou et al., 2024), and biomedical discovery (Hu et al., 2020). Prior work examines both TAG construction and learning: TAPE (He et al., 2024a), for example, demonstrates that different LLM-generated node features can lead to substantially different downstream GNN performance on citation graphs, while CS-TAG (Yan et al., 2023) provides standardized benchmarks for text-attributed graph learning. GNN architectures including GraphSAGE (Hamilton et al., 2017) and GAT (Veličković et al., 2018) provide common approaches for learning over TAGs, while more recent methods such as GLEM (Zhao et al., 2023) and OFA (Liu et al., 2024) explore tighter integration between language model pre-training and GNN fine-tuning. Across these approaches, the graph is given: node entities, edge relationships and textual attributes are fixed before learning begins rather than treated as variables to optimize. A recent line of work has begun to question this assumption for relational data (Chen et al., 2025; Cucumides & Geerts, 2026; Chen et al., 2026; Huang et al., 2026), which we discuss next.
Recent work takes first steps toward automating graph construction in relational settings. AutoG (Chen et al., 2025) uses LLM agents to propose schema transformations for relational databases, and AutoGrable (Cucumides & Geerts, 2026) scores constructions via label alignment without training GNNs, though it fixes rows as nodes, does not consider text, and functions as a screen rather than a ranking for downstream performance. Adjacent structural work learns schema graphs (Huang et al., 2026), decomposes edge types (Seo et al., 2024), and optimizes architectures over fixed graphs (Chen et al., 2026). TACO-Graph instead treats node entities, edge relationships, and textual attributes as explicit optimization variables, learning effective combinations for a dataset and task.
2.2 CONSTRUCTION OF TEXT-ATTRIBUTED GRAPHS
The idea of searching over structured design spaces using surrogate models is well-established. Neural Architecture Search (Elsken et al., 2019) automates architectural component selection by learning from observed performance over a structured search space, while AutoML pipelines extend this approach to hyperparameter and feature selection (Hutter et al., 2019). Graph structure learning methods, including Learning Discrete Structures (LDS) Franceschi et al. (2019) and ProGNN (Jin et al., 2020), instead learn graph adjacency jointly with GNN parameters. These approaches share with TACO-Graph the idea of using inexpensive evaluations to guide search, but are not specifically designed to determine how tabular data should be represented as a text-attributed graph. We similarly treat construction choices as categorical variables, evaluate sampled configurations using fast metrics, and fit an interpretable predictive model to identify high-performing constructions.
Graph-based retrieval-augmented generation (GraphRAG) is a new inference paradigm that organizes a retrieval corpus as a graph, enabling structured traversal alongside vector retrieval. Edge et al. (2024) introduced community-based GraphRAG, which applies Leiden community detection and retrieves at the community level for global summarization queries. LightRAG (Guo et al., 2025) combines local entity-level and global graph-level retrieval, while HippoRAG (Gutiérrez et al., 2024) and G-Retriever (He et al., 2024b) explore graph-structured retrieval for multi-hop question answering. Despite this diversity, GraphRAG systems typically rely on fixed or manually designed graph-construction procedures, leaving the effect of alternative TAG constructions largely unexplored. To address this gap, we investigate whether small-subset evaluation can identify effective constructions prior to full-scale GraphRAG construction.
3 METHODOLOGY
Table 1: TAG construction search space with citation network examples.
| Tasks (M) | Nodes (N) |
|---|---|
| 1. Node Classification: predict the category labels of nodes. — e.g. paper subject classification2. GraphRAG Retrieval: answer questions over graph-structured context. — e.g. author queries | N1 Primary Entity: the fundamental unit of information with core textual content. — e.g. PaperN2 Secondary Entity: hub node connecting primary entities through shared participation. — e.g. AuthorN3 Aggregate Entity: a higher-order grouping of primary entities by category or family. — e.g. Journal |
| Edges (E) | Text (T) |
| Ground Truth Metrics:E4a Categorical edges — e.g. same categoryE4b Scalar edges — e.g. similar citation countE4c Participation edges — e.g. coauthorshipCalculated Similarity Metrics:E5a Semantic edges — e.g. similar abstractE5b Structural edges — e.g. similar degree | T6a Contextual: node text including both primary content and its surrounding semantic context— e.g. title + abstractT6b Standard: primary content only with no surrounding context — e.g. titleT6e Baseline: no text features, serving as a structure-only control. — e.g. no text |
Our approach begins by explicitly characterizing the space of possible text-attributed graph constructions. A practitioner constructing a TAG from a tabular dataset must make three types of choices:
which entities to represent as nodes, which relationships to represent as edges, and which textual attributes to associate with each node. We organize these choices into finite sets of principled alternatives, denoted by , , and , respectively, as summarized in Table 1. We additionally consider , the set of downstream machine learning tasks for which we optimize our TAG construction. The resulting space of construction configurations is the Cartesian product and encompasses every valid combination of node entity, edge connection, and text fidelity types.
3.1 DEFINING TAG CONSTRUCTION SPACE
The node axis specifies which entities are represented as nodes. Primary entities correspond to fine-grained dataset units (e.g., papers in citation networks, reviews in product-review networks), secondary entities serve as hubs connecting primary entities (e.g., paper authors, product reviewers), and aggregate entities represent higher-order groupings (e.g., journals, product families). The edge axis specifies how nodes are connected, either through observed relationships in the underlying data ('ground truth metrics') or through computed similarity measures. Relationship-based edges are derived directly from observed relationships, such as co-authorship or co-purchase links, while similarity-based edges are constructed using similarity between node representations. Finally, the text-fidelity axis specifies the textual information associated with nodes. Motivated by the observation that different content units carry different informational value (Nenkova & Passonneau, 2004), we define three fidelity levels: full contextual text, primary content only, and no text.
Our ontology defines a representative construction space rather than exhaustively enumerating every possible graph construction. In particular, some construction categories admit many possible parameterizations; for example, infinitely many similarity functions could be used to instantiate E5a. We therefore select representative parameterizations for each construction choice, as detailed in Appendix A. Conversely, not every combination of construction choices in is valid or informative. We apply three logical pruning constraints before training and evaluation: (1) the selected node entity must possess ground-truth task labels (valid supervision signal), (2) the edge construction must not yield degenerate topologies (e.g., empty or near-complete graphs), and (3) edge rules must not cause label leakage by directly encoding target labels (e.g., pairing aggregate nodes N3 with label edges E4a). These constraints are saved and enforced programmatically before scoring. We further exclude empirically degenerate variants for which more than of train-pool GNN scores are zero. Together, these constraints remove constructions that are invalid, structurally degenerate, or uninformative while preserving the broader diversity of the construction space.
3.2 GRAPH SCORING AND EVALUATION
We study TAG construction in two downstream settings (GNN-based node classification and GraphRAG question answering) as well as across five initially tabular datasets (ArXiv (Clement et al., 2019), Sporting Goods, Electronics, and Toys from Amazon Reviews (Hou et al., 2024), and Books-History (Yan et al., 2023)). After preprocessing the datasets into the common schema defined in Table 1, we draw samples for the tasks with the goal of building graph variants on samples and scoring them (Table 2). The end product of scoring is a construction-performance table: for each dataset, subset, and variant in their recorded scores are used as training data for a decision tree.
Table 2: Fixed Scoring configurations.
| (a) GNN Scoring | (b) RAGAS Scoring | ||
|---|---|---|---|
| Architecture | 2-layer GraphSAGE | Generator / Judge | GPT-4o-mini, temperature 0.0 |
| Aggregation | Mean | Index | LlamaIndex VectorStoreIndex |
| Node features | SBERT all-MiniLM-L6-v2 (384-d) | Embeddings | OpenAI text-embedding-3-small |
| Retrieval | Top-k dense, k = 3 | ||
| Hidden dim | 256 | Expansion | 1-hop graph neighbors, capped at 15 passages |
| Output dim | Dataset- and task-specific | ||
| Epochs | 100 | Metrics | RAGAS: faithfulness, answer relevance, context relevance; composite = mean |
| Early stopping | Patience 30 (on validation) | ||
| Optimizer | Adam, lr = 0.001 | ||
| Train/val/test split | 70% / 15% / 15% of subset nodes | Questions | 300 per dataset |
| Train/test split | 150 / 150 | ||
3.2.1 GNN SCORING FOR NODE CLASSIFICATION
For each dataset, we draw 150 random 1,000-row subsets (split evenly into train and test) from pools of 20k–50k rows, so each run sees 2.0%–4.8% of its pool. Subsets must only preserve relative construction rankings rather than full data distributions. On each subset, we instantiate all valid TAG constructions in and train a GNN on each construction variant up to 100 epochs with early stopping. Each construction is scored on its separately drawn test nodes by a floored McFadden pseudo- (McFadden, 1974), , which is a calibration-sensitive score rather than accuracy, and the floor means variants performing below the class prior are not ranked against one another. The GNN architecture and hyperparameters (Table 2a) are held fixed across all runs so performance differences only reflect construction choices.
3.2.2 RAGAS SCORING FOR RETRIEVAL AUGMENTED GENERATION
For each dataset, we generate 300 evaluation questions using GPT-4o-mini, stratified evenly across three question types: single-document details (local precision), cross-document aggregation (global details), and multi-hop entity traversal (structural reasoning). Retrieval Augmented Generation Assessment (RAGAS) (Es et al., 2024) provides automated evaluation of retrieval-augmented generation by measuring whether an LLM response is supported by retrieved context (faithfulness), whether the retrieved context is relevant to the question (context relevance), and whether the answer addresses the question (answer relevance). Questions must pass a RAGAS faithfulness threshold (> 0.5) before inclusion, yielding a 150/150 train-test split per dataset, except History, where only 233 questions passed and the split is 116/117. We evaluate all valid variants in . For each variant, we construct a text-based GraphRAG system over the pooled corpus via LlamaIndex, where retrieved nodes are expanded along the variant's edges to form the answering context. We describe this in Appendix A. Retrieval quality is scored using the RAGAS composite score (mean of Faithfulness, Answer Relevance, and Context Relevance across questions). As in the GNN setting, scores serve as targets for the decision-tree model, measuring construction quality via retrieval performance.
3.3 DECISION TREE TRAINING AND VALIDATION
From construction performance tables, we train a decision tree regressor using per-variant train-pool mean scores as targets. We encode each construction tuple as a categorical feature vector, training the decision tree to map design choices directly to predicted downstream performance. To test whether these rules generalize, we evaluate two complementary metrics: (1) Spearman's rank correlation between tree predictions and test-pool scores, measuring whether the tree preserves the relative ordering of construction quality, and (2) tree edit distance (TED) between train-pool and test-pool trees, measuring structural rather than predictive agreement. While Chen et al. (2026) warn that validation performance can be an unreliable architecture selector due to temporal splits in relational tasks, our pools are randomly drawn from the same dataset without temporal drift, though we note they are drawn independently rather than as a strict partition. We separately validate that this does not affect our results by repeating the analysis on strictly disjoint pools (Section 4.3). Together, high and low TED indicate that the tree learns a stable, generalizable rule rather than overfitting train-pool noise.
4 RESULTS
We present results in three parts. We first show that construction choices produce substantial differences in downstream performance, establishing that the construction space is worth searching. Second, we show that decision trees trained on small representative subsets predict separately drawn construction quality consistently for GNN node classification and GraphRAG retrieval, validating that quality is learnable from subsampled evaluations. Third, we show that reliable construction rankings emerge from small evaluation budgets for both pipelines, with node-classification rankings stable at the smallest budgets and retrieval rankings sharpening as the question budget grows.
Amazon Sports: Construction Performance on Node Classification

Epochs
Test subsets (GNN score)
Amazon Sports: Construction Performance on Question Answering

Questions evaluated
Question buckets (RAGAS composite)
Figure 2: Construction performance results for Sports. We visualize 6 of 26 variants, revealing a clear performance split between N2 and N1/N3 for the GNN task (top row). The bottom row has less extreme scoring differences, but similar superiority among variants. The thick lines represent means; thin lines are subsets (top) and question orderings (bottom). On the right, heatmaps show the final scores for each variant and subsample or question bucket. T6e represents the no text control.
Amazon Sports: Node Classification
| --- Node_Idx_N2 == 0 |
|---|
| --- Node_Idx_N3 == 0 |
| --- Text_Idx_T6a == 0 |
| --- value: [39.5] |
| --- Text_Idx_T6a == 1 |
| --- value: [41.3] |
| --- Node_Idx_N3 == 1 |
| --- Edge_Idx_E5b == 0 |
| --- value: [38.6] |
| --- Edge_Idx_E5b == 1 |
| --- value: [39.8] |
| --- Node_Idx_N2 == 1 |
| --- Edge_Idx_E5a == 0 |
| --- Edge_Idx_E4b == 0 |
| --- value: [13.0] |
| --- Edge_Idx_E4b == 1 |
| --- value: [12.8] |
| --- Edge_Idx_E5a == 1 |
| --- value: [12.2] |
Amazon Sports: GraphRAG Retrieval
| --- Node_Idx_N2 == 0 |
|---|
| --- Edge_Idx_E5b == 0 |
| --- Edge_Idx_E5a == 0 |
| --- value: [70.8] |
| --- Edge_Idx_E5a == 1 |
| --- value: [74.2] |
| --- Edge_Idx_E5b == 1 |
| --- Node_Idx_N1 == 0 |
| --- value: [68.0] |
| --- Node_Idx_N1 == 1 |
| --- value: [64.8] |
| --- Node_Idx_N2 == 1 |
| --- Edge_Idx_E5a == 0 |
| --- Edge_Idx_E5b == 0 |
| --- value: [66.8] |
| --- Edge_Idx_E5b == 1 |
| --- value: [67.6] |
| --- Edge_Idx_E5a == 1 |
| --- value: [54.4] |
Figure 3: Decision trees fit on the construction performance data with max-depth 3. The bold axes highlight graph construction decisions that lead to the best performing variants. We find that the most meaningful splits are not choosing N2 for both tasks at the top level, but the trees disagree below that split. Both decision trees achieve on their respective training datasets.
4.1 CONSTRUCTION PERFORMANCE
Downstream node classification performance exhibits structured variation driven by TAG construction choices. As illustrated in Figure 2 (left), training curves for Amazon Sports variants show that primary-entity constructions (N1, reviews) and aggregate-entity constructions (N3, product families) converge over at 100 epochs for node classification, while secondary-entity constructions (N2, reviewers) plateau near . Reviewer-centric graphs are not the correct construction choice for either task. This is expected, since most Amazon reviewers in the dataset appear exactly once and only a handful act as genuine hubs for many reviews. However, while the same ordering persists in GraphRAG retrieval below, the gap narrows considerably for the new task. N1 and N3 remain statistically indistinguishable, while N2/E5a is noticeably worse. In heatmaps for Figure 2 (right), we see the final variant performance differences subsist across independent samples in both tasks, confirming that the gap reflects construction choice rather than sampling variation. Appendix A reports the same two views for the remaining four datasets and shows that the winning constructions shift with the dataset as well as the task. We exclude T6e from both heatmaps as its thirteen variants all sit at the majority-class floor, as shown on the left for node classification and because question-answering cannot be run without text.
4.2 DECISION TREE META-LEARNER
The decision tree in Figure 3 narrows down the components that result in a high performing graph to their specific construction choices. By following the bolded decision axes, we find the best performing graph construction achieves a score of 41.3 by selecting review nodes N1 (N2=0, N3=0) and full contextual text T6a. The full corresponding variant here is N1/E5a/T6a, though there is little variance among edge choices for the top performing N1/T6a variants. In this case, one might choose whichever N1/T6a edge variant was the cheapest to compute for the full scale run. On the right side, we see the decision tree for retrieval has diverged below the shared root choice to avoid N2. Instead of prioritizing text fidelity, retrieval branches on edge semantics, selecting E5a to maximize performance. This suggests that while GNN node classification depends heavily on rich textual context, GraphRAG retrieval is driven primarily by relational edge structure here. Crucially, despite high , trees fit on training data scores do not inherently generalize to unseen data.
4.3 DECISION TREE VALIDATION
Table 3: Decision Tree Structural Consistency Checks GNN-Based Decision Tree Consistency ()
| ρ | Hist | Sports | ArXiv | Elec | Toys |
|---|---|---|---|---|---|
| Hist | +0.97* | +0.72* | +0.75* | +0.65* | +0.68* |
| Sports | +0.86* | +0.98* | +0.48 | +0.92* | +0.92* |
| ArXiv | +0.86* | +0.50* | +0.97* | +0.48 | +0.48 |
| Elec | +0.48 | +0.95* | +0.50 | +0.98* | +0.94* |
| Toys | +0.65 | +0.93* | +0.47 | +0.93* | +0.95* |
| Dataset | n | Within | Cross |
|---|---|---|---|
| History | 12 | 0.00 | 0.58 |
| Sports | 39 | 0.05 | 0.46 |
| ArXiv | 24 | 0.09 | 0.43 |
| Electronics | 39 | 0.14 | 0.43 |
| Toys | 39 | 0.28 | 0.41 |
GraphRAG-Based Decision Tree Consistency ()
| ρ | Hist | Sports | ArXiv | Elec | Toys |
|---|---|---|---|---|---|
| Hist | +0.98* | +0.03 | -0.12 | +0.04 | +0.18 |
| Sports | +0.79 | +0.81* | +0.67 | +0.73* | +0.25 |
| ArXiv | +0.59 | +0.57 | +0.84* | +0.72* | +0.06 |
| Elec | +0.57 | +0.76* | +0.81* | +0.81* | +0.13 |
| Toys | +0.78 | -0.03 | -0.26 | +0.19 | +0.94* |
| Dataset | n | Within | Cross |
|---|---|---|---|
| History | 8 | 0.21 | 0.59 |
| Sports | 26 | 0.26 | 0.34 |
| ArXiv | 16 | 0.13 | 0.47 |
| Electronics | 26 | 0.23 | 0.34 |
| Toys | 26 | 0.08 | 0.36 |
We next confirm that our trees reflect stable, generalizable principles in Table 3. We utilize Spearman and normalized tree edit distance on separately drawn data to verify that learned decision trees consistently predict construction rankings within and across datasets. For the Spearman matrices (left), rows represent training datasets and columns represent target datasets; thus, diagonals measure within-dataset consistency while off-diagonals reflect cross-dataset transfer. Within-dataset consistency is high across both tasks, with every diagonal entry exceeding 0.80 (0.90+ for GNNs) and achieving statistical significance (). To confirm that variant rankings are not an artifact of shared support between the training and evaluation subsets, we repeat the analysis on 15 subsets per pool drawn to be strictly disjoint. Spearman remains within 0.07 of the overlapping baseline on four of five datasets and improves on History. Cross-dataset transfer is also substantial for node classification, largely because all five datasets agree that text-bearing constructions outperform the no-text control (T6e), whereas GraphRAG exhibits high transfer primarily among Amazon datasets with shared schemas. For the tree edit distance evaluations (right), Within refers to the normalized edit distance between trees fitted on independent splits of the same dataset, and Cross refers to the mean edit distance across all cross-dataset tree pairs. Although independent splits carry no structural guarantees, within-dataset edit distances remain consistently low (averaging 0.11 for GNNs vs. 0.46 for cross-dataset pairs), confirming that decision trees recover highly stable, repeatable rules.

Figure 4: Construction ranking stability versus evaluation budget for GNN and GraphRAG. Left: GNN Spearman against train-pool subsets across five datasets. Right: GraphRAG stability against question counts with 20 random seeds. Both pipelines show increasing ranking stability with larger evaluation budgets, with GNN starting high and GraphRAG climbing gradually.
TACO-Graph maps the entire valid construction space at a computational cost comparable to training just a few full-scale models. For node classification, early ranking convergence (Figure 4) enables dramatic compute savings: evaluating a small handful of data subsets yields stable decision tree rankings. Consequently, surveying the full space of construction variants across our datasets costs only a small multiple of a single full-scale evaluation, as seen in Table 4.
Table 4: Construction space evaluation cost.
| Dataset | Variants | Total scoring (hr) | Full-scale run (hr) | Whole-space cost | ||||
|---|---|---|---|---|---|---|---|---|
| GNN | RAG | GNN | RAG | GNN | RAG | GNN | RAG | |
| ArXiv | 24 | 16 | 0.14 | 2.8 | 0.05 | 0.11 | 2.7× | 26.4× |
| Sports | 39 | 26 | 0.16 | 3.4 | 0.05 | 0.12 | 3.0× | 27.5× |
| History | 12 | 8 | 0.04 | 0.8 | 0.02 | 0.10 | 2.5× | 8.0× |
| Electronics | 39 | 26 | 0.16 | 2.8 | 0.02 | 0.11 | 6.9× | 24.5× |
| Toys | 39 | 26 | 0.16 | 2.8 | 0.02 | 0.10 | 9.3× | 26.8× |
Table 4 expresses total proxy evaluation costs in terms of equivalent full-scale training runs. For Sports GNN node classification, evaluating all 39 variants on proxy subsets takes 0.16 hours, compared to 0.054 hours for a single run on all training data, a total cost of full-scale runs. Across datasets, mapping the entire GNN search space costs between and full-scale runs; the compute budget of one full-scale run thus yields proxy rankings for roughly 4 to 13 variants. In practice, a practitioner testing 3 to 9 full-scale constructions spends the budget required to evaluate the entire search space via our method. Conversely, GraphRAG retrieval operates in a higher cost regime: rankings do not plateau early, so evaluation requires the full 300-question budget; elevating whole-space costs to between and full-scale runs. For GraphRAG, TACO-Graph only provides structured coverage over the whole design space rather than significant runtime savings.
5 DISCUSSION AND CONCLUSION
Construction choice is consequential: across five datasets, alternative TAG constructions yield substantially different GNN classification and GraphRAG performance, aligning with prior findings on feature and schema design (He et al., 2024a; Seo et al., 2024; Cucumides & Geerts, 2026; Choi et al., 2025). The construction space is learnable: decision trees trained on small representative samples predict construction quality on separately drawn data with mean Spearman for node classification and for GraphRAG retrieval across all five datasets. This extends surrogate-model search to graph construction, offering a predictive alternative to agent-driven methods (Hutter et al., 2019; Chen et al., 2025). Rather than relying on a fixed universal schema (Huang et al., 2026), construction rules are best learned empirically and per dataset, as within-dataset consistency strictly exceeds cross-dataset transfer. Crucially, these rankings emerge from minimal evaluation budgets. Sampling just a few subsets (< 5% of each full dataset) and 300 questions allows TACO-Graph to survey the entire construction space at the cost of a few full-scale evaluations on an arbitrary variant.
In addition to finding rules for each dataset and showing that they generalize, we also catalog what hinders learning tree construction rules. The History dataset, which contains only N1 node variants, has the smallest construction space in our study and the flattest response for node classification: its eight variants span 6.3 scoring points. With so little to separate the best construction from the worst, systematic search buys a practitioner almost nothing on that task, and TACO-Graph reports this before any full-scale run. However, History's retrieval scores span 22.0 points, so construction choice remains crucial for GraphRAG (Appendix A). ArXiv inverts this pattern (46 point classification range vs. 9 point retrieval range), proving that search utility is bounded by the task-dataset pairing rather than the dataset alone. More broadly, decision trees require a meaningful score spread across variants to learn useful rules, regardless of whether the performance level is on the order of Toys (0.01 to 0.12 raw GNN score) or ArXiv (0.38 to 0.84). For GraphRAG, although individual RAGAS axes vary in discriminative power (context relevance highest, answer relevance lowest), composite aggregation provides the most robust ranking signal; accelerating this evaluation via lighter-weight scoring proxies is a direction for future work.
In conclusion, TACO-Graph provides a systematic, interpretable, and transferable framework for enumerating, scoring, and selecting text-attributed graph constructions for downstream tasks. Future work includes extending the evaluation to additional GNN task types and non-tabular text corpora, investigating zero-cost graph structural proxies as cheaper alternatives to GNN scoring for construction selection, and applying the framework to multi-table relational databases where the construction space is richer. The edge axis can also be widened by decomposing single edge types into distinct semantic relations (Seo et al., 2024). Knowledge graphs are another natural target since our scoring and tree fitting do not depend on how the graph was obtained, though the construction space would range over extraction choices rather than schema columns. Taken together, these directions position TACO-Graph as a framework for principled construction search across increasingly diverse graph-structured data. We believe that with larger and more diverse datasets, TACO-Graph can achieve consistent decision tree quality across a broader array of downstream tasks, providing an automated, interpretable rationale for design choices in graph corpora.
REPRODUCIBILITY STATEMENT
All code, dataset configuration files, and trained decision tree artifacts are available at https://github.com/AmiriHayes/text_attributed_graphs. Section 3 describes the sampling procedure and scoring formula in full. Appendix A provides dataset-specific notes, including label design and question generation decisions.
AI USE STATEMENT
We used generative AI to generate synthetic data sets: the evaluation questions described in Section 3.2.2 were generated with GPT-4o-mini, which also served as the generator and judge for RAGAS scoring. We used generative AI (Claude, Anthropic; ChatGPT, OpenAI) for code generation, literature search, and writing assistance throughout this project. All code was verified by the authors, and all empirical claims were checked. The authors take full responsibility for this work.
REFERENCES
Zhikai Chen, Han Xie, Jian Zhang, Xiang Song, Jiliang Tang, Huzefa Rangwala, and George Karypis. AutoG: Towards automatic graph construction from tabular data. In International Conference on Learning Representations, 2025.
Zhikai Chen, Han Xie, Jian Zhang, Jiliang Tang, Xiang Song, and Huzefa Rangwala. Relatron: Automating relational machine learning over relational databases. In International Conference on Learning Representations, 2026.
Dongwon Choi, Sunwoo Kim, Juyeon Kim, Kyungho Kim, Geon Lee, Shinhwan Kang, Myunghwan Kim, and Kijung Shin. RDB2G-Bench: A comprehensive benchmark for automatic graph modeling of relational databases. In Advances in Neural Information Processing Systems (Datasets and Benchmarks Track), 2025.
Colin B. Clement, Matthew Bierbaum, Kevin P. O'Keeffe, and Alexander A. Alemi. On the use of ArXiv as a dataset. arXiv preprint arXiv:1905.00075, 2019.
Tamara Cucumides and Floris Geerts. AutoGrable: What is a good graph for a table? arXiv preprint arXiv:2608.11431, 2026.
Darren Edge, Ha Trinh, Newman Cheng, Joshua Bradley, Alex Chao, Apurva Mody, Steven Truitt, Dasha Metropolitansky, Robert Osazuwa Ness, and Jonathan Larson. From local to global: A Graph RAG approach to query-focused summarization. arXiv preprint arXiv:2404.16130, 2024.
Thomas Elsken, Jan Hendrik Metzen, and Frank Hutter. Neural architecture search: A survey. Journal of Machine Learning Research, 20(55):1–21, 2019.
Shahul Es, Jithin James, Luis Espinosa Anke, and Steven Schockaert. RAGAs: Automated evaluation of retrieval augmented generation. In Nikolaos Aletras and Orphee De Clercq (eds.), Proceedings of the 18th Conference of the European Chapter of the Association for Computational Linguistics: System Demonstrations, pp. 150–158, St. Julians, Malta, 2024. Association for Computational Linguistics.
Luca Franceschi, Mathias Niepert, Massimiliano Pontil, and Xiao He. Learning discrete structures for graph neural networks. In Proceedings of the 36th International Conference on Machine Learning, pp. 1972–1982. PMLR, 2019.
Quan Gan, Minjie Wang, David Wipf, and Christos Faloutsos. Graph machine learning meets multitable relational data. In Proceedings of the 30th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, 2024.
Zirui Guo, Lianghao Xia, Yanhua Yu, Tu Ao, and Chao Huang. LightRAG: Simple and fast retrieval-augmented generation. In Christos Christodoulopoulos, Tanmoy Chakraborty, Carolyn Rose, and Violet Peng (eds.), Findings of the Association for Computational Linguistics: EMNLP 2025, pp. 10746–10761. Association for Computational Linguistics, 2025. ISBN 979-8-89176-335-7.
Bernal Jiménez Gutiérrez, Yiheng Shu, Yu Gu, Michihiro Yasunaga, and Yu Su. HippoRAG: Neurobiologically inspired long-term memory for large language models. Advances in Neural Information Processing Systems, 37, 2024.
William Hamilton, Zhitao Ying, and Jure Leskovec. Inductive representation learning on large graphs. Advances in Neural Information Processing Systems, 30, 2017.
Xiaoxin He, Xavier Bresson, Thomas Laurent, Adam Perold, Yann LeCun, and Bryan Hooi. Harnessing explanations: LLM-to-LM interpreter for enhanced text-attributed graph representation learning. In International Conference on Learning Representations, 2024a.
Xiaoxin He, Yijun Tian, Yifei Sun, Nitesh V. Chawla, Thomas Laurent, Yann LeCun, Xavier Bresson, and Bryan Hooi. G-Retriever: Retrieval-augmented generation for textual graph understanding and question answering. Advances in Neural Information Processing Systems, 37, 2024b.
Yupeng Hou, Jiacheng Li, Xiangjun Fu, Zhankui He, An Yan, Xiusi Chen, and Julian McAuley. Bridging language and items for retrieval and recommendation: Benchmarking LLMs as semantic encoders. arXiv preprint arXiv:2403.03952, 2024.
Weihua Hu, Matthias Fey, Marinka Zitnik, Yuxiao Dong, Hongyu Ren, Bowen Liu, Michele Catasta, and Jure Leskovec. Open graph benchmark: Datasets for machine learning on graphs. Advances in Neural Information Processing Systems, 33, 2020.
Yi Huang, Qingyun Sun, Jia Li, Xingcheng Fu, and Jianxin Li. Is fixing schema graphs necessary? full-resolution graph structure learning for relational deep learning. arXiv preprint arXiv:2605.21475, 2026.
Frank Hutter, Lars Kotthoff, and Joaquin Vanschoren (eds.). Automated Machine Learning: Methods, Systems, Challenges. Springer, 2019.
Wei Jin, Yao Ma, Xiaorui Liu, Xianfeng Tang, Suhang Wang, and Jiliang Tang. Graph structure learning for robust graph neural networks. In Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 66–74, 2020.
Hao Liu, Jiarui Feng, Lecheng Kong, Ningyue Liang, Dacheng Tao, Yixin Chen, and Muhan Zhang. One for all: Towards training one graph model for all classification tasks. In International Conference on Learning Representations, 2024.
Daniel McFadden. Conditional logit analysis of qualitative choice behavior. In Paul Zarembka (ed.), Frontiers in Econometrics, pp. 105–142. Academic Press, New York, 1974.
Ani Nenkova and Rebecca Passonneau. Evaluating content selection in summarization: The pyramid method. In Proceedings of the Human Language Technology Conference of the North American Chapter of the Association for Computational Linguistics, pp. 145–152, 2004.
Boci Peng, Yun Zhu, Yongchao Liu, Xiaohe Bo, Haizhou Shi, Chuntao Hong, Yan Zhang, and Siliang Tang. Graph retrieval-augmented generation: A survey. arXiv preprint arXiv:2408.08921, 2024.
Hyunjin Seo, Taewon Kim, June Yong Yang, and Eunho Yang. Unleashing the potential of text-attributed graphs: Automatic relation decomposition via large language models. arXiv preprint arXiv:2405.18581, 2024.
Petar Veličković, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Liò, and Yoshua Bengio. Graph attention networks. In International Conference on Learning Representations, 2018.
Yu Wang, Nedim Lipka, Ryan A Rossi, Alexa Siu, Ruiyi Zhang, and Tyler Derr. Knowledge graph prompting for multi-document question answering. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 38, pp. 19206–19214, 2024.
Hao Yan, Chaozhuo Li, Ruosong Long, Chao Yan, Jianan Zhao, Wenwen Zhuang, Jun Yin, Peiyan Zhang, Weihao Han, Hao Sun, et al. A comprehensive study on text-attributed graphs: Benchmarking and rethinking. Advances in Neural Information Processing Systems, 36:17238–17264, 2023.
Jianan Zhao, Meng Qu, Chaozhuo Li, Hao Yan, Qian Liu, Rui Li, Xing Xie, and Jian Tang. Learning on large-scale text-attributed graphs via variational inference. In International Conference on Learning Representations, 2023.
A DATASET-SPECIFIC NOTES
Figure 5 plots construction performance for the four datasets not shown in the main body, and the paragraphs below describe each dataset individually. Two conventions apply throughout. Consistency figures quoted per dataset exclude the no-text control, so they sit slightly below the corresponding diagonal entries of Table 3, which includes it. Variant counts quoted per dataset likewise exclude the control and the empirically degenerate variants removed by the filter of Section 3.1.
Construction parameterizations. Node text is embedded with SBERT all-MiniLM-L6-v2 into 384 dimensions. T6a concatenates the primary content with its surrounding context, T6b uses the primary content alone, and T6e replaces the embedding with an all-zero vector, so the control is structure-only rather than text-free but still featured. E4a links nodes sharing an aggregate identifier; E4b and E4c link nodes through a shared participation identifier, weighted and unweighted respectively; E5a links pairs whose text embeddings reach cosine similarity 0.75; E5b links each node to the five nodes closest to it in degree centrality. A variant whose graph exceeds 200,000 undirected edges is recorded as degenerate and not trained, which is the operational form of pruning constraint (2). Node classification is scored by a floored McFadden pseudo- , , with an intercept-only null fit on the empirical class frequencies of that subset's test mask; variants below the null baseline are clamped at zero.
GraphRAG construction and question generation. Each variant is indexed with a LlamaIndex VectorStoreIndex over text-embedding-3-small. A query retrieves the top three passages by dense similarity, which are then expanded one hop along that variant's edges and capped at fifteen passages. Questions are generated per dataset in three subtypes of one hundred. Validation is a per-subtype pilot scored against a flat vector index that is independent of any graph construction, so the benchmark is not biased toward a particular variant; a subtype whose pilot falls below 0.5 faithfulness is dropped in full, which is why History retains 233 questions (100/100/33) rather than losing individual items.
ArXiv (Citation Network). ArXiv is a citation network of preprints spanning physics, mathematics, computer science, quantitative biology, quantitative finance, and statistics, where each node carries a title and abstract. Sixteen variants survive across two node types, four edge types, and two text fidelities; N3 is excluded due to label overlap and T6e is a baseline. Node classification predicts top-level subject category across 18 classes, which the GNN learned well in only 100 epochs (scores spanning 38.3 to 84.6). Question generation used shared authorship (0.78 faithfulness; baselines: 0.78 faithfulness, 0.63 answer relevance, 0.60 context relevance). The classification tree assigned 88% importance to node type, while retrieval split first on structural similarity edges (E5b) with 80% importance on edge type. Consistency was high ( of 0.958 and 0.840; edit distances of 0.045 and 0.133 against a cross-dataset mean near 0.47).
Amazon Sports (E-Commerce). Amazon Sports is a product review corpus covering sporting goods, with nodes carrying review text and product metadata. Twenty-six variants survive across three node types, five edge types, and two text fidelities. Characterization flagged a binary collapse in categorical_label prior to the level-3 category join. Node classification predicts product subcategory across 47 classes (GNN scores: 9.9 to 42.1). Question generation used shared reviewers (0.82 faithfulness; baselines: 0.82 faithfulness, 0.58 answer relevance, 0.65 context relevance). The classification tree placed all importance on node type (splitting on N2), while retrieval split importance between edge type (62%) and node type (38%). Consistency was high ( of 0.939 and 0.814; edit distances of 0.053 and 0.261 against cross-dataset means of 0.50 and 0.34).
History (Bibliographic). History is a catalog of history books, where nodes carry titles and descriptions. Only eight variants survive across one node type, four edge types, and two text fidelities; lacking author or reviewer columns, N2 and N3 cannot be constructed. Node classification predicts book category across 12 classes, which the GNN learned poorly (scores: 31.0 to 37.3). Question generation used shared subject classification (0.72 faithfulness). The aggregate subtype failed its validation pilot and was dropped, leaving 233 questions and baselines of 0.72 faithfulness, 0.57 answer relevance, and 0.45 context relevance, the lowest overall. Uniquely, both trees split first on edge type. High consistency ( of 0.945 and 0.976) reflects only eight variants for this dataset.
ArXiv GNN Construction Performance

History GNN Construction Performance
ArXiv GraphRAG Construction Performance

History GraphRAG Construction Performance
Electronics GNN Construction Performance

Electronics GraphRAG Construction Performance
Toys GNN Construction Performance
Toys GraphRAG Construction Performance

Figure 5: Construction performance for the four datasets not shown in the main body. Rows are datasets; the left column is node classification and the right column is GraphRAG retrieval. Within each panel, scores accumulate over evaluation on the left and final per-variant scores appear as a heatmap on the right.
Electronics (E-Commerce). Electronics is a product review corpus covering consumer technology. Twenty-six variants survive across three node types, five edge types, and two text fidelities. Characterization flagged a dominant majority class (81.5%) and dense ground-truth edges (74.4%), making categorical edges near-complete. Node classification predicts product subcategory across 11 classes (GNN scores: 6.2 to 56.7). Question generation used shared reviewers (0.79 faithfulness; baselines: 0.79 faithfulness, 0.57 answer relevance, 0.60 context relevance). The classification tree placed all importance on node type (splitting on N2), while retrieval assigned 77% to edge type. Consistency was high ( of 0.957 and 0.805; edit distances of 0.167 and 0.229 against cross-dataset means of 0.46 and 0.34).
Toys (E-Commerce). Toys is a product review corpus covering toys and games. Twenty-six variants survive across three node types, five edge types, and two text fidelities. Characterization flagged extreme class imbalance (86.9% majority class). Node classification predicts product subcategory across 16 classes, which the GNN learned poorly (scores: 1.7 to 12.5). Question generation used shared reviewers (0.78 faithfulness; baselines: 0.78 faithfulness, 0.53 answer relevance, 0.58 context relevance). The classification tree placed 96% importance on node type (splitting on N2), while retrieval gave 80% to edge type. Consistency was high ( of 0.873 and 0.941; edit distances of 0.174 and 0.083 against cross-dataset means of 0.44 and 0.36).
Scope of the evaluation. Every score reported here is measured on 1,000-row subsets drawn from per-dataset pools of 20k to 50k rows, and those pools are themselves samples of larger corpora. Our claims therefore concern the ordering of constructions within that regime. Because attribute-matching edge rules grow denser with pool size while k-nearest-neighbour rules do not, absolute score ranges should be read as properties of the proxy rather than of the dataset, and the magnitude of a gap between constructions is less portable across scales than its direction.
Portability to a new dataset. In its current state, TACO-Graph divides labour at a single handoff: once a dataset is expressed in the generic schema and its valid-variant rules are written, everything downstream runs without further input. The practitioner supplies three things. First, a column mapping onto the generic keys: the primary, secondary, and aggregate identifiers, the text fidelities, and the task label. Second, a label space, since the raw categorical column is sometimes unusable as given: in Amazon Sports it collapses to two values, and the 47-class target is recovered by rejoining a category file, so how to bin or rejoin classes is a modelling choice rather than a mechanical one. Third, the set of valid variants, which encodes the pruning constraints of Section 3.1 for that schema, and in particular which node and edge pairings would leak the label. From there the pipeline takes over: characterization reports structural properties, the registry enumerates the surviving space, and the builder constructs, scores, and tree-fits every variant automatically.
Two caveats bound this. The automated checks are diagnostic rather than corrective and do not gate execution: they flag a singleton-heavy secondary entity, a collapsed or heavily imbalanced label, redundant text fidelities, and sparse ground-truth edges, but binning classes, transforming a heavy-tailed scalar, or dropping an unviable node type remains manual. A dataset left unadjusted will still run and simply produce a flat score spread, leaving the tree with nothing informative to split on. Second, some checks are previews rather than guarantees: scalar and semantic edge sparsity cannot be evaluated before embeddings exist and are reported as unevaluated rather than estimated, so only a full build clears them. The edge-density guard and the zero-score filter catch the remaining degenerate cases at scoring time. Automating these three inputs, particularly deriving the validity rules from the schema rather than hand-writing them, is the natural next step.
B DECISION TREE VISUALIZATIONS
Figure 6 shows one tree per task for each of the four datasets not covered in the main body, fit on train-pool variant means using the floored McFadden score for node classification and the RAGAS composite for retrieval, both on a 0–100 scale. Depth is capped at three for readability (max_depth=3, min_samples_leaf=2), the no-text control is excluded because a tree rooted on “is this the control” encodes no construction rule, and the reported is in-sample. These trees therefore illustrate the learned rules rather than reproduce the depth-eight trees behind Table 3.
Electronics and Toys behave like Amazon Sports: both tasks split first on node type and isolate N2, and the penalty for that choice is severe for classification but mild for retrieval. ArXiv is the only dataset where the two tasks disagree at the root, with classification splitting on node type and retrieval on structural similarity edges. History splits on edge type for both tasks, but on different edge types, which is consistent with it being the only dataset with a single node type and therefore no node axis to split on.
ArXiv, node classification (n=16, )
--- Node_Idx_N1 == 0 | --- Edge_Idx_E5b == 0 | --- Edge_Idx_E5a == 0 | --- value: [84.09] | --- Edge_Idx_E5a == 1 | --- value: [77.03] | --- Edge_Idx_E5b == 1 | --- value: [74.61] --- Node_Idx_N1 == 1 | --- Text_Idx_T6a == 0 | --- value: [38.49] | --- Text_Idx_T6a == 1 | --- value: [54.15]
Electronics, node classification (n=26, )
--- Node_Idx_N2 == 0 | --- Edge_Idx_E5a == 0 | --- Edge_Idx_E5b == 0 | --- value: [53.72] | --- Edge_Idx_E5b == 1 | --- value: [55.51] | --- Edge_Idx_E5a == 1 | --- Node_Idx_N3 == 0 | --- value: [56.44] | --- Node_Idx_N3 == 1 | --- value: [56.32] --- Node_Idx_N2 == 1 | --- Edge_Idx_E4a == 0 | --- Edge_Idx_E5b == 0 | --- value: [12.41] | --- Edge_Idx_E5b == 1 | --- value: [11.16] | --- Edge_Idx_E4a == 1 | --- value: [13.77]
Toys, node classification (n=26, )
--- Node_Idx_N2 == 0 | --- Edge_Idx_E5a == 0 | --- Node_Idx_N1 == 0 | --- value: [8.29] | --- Node_Idx_N1 == 1 | --- value: [8.87] | --- Edge_Idx_E5a == 1 | --- Node_Idx_N3 == 0 | --- value: [10.81] | --- Node_Idx_N3 == 1 | --- value: [10.48] --- Node_Idx_N2 == 1 | --- Edge_Idx_E5a == 0 | --- Edge_Idx_E5b == 0 | --- value: [1.18] | --- Edge_Idx_E5b == 1 | --- value: [1.50] | --- Edge_Idx_E5a == 1 | --- value: [0.85]
History, node classification (n=8, )
--- Edge_Idx_E4b == 0 | --- Text_Idx_T6a == 0 | --- value: [31.65] | --- Text_Idx_T6a == 1 | --- value: [34.78] | --- Edge_Idx_E4b == 1 | --- value: [39.14]
ArXiv, GraphRAG retrieval (n=16, )
--- Edge_Idx_E5b == 0 | --- Node_Idx_N2 == 0 | --- Edge_Idx_E5a == 0 | --- value: [69.95] | --- Edge_Idx_E5a == 1 | --- value: [70.68] | --- Node_Idx_N2 == 1 | --- Edge_Idx_E5a == 0 | --- value: [69.76] | --- Edge_Idx_E5a == 1 | --- value: [65.76] --- Edge_Idx_E5b == 1 | --- Node_Idx_N2 == 0 | --- value: [59.99] | --- Node_Idx_N2 == 1 | --- value: [65.40]
Electronics, GraphRAG retrieval (n=26, )
--- Node_Idx_N2 == 0 | --- Edge_Idx_E5b == 0 | --- Edge_Idx_E5a == 0 | --- value: [66.20] | --- Edge_Idx_E5a == 1 | --- value: [68.29] | --- Edge_Idx_E5b == 1 | --- Node_Idx_N3 == 0 | --- value: [64.20] | --- Node_Idx_N3 == 1 | --- value: [63.53] --- Node_Idx_N2 == 1 | --- Edge_Idx_E5a == 0 | --- Edge_Idx_E5b == 0 | --- value: [65.19] | --- Edge_Idx_E5b == 1 | --- value: [64.43] | --- Edge_Idx_E5a == 1 | --- value: [52.06]
Toys, GraphRAG retrieval (n=26, )
--- Node_Idx_N2 == 0 | --- Edge_Idx_E5a == 0 | --- Edge_Idx_E5b == 0 | --- value: [58.03] | --- Edge_Idx_E5b == 1 | --- value: [68.13] | --- Edge_Idx_E5a == 1 | --- Node_Idx_N3 == 0 | --- value: [72.48] | --- Node_Idx_N3 == 1 | --- value: [73.70] --- Node_Idx_N2 == 1 | --- Edge_Idx_E5a == 0 | --- Edge_Idx_E4b == 0 | --- value: [61.34] | --- Edge_Idx_E4b == 1 | --- value: [60.82] | --- Edge_Idx_E5a == 1 | --- value: [45.82]
History, GraphRAG retrieval (n=8, )
--- Edge_Idx_E5a == 0 | --- Edge_Idx_E4c == 0 | --- Edge_Idx_E5b == 0 | --- value: [47.71] | --- Edge_Idx_E5b == 1 | --- value: [51.28] | --- Edge_Idx_E4c == 1 | --- value: [62.64] --- Edge_Idx_E5a == 1 | --- value: [68.50]
Figure 6: Decision trees for the four datasets not shown in Figure 3, fit at the same settings. Left column is node classification; right column is GraphRAG retrieval; both are scaled to 0–100.