{"id": "http://arxiv.org/abs/2506.12181v2", "title": "Generative or Discriminative? Revisiting Text Classification in the Era of Transformers", "abstract": "The comparison between discriminative and generative classifiers has intrigued researchers since Efron's seminal analysis of logistic regression versus discriminant analysis. While early theoretical work established that generative classifiers exhibit lower sample complexity but higher asymptotic error in simple linear settings, these trade-offs remain unexplored in the transformer era. We present the first comprehensive evaluation of modern generative and discriminative architectures - Auto-regressive modeling, Masked Language Modeling, Discrete Diffusion, and Encoders for text classification. Our study reveals that the classical 'two regimes' phenomenon manifests distinctly across different architectures and training paradigms. Beyond accuracy, we analyze sample efficiency, calibration, noise robustness, and ordinality across diverse scenarios. Our findings offer practical guidance for selecting the most suitable modeling approach based on real-world constraints such as latency and data limitations.", "published_at": "2025-06-13T19:03:58+00:00", "source_updated_at": null, "source_url": "https://arxiv.org/abs/2506.12181v2", "source_hash": "d6cf04f4ee2d93ad9d33a121e89d118841178846f976d6289fe5c0b54e2067c8", "source_version": "v2", "full_text_available": true, "evidence_kind": "full_text_excerpt", "analysis_scope": "full_text_excerpt", "scope": "core", "topics": ["discrete-diffusion", "controllability"], "code_url": null, "has_code": false, "indexable": true, "authors": [], "related_ids": ["http://arxiv.org/abs/2609.00495v1", "http://arxiv.org/abs/2608.30922v1", "http://arxiv.org/abs/2608.20123v1"], "related_work": {"version": "related-work-v1", "status": "not_assessed", "reason": "missing_context", "items": []}, "review": null, "full_text_brief": null, "explanations": {}, "resources": {"version": "paper-resources-v1", "source_hash": "d6cf04f4ee2d93ad9d33a121e89d118841178846f976d6289fe5c0b54e2067c8", "evidence_kind": "full_text_excerpt", "availability": "not_checked", "limited": false, "items": [{"origin": "source_excerpt", "evidence": "igurations used for each dataset. The range\nof training times (in hours) for various datasets is\npresented in Table 4. All reported training times\ncorrespond to full-data training configurations.\nOur analysis of inference latency reveals sig-\nnificant differences across architectures - refer to\n\n3https://huggingface.co/openai-community/gpt2\n\nConfig\nENC ARpseudo\nAR\nMLM DIFF\n\n(1L,1H)\n1-2\n2-4\n2-4\n1-4\n1-4\n(6L,6H)\n1-3\n3-7\n3-7\n3-7\n2-6\n(12L,12H)\n2-5\n5-10\n5-10\n5-10\n5-12\n\nTable 4: Training time (in hrs) ranges across different\ndatasets for each configuration and approach.\n\nTable 5. While ENC and MLM demonstrate com-\nparable inference speeds ", "url": "https://huggingface.co/openai-community/gpt2", "kind": "model", "span": [58409, 59049], "evidence_hash": "e8d7d87f1b382a23b3d20a892ce757a33f85223fd9ee2d034292ded0ea89b7e5"}]}, "slug": "2506.12181-generative-or-discriminative-revisiting-text-classification-in-the-era-of-transformers"}