EconBase
← All papers

genriesz: A Python Package for Automatic Debiased Machine Learning with Generalized Riesz Regression

Masahiro Kato

arXiv 19 Feb 2026 · Statistics — Machine Learning

arXiv:2602.17543 · PDF · DOI · OpenAlex · Extracted main text

Abstract

Efficient estimation of causal and structural parameters can be automated using the Riesz representation theorem and debiased machine learning (DML). We present genriesz, an open-source Python package that implements automatic DML and generalized Riesz regression, a unified framework for estimating Riesz representers by minimizing empirical Bregman divergences. This framework includes covariate balancing, nearest-neighbor matching, calibrated estimation, and density ratio estimation as special cases. A key design principle of the package is automatic regressor balancing (ARB): given a Bregman generator $g$ and a representer model class, genriesz} automatically constructs a compatible link function so that the generalized Riesz regression estimator satisfies balancing (moment-matching) optimality conditions in a user-chosen basis. The package provides a modulr interface for specifying (i) the target linear functional via a black-box evaluation oracle, (ii) the representer model via basis functions (polynomial, RKHS approximations, random forest leaf encodings, neural embeddings, and a nearest-neighbor catchment basis), and (iii) the Bregman generator, with optional user-supplied derivatives. It returns regression adjustment (RA), Riesz weighting (RW), augmented Riesz weighting (ARW), and TMLE-style estimators with cross-fitting, confidence intervals, and $p$-values. We highlight representative workflows for estimation problems such as the average treatment effect (ATE), ATE on treated (ATT), and average marginal effect estimation. The Python package is available at https://github.com/MasaKat0/genriesz and on PyPI.

Citation extraction

50
references
72
in-text mentions
50
distinct cited
4
self-citations
4,872
main-text words

appendix boundary found by appendix_command · 89% of the source is main text. Read the extracted text to check this.

Most heavily cited references

The works this paper leans on most, across its whole bibliography — not restricted to papers in our corpus. Ranked by composite intensity, which combines how often a work is mentioned, how many sections mention it, and how much of that falls in the main text rather than the appendix.

ReferenceIntensityMentionsSectionsMain text
1Masahiro Kato (2026) A unified framework for debiased machine learning: Riesz representer fitting under bregman divergence, 2026 self0.81142100%
2Xiaohong Chen and Zhipeng Liao (2015) Sieve semiparametric two-step gmm under weak dependence0.73732100%
3Victor Chernozhukov, Denis Chetverikov, Mert Demirer, Esther Duflo,… (2018) Double/debiased machine learning for treatment and structural parameters0.73732100%
4Victor Chernozhukov, Whitney K. Newey, Victor Quintas-Martinez, and… (2021) Automatic debiased machine learning via riesz regression, 20210.73732100%
5Jens Hainmueller (2012) Entropy balancing for causal effects: A multivariate reweighting method to produce balanced samples in observational studies0.73732100%
6Philipp Bach, Victor Chernozhukov, Malte S. Kurz, and Martin Spindler (2022) Doubleml - an object-oriented implementation of double machine learning in python0.64422100%
7Keith Battocchi, Eleanor Dillon, Maggie Hei, Greg Lewis, Paul Oka, M… (2019) EconML: A Python package for ML-based heterogeneous treatment effects estimation0.64422100%
8Huigang Chen, Totte Harinen, Jeong-Yoon Lee, Mike Yung, and Zhenyu Z… (2020) CausalML: Python package for causal machine learning, 20200.64422100%
9Zhexiao Lin, Peng Ding, and Fang Han (2023) Estimation based on nearest neighbor matching: from density ratio to average treatment effect0.64422100%
10Koji Makiyama (2019) densratio: Density ratio estimation0.64422100%

Showing the top 10 of 50 scored citations.