arXiv:2610.28747stat.MLOct 2026

Manuscript Offprint

arXiv:2610.28747

A Reverse-Gold Theorem: Positive-Data Identification by Substrate-Bounded Contrastive Learners

Rakesh Sengupta

Abstract

Gold's theorem shows that no learner can identify an arbitrary language in a superfinite class from positive presentations alone. We prove a positive result of a different shape. Fix an innate recursive contrast operator RR mapping any string to a finite set of structurally bounded perturbations of it, and a discriminative scorer of bounded capacity trained by InfoNCE-style contrastive estimation (van den Oord, Li, & Vinyals, 2018; Ma & Collins, 2018) on self-generated perturbations. Under a faithfulness condition relating operator, scorer, and target, the trained scorer achieves PAC conditional identification from positive data alone: with high probability it ranks all but an ε\varepsilon-fraction of positives above every out-of-language perturbation in their own orbit, with sample complexity polynomial in the capacity, the orbit size, the score bound, and 1/ε1/\varepsilon. The negatives are constructed by the learner, not supplied by an oracle, and no global normalizing constant over strings is ever computed. The misranking bound follows from the geometry of the contrastive loss—per-example loss floors plus a definite loss increment under misranking—yielding an ε−2\varepsilon^{-2} rate, together with an explicit approximation gap that quantifies the cost of in-language ("colliding") perturbations and vanishes for orbit-pure operators. The ranking guarantee lifts to a global membership classifier under a margin condition, and the same operator composed with the learned scorer is a normalization-free Metropolis–Hastings generator. We instantiate the hypotheses for substitutable context-free languages (Clark & Eyraud, 2007) and the subregular classes (Heinz, 2010; Hayashi & Kamigaito, 2025), and state an open conjecture locating the construction in the mildly context-sensitive hierarchy.

Keywords: Gold's theorem, positive-data learnability, contrastive estimation, grammatical inference, sample complexity, subregular languages

1 Introduction

Gold (1967) proved that for any class C of languages containing all finite languages and at least one infinite language, no learner identifies an arbitrary L∈CL \in C in the limit from a positive presentation. The proof is adversarial: a teacher can withhold the strings that would distinguish a finite hypothesis from an infinite target, and a positive-only learner cannot falsify the finite hypothesis without seeing strings known to be absent from L. Since the context-free and context-sensitive classes are superfinite, neither is Gold-identifiable from positive data. The usual conclusions are that either explicit negative evidence is available, or the hypothesis space must be restricted in advance, or the identification criterion must be weakened from exact convergence to approximate (PAC) convergence (Valiant, 1984).

This paper isolates a fourth structural ingredient that makes positive-data learning go through without external negatives and without a stipulated restriction on which languages are possible. Suppose the learner is equipped with a fixed recursive contrast operator R:Σ∗→2Σ∗R : \Sigma^* \to 2^{\Sigma^*} that maps any string to a finite set of structurally minimal perturbations of it—substitution of a like-typed constituent, deletion, local reordering, and compositions of these—defined uniformly over all strings without reference to the target. Then, given a positive example xx, the learner can manufacture its own candidate negatives R(x)R(x), without an oracle, even though it does not know which elements of R(x)R(x) are in fact out-of-language. Pairing RR with a bounded-capacity discriminative scorer and training by a contrastive (InfoNCE) objective, we ask: can the learner identify the target from positive data alone, using its self-generated perturbations as implicit negatives?

We answer affirmatively, in a precise sense. The result is a conditional-ranking guarantee: with high probability the trained scorer ranks all but an ε\varepsilon-fraction of observed positives strictly above every out-of-language string in their own orbit, with sample complexity polynomial in all parameters. This is the honest primitive that the contrastive objective delivers; we are careful to distinguish it from a global membership classifier, which we recover only under an additional margin assumption (Corollary 21), and we quantify, rather than assume away, the cost of perturbations that land inside the target—the contrastive analogue of class collision (Saunshi et al., 2019)—through an explicit approximation gap (Proposition 17).

References (27)