An Overlooked Baseline Artifact in Comparing Specialized and Pooled Classifiers
When a system must detect several related conditions over the same inputs, its designer can train a specialized classifier for each condition or one pooled model for all of them. Published comparisons of these designs contradict one another, and certain dataset properties, class imbalance above all, usually take the blame. We re-examine the comparison on code-smell detection, a domain where the contradiction is well documented, testing three ways of building the pooled baseline across five code-smell datasets, four generic benchmarks, four classical classifier families, and a neural network, with matched cross-validation folds and threshold-independent scoring. Much of the disagreement turns out to be manufactured by the comparison itself. The conventional pooled baseline appends a task indicator to the features, which quietly forces linear models, and neural networks conditioned only through the input, to share one set of feature weights across tasks; tree ensembles and softmax classifiers, which carry per-task structure of their own, are unaffected. Fixed-threshold F1 scoring accounts for the rest. Once the pooled model receives per-task weights, the gap closes on every dataset, and controlled positive-rate sweeps show that class imbalance moderates nothing. For tabular task families of this kind, the choice between the designs is an engineering decision, not an accuracy one; we close with a short protocol for making such comparisons fairly.
Authors
- Salvador Hinojosa (ORCID: https://orcid.org/0000-0001-9623-2022)
- Enrique Garcia-Ceja (ORCID: https://orcid.org/0000-0001-6864-8557)
- Diego A. Oliva (ORCID: https://orcid.org/0000-0001-8781-7993)
- Diego Avalos
Institutions
- Universidad de Guadalajara (MX)
- Tecnológico de Monterrey (MX)
Publication Details
- Journal
- Information
- Published
- 2026-08-25
- DOI
- https://doi.org/10.3390/info17090818
- Primary Topic
- Software Engineering Research
- Type
- article
- Field-Weighted Citation Impact
- 0.00