Abstract
In recent years, non-linear machine learning techniques have attracted increasing attention for estimating treatment effects from observational data. While most existing methods focus on binary treatment scenarios, the estimation of treatment effects for continuous interventions remains a critical challenge in many real-world applications. In this work, we introduce a novel neural network-based approach for estimating continuous treatment effects by leveraging hypernetworks to model counterfactual outcomes across treatment levels. This approach extends the principles of binary treatment effects computation to the continuous domain, addressing the key challenge of treatment relevance. By generating weights for a fixed network that predicts potential outcomes, our architecture ensures that the treatment variable retains its causal significance while maintaining the flexibility of deep learning models. Through extensive experiments on synthetic and semi-synthetic datasets, we demonstrate that our approach outperforms existing methods in terms of precision. The results highlight the advantages of explicitly modeling the relationship between treatment levels and outcomes, particularly in settings where traditional methods struggle with high-dimensional confounders or non-linear treatment-response dynamics.
1 Introduction
Estimating treatment effects is a fundamental objective across a wide range of domains, including clinical trials, economic policy evaluation, educational assessments, social science research, and artificial intelligence. In the latter, a key challenge in causal machine learning is to quantify the impact of specific interventions on outcomes and to predict counterfactual outcomes under alternative treatment conditions ().
A central difficulty in this setting is the inherent uncertainty surrounding unobserved counterfactuals, commonly known as the “Fundamental Problem of Causal Inference” (). For any given unit, only the outcome corresponding to the administered treatment is observable, while outcomes under alternative interventions remain unknown. This limitation often leads to biased estimates when conventional data-driven methods are applied without accounting for this missing data structure.
Recent advances have seen growing interest in leveraging high-capacity machine learning models to address these limitations and enhance causal effect estimation (). These methods seek to integrate the predictive capabilities of modern learning algorithms with the structural assumptions necessary for valid causal inference. Notable approaches include the use of tree-based models, kernel methods, and Gaussian processes, often in conjunction with techniques such as propensity score adjustment, matching, or covariate balancing to mitigate confounding. A particularly active and promising direction within this literature involves neural network-based models (; ; ), which constitute the primary focus of the present study.
To overcome the challenges present in causal inference, recent research has focused on incorporating causal reasoning into representation learning frameworks (). These approaches aim to learn data representations that preserve the underlying causal structure. By incorporating assumptions such as unconfoundedness or leveraging balancing techniques, these models attempt to ensure that comparisons across treatment groups remain valid even in the presence of complex, high-dimensional data.
A key requirement for the successful application of machine learning to causal inference is the explicit modeling of treatment variables independently from other covariates. Failing to do so risks obscuring treatment information within the latent representation, particularly in high-dimensional contexts, which can severely impair counterfactual estimation accuracy (), illustrated in Figure 1.
Figure 1
While substantial progress has been made in the binary treatment setting, extending these techniques to continuous treatments remains a significant challenge. Unlike binary treatments, where the task involves comparing discrete alternatives (e.g., treatment vs. control), continuous treatments introduce a continuum of possible interventions. This makes counterfactual estimation more complex, as it requires modeling how outcomes change smoothly across the entire range of treatment intensities. Moreover, the uncountable set of potential outcomes complicates both model training and validation, as conventional metrics or techniques used for binary treatments do not easily generalize. For instance, estimating the effect of varying a drug dosage on patient health demands learning a nuanced, fine-grained relationship between dose and outcome, which is sensitive to both non-linearities and confounding. These complexities highlight the need for specialized methods that can effectively handle the intricacies of continuous treatment regimes.
In this work, we propose HNet, a novel method that builds on insights from prior architectures developed for binary or discrete treatment effect estimation—such as TARNet, Dragonnet, DRNet, and HydraNet (
In Section 2, we define the problem of estimating individualized treatment effects in the continuous treatment setting and outline the key assumptions required for estimation. In Section 3, we review related work on causal inference and discuss existing machine learning approaches. In Section 4, we present the architecture and learning objectives of HNet in detail. In Section 5, we evaluate HNet on benchmark datasets and compare its performance to existing baselines. Finally, in Section 6, we discuss our findings, limitations, and potential directions for future work.
2 Materials and methods
2.1 Problem statement and assumptions
We consider a setting where we observe a finite number N of samples (Y, T, X), where Y is the target variable, T is the treatment variable—potentially continuous, i.e., —and X, the covariates, are given as . In this context, we assume there exists a function f(X, T) that generates outcomes Y, and our goal is to estimate the function that characterizes the conditional causal effect of T on Y, given X.
In the case of binary treatments, we are typically interested in estimating the difference in potential outcomes, or counterfactuals, under treatment and control, that is, the contrast between receiving the treatment (T = 1) and not receiving it (T = 0). On the other hand, for continuous treatments, the goal is usually to estimate counterfactual outcomes under alternative treatment levels. Given a treatment value T, we aim to model how the outcome would change under different treatment values by learning a counterfactual function θX(T) for each X: θX(T) = EX[f(do(T), X)∣X]1. These objectives can be summarized through the following general expression for the conditional effect:
This formulation highlights the distinction between the discrete and continuous cases: in the binary case, the effect is a simple difference in outcomes; in the continuous case, it requires modeling a full counterfactual trajectory over treatment values.
Causal inference is inherently difficult because the causal quantity of interest cannot be directly observed in the data. Consequently, certain assumptions are required to use statistical estimands to answer causal questions. In this work, we operate under the standard assumptions needed to ensure identifiability of the causal effect (
Assumption 1 (Positivity):
This assumption ensures that every treatment level has a non-zero probability of occurring for all covariate profiles with positive density.
Assumption 2 (Conditional Unconfoundedness / Backdoor Criterion): the covariates X form a sufficient adjustment set. More specifically, X satisfies the backdoor criterion relative to treatment T and outcome Y if: X blocks all backdoor paths from T to Y, and X does not contain any descendants of T.
Assumption 3 (Consistency): if the intervention do(T = t) is performed, the observed outcome Y is equivalent to the outcome that would have been observed under that specific treatment assignment.
Together, these assumptions justify the identification of the interventional expectation via covariate adjustment: (
2.2 Individualized treatment effects estimation with continuous treatment
Individualized treatment effect (ITE) estimation focuses on quantifying the causal effect of a treatment T on an outcome Y for a specific individual characterized by covariates X. However, in observational settings, only one potential outcome is observed per individual, giving rise to what is known as the fundamental problem of causal inference. In practice, this is addressed by conditioning on the entire feature space X to estimate the Conditional Average Treatment Effect (CATE). Under assumptions 1 and 2, CATE can be expressed using statistical estimands based on the observed data distributions.
When the treatment variable T is binary, taking values in {0, 1}, CATE can be written as the difference in conditional expectations: τ(x) = E[Y∣T = 1, X = x]−E[Y∣T = 0, X = x]. At the population level, this leads to the average treatment effect (ATE), given by EX[E[Y∣T = 1, X]−E[Y∣T = 0, X]]. Although this formulation appears straightforward, accurate estimation of treatment effects poses several challenges. First, the treatment variable T plays a fundamentally different role from the covariates X in causal inference, necessitating specialized modeling strategies (
To address these challenges, a range of methods have been proposed. Two of the most widely used approaches for estimating binary treatment effects are the S-Learner and the T-Learner (
More recent advances incorporate neural networks and representation learning to improve estimation. Models such as TARNet and Dragonnet (
2.2.1 From binary to continuous treatment effect estimators
A particularly influential class of models for treatment effect estimation leverages neural networks. Owing to their highly flexible architectures, neural networks are well-suited for incorporating inductive biases that enhance causal inference. A wide range of approaches have been proposed for both binary and continuous treatments within this framework.
In the binary treatment setting, TARNet (
Moving beyond binary treatment effects, HydraNet (
2.2.2 Neural networks as continuous treatment estimators
In settings where treatment is continuous rather than binary, the treatment effect is defined for every pair of treatment levels for each single individual. Under this scenario, we are often interested in estimating counterfactual outcomes under alternative treatment levels.
Estimating continuous treatment effects introduces additional complexities beyond those encountered in binary treatment effect estimation. In particular, the continuous nature of the treatment variable T renders many of the most effective strategies developed for binary causal inference inapplicable or ineffective.
To address these challenges, methods often adopt inductive biases similar to those used in binary settings. For instance, the T-Learner becomes infeasible in the continuous case, as the treatment space cannot be partitioned into discrete groups. In contrast, the S-Learner retains its applicability, modeling all potential outcomes within a unified framework, and thus remains a valid candidate for continuous treatment effect estimation.
Several neural network-based models have been proposed to tackle the challenges of continuous treatment effect estimation. SCIGAN (
Other recent advancements focus on dynamic weighting and distributional robustness. For instance, TransTEE (
A noticeable trend, illustrated in Figure 2, involves encoding treatment relevance biases in the representation layer of neural networks. The S-Learner does not explicitly model treatment-specific biases, as it produces a single output for all potential outcomes. TARNet introduces treatment relevance by employing two separate outcome heads—one for each treatment group—encouraging the model to learn treatment-specific patterns. Dragonnet extends this idea by adding a third output head to estimate treatment propensity, thereby addressing selection bias through targeted regularization. In the context of discrete (multi-level) treatments, HydraNet creates one outcome head per treatment level, enabling the model to learn separate responses for each treatment while sharing a common representation backbone.
Figure 2

Evolution of neural architectures for treatment effect estimation. From left to right: SLearn (
Building on this progression, we propose a novel approach that, instead of allocating a distinct output layer per treatment level, utilizes hypernetwork principles to produce a fixed network that models θX(T) for each individual observation. The following section provides a detailed description of this implementation strategy.
2.3 Method
In this section, we introduce a comprehensive methodology for constructing a model that leverages insights obtained from binary treatment effects computation to estimate continuous treatment effects. In particular, we introduce the treatment relevance condition while maintaining the benefits of other neural network estimators. We achieve this by using the concept of hypernetworks (
2.3.1 Architecture: hypernetwork
To operationalize this principle, we propose an inductive bias applied at the post-representation stage of a causal inference model. Most state-of-the-art approaches to estimating treatment effects begin by learning a representation of the covariates; we follow this general structure but introduce a key innovation in how potential outcomes are estimated from this representation.
We begin by mapping X into a representation Z∈ℝk using an encoder function , parameterized by ϕ. That is, Z = fϕ(X). Rather than directly using Z to predict the outcome, we introduce a hypernetwork mechanism. A hypernetwork is a neural network that outputs the parameters of another network. Specifically, a function , parameterized by ψ maps the representation Z to a weight vector ω∈ℝm, which defines the parameters of a second, fixed-architecture neural network hω:ℝ → ℝ. This target network takes the treatment variable T as input and its output yields the predicted outcome Ŷ:
Crucially, while the functional form (i.e., architecture) of hω is fixed and non-trainable post hoc, its weights ω are dynamically generated for each input instance via the hypernetwork. The overall model thus defines a composite function:
The model is trained end-to-end by minimizing a prediction loss, such as the mean squared error between the observed outcomes and the predicted outcomes:
This architecture induces a structured form of adaptation: the representation Z encodes individual-specific information, which is then used to instantiate a custom predictor hω for each individual. The hypernetwork thus acts as a meta-model that generates individualized outcome models conditioned on latent features, thereby enabling a flexible and context-dependent estimation of potential outcomes. A schematic overview of the proposed model architecture is provided in Figure 3.
Figure 3

Illustration of HNet Architecture. A shared representation layer Z is used to compute the weights of instance-level fixed networks that model θX(T).
2.3.2 Higher dimensional treatments
While the model above is described for the case of a continuous univariate treatment T∈ℝ, the architecture naturally extends to higher-dimensional treatments T∈ℝp. In this case, the target network hω simply takes a vector-valued input and outputs a scalar prediction, i.e., hω : ℝp → ℝ. The hypernetwork continues to generate the weights ω conditioned on the representation Z, and no changes are required to the overall training objective or meta-model structure. As such, the framework maintains its flexibility and personalization capabilities regardless of the dimensionality of the treatment space.
2.3.3 Additional causal regularization
While the current training objective relies on a standard mean squared error prediction loss to isolate the architectural benefits of the hypernetwork parameterization without conflating them with regularization choices, the modularity of HNet allows for the seamless integration of causal-inference-specific regularization techniques. To address settings with strong confounding several balancing strategies can be incorporated into the objective function.
First, Inverse Probability Weighting (IPW) or density-ratio weighting can be integrated by modeling the continuous propensity score, p(t|x), via a conditional density estimator. This approach directly reweights the base prediction loss, yielding a doubly robust objective without requiring architectural changes.
Second, distribution matching can be applied within the shared representation space, Z. By enforcing Integral Probability Metrics on the outputs of the encoder network, the model is encouraged to learn treatment-invariant representations, extending principles established by architectures like TARNet to the continuous domain.
Finally, drawing on the structural regularizations seen in Dragonnet and VCNet, a targeted regularization term can be added to the loss function. This specifically reduces bias in the average dose-response estimation, serving as a complement to the highly individualized instance-level predictions generated by the hypernetwork.
2.3.4 Theoretical distinctions and inductive biases
A hypernetwork-based parameterization allows the counterfactual function to vary arbitrarily across the covariate space, leveraging the universal approximation properties of hypernetworks. In contrast, B-spline approaches like VCNet constrain the treatment-response curve to a fixed function space. Ultimately, these models encode distinct inductive biases: the unconstrained flexibility of hypernetworks excels in capturing complex, heterogeneous effects, while the structured regularization of splines may be preferable in other specific scenarios.
2.3.5 Limitations
While our method offers a flexible and powerful framework for estimating treatment effects, it operates within the broader context of continuous treatment effect estimation, which presents its own inherent challenges. One such challenge is the need for a strong overlap condition, typically formalized as requiring the propensity score to satisfy g(t∣x)≥c>0 for all treatment values T and covariates X. In real-world applications with near-deterministic treatment assignments, this assumption may be violated, leading to small or vanishing propensity scores that can destabilize estimation for any model.
Beyond this structural limitation of the problem, our method itself also has practical constraints. It can be sensitive to the size of the available dataset—particularly in settings where the treatment-confounder relationship is complex and high-capacity models like neural networks are used. In such cases, limited data may lead to overfitting or insufficient representation of the underlying causal structure. Additionally, the method's performance depends on the careful tuning of multiple hyperparameters, including network architecture, learning rate, regularization strength, and batch size. This tuning process can be computationally intensive and may pose a barrier in applications where computational resources or validation data are limited.
Additionally, while our method provides a flexible and effective framework for estimating treatment effects, it does not explicitly address several known sources of bias that have been the focus of other approaches. In particular, issues such as continuous treatment imbalance (
3 Experiments
In this section, we evaluate the performance of our proposed model using widely adopted treatment effect estimation benchmarks. Since counterfactual outcomes are inherently unobservable in real-world settings, direct evaluation is not feasible. To overcome this challenge, we employ standard experimental datasets commonly used in the causal inference literature (
3.1 Experimental setup
All the experiments are run on a MacBook Pro (Apple Inc., Cupertino, CA, USA) with an Apple M2 Max chip and 32GB memory. All the code for reproducing the experiments can be found in: https://anonymous.4open.science/r/Instance_Specific_Continuous_Treatments-C045/. Details regarding hyperparameter tuning and evaluation metrics are provided in Appendices B, C, as well as in the accompanying code. In terms of computational complexity, HNet remains in line with other neural network-based estimators. Both training and inference times are in the order of seconds for the datasets evaluated in this study, taking approximately twice the computational time of a standard Multi-Layer Perceptron (MLP).
In this work, we assume all our datasets are originally composed of valid adjustment sets, i.e. the backdoor criterion can be satisfied and assumptions 1 and 2 hold. In addition to HNet, we evaluate the benchmarks using neural network-based S-Learner models. The SLearn NN baseline serves as a direct ablation study for our proposed architecture; it effectively replaces the hypernetwork mechanism with a standard Multi-Layer Perceptron (MLP) that takes the concatenated representation and treatment variables as input, allowing us to isolate the specific value added by the hypernetwork. For specialized continuous treatment effect architectures, we restricted our baselines to models and datasets for which the original authors provided verified hyperparameter configurations. Consequently, VCNet is evaluated on the synthetic and Continuous IHDP datasets, while models such as SCIGAN and DRNet are exclusively compared on the TCGA datasets, mirroring their original experimental setups. This strict inclusion criterion ensures a fair and rigorous comparison, preventing the misrepresentation of baseline models that could arise from suboptimal, ad-hoc hyperparameter tuning on novel datasets.
3.2 Continuous treatment effects estimations
3.2.1 Synthetic dataset
We evaluate the model in the synthetic dataset introduced in
In Table 1, we present the performance of various models on the synthetic dataset introduced by
Table 1
| Model | MISE | AMSE |
|---|---|---|
| SLearn NN | 0.375 ± 0.011 | 0.145 ± 0.008 |
| VCNet | 0.150 ± 0.002 | 0.016 ± 0.001 |
| HNet | 0.073 ± 0.003 | 0.015 ± 0.001 |
Performance of different models on the synthetic dataset from
We report Mean Integrated Squared Error (MISE) and Average Mean Squared Error (AMSE). Lower values indicate better performance.
VCNet performs competitively, with an MISE and AMSE reflecting solid performance consistent with its design for continuous treatment settings. However, it is still outperformed by HNet by an important margin in the MISE metric of this benchmark. For the AMSE metric, both VCNet and HNet perform similarly.
For the S-learner baseline, SLearn NN records the highest errors across both metrics (0.375 for MISE and 0.145 for AMSE). These results suggest that simple neural network-based S-learners may struggle in this synthetic setting.
Overall, HNet demonstrates strong generalization and estimation capabilities, highlighting its effectiveness in capturing treatment heterogeneity in synthetic scenarios with continuous treatments.
3.2.2 Continuous IHDP
This dataset is a version of the IHDP dataset adapted for continuous treatment effect estimation. It uses the same covariates as the original dataset, and, following
The results in Table 2 show the performance of several models on the continuous treatment version of the IHDP dataset, evaluated using MISE and AMSE. The S-Learner with a neural network base (Slearn NN) performs poorly on both metrics, suggesting that this approach may suffer from high variance or inadequate model capacity when not explicitly tailored to the continuous treatment setting.
Table 2
| Model | MISE | AMSE |
|---|---|---|
| SLearn NN | 6.130 ± 0.067 | 3.699 ± 0.063 |
| VCNet | 1.573 ± 0.050 | 0.460 ± 0.036 |
| HNet | 1.352 ± 0.053 | 0.236 ± 0.035 |
Performance comparison of models on the continuous IHDP dataset using two evaluation metrics: Mean Integrated Squared Error (MISE) and Average Mean Squared Error (AMSE).
Lower values indicate better estimation of the continuous dose-response function.
Among the models specifically designed for continuous treatments, HNet outperforms VCNet on both MISE and AMSE, achieving values of 1.352 and 0.236, respectively, compared to VCNet's 1.573 and 0.460. These results suggest that explicitly accounting for treatment relevance is important in this setting, and that modeling treatment effects as a hypernetwork leads to improved performance.
3.2.3 TCGA
The TCGA dataset (
In Table 3, we observe the model performances across the three TCGA dataset variants. The HNet model consistently outperforms SLearn Neural Network (NN) across all datasets, with substantially lower MISE and AMSE values. SLearn NN, on the other hand, demonstrates unstable behavior with much higher errors, indicating poor suitability for this task.
Table 3
| Dataset | Model | AMSE | |
|---|---|---|---|
| TCGA (0) | SLearn NN | 2.582 ± 0.002 | 6.691 ± 0.007 |
| HNet | 0.275 ± 0.013 | 0.042 ± 0.006 | |
| TCGA (1) | SLearn NN | 3.513 ± 0.009 | 5.036 ± 0.010 |
| HNet | 0.204 ± 0.008 | 0.040 ± 0.003 | |
| TCGA (2) | SLearn NN | 7.664 ± 0.025 | 18.431 ± 0.086 |
| HNet | 0.616 ± 0.067 | 0.916 ± 0.044 |
Model performance on the TCGA(0), TCGA(1), and TCGA(2) datasets.
MISE (lower is better) measures error in estimating the response curve, while AMSE evaluates treatment effect estimation accuracy.
Table 4 summarizes the combined performance across all datasets. The HNet model achieves the lowest MISE (0.411), indicating superior accuracy in estimating response functions. These findings suggest that HNet is competitive and performs well in treatment effect estimation. In contrast, SLearn NN performs substantially worse on both metrics, indicating limited reliability in this context.
Table 4
| Model | AMSE | |
|---|---|---|
| SCIGAN ( | 1.890 ± 0.050 | – |
| DRNet ( | 3.640 ± 0.120 | – |
| DRN-W ( | 3.710 ± 0.120 | – |
| GPS ( | 4.830 ± 0.010 | – |
| SLearn NN | 5.091 ± 0.013 | 12.745 ± 0.048 |
| HNet | 0.411 ± 0.034 | 0.524 ± 0.024 |
Combined model performance across all TCGA datasets.
This final evaluation aggregates results to highlight overall model reliability.
4 Discussion and conclusion
In this work, we presented a novel neural network-based approach for estimating continuous treatment effects by leveraging hypernetworks to model counterfactual outcomes across treatment levels. Our method extends established principles of binary treatment effect estimation to the continuous setting, addressing the key challenge of treatment relevance. By generating weights for a fixed network that predicts potential outcomes, our architecture preserves the causal significance of the treatment variable while maintaining the flexibility of deep learning models.
Extensive experiments on synthetic and semi-synthetic datasets demonstrated that our approach consistently outperforms existing methods in terms of precision. These results underscore the benefits of explicitly modeling the relationship between treatment levels and outcomes, particularly in scenarios involving high-dimensional confounders or non-linear treatment-response dynamics.
Our contribution advances the field of causal machine learning by bridging the gap between binary and continuous treatment effect estimation. By combining the expressive capacity of neural networks with principled causal assumptions, we offer a flexible and interpretable framework for inferring causal relationships from observational data.
Future research directions include exploring robustness to unmeasured confounding through sensitivity analysis and integrating validated bias mitigation methods such as adversarial training to address continuous treatment imbalance or the prevention of spurious interactions.
Statements
Data availability statement
The datasets presented in this study can be found in online repositories. The names of the repository/repositories and accession number(s) can be found in the article/Supplementary material.
Author contributions
RP: Conceptualization, Data curation, Formal analysis, Funding acquisition, Investigation, Methodology, Project administration, Resources, Software, Supervision, Validation, Visualization, Writing – original draft, Writing – review & editing. JV: Conceptualization, Data curation, Formal analysis, Funding acquisition, Investigation, Methodology, Project administration, Resources, Software, Supervision, Validation, Visualization, Writing – original draft, Writing – review & editing.
Funding
The author(s) declared that financial support was received for this work and/or its publication. This research was funded by an Industrial Doctorate grant 2021 DI 41 of AGAUR (Generalitat de Catalunya) and PID2022-136436-NB-100, 2021SGR01104 grants.
Conflict of interest
The author(s) declared that this work was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.
Generative AI statement
The author(s) declared that generative AI was not used in the creation of this manuscript.
Any alternative text (alt text) provided alongside figures in this article has been generated by Frontiers with the support of artificial intelligence and reasonable efforts have been made to ensure accuracy, including review by the authors wherever possible. If you identify any issues, please contact us.
Publisher’s note
All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.
Supplementary material
The Supplementary Material for this article can be found online at: https://www.frontiersin.org/articles/10.3389/frai.2026.1819009/full#supplementary-material
Footnotes
1.^The do-notation denotes an intervention in a causal model rather than a passive observation. Writing do(T = t) represents actively setting the treatment variable T to t and considering the resulting distribution of outcomes. See
References
1
BicaI.JordonJ.van der SchaarM. (2020). Estimating the effects of continuous-valued interventions using generative adversarial networks. Adv. Neural Inf. Process. Syst. 33, 16434–16445.
2
CaviqueL. (2024). Implications of causality in artificial intelligence. Front. Artif. Intell. 7:1439702. doi: 10.3389/frai.2024.1439702
3
ChauhanV. K.CliftonL.NigamG.CliftonD. A. (2025). Individualised treatment effects estimation with composite treatments and composite outcomes. arXiv [preprint]. arXiv:2502.08282. doi: 10.1109/EMBC58623.2025.11252651
4
ChauhanV. K.ZhouJ.GhoshehG.MolaeiS.CliftonD. A. (2024). “Dynamic inter-treatment information sharing for individualized treatment effects estimation,” in International conference on artificial intelligence and statistics (PMLR), 3529–3537.
5
HaD.DaiA.LeQ. V. (2016). Hypernetworks. arXiv. [preprint]. arXiv:1609.09106. doi: 10.48550/arXiv.1609.09106
6
HillJ. L. (2011). Bayesian nonparametric modeling for causal inference. J. Comput. Graph. Stat. 20, 217–240. doi: 10.1198/jcgs.2010.08162
7
HollandP. W. (1986). Statistics and causal inference. J. Am. Stat. Assoc. 81, 945–960. doi: 10.1080/01621459.1986.10478354
8
ImbensG. W. (2000). The role of the propensity score in estimating dose-response functions. Biometrika87, 706–710. doi: 10.1093/biomet/87.3.706
9
KaddourJ.LynchA.LiuQ.KusnerM. J.SilvaR. (2022). Causal machine learning: a survey and open problems. arXiv. [preprint]. arXiv:2206.15475. doi: 10.48550/arXiv.2206.15475
10
KiriakidouN.LivierisI. E.PintelasP. (2024). Mutual information-based neighbor selection method for causal effect estimation. Neural Comput. Appl. 36, 9141–9155. doi: 10.1007/s00521-024-09555-8
11
KünzelS. R.SekhonJ. S.BickelP. J.YuB. (2019). Metalearners for estimating heterogeneous treatment effects using machine learning. Proc. Nat. Acad. Sci USA. 116, 4156–4165. doi: 10.1073/pnas.1804597116
12
NagalapattiL.IyerA.DeA.SarawagiS. (2024). “Continuous treatment effect estimation using gradient interpolation and kernel smoothing,” in Proceedings of the AAAI conference on artificial intelligence, Vol. 38 (Washington, DC: AAAI Press), 14397–14404. doi: 10.1609/aaai.v38i13.29353
13
NieL.YeM.LiuQ.NicolaeD. (2021). VCNet and functional targeted regularization for learning causal effects of continuous treatments. arXiv. [preprint]. arXiv:2103.07861. doi: 10.48550/arXiv.2103.07861
14
NybergO.KlamiA. (2024). Quantifying uncertainty of uplift: trees and T-learners. Neurocomputing590:127741. doi: 10.1016/j.neucom.2024.127741
15
PearlJ. (2009). Causality. Cambridge: Cambridge University Press. doi: 10.1017/CBO9780511803161
16
ProsR.VitriàJ. (2025). “Preventing spurious interactions: A new inductive bias for accurate treatment effect estimation,” in IEEE Access (Piscataway, NJ: IEEE). doi: 10.1109/ACCESS.2025.3574547
17
RobinsJ. (1986). A new approach to causal inference in mortality studies with a sustained exposure period—application to control of the healthy worker survivor effect. Math. Model. 7, 1393–1512. doi: 10.1016/0270-0255(86)90088-6
18
RobinsJ.HernanM. (2008). “Estimation of the causal effects of time-varying exposures,” in Handbooks of Modern Statistical Methods, eds. G. Fitzmaurice, M. Davidian, G. Verbeke, and G. Molenberghs (Boca Raton, FL: Chapman & Hall/CRC), 553–599. doi: 10.1201/9781420011579.ch23
19
SchölkopfB.LocatelloF.BauerS.KeN. R.KalchbrennerN.GoyalA.et al. (2021). “Toward causal representation learning,” in Proceedings of the IEEE, Vol. 109 (Piscataway, NJ: IEEE), 612–634. doi: 10.1109/JPROC.2021.3058954
20
SchwabP.LinhardtL.BauerS.BuhmannJ. M.KarlenW. (2020). “Learning counterfactual representations for estimating individual dose-response curves,” in Proceedings of the AAAI conference on artificial intelligence (Vol. 34, New York, NY: AAAI Press), 5612–5619. doi: 10.1609/aaai.v34i04.6014
21
ShalitU.JohanssonF. D.SontagD. (2017). “Estimating individual treatment effect: generalization bounds and algorithms,” in International conference on machine learning (PMLR), 3076–3085.
22
ShiC.BleiD.VeitchV. (2019). Adapting neural networks for the estimation of treatment effects. Adv. Neural Inf. Process. Syst. 32.
23
TeseiG.GiampanisS.ShiJ.NorgeotB. (2023). Learning end-to-end patient representations through self-supervised covariate balancing for causal treatment effect estimation. J. Biomed. Inform. 140:104339. doi: 10.1016/j.jbi.2023.104339
24
VelascoB.CerquidesJ.ArcosJ. L. (2022). “Hydranet: a neural network for the estimation of multi-valued treatment effects,” in NeurIPS 2022 workshop on causality for real-world impact.
25
WangH.HeH.KatabiD. (2020). Continuously indexed domain adaptation. arXiv [preprint]. arXiv:2007.01807. doi: 10.48550/arXiv.2007.01807
26
WangX.LyuS.WuX.WuT.ChenH. (2022). Generalization bounds for estimating causal effects of continuous treatments. Adv. Neural Inf. Process. Syst. 35, 8605–8617. doi: 10.52202/068431-0626
27
WeinsteinJ. N.CollissonE. A.MillsG. B.ShawK. R.OzenbergerB. A.EllrottK.et al. (2013). The cancer genome atlas pan-cancer analysis project. Nat. Genet. 45, 1113–1120. doi: 10.1038/ng.2764
28
YaoL.ChuZ.LiS.LiY.GaoJ.ZhangA. (2021). A survey on causal inference. ACM Trans. Knowl. Discov. Data15, 1–46. doi: 10.1145/3444944
29
ZhangY.-F.ZhangH.LiptonZ. C.LiL. E.XingE. P. (2022). Exploring transformer backbones for heterogeneous treatment effect estimation. arXiv. [preprint]. arXiv:2202.01336. doi: 10.48550/arXiv.2202.01336
Summary
Keywords
causal inference, continuous treatment effect estimation, counterfactual outcomes, hypernetworks, representation learning
Citation
Pros R and Vitrià J (2026) Learning instance-specific counterfactual models for continuous treatments using hypernetworks. Front. Artif. Intell. 9:1819009. doi: 10.3389/frai.2026.1819009
Received
27 February 2026
Revised
26 March 2026
Accepted
13 April 2026
Published
08 May 2026
Volume
9 - 2026
Edited by
Feng Dong, University of Strathclyde, United Kingdom
Updates

Check for updates
Copyright
© 2026 Pros and Vitrià.
This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.
*Correspondence: Roger Pros, roger.pros@ub.edu
Disclaimer
All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.