arXiv:2610.42052econ.EMOct 2026

Manuscript Offprint

arXiv:2610.42052

Valid GMM Inference with Non-parametrically Generated Discrete Type

Taegyu Yang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

Abstract

The recent progress in machine learning and classification methods has enabled researchers to predict economic discrete attributes that are not observed in standard datasets. These range from missing demographics, such as ethnicity and poverty status, to economic categories, such as innovative firms, metropolitan areas, occupational groups, binary treatment status, and counterfactual status. Although the plug-in procedure is widely used in empirical applications, nonparametric first-stage estimation recovering the labels can introduce regularization bias because of its slow convergence rate. Even if the double/debiased machine learning approach provides a way to correct the regularization bias, the according bias-correction term is not well defined in our problem, because even a small first-stage error can change the type discontinuously. To address this problem, we smooth the discontinuous type indicators using a smooth kernel function and a shrinking tuning parameter bb. We then construct a well-defined Neyman-orthogonal score and define the appropriate debiased estimator. We show that this debiased estimator satisfies Nb\sqrt{Nb}-consistency and asymptotic normality under regularity conditions. The slower Nb\sqrt{Nb} convergence rate is the cost of correcting the regularization bias when the nonparametric first-stage learner enters the moment function through discontinuous functions. Keywords: Generated Regressor, Classification, Discrete Type, Neyman Orthogonal Score, Double/Debiased Machine Learning, Kernel Smoothing JEL classification: C13, C14, C21, C25, C38

1 Introduction

We study valid inference in generalized method of moments (GMM) models in which discrete latent types are non-parametrically generated regressors. A researcher specifies a moment function m(⋅)m(\cdot) to learn the parameter of interest θ\theta, and its truth θ0\theta_{0} satisfies the following moment condition:

E[m(θ,γ0,i,Wi)]=0⇔θ=θ0,\mathbb{E}\big[m(\theta,\boldsymbol{\gamma}_{0,i},W_{i})\big]=0{\quad\Leftrightarrow\quad}\theta=\theta_{0},

where WiW_{i} denotes the data and γ0,i∈{0,1}\boldsymbol{\gamma}_{0,i}\in\{0,1\} the unobserved discrete type. To recover the latent type, the researcher specifies a classification algorithm, consisting of a loss function identifying a nuisance function δ(Zi)\delta(Z_{i}) representing group-probability or distance to the group-centroid, and a classifier 1{δ(Zi)≥cutoff}\mathbf{1}\{\delta(Z_{i})\geq\textnormal{cutoff}\}.

The recent advances in machine learning (ML) and classification methods have made it possible to predict discrete attributes that are not usually measured in conventional datasets. Applications range from socioeconomic demographics including ethnicity (Bai et al., 2024; Howell et al., 2024; Sutherland et al., 2024), gender (Li and Liu, 2025; Dupas et al., 2026), and poverty status (Balboni et al., 2022; Bau, 2022; Aiken et al., 2023; Unrath, 2024; Aiken et al., 2026), to economically defined types, such as innovative firms (Lerner et al., 2024; Leippold and Yu, 2026), metropolitan areas (Arribas-Bel et al., 2021; Vogel et al., 2023), product-substitution or occupational groups (Dodini, 2023; Schuh, 2026; Quan and Williams, 2021; Atalay et al., 2023; Hansen et al., 2023). Other applications include binary treatment or discrete counterfactual status (Kleinberg et al., 2018; Andini et al., 2022; Black et al., 2023; Iselin et al., 2023), as well as complier groups in instrumental variable settings (Kennedy et al., 2020).

A natural and widely used approach in these empirical practices is the naïve plug-in procedure: replacing the label γ0,i\boldsymbol{\gamma}_{0,i} with the estimated classifier 1{δ^(Zi)≥cutoff}\mathbf{1}\{\widehat{\delta}(Z_{i})\geq\textnormal{cutoff}\}, and then minimizing the following GMM criterion:

θ~plug-in=argmin θ∥E^[m(θ,1{δ^(Zi)≥cutoff},Wi)]∥2.{\widetilde{\theta}_{\textnormal{plug-in}}}=\underset{\theta}{\textnormal{argmin\,}}{\big\|\widehat{\mathbb{E}}[m(\theta,\mathbf{1}\{\widehat{\delta}(Z_{i})\geq\textnormal{cutoff}\},W_{i})]\big\|^{2}}.

However, nonparametric first-stage estimators usually results in regularization bias and contaminates downstream inference, unless the first-stage estimator converges to the truth sufficiently fast (Ahrens et al., 2026) or unless the machine learner exactly recovers all true types with high probability (Abbe, 2017). Since the seminal paper of Chernozhukov et al. (2017), double/debiased machine learning (DML) approach has provided a framework to achieve valid inference when the nonparametric or ML-first-stage estimators resulting the regularization bias. A key device is to adapt the specified moment function so that the modified one obeys Neyman orthogonality (Neyman, 1959; Newey, 1994; Ahrens et al., 2026): small perturbations of the first-stage estimate have no first-order effect on the expectation of the moment function.

In our problem, however, the standard DML approach is not directly applicable, because the bias-correction term is not well defined, even if the expectation of the moment function involving the latent type is smooths in the nuisance function δ(Zi)\delta(Z_{i}). Formally, the bias-correction term involves an L2\mathcal{L}^{2}-Riesz representer that solves a certain functional equation, but this equation has no solution in L2\mathcal{L}^{2}. The reason is that observations, whose discrete type changes under a small perturbation of the first-stage nuisance, are concentrated near the classification boundary and therefore even a small error can change the type discontinuously. Taking expectations smooths this discontinuity, but the resulting effect depends on the density at the boundary.

In order to construct a well-defined Neyman-orthogonal score, and thereby ensuring the existence of an L2\mathcal{L}^{2}-Riesz representer, particularly, we approximate the indicator 1 ⁣{δ≥cutoff}\mathbf{1}\!\left\{\delta\geq\textnormal{cutoff}\right\} by k((δ−cutoff)/b)k\big((\delta-\textnormal{cutoff})/b\big), where k(⋅)k(\cdot) is a distribution kernel function and b>0b>0 is a shrinking tuning parameter. We then define the debiased estimator using the smoothed types and show that it is Nb\sqrt{Nb}-consistent and asymptotically normal. We emphasize that smoothing is essential to this construction: without it, the Riesz representer is not defined. Thus, the slower Nb\sqrt{Nb} convergence rate is the cost of correcting the bias when the nonparametric first-stage learner enters the moment function through discontinuous functions.

We contribute to two strands of literature. First, we provide an inference procedure for economic models including latent discrete types. Finite-mixture models (Ichimura and Thompson, 1998; Arcidiacono and Jones, 2003; Chen and Khalili, 2008; Kasahara and Shimotsu, 2009; Henry et al., 2014; Compiani and Kitamura, 2016; Jochmans et al., 2017; Manole and Khalili, 2021; Jun and Zincenko, 2026) and grouped-fixed effects models (Bonhomme and Manresa, 2015; Bonhomme et al., 2022; Lewis et al., 2023; Mehrabani, 2023) study related problems. A distinguishing feature of our approach is its separate first stage, which permits nonparametric identification of the groups. Finite-mixture models typically impose parametric assumptions on the distributions of outcomes and treatments conditional on type, which may be restrictive in many applications. In grouped-fixed effects models, the target parameters and group labels jointly minimize a common and known criterion. This joint structure is natural when addressing incidental parameter problems arising from fixed effects in linear panel models. However, if specifying a full model for the structural parameters, latent types, and observed variables is restrictive or even infeasible because the underlying system is too complicated, a separate first-stage approach may be attractive.

Second, we contribute to the DML literature (Chernozhukov et al., 2017; Chernozhukov et al., 2022; Ahrens et al., 2026) and the growing literature on AI-/ML-generated regressors (Battaglia et al., 2026; Escanciano and Perez-Izquierdo, 2026). We study a nonstandard problem in which the L2\mathcal{L}^{2}-Riesz representer required for the bias-correction term does not exist. We construct a bias-correction term through smoothing and provide sufficient conditions for valid asymptotic inference. Kennedy et al. (2020) also discuss how estimation error from a first-stage classifier can affect the plug-in estimator. Their result, like ours, shows why plug-in inference may be invalid. Though they establish N\sqrt{N}-consistency and asymptotic normality of an estimator under specific rate conditions on the first-stage error. In contrast, we show how to orthogonalize the effect of first-stage estimation and obtain a normal approximation, and thereby our approach accommodates flexible first-stage estimator.

We note that the idea of smoothing indicators is not new. For example, Horowitz (1992) proposed the smoothed maximum score estimator to address the nonregularity of the maximum score estimator (Manski, 1985). Whitehouse et al. (2025) and Park (2026) consider a related two-stage inference framework in which a first-stage estimator enters the moment function through the max⁡{δ(Z),0}\max\{\delta(Z),0\}, which they approximate using a logistic distribution function or a softmax function. Their setting does not face the same problem of existence of an L2\mathcal{L}^{2}-Riesz representer, because the max function max⁡{δ(Z),0}\max\{\delta(Z),0\} is continuous in δ(Z)\delta(Z). On the other hand, we consider the case under which δ(Z)\delta(Z) changes the moment function m(θ,1{δ(Z)≥cutoff},Wi)m(\theta,\textbf{1}\{\delta(Z)\geq\textnormal{cutoff}\},W_{i}) in discontinuous way.

This paper is organized as follows. In Section 2, we use a simple model to show why plug-in inference is invalid, why an L2\mathcal{L}^{2}-Riesz representer does not exist without modification, and how smoothing the indicator addresses this problem. In Section 3, we introduce the econometric framework, formalize the problem, and state the basic assumptions. In Section 4, we impose restrictions on the smoothing kernel and the rate at which the tuning parameter bb shrinks, derive the Neyman-orthogonal score, and define the debiased estimator. We then establish its Nb\sqrt{Nb}-consistency and asymptotic normality. Finally, in Section 5, we report Monte Carlo simulation results and show the debiased estimator achieves the nominal coverage probability.

References (50)