Linear Text Classifiers: Generative vs. Discriminative
Naive Bayes and logistic regression draw the same kind of boundary through word-count space and disagree only about where to put it. They share a hypothesis class and match different moments; Zipf's long tail breaks the generative shortcut; on separable text the logistic MLE runs off to infinity while its direction settles on the maximum-margin line; and no unigram model of financial tone can see that "costs rose" is bad news
Overview & Motivation
Train two classifiers on synthetic financial filings labeled negative, neutral, or positive in tone, using nothing but each document’s word counts, and test them on more. Naive Bayes gets of the test documents right. Logistic regression, given exactly the same counts, gets . Both draw linear boundaries through the same space of count vectors; on this page we work out why they draw them in different places, and when that difference favors which one. Then we look at the one thing neither can see. The word “rose” gets a weight of from logistic regression, no more than noise among these weights, because “sales rose” is good news and “costs rose” is bad. A reader who parses every sentence could reach .
The Zipf topic showed that a vocabulary is mostly rare words. That fact runs through everything below. We develop it in order:
- One hypothesis class. Naive Bayes is a softmax of a linear function of the counts, so it and logistic regression choose from the same family of boundaries.
- Two estimating equations. They differ in which moments of the training data they reproduce.
- How fast the generative side learns. Ng and Jordan’s bound, made explicit, and why it is honest but loose.
- The Zipf tail. A multinomial vocabulary cannot meet that bound’s hypothesis, and the cost is polynomial in the vocabulary.
- Burstiness and the crossover. When naive Bayes is the true model there is no crossover; when words come in bursts, there is.
- Separation. With more words than documents the logistic MLE does not exist, and its direction does.
- Naive Bayes features as a prior.
Then the finance corpus, where part of tone turns out to be an exclusive-or.
Two ways to draw one line
Take only two words, “strong” and “weak,” and plot each document as a point: how many times it says “strong” on one axis, how many times it says “weak” on the other. Most documents of every tone land exactly on the origin: of negative, of neutral, and of positive training documents say neither word, and so do of the test documents. The rest carry the signal, positive documents leaning along the first axis and negative ones along the second, and a classifier is a line through that plane.
Naive Bayes draws the line by modeling each class’s words. It estimates how often positive documents use “strong” and how often negative ones do, takes the log of the ratio as the word’s weight, and puts the line where the two classes’ models assign equal probability. Every word gets a vote proportional to its log ratio, whatever the other words are doing. Logistic regression draws the line directly. It moves the line until its predicted probabilities fit the labels as well as possible, and a word whose evidence the other words already carry gets less weight.
With words the plane becomes a -dimensional space, and the line a hyperplane, but the picture is the same. Both methods draw a hyperplane. The rest of this page is about where each one puts it.
One hypothesis class
We write for a document’s count vector over a vocabulary of features, for its length, and for its class.
Definition 1 (Bag of words).
A document’s count vector has equal to the number of occurrences of feature , a word or, with bigrams, an adjacent pair of words. Its binarization is .
Multinomial naive Bayes models a document of class as independent draws from a distribution over the vocabulary, so . Bernoulli naive Bayes models each feature’s presence as an independent coin with probability . Both are generative: they model given and invert with Bayes’s rule.
Proposition 1 (Naive Bayes is softmax-linear).
(a) Multinomial naive Bayes has with and . Bernoulli naive Bayes has the same form in , with and .
(b) For every and every length , some multinomial naive Bayes model has posterior on all documents of length . Across lengths,
with each row of a probability distribution. The softmax-linear family is naive Bayes’s posteriors with one more feature, the length.
Proof.
(a) By Bayes’s rule, . For the multinomial, , and the coefficient is the same for every class, so it cancels in the normalization. For the Bernoulli model, .
(b) Set , so and . When every document has length , choose up to a constant, and the naive Bayes posterior is . When lengths vary, depends on the document, so it is a feature rather than a bias.
∎The extra feature matters. With a one-word vocabulary every document is just a length, every naive Bayes posterior is its prior, and a softmax of can still use the length. The difference of the two classes’ Bernoulli weights in (a), , is the Robertson–Spärck Jones relevance weight, with relevance as the class (formalRAG BM25 topic, Theorem 1). The harness checks (a) against the literal Bayes rule to and against scikit-learn to .
Definition 2 (Generative–discriminative pair).
A generative classifier fits a model of and predicts . Its discriminative partner fits directly, in the parametric family that the generative model induces. Multinomial naive Bayes and softmax logistic regression on counts are such a pair.
The pairing is Ng and Jordan’s (2002), building on Rubinstein and Hastie (1997). The formalML naive-Bayes topic develops the three variants and their smoothing; here we take the pair as given and ask what distinguishes its members.
Two estimating equations
Logistic regression fits and by minimizing the average cross-entropy of , with a ridge penalty on the weights:
We write for the one-hot label, for the number of training documents in class , and .
Theorem 1 (Two estimating equations).
(a) is convex, with Hessian
At its null space contains every , a subspace of dimension . At , when the are interior, the null space is the single direction that shifts every intercept together.
(b) At any minimizer,
(c) Multinomial naive Bayes instead sets , which matches each class’s word totals and in general satisfies neither equation in (b).
Proof.
(a) The function is convex with Hessian , and is linear in , so the chain rule gives the Kronecker form and each term is positive semidefinite. Since , every is in each term’s null space. With , a direction has quadratic form at least , which vanishes only if ; then the form is , which vanishes only for when the are interior.
(b) The gradient is and . Set both to zero.
(c) Naive Bayes maximizes the joint likelihood subject to , and stationarity of the Lagrangian gives the ratio.
∎The first equation in (b) says that at the fitted model predicts, for every class and every word, exactly as many occurrences of the word in documents of the class as the training data contains. The second says the predicted class totals equal the observed ones, for every : logistic regression is calibrated in the large on its training data. Naive Bayes matches a different set of moments. On the finance unigrams at its fitted posteriors miss the neutral and positive class totals by and documents out of , and its co-counts by up to . Much of that is the smoothing: at the largest misses are and . Logistic regression’s class totals hold to . Its co-counts miss by up to , and that gap is the penalty term of (b) exactly; what vanishes, to , is the residual of the penalized equation.
Theorem 1 is the multiclass version of the binary logistic results in the formalStatistics GLM topic (its Theorems 1 and 2). The harness checks the gradient and Hessian against finite differences, the null-space dimensions on random instances (one with more features than documents, since (a) at needs no spanning), and agreement with scikit-learn, whose solver stops at an objective no lower than ours.
How fast the generative side learns
Ng and Jordan compare how much data each member of a pair needs to come within of its own asymptotic error. Their generative side is about binary features whose rates are bounded away from and . We state it with explicit constants.
Lemma 1 (Uniform concentration of the parameters).
Take binary features and suppose each of the two classes has at least training documents.
(a) Conditional on the labels, with probability at least every estimated rate satisfies .
(b) With documents, with probability at least ; if , then documents give each class at least on that event.
(c) Add- smoothing moves each rate by at most .
Proof.
(a) Each is a mean of independent Bernoulli variables, so Hoeffding’s inequality gives . A union bound over the pairs gives at most .
(b) Hoeffding’s inequality for the labels; on its event, .
(c) for .
∎The union bound is where comes from: parameters cost only in the sample size. Ng and Jordan state this as their Lemma 3, with .
Let be the population discriminant, its sign rule, and , the plug-in versions from estimated parameters. For a margin width , let
the probability that is right but by a margin of at most .
Theorem 2 (The generative error bound).
Suppose every true rate , and , lie in , and every estimate is within of the truth. Then
(a) for every , with ;
(b) .
Proof.
(a) Every true probability, for and for , is at least , and every estimate is within , so both are at least . By the mean value theorem, . The discriminant has feature log terms and prior log terms, so .
(b) If errs on a document that gets right, the two discriminants have opposite signs, so , and was right: that is the event that measures.
∎With Lemma 1, , so , which is Ng and Jordan’s Theorem 4. If for some with , then documents bring naive Bayes within of its asymptotic error (their Corollary 6). The discriminative side we cite. Half-spaces in have VC dimension (formalML VC-dimension topic, Theorem 6), which gives their Proposition 2: the discriminative classifier comes within of its asymptotic error, and needs documents in the worst case. Their Proposition 1 adds that the discriminative classifier’s asymptotic error is never worse. Both concern the classifier that minimizes training 0-1 error over half-spaces; logistic regression’s MLE is a convex stand-in for it.
How loose is it? The harness builds a world where Bernoulli naive Bayes is exactly true: features, rates clipped to , , . Lemma 1 asks for documents per class. In draws of that size no parameter was ever off by more than , and the largest deviation’s quantile was . Theorem 2’s margin is nats. The largest gap between and on any test document in any draw was nats, and the median is . With a margin of , is every correctly classified document, and the bound says nothing. A margin of one nat would take documents per class. Most of the slack is in the size of each term, not in their signs. The proof charges every log term nat, while the real terms have median and maximum . With those sizes and every sign aligned, the worst test document reaches nats, a factor of below , and the worst document anyone could build reaches ; letting the signs cancel takes off a further factor of . The sample size it predicts grows the right way in , but the constants make it vacuous at any realistic size.
Multinomial counts and the Zipf tail
Theorem 2 needs every rate to be at least : Lemma 1 has no such hypothesis, but Theorem 2’s log terms blow up near zero. A multinomial vocabulary cannot have that: its rates sum to , so some word has , and under Zipf’s law most words are far rarer.
Theorem 3 (Relative accuracy costs the rarest word).
Let a class’s training tokens be independent draws from , and let be the empirical rates. Fix .
(a) If , then with probability at least every . Then every . If each of two classes has that many tokens, then with probability at least a document’s discriminant moves by at most .
(b) If , the rarest word is unseen with probability at least , and its relative error is . So relative accuracy for every word needs more than tokens.
(c) Under Zipf(), , so (a) asks for a number of tokens that grows like : polynomially in , not logarithmically.
Proof.
(a) The multiplicative Chernoff bound gives , and a union bound over words with gives at most . For , and . A union bound over the two classes’ events gives , and on both the discriminant moves by at most .
(b) .
(c) Zipf() gives word probability , the law of the Zipf topic, and the last word has the smallest.
∎In the long-tailed world of the next section ( words, rates in proportion to the corpus’s), is , and part (a) at , asks for million tokens per class. A uniform vocabulary of the same size would need million, and a pure Zipf(1.1) vocabulary million. Training on documents supplies million tokens per class and leaves about words never seen.
The bound is sufficient, not necessary, because rare words are rare in test documents too. The share of test tokens whose word occurred fewer than five times in training falls from at training documents to at and at . What the long tail does change is the smoothing. When the smoothing strength is chosen on validation data, its median choice in the -word world rises unevenly, from under through to at , on a grid that stops at , while in a -word world it stays between and . More data does not mean more words seen once. Pooled across classes, words seen exactly once peak near at and are down to about at ; within one class they peak near at and fall to , while is still rising. What changes is what shrinkage costs. At , raising from to gains of validation accuracy by shrinking the noise words, and loses by flattening the informative words and because pseudo-tokens turn a small difference between the classes’ token totals into a bias that grows with a document’s length. At those costs are and , and the gain is still .
Burstiness and the crossover
Ng and Jordan’s two results predict two regimes. Naive Bayes approaches its asymptote faster, so it should lead early. Logistic regression has the better asymptote, so it should lead late if the two asymptotes differ. When naive Bayes is the true model they do not differ, and the prediction is no crossover at all.
Real words also come in bursts: a filing that mentions “impairment” once tends to mention it again. (The synthetic corpus does not do this: “impairment” occurs times in of its training documents. So we build bursts into simulated worlds.) Model it in the simplest way: draw an underlying count vector from naive Bayes, and observe , where each word’s occurrences repeat times.
Proposition 2 (Bursts keep logistic regression right and can move naive Bayes's asymptote).
Let with independent of , and observe for fixed .
(a) , which is linear in . Softmax logistic regression contains the true conditional, and its population error is the Bayes error.
(b) Multinomial naive Bayes fit to infinitely many such documents converges to with . Its weight per observed count is : per underlying occurrence, times the Bayes weight, plus a term in the length. Its asymptotic error is generally above the Bayes error.
(c) If for every word with , then , and naive Bayes’s limiting weights are times the Bayes weights per observed count. With its limiting rule is the Bayes rule, whatever does on the other words.
Proof.
(a) is a function of , so , which Proposition 1(a) writes as a softmax of .
(b) By the law of large numbers, .
(c) Let be the set of words with unequal rates. Since is the same for both classes, so is . The weight in (b) is then , which is off and times the weight of (a) on . With neither discriminant has a prior term, so one is times the other and they have the same sign.
∎The harness builds four worlds from the corpus. In each, informative words (the sentiment lexicon, the direction words, and “not”) have class-dependent rates taken from the corpus and hold of every document. The rest of each document is spread over uninformative words in proportion to their corpus frequencies: of them () or (). In the bursty worlds a fixed half of the words repeat four times, including of the informative ones. All four worlds have one Bayes accuracy, on a million documents: the bursts are a deterministic relabeling, and words whose rates do not depend on the class cannot change it. Naive Bayes’s asymptote in the bursty worlds is at and at . Each method’s hyperparameter, the smoothing for naive Bayes and the penalty for logistic regression, is chosen for every fit on a fresh validation draw, and each curve averages four nested training draws.
- Naive Bayes true, : naive Bayes leads at every training size and reaches at documents, against . No crossover.
- Naive Bayes true, : again no crossover; at documents naive Bayes has and logistic regression .
- Bursty, : naive Bayes leads until documents, and logistic regression leads from there on, finishing at , past naive Bayes’s asymptote; naive Bayes finishes at .
- Bursty, : the crossover moves out to documents, and at logistic regression has and naive Bayes .
Do the two regimes appear exactly where the asymptotic errors differ? No. Proposition 2(c) says overcounting alone costs nothing. Repeat every word four times, or all informative words and nothing else, and naive Bayes’s asymptote stays at the Bayes accuracy, because every weight that matters scales by one factor. That needs balanced classes: at the score scales and the prior does not, and uniform bursts cost . What costs the asymptote is unevenness among informative words. Let every other informative word burst and nothing else, so that some signal words get four votes and others one, and the asymptote falls to .
The crossover does not need that. Let only the noise words burst. Their log ratios are zero, so by (c) naive Bayes’s asymptote is exactly the Bayes accuracy, and there is no gap. Logistic regression overtakes it anyway, winning all four draws from at and from at , sooner than the and of the half-informative worlds, where the gap exists. A noise word’s fitted weight is small and wrong, and a burst gives it four votes at test time. Naive Bayes’s weight is a log ratio of rates and cannot see the four: at the noise words’ part of its score grows fourfold, from a standard deviation of to . Logistic regression refits. By Proposition 3(a) with , repeating a word four times divides its weight by about four (, , at , , , and exactly at ), so that part of its score barely moves, from to . At the two meet again by , as equal asymptotes predict; at logistic regression still wins all four draws there.
So a gap between asymptotes is one way to get Ng and Jordan’s two regimes, not the only one. The other is a difference in how each method pays for noise it has not yet averaged out. Choose the world and the vocabulary in the laboratory.
When naive Bayes is the true model, its asymptote is the Bayes accuracy and it leads at every n shown. When half the words come in bursts of four, logistic regression stays well specified. Naive Bayes loses asymptote because the bursts hit some informative words and not others (Proposition 2), and its noise words get four votes each until it has averaged them out. A gap in asymptotes is not required: on the page, bursts on noise words alone produce a crossover with no gap at all.
Separation
The finance corpus has training documents and unigram features, with bigrams. With more features than documents, a hyperplane can usually separate the training classes perfectly, on either feature set: the unigram count matrix has rank . That changes what logistic regression’s fit means. We use the homogeneous model here (no intercept), write for a document times its label , and let
Theorem 4 (Separation, the missing MLE, and the max-margin limit).
(a) If some has for every , then and no attains it; at every , so has no stationary point. For , has a unique minimizer .
(b) If the are linearly independent, which needs , every labeling is separable.
(c) Let subject to for all , the hard-margin SVM, which is unique, and let and . As , , , and .
Proof.
(a) Along every margin grows, so as , while everywhere. The directional derivative is negative. is strictly convex and grows without bound, so it has exactly one minimizer.
(b) The map from onto is surjective, so has a solution for any sign vector , and then .
(c) Write with , and .
The norm grows without bound. Fix . On the ball , . Since , , which is below for large and then small. So eventually lies outside the ball.
Compare at equal norm. and the penalties are equal, so .
The margin is eventually positive. If , one term of is at least , so , which exceeds once is large.
The margin approaches the maximum. For , , so , which gives .
The direction converges. Every limit point of on the unit sphere has , so it is a max-margin direction, and by uniqueness . A bounded sequence whose every convergent subsequence has the same limit converges to it.
∎Part (c) is Rosset, Zhu, and Hastie’s (2004) Theorem 2.1 for the logistic loss with the squared penalty; their JMLR paper proves the same limit along the constrained path . Albert and Anderson (1984) classify when the MLE exists; part (a) is the complete-separation case. Cover’s (1965) function-counting theorem gives (b) its exact form: points in general position in admit all homogeneous labelings exactly when .
The harness takes the polar tone documents of a -document corpus, with words. Their count vectors have full rank, so every labeling is separable, and a linear program confirms it for the true labels and three random ones. The SVM normalized margin is . As falls from to the norm runs from to , the cosine to the SVM direction rises from to , and the normalized margin from to . The last decade of adds to the norm, near , as would predict.
Unregularized gradient descent does the same thing with time in place of . Soudry and colleagues (2018, Theorems 3 and 5) prove that on separable data, from any start and with a small enough step, grows like and its direction converges to the max-margin direction, at rate . From on the tone documents, the cosine to the SVM direction is after steps, after , and after , while the loss falls to . The laboratory plots both paths. A logistic regression on separable text that reports its weights is reporting how long it ran; only the direction is a fact about the data, and the margin bound of the formalML generalization topic (Theorem 6) is why that direction is a good one.
Naive Bayes features as a prior
Wang and Manning (2012) reuse naive Bayes inside a discriminative model. Their log-count ratio for a binary task is
naive Bayes’s weight vector for features , and their NBSVM fits a linear model to .
Proposition 3 (Naive Bayes weights as a prior).
(a) Let every . Logistic regression on the features with penalty has the same decision function as logistic regression on with penalty , through .
(b) For raw counts with class totals , , and word totals ,
Proof.
(a) The substitution is a bijection that leaves every score unchanged and sends to .
(b) , and since , the first ratio lies between and .
∎Part (a) is a Gaussian prior with a different variance for each word, set by naive Bayes: averages its loss, so against the summed log likelihood the penalty is a prior of variance (formalStatistics regularization topic). A word that naive Bayes finds uninformative gets a tight prior around zero, and a word it finds strongly polar is free to move. Part (b) is the funnel in the laboratory. On the polar training documents ( words), the most extreme log ratio of any word seen once is at , at , and at , each exactly the bound. Smoothing caps what a rare word can say, and under Zipf most words are rare. Add- smoothing is a posterior mean under a symmetric Dirichlet prior (formalStatistics multivariate topic, Theorem 6). The formalRAG query-likelihood topic smooths toward a background distribution instead.
The aspect exclusive-or
The finance corpus writes its tone into to aspect sentences per document. Each sentence names an aspect (revenue, margins, demand, liquidity, costs, taxes, liabilities) and says what happened to it. For revenue, up is good news; for costs, up is bad.
Proposition 4 (Valence times direction is not linear in unigrams).
On the four one-clause documents “revenue rose” (positive), “revenue fell” (negative), “costs rose” (negative), and “costs fell” (positive), no separates the labels using unigram counts. Bigram indicators separate them.
Proof.
Suppose separates them. The positive documents give and , whose sum is . The negative documents give and , whose sum is the same . With bigram indicators, weight on “revenue rose” and “costs fell” and on the other two separates them.
∎This is the exclusive-or that a single hyperplane cannot draw, and the corpus shows its signature. In the unigram fit, logistic regression gives “rose” a weight of and “fell” (positive minus negative). That is noise, not zero: the weights have standard deviation and median magnitude , which puts “rose” in about the top quarter, but no direction word gets past it and their signs follow no pattern, because the words cancel across aspects. The bigram fit puts the sign on the pairs:
| bigram | weight |
|---|---|
| costs rose | |
| costs fell | |
| taxes rose | |
| sales rose | |
| revenue rose | |
| not strong | |
| not weak |
“Revenue rose” is the row that fails, and instructively: of its training occurrences sit inside “cost of revenue rose,” an exclusive-or one word wider than a bigram. Negation is the same kind of interaction: “not” flips the adjective after it, and “not weak” is positive.
Where this sits
Naive Bayes for text goes back decades, and its independence assumption has been examined from many sides: Lewis (1998) surveys its history in retrieval, Domingos and Pazzani (1997) explain why it can classify well with badly wrong probabilities, McCallum and Nigam (1998) compare the multinomial and Bernoulli event models, and Rennie and colleagues (2003) repair several of its biases, including burstiness, with complement classes and log term frequencies. Joachims (1998) showed that text is the high-dimensional, nearly separable setting where margin methods do well, the geometry of Theorem 4. The formalML naive-Bayes topic covers Gaussian naive Bayes, Ng and Jordan for that case, and the Platt and isotonic repairs of its probabilities.
The next topic replaces learned weights with a fixed dictionary, Loughran and McDonald’s (2011), and asks what a lexicon gets wrong about financial words. The same log-linear model, lifted from documents to label sequences, is the linear-chain conditional random field of the sequence-labeling topic. Whether a accuracy gap between two of these classifiers is real is a question for the significance-testing topic. And a fine-tuned encoder replaces the bag of words with a representation that can see “costs rose” as a phrase.
Honest caveats
Implementation
The companion notebook (notebookPath) imports linear_text_classifiers.py, which owns every number on this page. That module imports the Zipf topic’s module for Zipf’s law and the shared finance corpus through it. It implements multinomial and Bernoulli naive Bayes in Proposition 1’s closed form, softmax and binary logistic regression by trust-region Newton–CG with exact Hessian-vector products, the hard-margin SVM through its dual, the simulated worlds with common random numbers, and the finance classifiers. A harness of assertion-based tests runs in about four minutes on a laptop CPU, and --slow adds two checks that fit on up to documents, about ten minutes more. The tests cover:
- Proposition 1 against the literal Bayes rule and scikit-learn’s naive Bayes, and the length counterexample.
- Theorem 1’s gradient, Hessian, and null spaces against finite differences, its estimating equations at the fitted optimum, and scikit-learn’s logistic regression.
- Lemma 1 and Theorem 2 in a Bernoulli world that meets their hypotheses, including how loose the bound is; Theorem 3 in the long-tailed world, with a Monte Carlo check of its Chernoff step.
- Proposition 2’s identity and its balanced case, the one Bayes accuracy, who bursts, and the learning curves’ regimes in all four worlds; words seen once and what pays for.
- Theorem 4’s rank, separability by linear programming, the missing stationary point, and the monotone path and gradient-descent directions.
- Proposition 3’s equivalence and bound, Proposition 4 by linear programming and on the corpus, and the finance tables, ceiling, prefixes, and label noise.
- The case study’s explanations: six splits, wide grids, vocabulary cuts, redrawn words, exact readers, the bigram decomposition, and every phrase the page quotes from the corpus.
The laboratory reads its data from a JSON file that one of those tests requires to equal the module’s viz_payload() exactly, so the figure cannot drift from the code.
References & Further Reading
- paper On Discriminative vs. Generative Classifiers: A Comparison of Logistic Regression and Naive Bayes — Andrew Y. Ng and Michael I. Jordan (2002) Advances in Neural Information Processing Systems 14, 841–48 (NIPS 2001, MIT Press 2002). Generative–discriminative pairs; Proposition 1 (asymptotic errors), Proposition 2 (the discriminative side, m = Ω(n)), Lemma 3 and Theorem 4 (the generative side), Corollary 6 (m = O(log n)), on which Lemma 1 and Theorem 2 are modeled
- paper Comment on 'On Discriminative vs. Generative Classifiers: A Comparison of Logistic Regression and Naive Bayes' — Jing-Hao Xue and D. Michael Titterington (2008) Neural Processing Letters 28 (3): 169–87. Simulations and real data on which the two regimes of Ng and Jordan are not reliable, and no general criterion for choosing between the two kinds of classifier
- paper A Comparison of Event Models for Naive Bayes Text Classification — Andrew McCallum and Kamal Nigam (1998) Learning for Text Categorization: Papers from the 1998 AAAI Workshop, 41–48. The multinomial and Bernoulli event models of Proposition 1
- paper Margin Maximizing Loss Functions — Saharon Rosset, Ji Zhu, and Trevor Hastie (2004) Advances in Neural Information Processing Systems 16, 1237–44. Theorem 2.1: as the penalty vanishes, the normalized penalized solution of a margin-maximizing loss converges to the max-margin separator, Theorem 4(c) here at p = 2
- paper Boosting as a Regularized Path to a Maximum Margin Classifier — Saharon Rosset, Ji Zhu, and Trevor Hastie (2004) Journal of Machine Learning Research 5: 941–73. Section 5, Theorem 3: the same limit along the constrained path
- paper The Implicit Bias of Gradient Descent on Separable Data — Daniel Soudry, Elad Hoffer, Mor Shpigel Nacson, Suriya Gunasekar, and Nathan Srebro (2018) Journal of Machine Learning Research 19 (70): 1–57. Theorem 3: gradient descent on separable logistic loss grows like the max-margin vector times log t; Theorem 5: its direction converges at rate O(log log t / log t)
- paper On the Existence of Maximum Likelihood Estimates in Logistic Regression Models — A. Albert and J. A. Anderson (1984) Biometrika 71 (1): 1–10. Complete separation, quasi-complete separation, and overlap, the trichotomy behind Theorem 4(a)
- paper Geometrical and Statistical Properties of Systems of Linear Inequalities with Applications in Pattern Recognition — Thomas M. Cover (1965) IEEE Transactions on Electronic Computers EC-14 (3): 326–34. Theorem 1, the function-counting theorem: how many labelings of points in general position a hyperplane can realize
- paper Baselines and Bigrams: Simple, Good Sentiment and Topic Classification — Sida Wang and Christopher D. Manning (2012) Proceedings of the 50th Annual Meeting of the ACL (Volume 2: Short Papers), 90–94. The log-count ratio (their Eq. 2) and NBSVM (Eq. 4), whose feature weighting Proposition 3 analyzes
- paper Tackling the Poor Assumptions of Naive Bayes Text Classifiers — Jason D. M. Rennie, Lawrence Shih, Jaime Teevan, and David R. Karger (2003) Proceedings of the Twentieth International Conference on Machine Learning, 616–23. Complement naive Bayes, weight normalization, and log term-frequency transforms against burstiness
- paper Predicting Good Probabilities with Supervised Learning — Alexandru Niculescu-Mizil and Rich Caruana (2005) Proceedings of the 22nd International Conference on Machine Learning, 625–32. Naive Bayes pushes its probabilities toward 0 and 1
- paper On the Optimality of the Simple Bayesian Classifier under Zero-One Loss — Pedro Domingos and Michael Pazzani (1997) Machine Learning 29 (2–3): 103–30. Why naive Bayes can classify well while its probabilities are badly wrong
- paper Naive (Bayes) at Forty: The Independence Assumption in Information Retrieval — David D. Lewis (1998) Machine Learning: ECML-98, 4–15. Lecture Notes in Computer Science 1398
- paper Discriminative vs Informative Learning — Y. Dan Rubinstein and Trevor Hastie (1997) Proceedings of the Third International Conference on Knowledge Discovery and Data Mining, 49–53. The two ways of fitting one classifier, before Ng and Jordan
- paper The Efficiency of Logistic Regression Compared to Normal Discriminant Analysis — Bradley Efron (1975) Journal of the American Statistical Association 70 (352): 892–98. When the Gaussian model is right, logistic regression loses a third to a half of the discriminant's asymptotic efficiency
- paper Probability Inequalities for Sums of Bounded Random Variables — Wassily Hoeffding (1963) Journal of the American Statistical Association 58 (301): 13–30. The inequality behind Lemma 1
- paper Text Categorization with Support Vector Machines: Learning with Many Relevant Features — Thorsten Joachims (1998) Machine Learning: ECML-98, 137–42. Text is high-dimensional, sparse, and nearly separable, the setting of Theorem 4
- paper When Is a Liability Not a Liability? Textual Analysis, Dictionaries, and 10-Ks — Tim Loughran and Bill McDonald (2011) Journal of Finance 66 (1): 35–65. Financial tone and the words a general-purpose sentiment model misreads; the next topic