Preprint
Article

This version is not peer-reviewed.

Local Alignment of Differential Causal Networks: A Methodological Framework for Detecting Recurrent Rewiring Motifs Across Multiple Systems

Submitted:

16 May 2026

Posted:

18 May 2026

You are already at the latest version

Abstract
Differential Causal Networks (DCNs) were introduced to represent changes between two causal networks inferred under different conditions. In their original use, however, DCNs remain pairwise objects: each differential graph summarizes rewiring within a single system, while common differential structures shared across many systems remain implicit. We introduce a methodological framework for the local alignment of DCNs aimed at detecting recurrent rewiring motifs, that is, small directed differential subnetworks that reappear across multiple systems under the same contrast. The proposed framework transforms each system-specific comparison into a signed directed differential graph, preserves both edge direction and change type, and searches for approximate local correspondences rather than enforcing a full-network mapping. The method consists of four steps: construction of signed DCNs, extraction of differential seeds, pairwise local alignment by seed-and-extend, and progressive multiple alignment to build consensus motifs. We define a score that combines node compatibility, differential-edge conservation, directional consistency, and recurrence support, and we complement the alignment procedure with null-model testing and robustness analysis. The result is a collection of consensus local differential modules ranked by recurrence, confidence, and statistical significance. In this formulation, DCNs become comparable units in a higher-order analysis whose goal is not merely to describe pairwise causal change, but to identify the same local rewiring logic reused across multiple systems.
Keywords: 
;  ;  

1. Introduction

Causal networks provide a directed representation of dependency structure and are increasingly used to move from purely associative descriptions to mechanistic hypotheses about how changes propagate in complex systems. In this context, Differential Causal Networks (DCNs) offer a natural extension of differential network analysis by focusing on changes in directed edges rather than on changes in undirected association alone. A DCN is obtained by comparing two causal networks inferred under two conditions and retaining only the edges that differ between them [1,2,3].
This pairwise formulation is useful when the objective is to describe rewiring within a single system. However, when several systems are available, a more ambitious comparative question arises: do different systems exhibit the same local pattern of causal change? In other words, can one discover a small directed differential subnetwork that recurs across multiple system-specific DCNs under the same experimental or observational contrast? This question cannot be answered by inspecting each DCN independently, because recurrence is inherently a multi-network property.
The present manuscript addresses this methodological problem by proposing a framework for local alignment of DCNs. The term local alignment is used deliberately. Global network alignment attempts to match complete networks or very large fractions of them. In contrast, local alignment searches for compact, highly conserved subnetworks and is therefore better suited to identify recurring modules when whole-network similarity is neither expected nor required [4]. For differential causal analysis, this distinction is crucial: recurrent rewiring is likely to appear as a local motif rather than as full-system correspondence.
The central idea of the framework is to regard each DCN as a rewiring map. Similarity between two rewiring maps is then defined not by the preservation of ordinary interaction structure, but by the preservation of differential structure: a local region in one system is aligned to a local region in another if both exhibit compatible gains, losses, or reversals of directed causal edges. This makes the problem distinct from classical network alignment and motivates a dedicated formulation that explicitly preserves edge direction, differential sign, and recurrence across multiple systems.
To this end, we make four contributions. First, we define a unified signed representation of DCNs that encodes gained, lost, and reversed causal relations within a single directed labeled graph. Second, we formulate pairwise local alignment of DCNs as a score-driven search for matching differential subnetworks. Third, we extend the pairwise procedure to a progressive multiple-alignment setting that returns consensus rewiring motifs together with their support across systems. Fourth, we introduce a significance and robustness layer based on degree- and label-preserving null models as well as edge-stability estimates inherited from causal discovery.
The resulting manuscript is intentionally methodological. It does not include application-specific biological interpretation. Instead, it establishes the theoretical language, the graph representation, the optimization target, and the algorithmic pipeline needed to transform DCNs from isolated pairwise summaries into a comparative framework for identifying recurrent local rewiring motifs across many systems.

2. Preliminaries: Causal Networks and Differential Causal Networks

Let S = { S 1 , S 2 , , S m } denote a collection of systems observed under the same contrast between two conditions, denoted by A and B. For each system S , causal discovery produces two directed causal networks
C ( A ) = ( V , E ( A ) ) , C ( B ) = ( V , E ( B ) ) ,
where V is the node set and E ( A ) , E ( B ) V × V are directed edge sets.
A causal edge ( u , v ) E ( A ) indicates that the state of node u is interpreted as a direct causal parent of node v under condition A. The same interpretation holds under condition B. The method used to infer each causal network is external to the alignment framework: any causal-discovery algorithm can be employed, provided that it returns a directed graph together with optional confidence information on edges.
Definition 1
(Differential Causal Network). Given two causal networks C ( A ) and C ( B ) on the same node set V , a Differential Causal Network for system S is a graph that represents the directed edges whose presence or direction differs between the two conditions.
Existing DCN formulations can be described in three equivalent views:
(i)
a one-sided difference E ( B ) E ( A ) collecting edges gained under condition B;
(ii)
the opposite one-sided difference E ( A ) E ( B ) collecting edges lost under condition B;
(iii)
a symmetric difference collecting all edges that belong to exactly one of the two networks.
These three views are useful descriptively, but the alignment task requires a unified graph object in which all types of rewiring can be handled jointly. This motivates the signed differential representation introduced in the next section.

3. Signed Representation of DCNs

For each system S , let A ( A ) and A ( B ) be the adjacency matrices of C ( A ) and C ( B ) , respectively. We define the signed differential matrix
Δ = A ( B ) A ( A ) .
If the networks are unweighted, each entry satisfies Δ ( i , j ) { 1 , 0 , 1 } , with the interpretation
Δ ( i , j ) = 1 if i j is present in C ( B ) but not in C ( A ) , 1 if i j is present in C ( A ) but not in C ( B ) , 0 otherwise .
Definition 2
(Signed Differential Causal Network). The signed DCN associated with system S is the directed labeled graph
D = ( V , E , λ , w ) ,
where
E = { ( i , j ) V × V : Δ ( i , j ) 0 } ,
λ ( i , j ) = Δ ( i , j ) is the differential label, and w ( i , j ) [ 0 , 1 ] is an optional confidence score attached to the differential edge.
The label λ ( i , j ) = 1 denotes a gained edge, while λ ( i , j ) = 1 denotes a lost edge. Edge reversals are represented by a pair of opposite signed entries. For example, if i j is present in C ( A ) and j i is present in C ( B ) , then the reversal is encoded by
Δ ( i , j ) = 1 , Δ ( j , i ) = 1 .
Thus gains, losses, and reversals are expressed in a single object without introducing separate graphs.
This representation is particularly convenient for local alignment because it turns each system-specific comparison into a directed graph whose edges carry the information that matters for recurrence: the existence of a change, its direction, and its type.

4. Local Alignment of two DCNs

We now consider two signed DCNs,
D p = ( V p , E p , λ p , w p ) , D q = ( V q , E q , λ q , w q ) .
The objective is to detect small connected differential subgraphs that can be regarded as instances of the same rewiring motif.

4.1. Motif Model

Definition 3
(Local rewiring motif). A local rewiring motif is a connected directed labeled graph
M = ( U , F , λ M ) ,
where U is a finite motif node set, F U × U is a directed edge set, and λ M : F { 1 , 1 } assigns a differential sign to each motif edge.
An occurrence of M in D p is an injective mapping π p : U V p such that each motif edge is mapped to a differential edge with matching sign:
( u , v ) F ( π p ( u ) , π p ( v ) ) E p and λ M ( u , v ) = λ p π p ( u ) , π p ( v ) .
The same definition applies to D q through a mapping π q .
In practice, exact matching is often too restrictive. We therefore consider approximate alignment, in which missing edges, incompatible labels, and unmatched nodes are allowed but penalized.

4.2. Node Correspondence

The pairwise alignment framework accommodates two scenarios.

Shared-node scenario.

All systems are defined on the same set of labeled nodes, so alignment is performed directly between identically named nodes. This is the simplest setting and often arises when all DCNs are inferred over the same measured variables.

Heterogeneous-node scenario.

Different systems can have different node sets. In this case, a node-compatibility function
σ p q : V p × V q [ 0 , 1 ]
is introduced to quantify whether two nodes are admissible matches. The value of σ p q may combine prior correspondence information, node annotations, local topological descriptors, graph embeddings, or causal-role summaries.

4.3. Alignment Score

A local alignment consists of two connected induced differential subgraphs H p D p and H q D q together with a partial injective mapping
ϕ : V ( H p ) V ( H q ) .
We score an alignment by combining four ingredients:
Score ( H p , H q , ϕ ) = α NC ( ϕ ) + β EC ( ϕ ) + γ LC ( ϕ ) + δ WC ( ϕ ) η Gap ( ϕ ) ,
where:
  • NC ( ϕ ) is the node compatibility term;
  • EC ( ϕ ) is the edge conservation term;
  • LC ( ϕ ) is the label and direction consistency term;
  • WC ( ϕ ) is an optional edge-confidence consistency term;
  • Gap ( ϕ ) penalizes unmatched nodes, missing edges, and conflicts.
A concrete instantiation is
NC ( ϕ ) = 1 | Dom ( ϕ ) | u Dom ( ϕ ) σ p q u , ϕ ( u ) ,
EC ( ϕ ) = 1 | P ϕ | ( u , v ) P ϕ 1 ( u , v ) E p ϕ ( u ) , ϕ ( v ) E q ,
LC ( ϕ ) = 1 | P ϕ | ( u , v ) P ϕ 1 λ p ( u , v ) = λ q ϕ ( u ) , ϕ ( v ) ,
WC ( ϕ ) = 1 | P ϕ | ( u , v ) P ϕ min w p ( u , v ) , w q ϕ ( u ) , ϕ ( v ) ,
where P ϕ denotes the set of ordered node pairs whose endpoints are both matched by ϕ .
The separation between edge conservation and label consistency is essential. Two subnetworks may have the same topology but encode different rewiring logic if the corresponding edges carry different signs or incompatible directions. For DCN alignment, topological similarity alone is therefore insufficient.

4.4. Seed Generation and Local Extension

Exact optimization of Equation (12) is computationally prohibitive because the search is closely related to the maximum common subgraph and subgraph isomorphism problems. We therefore adopt a heuristic seed-and-extend strategy.
First, each DCN is filtered to remove low-confidence differential edges. Second, all connected signed directed graphlets up to a small size k 0 are enumerated. Each graphlet is converted into a canonical code that preserves edge direction and differential sign. Matching or near-matching graphlets in the two DCNs are used as seeds.
Each seed is then expanded iteratively by considering neighboring nodes and edges whose addition maximizes the marginal increase in the alignment score. To avoid early commitment to a single extension path, a beam of the top b partial alignments is maintained. Expansion stops when no candidate extension improves the score by at least a user-defined threshold τ .

5. Multiple Local Alignment Across Many Systems

Pairwise local alignment reveals whether two systems share a local rewiring pattern. Our main goal, however, is to identify motifs that recur across many systems. Let
D = { D 1 , D 2 , , D m }
denote the collection of signed DCNs.

5.1. Recurrent Motif Definition

Definition 4
(Recurrent rewiring motif). A local rewiring motif M is recurrent in the collection D if there exists a subset of systems
I M { 1 , 2 , , m }
with | I M | q , for some minimum support threshold q, such that each D with I M contains an exact or approximate occurrence of M.
The set I M is called the support set of the motif. Its cardinality,
supp ( M ) = | I M | ,
measures recurrence across systems.

5.2. Progressive Multiple Alignment

Direct simultaneous optimization over all DCNs is usually intractable. We therefore employ a progressive strategy inspired by multiple-alignment methods.

Step 1: pairwise similarity estimation.

For each pair ( D p , D q ) , we compute a similarity score based on seed overlap, signed graphlet similarity, or the best pairwise local alignment score.

Step 2: guide tree construction.

The pairwise similarity matrix is converted into a guide tree over systems using hierarchical clustering.

Step 3: progressive alignment.

The two most similar DCNs are aligned first, producing an initial consensus motif or consensus alignment object. The remaining systems are then incorporated one by one according to the guide tree by aligning each new DCN against the current consensus.

Step 4: motif consolidation.

Consensus motifs that overlap substantially in node columns and signed directed edge structure are merged, and their support sets are updated.

5.3. Consensus Representation

A multiple local alignment is represented by a consensus object
C = ( U , F , Λ , Π ) ,
where U is a set of alignment columns, F is a set of directed consensus edges, Λ stores the empirical label distribution for each consensus edge, and Π is the family of projection maps from the consensus object to each motif occurrence.
For each consensus edge e F , we record its empirical support
ρ ( e ) = 1 r t = 1 r 1 { e is instantiated in occurrence t } ,
where r is the number of aligned occurrences. Likewise, the consensus sign can be represented either by majority vote or by the full empirical distribution over { 1 , 1 } .
This representation yields a compact summary of a recurrent differential module together with its variability across systems. The output is therefore not a single rigid subgraph, but a consensus rewiring motif endowed with support statistics.

6. Scoring, Significance and Robustness

6.1. Recurrence-Aware Motif Ranking

To rank motifs after multiple alignment, we define a recurrence-aware score
RScore ( M ) = μ Score ¯ ( M ) + ν supp ( M ) m + ξ Coh ( M ) ζ Var ( M ) ,
where:
  • Score ¯ ( M ) is the average pairwise or consensus alignment score across occurrences;
  • supp ( M ) / m is the normalized support;
  • Coh ( M ) measures within-motif coherence of signs, directions, and node correspondences;
  • Var ( M ) penalizes motif instability across systems.
This formulation ensures that a motif is favored not only because it appears often, but also because it appears in a coherent manner.

6.2. Null Models and Statistical Significance

Observed recurrence may arise by chance if the signed DCNs are sparse, highly structured, or degree-skewed. For this reason, each candidate motif is evaluated against a null model. For every system-specific DCN D , we generate randomized signed differential graphs that preserve:
(a)
the number of nodes,
(b)
the in-degree and out-degree distributions,
(c)
the total number of positive and negative differential edges,
(d)
optionally, the distribution of edge-confidence values.
The complete alignment pipeline is then rerun on randomized collections
D * ( 1 ) , D * ( 2 ) , , D * ( B ) .
For an observed motif M, an empirical p-value is computed as
p ( M ) = 1 + # { b : RScore ( M b * ) RScore ( M ) } 1 + B ,
where M b * denotes the best null motif found in the b-th randomized replicate under the same motif-size regime. Multiple-testing correction can be applied across the final motif set using false-discovery-rate control.

6.3. Robustness to Upstream Causal Uncertainty

DCNs inherit uncertainty from the causal-discovery stage. Consequently, recurrence across systems should not be accepted unless the corresponding differential edges are themselves sufficiently stable within each system. Let
π ( i , j ) [ 0 , 1 ]
denote the estimated stability of differential edge ( i , j ) in system S , obtained for instance by bootstrap resampling, repeated causal discovery, or posterior edge probability.
These stability values can be used in two ways. First, unstable differential edges can be removed before alignment. Second, the confidence term WC ( ϕ ) in Equation (12) can be replaced by a stability-aware term. In this way, motif recurrence is required to be compatible with both between-system conservation and within-system reliability.

7. Algorithmic Workflow and Complexity

7.1. Workflow

The full pipeline is summarized in Algorithm 1.

7.2. Complexity Analysis

Let n = | V | and e = | E | denote the number of nodes and differential edges of system S . For simplicity, consider the average values n ¯ and e ¯ across systems.

Signed DCN construction.

If the two causal adjacency matrices are available explicitly, building D requires O ( n 2 ) time in the dense case or O ( e ( A ) + e ( B ) ) time in sparse form.

Seed enumeration.

Enumerating all connected graphlets up to size k 0 is exponential in k 0 but practical when k 0 is small and fixed. With bounded k 0 , the cost is polynomial in e ¯ .
Algorithm 1 Local multiple alignment of Differential Causal Networks
Require: 
Causal network pairs { ( C ( A ) , C ( B ) ) } = 1 m , edge-confidence information, parameters ( k 0 , b , τ , q )
Ensure: 
Ranked set of recurrent local rewiring motifs
  1:
for  = 1 to m do
  2:
    Build signed DCN D from C ( A ) and C ( B )
  3:
    Filter low-confidence differential edges
  4:
    Enumerate connected signed directed seeds up to size k 0
  5:
end for
  6:
for all pairs ( p , q ) with p < q  do
  7:
    Match compatible seeds between D p and D q
  8:
    Run seed-and-extend local alignment with beam width b
  9:
    Store best pairwise alignments and pairwise similarity score
10:
end for
11:
Build a guide tree from the pairwise similarity matrix
12:
Initialize consensus motifs from the strongest pairwise alignments
13:
for all systems according to the guide tree order do
14:
    Align the current DCN to existing consensus motifs
15:
    Update support, consensus labels, and confidence statistics
16:
end for
17:
Merge highly overlapping consensus motifs
18:
Score and rank motifs by recurrence-aware score
19:
Estimate empirical significance using randomized signed DCNs
20:
Return statistically supported recurrent motifs

Pairwise local alignment.

Let s p q be the number of compatible seeds for a pair ( D p , D q ) . If beam width is b and each expansion explores at most Δ candidate extensions for at most h steps, then the heuristic extension stage costs approximately
O s p q b h Δ .
Across all pairs, the total pairwise cost is
O p < q s p q b h Δ .

Multiple alignment.

Given K candidate motifs after the pairwise stage, progressive incorporation of the remaining systems scales approximately with the cost of aligning one DCN to one consensus motif times the number of candidate motifs retained. In practice, this stage is manageable if aggressive seed filtering and motif pruning are applied.

Null-model assessment.

If B randomized collections are generated, significance estimation increases runtime by a factor of approximately B + 1 . This step is embarrassingly parallel and can therefore be distributed efficiently.
Overall, the framework is heuristic rather than exact. Its computational feasibility depends on controlling the search space through confidence filtering, small seed size, beam-search truncation, and post hoc motif consolidation. This is appropriate because the target problem combines elements of graph matching, subgraph isomorphism, and multiple alignment, all of which are computationally demanding in their exact forms.

8. Discussion

The methodology introduced here reinterprets Differential Causal Networks as objects that can themselves be compared, aligned, and summarized across many systems. This shift is conceptually important. Traditional DCN analysis answers the question “what changes between condition A and condition B in one system?” The proposed framework answers a different question: “which local causal changes recur across many systems under the same contrast?” The latter is the natural setting for discovering common rewiring logic.
The emphasis on local rather than global alignment is not merely algorithmic convenience. It reflects the expectation that complex systems rarely share full-network differential correspondence, whereas they may reuse compact causal modules or motifs. By preserving edge direction and differential sign, the proposed formulation ensures that recurrence is assessed at the level of rewiring semantics, not just graph topology. This is the main reason why a dedicated DCN-alignment framework is needed instead of a direct reuse of ordinary network-alignment tools.
The framework is intentionally modular. Different causal-discovery procedures can be used upstream; different node-similarity functions can be integrated in heterogeneous settings; and different significance models can be substituted downstream. The core contribution is therefore not a single hard-coded algorithm, but a coherent methodology for converting collections of pairwise causal differences into a dictionary of recurrent local differential motifs.
Several methodological extensions are possible. One may replace heuristic beam search with integer programming or constraint-based search for small motifs, incorporate temporal ordering when systems are sampled along trajectories, or define multiscale motifs that interpolate between graphlets and larger differential modules. Another direction is to embed the alignment problem in a probabilistic latent-variable model in which the recurrent motif is treated as an unobserved template generating noisy system-specific occurrences.
In summary, local alignment provides the missing comparative layer for Differential Causal Networks. Once DCNs are represented as signed directed rewiring maps, one can search not only for edges that differ within a system, but also for the same local differential pattern that reappears across systems. This is the methodological basis for a systematic study of recurrent causal rewiring.

References

  1. J. Pearl. Causality: Models, Reasoning, and Inference. Cambridge University Press, 2nd edition, 2009.
  2. Ideker, T.; Krogan, N.J. Differential network biology. Mol. Syst. Biol. 2012, 8, 565. [Google Scholar] [CrossRef] [PubMed]
  3. Defilippo, A.; Giorgi, F.M.; Veltri, P.; Guzzi, P.H. Understanding complex systems through differential causal networks. Sci. Rep. 2024, 14. [Google Scholar] [CrossRef] [PubMed]
  4. González Laffitte, M.E.; de Mello Kock, A.; Stadler, P.F. Progressive multiple alignment of graphs. Algorithms 2024, 17, 116. [Google Scholar] [CrossRef]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.
Prerpints.org logo

Preprints.org is a free preprint server supported by MDPI in Basel, Switzerland.

Subscribe

© 2026 MDPI (Basel, Switzerland) unless otherwise stated

Accessibility

Disclaimer

Terms of Use

Privacy Policy

Privacy Settings