Novelty Detection
Suppose we have labeled examples of an ordinary class and an unlabeled sample that also contains novel observations. The novel distribution is unknown, so its likelihood ratio cannot be estimated directly from labeled examples. (Blanchard, Lee, and Scott 2010) show that comparing the ordinary distribution with the mixture can nevertheless recover the same optimal rejection ordering.
1. The population result
Let \(P_X=(1-\pi)P_0+\pi P_1\), with \(0<\pi\leq1\). A measurable rule \(f\) takes values in \([0,1]\), with \(f(x)\) the probability of declaring novelty at \(x\). Deterministic rules take only the values zero and one. Write
Acceptance in the mixture is acceptance in either latent class, weighted by that class’s proportion. Hence
Proposition 1. Suppose the minimum false-negative risk over \(R_0(f)\le\alpha\) is attained by a classifier \(f^*\) with \(R_0(f^*)=\alpha\). Minimizing \(R_X\) under the same constraint attains the same false-negative optimum. Every minimizer of \(R_X\) also minimizes \(R_1\); when \(0<\pi<1\), its false-positive constraint binds.
Indeed, for any feasible \(f\),
At \(\pi=1\), the two objectives coincide directly; binding of the false-positive constraint need not follow. Randomization can help attain an exact false-positive level in a discrete model.
2. A likelihood-ratio interpretation
When densities exist,
The mixture likelihood ratio is a positive affine transformation of the novel-to-nominal ratio. It therefore preserves its ordering. A Neyman–Pearson comparison with the unlabeled mixture can select the same rejection sets as a comparison with labeled novel observations.
Low nominal density alone does not give this ordering. It is appropriate for a uniform alternative in the corresponding setting, but a novel class may put substantial mass where ordinary observations are also common.
For a finite support, this ranking can be derived as a budget-allocation calculation. Let \(r_j\in[0,1]\) be the probability of rejecting at point \(j\), and let \(p_{0j}>0\), \(p_{1j}\) be the two class probabilities. Maximizing novel-class power subject to false-positive level \(\alpha\) means
Moving an amount \(\varepsilon\) of false-positive budget from point \(a\) to point \(b\) changes power by \(\varepsilon(p_{1b}/p_{0b}-p_{1a}/p_{0a})\). An optimum therefore fills points in decreasing likelihood-ratio order, randomizing at a boundary point if needed. Replacing \(p_{1j}\) by \(p_{Xj}\) adds the same constant \(1-\pi\) to every ratio and multiplies its remaining part by \(\pi>0\), preserving that order.
3. From population to sample
Fix a measurable class \(\mathcal F\) containing a population minimizer \(f^*\) with \(R_0(f^*)=\alpha\). Assume independent iid nominal and mixture samples of sizes \(m,n\). The bounds below hold on a simultaneous uniform-deviation event; measurability of the suprema and an empirical minimizer, or a measurable approximate minimizer, is assumed.
Let \(\widehat R_0\) use \(m\) nominal observations and \(\widehat R_X\) use \(n\) mixture observations. On the event
choose \(\widehat f\) to minimize \(\widehat R_X\) subject to \(\widehat R_0\leq\alpha+\epsilon_m\). Since \(R_0(f^*)=\alpha\), the population comparator is empirically feasible. Therefore
The constraint also gives \(R_0(\widehat f)\leq\alpha+2\epsilon_m\). Rearranging the population mixture identity,
gives
The factor \(1/\pi\) records how a small mixture-risk difference can correspond to a larger novel-class difference when novelties are rare. An approximate empirical minimizer adds its optimization gap divided by \(\pi\).
For a finite class of size \(K\), Hoeffding and a union bound give, for example,
with simultaneous probability at least \(1-\delta\). A VC argument replaces the finite-class count by a complexity bound. Uniformity over the class is essential, since the data select the classifier as well as estimate its risk.
4. What fraction of the mixture is identifiable?
Recovering the rejection ordering requires less information than recovering the novelty fraction. To see what can be identified about the fraction, define
Proposition 2. Identified mixing fractions. If \(P_X\ne P_0\), then \(0<\pi^*\leq1\), and the set of mixing fractions in decompositions \(P_X=(1-\pi)P_0+\pi P_1\) with unrestricted probability law \(P_1\) is exactly \([\pi^*,1]\). At each feasible \(\pi\), the residual is uniquely
The residual \(P_1^*=P_{1,\pi^*}\) is irreducible with respect to \(P_0\): it contains no positive mixture component of \(P_0\). Imposing irreducibility identifies \(\pi=\pi^*\) and \(P_1=P_1^*\). If \(P_X=P_0\), then \(\pi^*=0\) and every \(\pi\in(0,1]\) is feasible with \(P_1=P_0\). Allowing \(\pi=0\) adds that endpoint, at which the novel law is unrestricted.
Proof. A nominal weight \(\kappa\) is feasible only if \(P_X(A)\geq\kappa P_0(A)\) for every measurable \(A\), hence \(\kappa\leq\kappa^*\). The definition of the infimum also implies this measure inequality at \(\kappa=\kappa^*\), including sets with \(P_0(A)=0\). The difference is therefore a nonnegative measure of mass \(1-\kappa^*\). If \(\kappa^*=1\), the difference has zero total mass, giving \(P_X=P_0\). Otherwise it can be normalized to obtain \(P_1^*\).
For \(\pi\geq\pi^*\),
so every fraction in the interval is feasible. If \(P_1^*\) contained a nominal component of weight \(\eta>0\), removing it would yield a nominal weight \(\kappa^*+(1-\kappa^*)\eta>\kappa^*\) in \(P_X\), a contradiction. Conversely, every \(\pi>\pi^*\) in the displayed decomposition has a positive nominal component in its residual. The case \(P_X=P_0\) follows directly from the mixture identity.
An example shows why the restriction is needed. Suppose \(P_1=\eta P_0+(1-\eta)Q\), with \(0<\eta<1\). Then
Both decompositions give the same observed mixture: one has fraction \(\pi\) and a novel class containing nominal mass; the other has fraction \(\pi(1-\eta)\) and novel distribution \(Q\). Irreducibility excludes the hidden nominal component and makes the fraction identifiable.
5. Classifiers give honest lower bounds on novelty mass
For a deterministic acceptance set \(A=\{f=0\}\) with \(P_0(A)>0\),
Hence \(1-R_X(f)/(1-R_0(f))\leq\pi^*\leq\pi\). Optimizing over all measurable acceptance sets recovers \(\pi^*\). For a randomized rule, integrate the nonnegative weight \(1-f\) against \(P_X\geq\kappa^*P_0\) to obtain the same inequality whenever \(1-R_0(f)>0\). A restricted class can give a smaller lower bound.
On the earlier uniform-deviation event, a feasible confidence lower bound is
Use an upper bound for the numerator and a lower bound for the positive denominator. Each empirical ratio then bounds its population ratio from above, so the infimum is at least \(\kappa^*\) and \(\underline\pi\leq\pi^*\) follows. If the eligible class is empty, the available lower bound is zero.
6. Why no unrestricted estimation rate follows
The following two-distribution calculation establishes a special case of the paper’s impossibility results: Theorem 9 rules out informative distribution-free upper confidence bounds, and Corollary 10 rules out uniform consistency. The identified lower endpoint \(\pi^*\) is discontinuous in total variation. Let \(P_0\) be uniform on \([0,1]\) and let \(Q_\varepsilon\) be uniform on \([\varepsilon,1]\), for \(0<\varepsilon<1\). Their total variation distance is \(\varepsilon\). Yet \(\pi^*(P_0)=0\), while \(\pi^*(Q_\varepsilon)=1\), because the interval \([0,\varepsilon)\) has positive nominal probability and zero mixture probability.
For any estimator based on \(m\) nominal and \(n\) mixture observations,
The appendix proves this using a coupling of the two experiments. Taking \(\varepsilon=o(1/n)\) rules out uniform consistency over unrestricted mixture distributions, even though \(\pi^*\) is identified from the population distributions. Pointwise consistency at a fixed law under the paper’s growing-class approximation conditions is compatible with this lower bound.
A uniformly valid upper confidence bound is similarly uninformative at the nominal law. If \(U_n\in[0,1]\) satisfies \(P\{\pi^*(P_X)\leq U_n\}\geq1-\alpha\) for every mixture law, then
Useful upper bounds therefore need restrictions that prevent an arbitrarily small region from determining the infimum. The lower confidence bound derived above does not require such a restriction.
7. Appendix: indistinguishable mixture samples
The common part of \(P_0\) and \(Q_\varepsilon\) has mass \(1-\varepsilon\). Couple one draw to agree with that probability, and independently repeat this construction \(n\) times. The two mixture samples differ with probability at most \(n\varepsilon\). The nominal samples have the same law and can be coupled identically. Thus, for every test \(\varphi\in[0,1]\) based on both samples,
Take \(\varphi=1\{\widehat\pi^*>1/2\}\). Under \(P_X=P_0\), rejection implies estimation error at least \(1/2\); under \(P_X=Q_\varepsilon\), failure to reject has the same implication. At least one error probability is therefore at least \((1-n\varepsilon)/2\).
For the upper bound, coverage at \(Q_\varepsilon\) implies \(P_{Q_\varepsilon}(U_n=1)\geq1-\alpha\). Coupling transfers this inequality to
Letting \(\varepsilon\downarrow0\) at the fixed sample size gives the claim. Both arguments remain valid if \(P_0\) is known exactly, since the nominal sample contributes no distinction between the experiments.