Discriminative classification with generative features: bridging Naive Bayes and logistic regression

Zachary Terner, Alexander Petersen, Yuedong Wang
11/30/2025
stat.MLcs.AIcs.LG

No confident code implementation found for this paper.

Abstract

We introduce Smart Bayes, a new classification framework that bridges generative and discriminative modeling by integrating likelihood-ratio-based generative features into a logistic-regression-style discriminative classifier. From the generative perspective, Smart Bayes relaxes the fixed unit weights of Naive Bayes by allowing data-driven coefficients on density-ratio features. From a discriminative perspective, it constructs transformed inputs as marginal log-density ratios that explicitly quantify how much more likely each feature value is under one class than another, thereby providing predictors with stronger class separation than the raw covariates. To support this framework, we develop a spline-based estimator for univariate log-density ratios that is flexible, robust, and computationally efficient. Through extensive simulations and real-data studies, Smart Bayes often outperforms both logistic regression and Naive Bayes. Our results highlight the potential of hybrid approaches that exploit generative structure to enhance discriminative performance.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{terner2025discriminative,
  title  = {Discriminative classification with generative features: bridging Naive Bayes and logistic regression},
  author = {Zachary Terner and Alexander Petersen and Yuedong Wang},
  year   = {2025},
  eprint = {2512.01097},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2512.01097v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2512.01097.svg)](https://codeofpaper.com/paper/2512.01097)

Discussion