arXiv:2609.08055stat.MESep 2026

Manuscript Offprint

arXiv:2609.08055

Bayesian Matrix-Valued Graphs for Context-Dependent Multivariate Relationships

Papri Dey

PAPRI DEY

ABSTRACT. Many scientific graphs attach several variables to each node, so a single scalar edge weight cannot describe direction-dependent interactions. We model each edge by a symmetric positive-definite (SPD) matrix and infer a posterior over matrix-valued graph geometries, which we call the Bayesian matrix-valued graph (BMVG). We ask how these interactions reconfigure across contexts: how large the change is and which multivariate directions strengthen or weaken. The geodesic distance induced by the affine-invariant Riemannian metric (AIRM) quantifies deformation magnitude and generalized eigenvalues resolve its signed directions. Against fused graphical lasso, Bayesian multiple-GGM, and common principal components, BMVG is competitive on global precision recovery while retaining identifiable matrix-valued edge structure and accurately recovering edge-level deformation directions. In controlled known-truth experiments, it resolves structural change with increasing sample size, including orientation changes that leave ordinary eigenvalues unchanged. In one year of Bay Area weather data, the geometry of 12-hour change reconfigures spatial coupling about as much as whole seasons differ. In TCGA-BRCA, estrogen-receptor (ER)-associated reconfiguration concentrates on specific gene-module pairs and persists under graph-scaffold sparsification and removal of subgroup mean differences. These results establish posterior matrix-valued edge geometry as a unified framework for quantifying and interpreting context-dependent multivariate reconfiguration.

1. INTRODUCTION

A scalar graph edge records only how strongly two nodes are connected. This is inadequate when each node carries several variables. A weather station reports temperature, relative humidity, wind, and pressure; a biological module comprises several genes. The relationship between two such nodes can be strong along one combination of variables and weak along another, and it can rotate when the scientific context changes, a reconfiguration that no single scalar weight can express.

We therefore represent each edge ee of a fixed graph G=(V,E)G = (V, E) by a symmetric positive-definite (SPD) matrix We∈S++dW_e \in \mathcal{S}_{++}^d, i.e. x⊤Wex>0x^\top W_e x > 0 for every nonzero x∈Rdx \in \mathbb{R}^d. Inference targets the posterior of W={We}e∈EW = \{W_e\}_{e \in E}, a distribution over matrix-valued graph geometries rather than over scalar edge strengths.

Our aim is not to fit a graph in each context, but to characterize how the multivariate relationships it encodes change across contexts: different weather regimes, atmospheric state versus short-horizon innovation, or distinct tumor subgroups. We distinguish three complementary aspects of change: (1) magnitude, how far the corresponding SPD edge matrices move; (2) uncertainty, whether that separation exceeds the finite-sample variation expected from independently fitted posteriors under no structural change; and (3) direction, which multivariate combinations strengthen or weaken between contexts. Together these separate genuine, interpretable reconfiguration from ordinary estimation variability.

The ingredients are individually classical: affine-invariant geometry on SPD matrices [Bha07, PFA06], and Gaussian graphical models with cross-context comparison of covariance or precision structure [Lau96, Flu84, DWW14, PSV15]. We claim no new SPD metric or MCMC method. Our contribution is their graph-specific synthesis into a posterior over matrix-valued edges, and the demonstration that this representation directly characterizes edge-level directional reconfiguration and can recover it substantially more accurately than the comparison methods considered here. ConeMALA [Dey26] provides the geometry-aware MCMC inference engine used to sample these posteriors. Here we build on the resulting Bayesian matrix-valued graph (BMVG) posterior to study context-dependent deformation, uncertainty, and generalized directions of change.

Date: September 2026.

PAPRI DEY

Our contributions are as follows. First, we use the AIRM-induced geodesic distance as an intrinsic edge effect size and a generalized eigenproblem to resolve that distance into signed strengthening and weakening directions. Second, we introduce a same-truth reference that compares a planted change against the separation between posteriors fitted to two independent datasets from the same graph, so that finite-sample posterior spread is not mistaken for structural change. Third, on a 120-condition controlled grid we compare BMVG against fused graphical lasso [DWW14], Bayesian multiple-GGM [PSV15], and common principal components [Flu84], each in its native inference: BMVG is competitive on global precision recovery while retaining identifiable matrix-valued edge structure and accurately recovering edge-level deformation directions. Under the stated conditions, the matrix-valued edge parameterization is identifiable: the edge blocks are uniquely determined by the induced precision matrix. This permits context-dependent changes to be attributed to specific edges, whose deformation magnitude and generalized directions can then be estimated from the posterior. Finally, we evaluate the framework in controlled, meteorological, and biological settings, where it resolves orientation changes invisible to ordinary eigenvalues, finds that 12-hour weather innovation reconfigures spatial geometry about as much as whole seasons differ, and localizes estrogen-receptor-associated change in TCGA-BRCA to specific gene-module pairs that persist under scaffold and mean-shift perturbation.