[Paper Review] DOC: Deep Open Classification of Text Documents
This paper proposes DOC (Deep Open Classification), a novel deep learning approach for text classification that extends traditional models to detect out-of-distribution (novel) documents. By using a 1-vs-rest sigmoid output layer and Gaussian fitting to optimize rejection thresholds, DOC significantly outperforms state-of-the-art methods like OpenMax and cbsSVM, achieving up to 82.3% macro-F1 on 20 Newsgroups with only 25% seen classes.
Traditional supervised learning makes the closed-world assumption that the classes appeared in the test data must have appeared in training. This also applies to text learning or text classification. As learning is used increasingly in dynamic open environments where some new/test documents may not belong to any of the training classes, identifying these novel documents during classification presents an important problem. This problem is called open-world classification or open classification. This paper proposes a novel deep learning based approach. It outperforms existing state-of-the-art techniques dramatically.
Motivation & Objective
- To address the limitations of closed-world text classification in dynamic environments where new, unseen classes frequently emerge.
- To develop a deep learning model capable of both classifying known classes and rejecting documents belonging to novel, unseen classes.
- To improve open-world classification performance by reducing open space risk and optimizing rejection thresholds without requiring validation data from unseen classes.
- To enable robust, generalizable open classification that maintains high precision and recall even when most test documents belong to unseen classes.
Proposed method
- DOC employs a CNN-based architecture with word embeddings and multiple convolutional filters (sizes 3, 4, 5) to extract hierarchical features from text.
- The final layer uses a 1-vs-rest sigmoid activation instead of softmax to reduce open space risk and allow for better separation between known and unknown classes.
- A Gaussian fitting procedure is applied to the logits of each class to determine optimal, class-specific rejection thresholds (t_i), replacing the fixed t=0.5 baseline.
- The model is trained end-to-end using cross-entropy loss on seen classes and rejection for unknowns, with no need for prior examples of unseen classes.
- The architecture supports incremental learning and is adaptable to both text and image domains, as demonstrated via transferability to vision tasks.
- Evaluation uses a 1-vs-rest multi-class setup with an additional 'rejection' class, and macro-F1 is computed over m+1 classes (m seen + 1 rejection).
Experimental results
Research questions
- RQ1Can a deep learning model effectively detect out-of-distribution text documents without prior examples of novel classes?
- RQ2How does a 1-vs-rest sigmoid output layer compare to softmax in reducing open space risk for open-world classification?
- RQ3To what extent does Gaussian fitting of logits improve rejection threshold selection compared to fixed thresholds like t=0.5?
- RQ4How does DOC perform under extreme open-world conditions where 75% or more of test documents belong to unseen classes?
- RQ5Can DOC generalize across domains and outperform state-of-the-art methods in both text and image-based open classification?
Key findings
- On the 20 Newsgroups dataset with 25% seen classes, DOC achieved a macro-F1 score of 82.3%, outperforming OpenMax (35.7%) and cbsSVM (59.3%).
- For 50-class reviews with 25% seen classes, DOC achieved 61.2% macro-F1, significantly surpassing OpenMax (41.6%) and cbsSVM (55.7%).
- DOC consistently outperformed DOC(t=0.5) in low-shot settings (25% and 50% seen classes), demonstrating the effectiveness of Gaussian-fitted thresholds.
- In the 100% seen class setting (closed-world), DOC still achieved 92.6% macro-F1 on 20 Newsgroups, outperforming OpenMax (91.9%) and cbsSVM (85.2%).
- DOC showed robustness across datasets: it improved performance by up to 27 percentage points over OpenMax in the most challenging open-world scenario (25% seen classes).
- The method does not require validation data from unseen classes, unlike OpenMax, which relies on such data for hyperparameter tuning, making DOC more practical and scalable.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.