TL;DR
This paper introduces a privacy-preserving framework for distributed causal structure learning using Fully Homomorphic Encryption (FHE). By mathematically restructuring statistical tests and leveraging polynomial approximations for non-linear operations, the authors successfully execute complex conditional independence tests directly on encrypted data in tens of minutes instead of hours or days.
What Problem Does This Paper Address?
Causal structure learning aims to uncover directed acyclic graphs (DAGs) that represent probabilistic dependencies between variables—crucial for fields like autonomous driving and smart city traffic prediction. However, when data is distributed across multiple organizations or machines, aggregating this information to perform Conditional Independence (CI) tests risks leaking highly sensitive data.
While Fully Homomorphic Encryption (FHE) allows computation on encrypted data (ciphertexts) without decryption, it natively only supports addition and multiplication. Standard CI tests (like the $\chi^2$ and $G^2$ tests) rely heavily on division and logarithms. Implementing these non-linear operations directly in FHE typically results in massive, deep arithmetic circuits that are too computationally expensive to be practical.
Methods
The authors design a privacy-preserving distributed pipeline based on the popular PC-stable causal learning algorithm and the CKKS FHE scheme, which supports approximate floating-point arithmetic.
The core technical contributions center on making FHE mathematically viable for CI tests:
- Equation Simplification: Standard $\chi^2$ and $G^2$ tests require multiple division (reciprocal) steps. The authors mathematically refactored the equations to reduce the fraction terms, ensuring that each test circuit requires only a single reciprocal operation.
- Polynomial Approximations:
- Division ($1/x$): Approximated using the iterative Newton-Raphson method ($r_{t+1} = r_t(2 - xr_t)$), which converges quadratically using only multiplications and subtractions.
- Logarithm ($\log(x)$): Approximated via a 3-term Taylor series expansion centered at $x_0 = 1$, exploiting the fact that the ratio of observed to expected frequencies in the $G^2$ test hovers close to 1.
- SIMD Batching: Utilizing the batching capabilities of the CKKS scheme, the framework packs up to $2^{15}$ independent CI tests into a single ciphertext vector, executing them concurrently to achieve massive parallel speedups.
The overall workflow distributes frequency counting to local machines, while the coordinator aggregates and evaluates the CI tests entirely within the encrypted domain.
Datasets
The method was evaluated using six standard, discrete benchmark datasets from the causal learning literature:
child(20 nodes, 25 edges)insurance(27 nodes, 52 edges)water(32 nodes, 66 edges)alarm(37 nodes, 46 edges)hepar2(70 nodes, 123 edges)win95pts(76 nodes, 112 edges)
Each dataset contained 5,000 samples with varying numbers of variable states (ranging from 2 to 6 states).
Key Insights and Ideas
- Algorithmic Refactoring Beats Brute-Force Crypto: The biggest performance leap didn't come from optimizing the cryptography itself, but from rewriting the underlying statistical formulas (Figures 5 and 6) to minimize multiplicative depth. Reducing the circuit to a single reciprocal operation made FHE viable.
- State Count, Not Graph Size, Dictates Cost: Counter-intuitively, the execution time and memory footprint are not driven by the number of nodes or edges in the causal graph, but by the number of states per variable. Because contingency tables grow exponentially with state configurations, a small graph with many states (like
child) is slower to process than a massive graph with fewer states (likewin95pts). - The "Free" Parallelism of SIMD: Due to FHE's vector batching nature, computing $2^{15}$ CI tests simultaneously incurs the exact same computational overhead as computing a single test, yielding a theoretical speedup of $2^{14}\times$.
Key Results
- High Structural Fidelity: The FHE-based framework achieved an average CI test consistency of ~85% compared to the plaintext baseline, climbing above 90% for specific datasets like
alarmandchild. The Structural Hamming Distance (SHD) ratios confirmed that the final causal graphs were highly accurate. - Practical Execution Times: While the plaintext algorithm executes in seconds, the FHE version completed full causal graph learning in 6 to 30 minutes across all benchmarks (e.g., 366 seconds for
win95ptsand 1,845 seconds forinsurance). Given that causal learning is typically an offline process, this is highly practical. - Profiling Breakdown: Profiling revealed that 84% of the execution time is spent on FHE ciphertext computation, 10–15% on encryption/decryption, and less than 1% on network communication.
Limitations and Future Work
The primary limitation of this work is its scalability regarding variable states; as the number of states per discrete variable increases, the size of the FHE circuits expands exponentially. Additionally, the current implementation is tailored strictly to discrete variables using $\chi^2$ and $G^2$ tests. Future work could extend this methodology to continuous variables by designing homomorphic circuits for Fisher's Z-tests or kernel-based independence tests.
Summary updated