Skip to main content
Back

Roma Tre's NETHIC-2 Beats Flat AI Classifiers Across 117 Document Categories

Researchers detail NETHIC, a text classifier that pairs a taxonomy of neural networks with Doc2Vec embeddings to route documents down semantic paths.

Pro

Paper, Full Access
  • NETHIC classifies text by routing documents through a tree of small neural networks, one per taxonomy node.
  • Taxonomy has 21 root categories and 117 leaves, trained on 57,304 Wikipedia documents via SKOS links.
  • New version concatenates 300-dim Doc2Vec vectors with bag-of-words features at each node.
  • Combined BOW+Doc2Vec beats BOW alone by ~2% per category, ~1% at the root network.
  • Doc2Vec by itself was the weakest variant, struggling to separate semantically close leaf categories.
  • Built in Python with scikit-learn MLP and gensim; authors flag BERT as the natural successor.

A group of researchers from Innovation Engineering, Eustema, Allianz, and Roma Tre University published a paper describing NETHIC, a text classification system that treats a category taxonomy as a tree of small neural networks rather than a single flat multiclass model. Each internal node in the tree owns its own network and its own vocabulary, so a document gets routed down the hierarchy from general concepts to specific ones. The new version, which the authors call NETHIC-2, adds Doc2Vec document embeddings on top of the original bag-of-words features.

Why flat classifiers struggle here

Classifying documents across a hundred-plus categories with a single model is noisy. Words carry different meanings in different contexts, and hierarchical classification suffers from an error propagation issue where a mistake near the root cascades to every child. The authors also note that only oversampling and threshold moving reliably help train cost-sensitive neural networks, but defining misclassification costs becomes difficult when there are many classes.

NETHIC's answer is to decompose the problem. For each taxonomy concept, except leaves, one neural network is trained and its own dictionary of words is built. Upper-level networks split documents into broad buckets like Economy, Religion, Science, or Sports, while deeper networks discriminate between semantically close siblings like Basketball, Golf, or Soccer.

How the pipeline is wired

NETHIC architecture diagram showing Doc2Vec and BOW vectorization feeding into a hierarchical neural network tree

The taxonomy itself is defined in RDF. It contains 21 root child categories with a tree depth of 2, for a total of 117 leaf categories, and each leaf is linked to Wikipedia categories via SKOS exactMatch and majorMatch properties. Training data was harvested by walking the Wikipedia category graph along shortest semantic paths, producing a corpus of 57,304 text documents taken from Wikipedia.

At inference time, the pipeline works like this:

  1. The document is vectorized twice: once as a BOW vector using the root node's dictionary, once as a 300-dimensional Doc2Vec vector.
  2. The two vectors are concatenated and passed to the root network.
  3. Categories whose scores exceed a threshold (initially 0.7) are followed to their child networks, using each child's own dictionary.
  4. Each candidate path gets a final score by averaging the network scores along it.

Because the Doc2Vec vector is document-level and stays constant, only the BOW half is rebuilt at each hop. The classifier is implemented in Python using scikit-learn's Multi-layer Perceptron and gensim for the Doc2Vec model.

What the numbers say about Doc2Vec alone

The team trained three variants: BOW only, Doc2Vec only, and BOW+Doc2Vec concatenated. Doc2Vec by itself was the weakest, with per-category test accuracies frequently in the 0.63 to 0.77 range. Adding it on top of BOW was a different story.

Table showing per-category accuracy, F1, precision and recall for the combined BOW plus Doc2Vec model

Considering BOW and BOW-D2V accuracy values, there is an improvement of about 2% for most categories, and an improvement of about 1% for the root category. The root gain matters more than it looks because the root network anchors every classification path in the tree. Cross-validation showed no signs of overfitting or underfitting, and the confusion matrices tightened around the diagonal, with Art and Entertainment now less confused with other categories, Society less confused with Family and Parenting, and Health and Fitness less confused with Society, Sport and Food and Drink.

On end-to-end evaluation over a held-out set of 2,843 documents, the combined method correctly classified roughly 60 more documents than the original, and in computational terms there are no relevant differences, since adding a 300-sized Doc2Vec vector does not change the order of magnitude of the feature vectors.

The honest takeaways

The main lesson is a pragmatic one. Semantic embeddings alone are not enough to separate leaves that live under the same parent, because those leaves share most of their conceptual vocabulary. Word occurrence counts still carry discriminative signal that Doc2Vec smooths away. Concatenating the two representations lets each fix the other's blind spots without inflating training cost.

Where this design fits well:

  • Enterprise document routing where categories come from a curated taxonomy rather than emerging from data.
  • Situations where you want a modular classifier: retraining one branch does not require retraining the whole model.
  • Multi-label style outputs, since the path-scoring algorithm naturally returns the top-k semantic paths.

Where it will not shine: very deep taxonomies with sparse leaves, short texts like tweets where BOW dictionaries collapse, or open-vocabulary domains where a taxonomy would be a straitjacket. The paper itself points at BERT-style contextual embeddings as the natural next step, which would replace both halves of the current feature vector with a single contextual representation while keeping the hierarchical routing scaffolding in place. The full write-up including the confusion matrices and per-category tables is available on arXiv.