Classical score tests assess a hypothesis by looking at derivatives of the log-likelihood, whose expectation is zero under the null. The new work extends this idea to semiparametric regression, where the target is a regression function rather than a finite-dimensional parameter. The test asks whether that function belongs to a specified linear class, yielding goodness-of-fit checks for generalised additive and partially linear models, and can also detect effect modifiers in observational studies.
The proposed "hunt-and-test" strategy splits the data into two parts. On the first, the null model is fitted and machine learning identifies a promising direction in the empirical scores; on the second, the test checks whether the score vanishes along that direction. Because the null model itself must be estimated, the authors add a debiasing correction based on a weighted least squares projection. This controls Type I error under relatively mild conditions, and the test has power whenever the hunted direction correlates with the true score.
Simulations and real-data examples show favourable performance, including identifying effect modifiers in an HIV clinical trial and assessing an additive model for insurance claims. The methodology is available in the R package dScoreTest, making the procedure straightforward to apply in practice.