Pattern-Aware Graph Neural Networks for Handling Missing Data

arXiv cs.LG Papers

Summary

This paper proposes pattern-aware graph neural networks that explicitly encode missingness patterns alongside observed values, achieving an average improvement of 17% in balanced accuracy and 22% in F1-macro across seven UCI datasets.

arXiv:2607.08915v1 Announce Type: new Abstract: Missing data is ubiquitous in real-world datasets. Traditional methods either discard incomplete samples or apply imputation techniques that ignore potentially informative missingness patterns, implicitly assuming that missingness occurs randomly. However, missingness patterns might provide additional information. We propose pattern-aware graph neural networks that explicitly encode which features are missing alongside observed values. We used four encoding strategies -- learned embeddings, frozen random embeddings, statistical features, and hierarchical representations -- across seven UCI datasets with naturally occurring missingness. Our Pattern-aware methods achieve substantial improvements over baselines, with an average improvement of 17\% in balanced accuracy and 22\% in F1-macro across all datasets. The benefits vary significantly by dataset: annealing shows dramatic improvement (+80\% balanced accuracy), while hepatitis and soybean show minimal gains (+4--5\%). Notably, even simple random pattern embeddings perform comparably to learned embeddings (0.650 vs 0.663 balanced accuracy), suggesting that distinguishing between patterns may be more important than task-specific optimization. Our ablation study reveals that attention mechanisms, while helpful, are not critical when pattern information is available -- simple mean aggregation with pattern awareness achieves 0.640 balanced accuracy compared to 0.645 for attention-based variants.
Original Article
View Cached Full Text

Cached at: 07/13/26, 07:56 AM

# Pattern-Aware Graph Neural Networks for Handling Missing Data
Source: [https://arxiv.org/html/2607.08915](https://arxiv.org/html/2607.08915)
Minett Tran, Taehee JeongThis work was supported in part by a Mobilint Grant awarded to San Jose State University\. \(Corresponding author: Taehee Jeong\)

###### Abstract

Missing data is ubiquitous in real\-world datasets\. Traditional methods either discard incomplete samples or apply imputation techniques that ignore potentially informative missingness patterns, implicitly assuming that missingness occurs randomly\. However, missingness patterns might provide additional information\. We propose pattern\-aware graph neural networks that explicitly encode which features are missing alongside observed values\. We used four encoding strategies—learned embeddings, frozen random embeddings, statistical features, and hierarchical representations—across seven UCI datasets with naturally occurring missingness\. Our Pattern\-aware methods achieve substantial improvements over baselines, with an average improvement of 17% in balanced accuracy and 22% in F1\-macro across all datasets\. The benefits vary significantly by dataset: annealing shows dramatic improvement \(\+80% balanced accuracy\), while hepatitis and soybean show minimal gains \(\+4–5%\)\. Notably, even simple random pattern embeddings perform comparably to learned embeddings \(0\.650 vs 0\.663 balanced accuracy\), suggesting that distinguishing between patterns may be more important than task\-specific optimization\. Our ablation study reveals that attention mechanisms, while helpful, are not critical when pattern information is available—simple mean aggregation with pattern awareness achieves 0\.640 balanced accuracy compared to 0\.645 for attention\-based variants\. Our code and data are available athttps://github\.com/TranMinett/pattern\_aware\_GRAPE\.

## IIntroduction

††2026 International Conference on Advances in Artificial Intelligence and Machine Learning \(AAIML\), 20\-22 March 2026, IEEE Copyright 2026Missing data pervades real\-world datasets: medical records often contain missing diagnostic tests, survey respondents frequently skip questions, and sensors periodically fail\. The traditional approach handles such incompleteness either by deleting samples with missing values or by imputing them using methods such as mean substitution or k\-nearest neighbors\. However, these approaches rest on a critical assumption—that missingness occurs randomly\.

Consider a clinical setting where physicians order extensive diagnostic tests only for patients presenting severe symptoms\. In this scenario, which tests are missing reveals information about disease severity independent of the test results themselves\. Traditional imputation methods ignore this signal, focusing solely on estimating the unobserved values rather than leveraging the informative structure of missingness\.

Graph Neural Networks \(GNNs\) offer an alternative paradigm for handling incomplete data\. GRAPE\[[1](https://arxiv.org/html/2607.08915#bib.bib1)\]represents each sample data as a bipartite graph where feature nodes connect only to observed values, naturally accommodating arbitrary missingness patterns without imputation\. However, GRAPE treats all missingness patterns identically: two patients with different patterns of missing tests receive equivalent graph structures provided they share the same values for observed features, discarding potentially valuable information about which measurements were deemed necessary\.

This raises a fundamental question: does explicitly encoding missingness patterns improve predictive performance? And critically, under what conditions does this added complexity justify itself? These questions carry practical significance beyond academic interest, as pattern\-aware methods introduce architectural complexity and computational overhead that may not always be warranted\.

We present pattern\-aware extensions to GRAPE that explicitly encode missingness patterns through various embedding strategies\. We developed four approaches: learned embeddings that train end\-to\-end with the model, random frozen embeddings that never update during training, statistical features derived from missingness patterns, and hierarchical encoding that learns compressed pattern representations\. Through evaluation across seven diverse datasets, we observed substantial but heterogeneous improvements\.

Our main contributions are:

- •Pattern\-aware graph neural networks that incorporate missingness patterns, achieving 17% average improvement in balanced accuracy across seven datasets
- •Evidence that simple random embeddings \(0\.650 balanced accuracy\) perform comparably to learned embeddings \(0\.663\), suggesting pattern distinction matters more than optimization
- •Demonstration that attention mechanisms become less critical with pattern information—simple mean aggregation achieves competitive results \(0\.640 vs 0\.645\)
- •Analysis revealing dataset\-specific effectiveness ranging from 80% improvement \(annealing\) to 4% \(hepatitis, soybean\)

![Refer to caption](https://arxiv.org/html/2607.08915v1/images/GRAPE_updated.jpg)Figure 1:Pattern\-aware GRAPE architecture\. Left: A data matrix with missing values \(NA\) is converted to bipartite graphs where edges exist only for observed features\. Center: Binary missingness patterns𝐦\\mathbf\{m\}are extracted and encoded viaϕ​\(𝐦\)\\phi\(\\mathbf\{m\}\)to produce pattern embeddings𝐞p\\mathbf\{e\}\_\{p\}\. Right: Pattern embeddings are concatenated with observation node representations before message passing, enabling the model to distinguish samples with different missingness patterns\.
## IIBackground

### II\-AMissing Data Mechanisms

The missing data literature distinguishes three fundamental mechanisms\[[2](https://arxiv.org/html/2607.08915#bib.bib2),[3](https://arxiv.org/html/2607.08915#bib.bib3)\]\. Missing Completely At Random \(MCAR\) occurs when missingness is independent of both observed and unobserved data—for example, equipment randomly failing regardless of patient characteristics\. Missing At Random \(MAR\) occurs when missingness depends on observed data but not on the missing values themselves—for instance, younger patients being less likely to complete optional questionnaires\. Missing Not At Random \(MNAR\) represents the case where missingness depends on the unobserved values themselves, such as high\-income individuals refusing to report earnings precisely because they do not want to disclose in full\.

Most imputation methods assume MCAR or MAR conditions\. Traditional approaches include mean imputation, k\-nearest neighbors \(KNN\)\[[4](https://arxiv.org/html/2607.08915#bib.bib4)\], and Multiple Imputation by Chained Equations \(MICE\)\[[5](https://arxiv.org/html/2607.08915#bib.bib5)\]\. While these methods perform well under MCAR or MAR, they can introduce bias under MNAR by failing to account for the informative nature of missingness\. Pattern mixture models\[[6](https://arxiv.org/html/2607.08915#bib.bib6)\]and selection models\[[7](https://arxiv.org/html/2607.08915#bib.bib7)\]explicitly address MNAR but require strong parametric assumptions, which limit its practical applicability\.

Our approach does not assume a specific missingness mechanism\. Instead, we empirically test whether incorporating missingness patterns improves prediction, which could benefit under MAR or MNAR conditions where patterns correlate with the target variable\.

### II\-BGraph Neural Networks for Tabular Data

General neural networks expect fixed\-length feature vectors, creating a mismatch with incomplete data where different samples may have different subsets of observed features\. Graph Neural Networks \(GNNs\) address this through flexible graph representations that naturally accommodate variable structure\.

GRAPE\[[1](https://arxiv.org/html/2607.08915#bib.bib1)\]creates an individual bipartite graph for each sample, with one observation node and one feature node per variable\. Edges connect the observation node to feature nodes only for observed values, with each edge carrying the observed value as an attribute\. The architecture employs message passing\[[10](https://arxiv.org/html/2607.08915#bib.bib10),[11](https://arxiv.org/html/2607.08915#bib.bib11)\]to propagate information through this graph structure, producing an observation node embedding that feeds into a classifier\.

GRAPE showed strong empirical performance on benchmarks with missing data\[[1](https://arxiv.org/html/2607.08915#bib.bib1)\]\. However, the original construction of GRAPE has a limitation: while the graph structure reflects which features are observed, the missingness pattern is not explicit represented as a learnable feature\. As a result, the model has no way to to learn that the pattern of missing features itself can contribute to predicting the outcome\. Recent work has begun addressing this limitation through pattern\-adaptive learning\[[8](https://arxiv.org/html/2607.08915#bib.bib8)\]and attention\-based approaches conditioned on missing data patterns\[[9](https://arxiv.org/html/2607.08915#bib.bib9)\]\.

### II\-CPattern Embeddings in Deep Learning

Recent work has explored incorporating missingness patterns into neural network architectures\. Simple approaches append binary indicator features\[[12](https://arxiv.org/html/2607.08915#bib.bib12)\], while more sophisticated methods like GAIN\[[13](https://arxiv.org/html/2607.08915#bib.bib13)\], MisGAN\[[14](https://arxiv.org/html/2607.08915#bib.bib14)\], HI\-VAE\[[15](https://arxiv.org/html/2607.08915#bib.bib15)\], and VAEM\[[16](https://arxiv.org/html/2607.08915#bib.bib16)\]learn joint representations of data and missingness\. However, these approaches primarily target imputation quality rather than direct prediction from incomplete data\. In contrast, We operate directly on incomplete data without imputation, leveraging graph representations while augmenting them with explicit pattern encoding\.

## IIIGRAPE Architecture and Limitation

### III\-AGraph Construction

GRAPE represents each data sample as a bipartite graph with one observation nodev0v\_\{0\}andddfeature nodesv1,…,vdv\_\{1\},\\ldots,v\_\{d\}\. Edges\(v0,vi\)\(v\_\{0\},v\_\{i\}\)connect the observation node to feature nodeiionly when featureiiis observed, carrying the observed valuexix\_\{i\}as an edge attribute\. Node features use one\-hot encoding to distinguish node types and identities\.

### III\-BMessage Passing and Limitation

The GRAPE architecture uses graph attention networks\[[11](https://arxiv.org/html/2607.08915#bib.bib11)\]to propagate information through the bipartite graph\. Feature nodes aggregate information from their connected edges, and the observation node aggregates from all connected feature nodes\. This produces a fixed\-size embedding for the observation node that serves as input to a classifier\.

The critical limitation of GRAPE is that its graph structure depends only on observed values, not on the missingness pattern\. Two samples with identical values for the same subset of features produce identical embeddings, regardless of which other features are missing\. For instance, when physicians order different tests for patients with similar symptoms, this embedding process discards potentially valuable diagnostic information\.

## IVPattern\-Aware GRAPE

We extend GRAPE to explicitly encode missingness patterns by incorporating pattern embeddings into the observation node representation\. Figure[1](https://arxiv.org/html/2607.08915#S1.F1)illustrates our Pattern\-Aware GRAPE architecture\. Let𝐦∈\{0,1\}d\\mathbf\{m\}\\in\\\{0,1\\\}^\{d\}denote the binary missingness indicator vector wheremi=1m\_\{i\}=1if featureiiis observed\. We compute a pattern embedding𝐞p=f​\(𝐦\)\\mathbf\{e\}\_\{p\}=f\(\\mathbf\{m\}\)and incorporate it into the observation node before message passing\.

### IV\-APattern Encoding Strategies

We investigated four approaches for computing pattern embeddings:

Learned Pattern Embeddings:We maintain a learnable embedding matrix𝐄∈ℝP×de​m​b\\mathbf\{E\}\\in\\mathbb\{R\}^\{P\\times d\_\{emb\}\}wherePPis the number of unique patterns in the training set andde​m​bd\_\{emb\}is the embedding dimension\. Each unique pattern is assigned an index, and the embedding is retrieved via table lookup\. The embeddings are trained end\-to\-end with the rest of the model\.

Random Pattern Embeddings:Rather than learning pattern\-specific embeddings, we use random projections inspired by the Johnson\-Lindenstrauss lemma\[[17](https://arxiv.org/html/2607.08915#bib.bib17)\]\. We compute𝐞p=𝐖r​𝐦\\mathbf\{e\}\_\{p\}=\\mathbf\{W\}\_\{r\}\\mathbf\{m\}where𝐖r∈ℝde​m​b×d\\mathbf\{W\}\_\{r\}\\in\\mathbb\{R\}^\{d\_\{emb\}\\times d\}is a random Gaussian matrix that remains frozen throughout training\. This provides a fixed, pattern\-specific signature without task\-specific optimization\.

Statistical Pattern Features:We compute statistical summaries of the missingness pattern: \(1\) fraction of features observed, \(2\) number of missing features, \(3\) positions of first and last missing features, and \(4\) length of longest consecutive run of missing features\. These features are concatenated and passed through a learned linear projection to produce the pattern embedding\.

Hierarchical Pattern Embeddings:We apply a two\-layer feedforward network to the binary indicator vector, producing a compressed representation that the model can adapt to capture relevant pattern structure\. The first layer projects𝐦\\mathbf\{m\}to a hidden dimension, applies ReLU activation, and the second layer projects to the embedding dimension\.

### IV\-BIntegration with GRAPE

Pattern embeddings are concatenated with the observation node’s initial features before the first message passing layer\. This allows pattern information to flow through the graph during all aggregation steps\. The observation node thus receives information from both the values of observed features \(via edge messages\) and the pattern of which features are available \(via the pattern embedding\)\.

Formally, if𝐡0\(0\)\\mathbf\{h\}\_\{0\}^\{\(0\)\}represents the observation node’s initial features and𝐞p\\mathbf\{e\}\_\{p\}is the pattern embedding, we initialize the observation node as𝐡0=\[𝐡0\(0\)∥𝐞p\]\\mathbf\{h\}\_\{0\}=\[\\mathbf\{h\}\_\{0\}^\{\(0\)\}\\\|\\mathbf\{e\}\_\{p\}\]where∥\\\|denotes concatenation\. Standard GRAPE message passing then proceeds on this augmented representation\.

TABLE I:Overall Performance \(Mean±\\pmStd across 7 datasets\)

## VExperimental Setup

### V\-ADatasets

We evaluate on seven datasets with naturally occurring missing data from the UCI Machine Learning Repository:

- •Annealing\(898 samples, 38 features, 65% missing\): Steel annealing prediction
- •Hepatitis\(155 samples, 19 features, 5\.7% missing\): Hepatitis survival prediction
- •Soybean\(307 samples, 35 features, 6\.6% missing\): Soybean disease classification
- •Thyroid\(3,772 samples, 25 features, 78\.2% missing\): Thyroid disease diagnosis
- •Voting\(435 samples, 16 features, 5\.6% missing\): Congressional voting patterns
- •Physionet Sepsis\(5,000 samples, 40 features, 28\.6% missing\): Early sepsis prediction
- •NHANES\(8,591 samples, 145 features, 39\.3% missing\): Health condition classification

### V\-BMethods and Baselines

We compare Pattern\-Aware GRAPE variants against traditional baselines:

Imputation Baselines:Mean imputation, median imputation, KNN imputation \(k=5\), and MICE\[[5](https://arxiv.org/html/2607.08915#bib.bib5)\]\. After imputation, we train standard feedforward networks\.

GRAPE Baselines \(No Pattern Awareness\):

- •GRAPE\-NoPattern: Original GRAPE with graph attention networks \(GAT\) on bipartite graphs, no pattern encoding
- •GRAPE\-Bipartite: Standard GRAPE implementation with GAT, no pattern encoding

Pattern\-Aware Methods \(GAT \+ Pattern Encoding\):

- •GRAPE\-LearnedPattern: GAT with learned pattern embeddings
- •GRAPE\-RandomPattern: GAT with frozen random pattern embeddings
- •GRAPE\-Statistical: GAT with statistical pattern features
- •GRAPE\-Hierarchical: GAT with hierarchical compressed representations
- •GRAPE\-MaskAware: GAT with simple mask concatenation

Ablation Study:

- •GRAPE\-NoAttention: Pattern encoding with simple mean aggregation \(no attention\), testing whether attention mechanisms are necessary when patterns are available\.

### V\-CTraining Details

We use 60% training, 20% validation, 20% test splits with stratification\. Each experiment runs with 5 random seeds\. We train for up to 200 epochs with early stopping \(patience=30\) based on validation balanced accuracy\. Hidden dimension is 64, learning rate is 0\.001 with Adam optimizer, batch size is 32, and we apply 20% dropout and 30% edge dropout for regularization\.

### V\-DEvaluation Metrics

We report four metrics, chosen to provide robust evaluation on imbalanced datasets:

Balanced Accuracyaverages the recall \(true positive rate\) across allCCclasses:

Balanced Accuracy=1C​∑c=1CT​PcT​Pc\+F​Nc\\text\{Balanced Accuracy\}=\\frac\{1\}\{C\}\\sum\_\{c=1\}^\{C\}\\frac\{TP\_\{c\}\}\{TP\_\{c\}\+FN\_\{c\}\}\(1\)whereT​PcTP\_\{c\}andF​NcFN\_\{c\}are true positives and false negatives for classcc\. Standard accuracy can be misleading when classes are imbalanced—a classifier predicting only the majority class achieves high accuracy but zero recall on minority classes\. Balanced accuracy penalizes this behavior\.

F1\-Macrocomputes the F1 score for each class independently, then averages:

F1\-Macro=1C​∑c=1C2⋅Pc⋅RcPc\+Rc\\text\{F1\-Macro\}=\\frac\{1\}\{C\}\\sum\_\{c=1\}^\{C\}\\frac\{2\\cdot P\_\{c\}\\cdot R\_\{c\}\}\{P\_\{c\}\+R\_\{c\}\}\(2\)wherePcP\_\{c\}andRcR\_\{c\}are precision and recall for classcc\. Unlike micro\-averaged F1 \(which aggregates predictions before computing the score\), F1\-macro weights all classes equally\.

Matthews Correlation Coefficient \(MCC\)\[[18](https://arxiv.org/html/2607.08915#bib.bib18)\]measures correlation between predicted and true labels\. For binary classification:

MCC=T​P⋅T​N−F​P⋅F​N\(T​P\+F​P\)​\(T​P\+F​N\)​\(T​N\+F​P\)​\(T​N\+F​N\)\\text\{MCC\}=\\frac\{TP\\cdot TN\-FP\\cdot FN\}\{\\sqrt\{\(TP\+FP\)\(TP\+FN\)\(TN\+FP\)\(TN\+FN\)\}\}\(3\)MCC ranges from−1\-1\(perfect misclassification\) to\+1\+1\(perfect classification\), with 0 indicating random prediction\. We use the multiclass generalization for datasets with more than two classes\. MCC is considered particularly reliable for imbalanced datasets as it accounts for all four confusion matrix quadrants\.

Standard Accuracy\(fraction of correct predictions\) is included for completeness, though it is less informative for imbalanced data\.

We use paired t\-tests to assess statistical significance of improvements over the GRAPE\-NoPattern baseline\.

## VIResults

### VI\-AOverall Performance

Table[I](https://arxiv.org/html/2607.08915#S4.T1)shows average performance across all datasets\. Pattern\-aware methods substantially outperform baselines, with GRAPE\-HierarchicalPattern achieving 0\.669±\\pm0\.249 balanced accuracy compared to 0\.550±\\pm0\.253 for GRAPE\-NoPattern \(baseline\) and 0\.478–0\.513 for imputation methods\.

Across all metrics, pattern\-aware methods show consistent improvements over the baseline:

- •Balanced Accuracy: 0\.550→\\rightarrow0\.645 \(\+17\.1%,p<0\.0001p<0\.0001\)
- •F1\-Macro: 0\.474→\\rightarrow0\.579 \(\+22\.1%\)
- •MCC: 0\.358→\\rightarrow0\.482 \(\+34\.6%\)
- •Accuracy: 0\.728→\\rightarrow0\.813 \(\+11\.7%\)

However, these aggregate results mask substantial dataset\-specific variation\.

### VI\-BDataset\-Specific Performance

Table[II](https://arxiv.org/html/2607.08915#S6.T2)reveals heterogeneous effectiveness across datasets\. Pattern\-aware methods provide dramatic improvements on annealing \(\+80% balanced accuracy\) and substantial gains on NHANES \(\+22%\) and Physionet Sepsis \(\+11%\), but minimal benefits on hepatitis, soybean, and voting \(\+4–5%\)\.

TABLE II:Performance Improvements by DatasetStatistical significance tests \(paired t\-test vs baseline\) show:

- •Significant improvements \(p<0\.05p<0\.05\):Annealing, NHANES, Physionet
- •Non\-significant:Hepatitis, Soybean, Voting, Thyroid

![Refer to caption](https://arxiv.org/html/2607.08915v1/images/figure2_method_comparison_heatmap.png)Figure 2:Heatmap showing balanced accuracy for each method\-dataset combination\. Pattern\-aware methods \(top rows\) consistently outperform baselines on annealing, NHANES, and Physionet datasets\.
### VI\-CAblation Study: Role of Attention

To isolate the contribution of attention mechanisms, we compare two methods that both use pattern encoding but differ only in their aggregation strategy:

- •GRAPE\-LearnedPattern: Pattern encoding \+ GAT \(attention\-based aggregation\)
- •GRAPE\-NoAttention: Pattern encoding \+ mean aggregation \(no attention\)

A surprising finding emerges GRAPE\-NoAttention achieves 0\.640±\\pm0\.249 balanced accuracy, nearly matching GRAPE\-LearnedPattern at 0\.663±\\pm0\.264\.

On individual datasets:

TABLE III:NoAttention vs\. LearnedPattern ComparisonThis suggests that when pattern information is explicitly encoded, attention mechanisms provide only marginal additional benefit\. The pattern embedding already captures which features are available, reducing the need for the model to infer this from graph structure via attention\.

### VI\-DRandom vs Learned Embeddings

GRAPE\-RandomPattern \(0\.650 balanced accuracy\) performs comparably to GRAPE\-LearnedPattern \(0\.663\), despite never updating its embeddings during training in Table[I](https://arxiv.org/html/2607.08915#S4.T1)\. We compare Random and Learned Pattern for each Dataset in Table[IV](https://arxiv.org/html/2607.08915#S6.T4)\.

TABLE IV:Random vs Learned Pattern EmbeddingsThe minimal difference \(1\.3% average\) suggests that simply having distinct pattern representations may be more important than task\-specific optimization\. Random projections may also provide regularization benefits\.

## VIIDiscussion

### VII\-AKey Findings and Implications

Our experiments reveal several important findings:

1\. Heterogeneous Benefits:Pattern awareness provides dramatic improvements on some datasets \(annealing: \+80%\) but minimal benefits on others \(voting: \+4%\)\. This heterogeneity indicates that dataset characteristics beyond simple missingness rates determine when pattern encoding helps\. The variation does not clearly correlate with missingness percentage—annealing \(65% missing\) shows large gains while thyroid \(78% missing\) shows minimal improvement\.

2\. Simple Encodings Suffice:Random frozen embeddings \(0\.650\) perform nearly as well as learned embeddings \(0\.663\), and simple mean aggregation with patterns \(0\.640\) matches attention\-based methods \(0\.645\)\. This challenges assumptions about architectural complexity—when missingness patterns contain signal, even simple encoding strategies unlock substantial gains\.

3\. Consistent Multi\-Metric Improvements:Pattern\-aware methods improve not just balanced accuracy \(\+17%\) but also F1\-macro \(\+22%\) and especially MCC \(\+35%\), indicating robust performance gains across different evaluation perspectives\. This consistency suggests genuine improvement rather than metric\-specific artifacts\.

4\. Computational Efficiency:The strong performance of NoAttention and RandomPattern variants has practical implications\. Systems can achieve most benefits of pattern awareness with:

- •Fixed random projections \(no pattern\-specific parameters to learn\)
- •Simple mean aggregation \(no attention computations\)
- •Minimal overhead \(5–15% increased training time\)

### VII\-BWhen Does Pattern Awareness Help?

While we cannot definitively predict effectiveness from dataset characteristics alone, our results suggest pattern awareness is most beneficial when:

- •The dataset has structured missingness \(e\.g\., medical tests ordered based on symptoms\)
- •Sample size is sufficient relative to pattern complexity
- •Baseline performance is not already near\-optimal \(ceiling effects on voting dataset\)

The poor absolute performance on thyroid \(all methods<<20% balanced accuracy\) suggests fundamental dataset challenges that pattern awareness cannot overcome\.

### VII\-CComputational Overhead Analysis

Table[V](https://arxiv.org/html/2607.08915#S7.T5)reports inference latency measured on an NVIDIA A100 GPU with batch size 32\.

TABLE V:Inference Latency \(NVIDIA A100 GPU, batch size 32\)#### Complexity Analysis

Letdddenote the number of features,dhd\_\{h\}the hidden dimension,de​m​bd\_\{emb\}the pattern embedding dimension,HHthe number of attention heads, andEEthe average number of graph edges per sample\. The computational cost per forward pass is dominated by graph attention layers:

Costbaseline=O​\(E⋅H2⋅dh2\)\\text\{Cost\}\_\{\\text\{baseline\}\}=O\(E\\cdot H^\{2\}\\cdot d\_\{h\}^\{2\}\)\(4\)
Pattern\-aware variants add pattern encoding with cost:

Costpattern=O​\(d⋅de​m​b\)\+O​\(E⋅de​m​b⋅dh\)\\text\{Cost\}\_\{\\text\{pattern\}\}=O\(d\\cdot d\_\{emb\}\)\+O\(E\\cdot d\_\{emb\}\\cdot d\_\{h\}\)\(5\)
For our architecture \(d=38d=38,de​m​b=32d\_\{emb\}=32,dh=64d\_\{h\}=64,H=4H=4,E≈26E\\approx 26\), this adds approximately 54K operations to the baseline 893K operations per forward pass, yielding 6% overhead\. LearnedPattern storesP×de​m​bP\\times d\_\{emb\}parameters forPPunique patterns; RandomPattern uses a frozen random projection, adding zero trainable parameters\.

NoAttention eliminates theH2H^\{2\}factor from attention:

Costno\-attn=O​\(E⋅dh2\)\\text\{Cost\}\_\{\\text\{no\-attn\}\}=O\(E\\cdot d\_\{h\}^\{2\}\)\(6\)
reducing complexity by approximatelyH2=16×H^\{2\}=16\\times, explaining the observed 76% speedup while maintaining competitive accuracy\.

#### Practical Implications

Pattern encoding performs a simple matrix multiplication \(d×de​m​b=38×32=1,216d\\times d\_\{emb\}=38\\times 32=1\{,\}216operations for RandomPattern\) or table lookup \(LearnedPattern\)\. The measured 5% training overhead primarily reflects slightly larger node features in the first graph layer \(concatenating the 32\-dimensional pattern embedding increases dimensions from 64 to 96\)\. Inference latency increases by only 0\.43ms \(\+9\.8%\) for LearnedPattern on an NVIDIA A100 GPU, negligible for practical deployment\. HierarchicalPattern adds the least overhead \(\+8\.5%\), while HandCraftedPattern is substantially slower \(\+62\.9%\) due to CPU\-based statistical feature extraction\.

All pattern\-aware variants are suitable for production\. RandomPattern adds zero trainable parameters, while LearnedPattern stores only 4,800 parameters \(150 patterns×\\times32 dimensions = 19\.2KB\)\. The minimal overhead, combined with substantial accuracy improvements on datasets with informative missingness patterns, makes pattern\-aware methods immediately applicable to real\-world systems\.

### VII\-DLimitations

A few limitations of this GRAPE extension warrant discussion:

Dataset Size:Our datasets range from 155 to 8,591 samples\. Small datasets \(hepatitis: 155, soybean: 307\) show high variance, making it difficult to draw strong conclusions\. These datasets were selected due to their diversity, common\-usage, and inclusion of missingness patterns\.

High Variance:Standard deviations exceeding 0\.25 for many methods suggest some instability\. More seeds or different initialization strategies might improve reliability\. However, the improvements from pattern awareness substantially exceeds the variance, demonstrating reasonably strong benefits\.

Generalization:Seven datasets may be insufficient to fully characterize when pattern awareness helps\. Evaluation on larger, more diverse datasets would strengthen conclusions\.

Missing Data Mechanisms:We do not explicitly test different missingness mechanisms \(MCAR/MAR/MNAR\)\. Controlled experiments with synthetic missingness could provide clearer insights, but in reality, real world data commonly has unknown missingness mechanisms\. The application of this method to unknown situations constitutes a more practical deployment of this method with reasonable success and tradeoffs\.

## VIIIRelated Work

Deep Learning with Missing Data:Recent approaches include GAIN\[[13](https://arxiv.org/html/2607.08915#bib.bib13)\]for adversarial imputation, MisGAN\[[14](https://arxiv.org/html/2607.08915#bib.bib14)\]for learning from incomplete data, and VAEM\[[16](https://arxiv.org/html/2607.08915#bib.bib16)\]for heterogeneous data\. These focus primarily on imputation quality rather than direct prediction\.

Graph Neural Networks for Tabular Data:Beyond GRAPE, approaches include TabNet\[[19](https://arxiv.org/html/2607.08915#bib.bib19)\]with attention\-based feature selection and SAINT\[[20](https://arxiv.org/html/2607.08915#bib.bib20)\]with inter\-sample attention\. These methods typically require complete data or simple imputation\.

Missingness Pattern Exploitation:Pattern mixture models\[[6](https://arxiv.org/html/2607.08915#bib.bib6)\]and selection models\[[7](https://arxiv.org/html/2607.08915#bib.bib7)\]explicitly model missingness mechanisms but require strong parametric assumptions\. Recent work includes pattern\-adaptive learning\[[8](https://arxiv.org/html/2607.08915#bib.bib8)\]and spatiotemporal approaches\[[9](https://arxiv.org/html/2607.08915#bib.bib9)\]\.

Our work uniquely combines graph representations of incomplete data with explicit pattern encoding, demonstrating that simple encoding strategies can be surprisingly effective\.

## IXConclusions

We introduced pattern\-aware extensions to GRAPE that explicitly encode missingness patterns for prediction on incomplete tabular data\. Across seven UCI datasets, pattern\-aware methods achieved average improvements of 17% in balanced accuracy and 22% in F1\-macro, with dataset\-specific gains ranging from 4% to 80%\.

Three key insights emerge from our experiments:

1. 1\.Pattern awareness provides substantial but heterogeneous benefits\.Dramatic improvements on some datasets \(annealing: \+80%\) contrast with minimal gains on others \(voting: \+4%\), indicating dataset\-specific effectiveness\.
2. 2\.Simple encodings perform surprisingly well\.Random frozen embeddings achieve 98% of learned embedding performance, and mean aggregation with patterns matches attention\-based methods, challenging assumptions about architectural complexity\.
3. 3\.Attention mechanisms become less critical with pattern information\.The strong performance of GRAPE\-NoAttention suggests that pattern encoding provides sufficient signal for effective aggregation without complex attention computations\.

These findings have practical implications: practitioners can achieve most benefits of pattern awareness using computationally efficient approaches—random projections and simple aggregation—with minimal overhead\. However, the heterogeneous effectiveness across datasets highlights the need for empirical validation on each new application\.

Future work should focus on: \(1\) developing reliable indicators for when pattern encoding will help, \(2\) evaluating on larger and more diverse datasets, \(3\) testing with controlled missingness mechanisms, and \(4\) extending to regression and unsupervised tasks\. Understanding why certain datasets benefit dramatically while others show minimal improvement remains an important open question\.

## References

- \[1\]J\. You, X\. Ma, D\. Y\. Ding, M\. Kochenderfer, and J\. Leskovec, “Handling missing data with graph representation learning,” inAdvances in Neural Information Processing Systems \(NeurIPS\), vol\. 33, 2020, pp\. 19075–19087\.
- \[2\]R\. J\. Little and D\. B\. Rubin,Statistical Analysis with Missing Data, 3rd ed\. Hoboken, NJ: John Wiley & Sons, 2019\.
- \[3\]D\. B\. Rubin, “Inference and missing data,”Biometrika, vol\. 63, no\. 3, pp\. 581–592, 1976\.
- \[4\]O\. Troyanskaya, M\. Cantor, G\. Sherlock, P\. Brown, T\. Hastie, R\. Tibshirani, D\. Botstein, and R\. B\. Altman, “Missing value estimation methods for DNA microarrays,”Bioinformatics, vol\. 17, no\. 6, pp\. 520–525, 2001\.
- \[5\]S\. van Buuren and K\. Groothuis\-Oudshoorn, “mice: Multivariate imputation by chained equations in R,”Journal of Statistical Software, vol\. 45, no\. 3, pp\. 1–67, 2011\.
- \[6\]R\. J\. Little, “Pattern\-mixture models for multivariate incomplete data,”Journal of the American Statistical Association, vol\. 88, no\. 421, pp\. 125–134, 1993\.
- \[7\]J\. J\. Heckman, “Sample selection bias as a specification error,”Econometrica, vol\. 47, no\. 1, pp\. 153–161, 1979\.
- \[8\]Y\. Zhong, C\. Zhang, and J\. Liang, “Missingness\-pattern\-adaptive learning with incomplete data,”IEEE Transactions on Neural Networks and Learning Systems, 2023, doi: 10\.1109/TNNLS\.2023\.3262968\.
- \[9\]I\. Marisca, A\. Cini, and C\. Alippi, “Graph\-based forecasting with missing data through spatiotemporal downsampling,” inProc\. International Conference on Machine Learning \(ICML\), 2024, pp\. 34668–34694\.
- \[10\]T\. N\. Kipf and M\. Welling, “Semi\-supervised classification with graph convolutional networks,” inProc\. International Conference on Learning Representations \(ICLR\), 2017\.
- \[11\]P\. Veličković, G\. Cucurull, A\. Casanova, A\. Romero, P\. Liò, and Y\. Bengio, “Graph attention networks,” inProc\. International Conference on Learning Representations \(ICLR\), 2018\.
- \[12\]M\. P\. Jones, “Indicator and stratification methods for missing explanatory variables in multiple linear regression,”Journal of the American Statistical Association, vol\. 91, no\. 433, pp\. 222–230, 1996\.
- \[13\]J\. Yoon, J\. Jordon, and M\. van der Schaar, “GAIN: Missing data imputation using generative adversarial nets,” inProc\. International Conference on Machine Learning \(ICML\), vol\. 80, 2018, pp\. 5689–5698\.
- \[14\]S\. C\. X\. Li, B\. Jiang, and B\. Marlin, “MisGAN: Learning from incomplete data with generative adversarial networks,” inProc\. International Conference on Learning Representations \(ICLR\), 2019\.
- \[15\]A\. Nazábal, P\. M\. Olmos, Z\. Ghahramani, and I\. Valera, “Handling incomplete heterogeneous data using VAEs,”Pattern Recognition, vol\. 107, p\. 107501, 2020\.
- \[16\]C\. Ma, S\. Tschiatschek, K\. Palla, J\. M\. Hernández\-Lobato, S\. Nowozin, and C\. Zhang, “VAEM: A deep generative model for heterogeneous mixed type data,” inAdvances in Neural Information Processing Systems \(NeurIPS\), vol\. 33, 2020, pp\. 11237–11247\.
- \[17\]W\. B\. Johnson and J\. Lindenstrauss, “Extensions of Lipschitz mappings into a Hilbert space,”Contemporary Mathematics, vol\. 26, pp\. 189–206, 1984\.
- \[18\]B\. W\. Matthews, “Comparison of the predicted and observed secondary structure of T4 phage lysozyme,”Biochimica et Biophysica Acta \(BBA\) \- Protein Structure, vol\. 405, no\. 2, pp\. 442–451, 1975\.
- \[19\]S\. Ö\. Arik and T\. Pfister, “TabNet: Attentive interpretable tabular learning,” inProc\. AAAI Conference on Artificial Intelligence, vol\. 35, no\. 8, 2021, pp\. 6679–6687\.
- \[20\]G\. Somepalli, M\. Goldblum, A\. Schwarzschild, C\. B\. Bruss, and T\. Goldstein, “SAINT: Improved neural networks for tabular data via row attention and contrastive pre\-training,” arXiv preprint arXiv:2106\.01342, 2021\.

Similar Articles

Target-Oriented Pretraining Data Selection via Neuron-Activated Graph

arXiv cs.CL

This paper introduces Neuron-Activated Graph (NAG) Ranking, a training-free framework for selecting pretraining data aligned with target tasks by identifying and ranking candidate data based on similarity in neuron activation patterns. The approach achieves 4.9% average improvement over random sampling and demonstrates that sparse neuron patterns capture functional capabilities for target learning.

Graph-Based Financial Fraud Detection with Calibrated Risk Scoring and Structural Regularization

arXiv cs.LG

This paper proposes a graph neural network framework for financial fraud detection that integrates transaction records and identity information into node attributes, employs a multi-layer message passing mechanism, and uses weighted supervision and structural consistency regularization to improve risk scoring and probability calibration. Experiments on a public dataset show the method outperforms existing approaches.