Text classifiers routinely clean their input before reading it. They lowercase, strip punctuation and emojis, drop stop words, and truncate. Each of these steps throws something away. Separately, many classification problems come with a label hierarchy: first decide whether a post is sexist, then what kind, then which specific tactic. Accuracy usually falls sharply at the deeper levels. On the online-sexism benchmark EDOS, the best systems reach Macro-F1 0.8746 on the top binary decision but only 0.5606 on the 11 fine-grained categories (SemEval-2023 Task 10). We propose to measure, node by node in the hierarchy, how much of each classifier's evidence is destroyed by each preprocessing step. That includes the "invisible" preprocessing built into tokenizers, such as uncased vocabularies, emojis mapped to an unknown token, and fixed truncation lengths. We then use that measurement to give each node in a top-down cascade the input view that suits it.
The claim is simple to state and to falsify. The damage a preprocessing step does is not a property of the dataset. It is a property of the decision being made, and it grows with depth. Lowercasing may be harmless or even helpful when telling "Drivers" from "Network" in Linux bug tickets, yet damaging when telling one kernel component from another by an error code. Stripping quotation marks may not matter for "sexist vs. not" but may erase the condescension that defines "mansplaining." If this holds, the uniform preprocessing used by every hierarchical text classifier we found is a hidden source of the deep-level accuracy drop. A cheap test-time probe can then decide what each node should see.
Prior Work and the Gap
Two literatures motivate the claim without connecting it. The first shows that cleaning removes affective and domain signal. Stop-word removal destroys cues for subtle emotional states (Saif et al.). Punctuation and stop-word removal hurt emotion recognition in conversation (Creanga and Dinu). Emojis carry the sentiment in social-media comments (Shaun H et al.). Casing and numeric codes are the only differentiators between chemical entities (Argüello Casteleiro et al.). Stripping mentions confuses personal health reports with news broadcasts (Roychoudhury and Naskar).
The most useful paper for us is Kondo et al., because it shows the effect is mixed within a single task. Normalizing Japanese sentence endings and typos raised BERT-base QWK (quadratic weighted kappa, an agreement score for ordinal labels) from 0.506 to 0.582. Normalizing pronunciation variations alone made results worse. This constrains our design: "raw is always better" is not the right null hypothesis, because some normalization genuinely helps.
The second literature shows that different hierarchy levels need different features. Examples include coarse-to-fine sense disambiguation (Shen et al.), per-node feature selection in hierarchical SVMs for speech (Prasad et al.), and cascaded segmentation in which the first stage uses global context and the second uses fine texture (Christ et al.). None of these papers asks what the input text should look like at each level.
The closest existing work handles information loss in hierarchical text classification, but at a different place in the pipeline. HILL observes that contrastive augmentations such as word masking are lossy and can delete the one token, for example "LeBron," that defines a subcategory. It removes the corruption entirely, but it still feeds one identical tokenization to all levels. HTCInfoMax treats loss and noise purely in the latent text–label interaction and shares one text representation across the hierarchy. A multi-level approach for hierarchical Ticket Classification trains separate BERT models per level. That work found a 9.7% Macro-F1 gain over flat BERT for its ML-BERT model, but it lowercased all text for both levels, which includes error codes and identifiers.
Our proposal differs from all three in the same way. We treat the input view, meaning preprocessing plus tokenizer behavior, as a per-node choice. We also measure its information cost per node instead of assuming it.
Core Claim and Measurement
Let $v$ be a node of the hierarchy whose local classifier $f_v$ chooses among $v$'s children. Let $o$ be a text operation, such as lowercasing, emoji removal, punctuation removal, pronunciation normalization, or truncation to $k$ tokens. We define the erasure sensitivity of node $v$ to operation $o$ as the average drop in log-probability of the correct child when $o$ is applied at test time to a classifier trained on raw text:
$$S_{o,v} = \mathbb{E}_{(x,y) \in \mathcal{D}_v}\left[\log f_v(y \mid x) - \log f_v(y \mid o(x))\right],$$
where $\mathcal{D}_v$ is the validation set of examples routed to $v$ and $y$ is the correct child label. A positive $S_{o,v}$ means that $f_v$ relies on what $o$ removes.
The measurement needs no retraining, so the full matrix of operations by nodes is cheap to compute. Our first hypothesis is that $S_{o,v}$ increases with the depth of $v$ for affect- and identifier-bearing operations. Our second is that the probe ranks views per node the same way that retraining under each view does. The second hypothesis matters because a test-time probe on a raw-trained model could mislead. A model trained on normalized text might learn compensating features. We therefore check the probe against full retraining before relying on it.
Research Program
We build a local-classifier-per-parent cascade on a cased DeBERTa-v3 backbone, the model family used by top EDOS systems. Each parent node gets its own fine-tuned classifier. Each node also receives one view chosen from a small fixed menu. The menu contains four options. The first is raw text with a cased tokenizer. The second is a recoverability-preserving view: emojis rewritten as their text names, which keeps their meaning instead of letting them map to an unknown token, and head-plus-tail truncation instead of head-only. The third is light normalization of typos and sentence endings in the style of Kondo et al. The fourth is the aggressive classic pipeline: lowercase, strip punctuation and stop words.
View selection is made per node by the probe and is confirmed on validation data. To control error propagation, which is the known weakness of top-down cascades, we train each child classifier on its parent's predicted routing rather than on gold labels. We also report results with soft routing, where the path probability is the product of node probabilities.
The analysis has three parts. First, we produce depth-resolved sensitivity matrices for every dataset. Second, we attribute the deep-level errors. For EDOS Task C false negatives, we ask what fraction become correct when an erased cue class is restored, and how that fraction compares with Task A. Third, we separate preprocessing loss from label ambiguity. This third part is essential. EDOS reports that crowdworkers reached only 28% accuracy on Task B against 84% for experts, so a large part of the cliff may be intrinsic difficulty that no input view can fix.
Baselines
The naive reference is a single flat cased DeBERTa-v3 classifier over the leaf labels on raw text, plus the same model with the aggressive pipeline. Together they tell us how much any hierarchy or view choice buys at all.
The strongest competitor on this question is the same cascade with one uniform view at every node, where that view is chosen as the best of the four on validation. It isolates exactly our claim. If per-node choice is no better than the best global choice, the idea fails. It gets the same architecture, data, number of fine-tuning runs per node, and hyperparameter search.
For external reference points, we compare on EDOS against the best reported participant results: Macro-F1 0.8746 on Task A, 0.7326 on Task B, and 0.5606 on Task C (SemEval-2023 Task 10). On Linux Bugs we re-implement ML-BERT and Supported-BERT (A multi-level approach for hierarchical Ticket Classification) under their original lowercased preprocessing and again with cased input. The file reports only relative gains for these models (9.7% and 6.4% Macro-F1 over flat BERT); no absolute result was found on Lacuna, so we treat our replication as the reference. On RCV1-v2, NYTimes and WOS we compare against HILL. HILL reports average gains of 1.85 Micro-F1 and 3.38 Macro-F1 over vanilla BERT, but no reported per-dataset result was found on Lacuna for these benchmarks, so we rerun it with its released configuration.
Beating the uniform-view cascade means a gain at the deepest level, averaged over five seeds, that exceeds the seed-to-seed standard deviation, with no loss at the root. On EDOS this means improving Task C Macro-F1 over the uniform cascade. Matching or exceeding 0.5606 would be a bonus, not the criterion, since that figure came from tuned ensembles.
Three ablations isolate the key ingredient. The first gives every node all views concatenated or ensembled, which tests whether gains come from selection or simply from more input. The second assigns views to nodes at random, using the same menu. The third replaces probe-chosen views with retraining-chosen ones, which tests whether the probe is reliable.
Why not just…?
Why not just feed raw, cased text to every node? This is the most serious threat. A cased subword tokenizer already keeps punctuation and casing, so the gap may be small. Kondo et al. show raw is not always best, and uncased models, unknown-token emojis and head truncation still lose information silently. The uniform-view baseline includes raw-everywhere, so the experiment settles this directly. If raw-everywhere ties per-node selection, we report that, and the contribution becomes the depth-resolved audit. That audit would show which tokenizer defaults are lossy where, which is still useful to practitioners who default to uncased models or heavy cleaning.
Why not just reweight classes or add data to fix the deep-level cliff? Imbalance at deep nodes is real, and EDOS's annotator gap shows that ambiguity is real too. We do not compete with these fixes. We apply class-balanced loss to all systems equally, and our error-attribution analysis estimates how much of the remaining cliff is due to erased cues versus ambiguity.
Why not just prompt a large language model on raw text? In the evidence available, a fine-tuned xlm-roberta-large scored weighted F1 0.43 on conversational emotion recognition while Mistral 7B scored 0.32 zero-shot (Creanga and Dinu). Even LLM pipelines benefit from hierarchical decomposition into staged prompts (Bainbridge et al.). We include a staged-prompt LLM as a secondary reference on EDOS, but we expect it to trail fine-tuned cascades.
Why not just train once on a mixture of raw and normalized views as augmentation? This could teach every node to be robust to all views without per-node choice. We include it as the multi-view ablation. If it matches per-node selection, then the useful conclusion is "expose every node to every view," not "select views per node."
Proposed Experiments and Decisive Checks
Datasets fall into three groups. EDOS (three levels, informal text, implicit cues) is the primary testbed. Linux Bugs (two levels; casing and error codes) tests the identifier-loss story. RCV1-v2, NYTimes and WOS (formal text, deep hierarchies) serve as a negative control, where we predict that sensitivity stays flat with depth and per-node views give little.
Metrics are Macro- and Micro-F1 per level, the sensitivity matrices $S_{o,v}$, and the rank correlation between probe-chosen and retraining-chosen views.
Three outcomes are decisive. The first is whether $S_{o,v}$ for punctuation, emoji and casing operations increases with depth on EDOS and Linux Bugs but not on the formal news datasets. The second is whether per-node selection beats the best uniform view at the deepest level without hurting the root. The third is whether the probe ranks views as retraining does, with high rank correlation. If the first check fails, the hypothesis is wrong. If the first holds but the second fails, the loss is real but already absorbed by modern tokenizers, which is itself a clear result. If the third fails, view selection requires retraining and the cheap probe is not a usable tool.
References
- SemEval-2023 Task 10: Explainable Detection of Online Sexism
- On Stopwords, Filtering and Data Sparsity for Sentiment Analysis of Twitter
- ISDS-NLP at SemEval-2024 Task 10: Transformer based neural networks for emotion recognition in conversations
- Quartet@LT-EDI 2024: Support Vector Machine Based Approach For Homophobia/Transphobia Detection In Social Media Comments
- Ontology Learning with Deep Learning: a Case Study on Patient Safety Using PubMed
- Fine-tuning BERT to classify COVID19 tweets containing symptoms
- Text Normalization for Sentiment Analysis in Japanese Social Media
- Coarse to Fine Grained Sense Disambiguation in Wikipedia
- Automatic classification of eating conditions from speech using acoustic feature selection and a set of hierarchical support vector machine classifiers
- Automatic Liver and Lesion Segmentation in CT Using Cascaded Fully Convolutional Neural Networks and 3D Conditional Random Fields.
- HILL: Hierarchy-aware Information Lossless Contrastive Learning for Hierarchical Text Classification
- HTCInfoMax: A Global Model for Hierarchical Text Classification via Information Maximization
- A multi-level approach for hierarchical Ticket Classification
- A Case Study using Large Language Models to Generate Metadata for Math Questions