cs.CLOct 8, 2025

Reasoning for Hierarchical Text Classification: The Case of Patents

Authors: Lekang Jiang, Wenjun Sun, Stephan Goetz

Organizations: University of Cambridge · National Science Library, Chinese Academy of Sciences · Department of Information Resources Management, School of Economics and Management, University of Chinese Academy of Sciences

Abstract

Hierarchical text classification (HTC) assigns documents to multiple levels of a pre-defined taxonomy. Automated patent subject classification represents one of the hardest HTC scenarios because of professional difficulties and extensive labels. Prior approaches only output a flat label set, which offers little insight into the reason behind predictions. Therefore, we propose Reasoning for Hierarchical Classification (RHC), a novel framework that reformulates HTC as a step-by-step reasoning task to sequentially deduce hierarchical labels. RHC trains large language models (LLMs) in two stages: a cold-start stage that aligns outputs with chain-of-thought (CoT) reasoning format and a reinforcement learning (RL) stage to enhance multi-step reasoning ability. RHC demonstrates four advantages in our experiments. (1) Effectiveness: RHC surpasses previous baselines and outperforms the supervised fine-tuning counterparts by approximately 3% in accuracy and macro F1. (2) Explainability: RHC produces natural-language justifications before prediction to facilitate human inspection. (3) Scalability: RHC scales favorably with model size with larger gains compared to standard fine-tuning. (4) Applicability: Beyond patents, we further demonstrate that RHC achieves state-of-the-art performance on other widely used HTC benchmarks, which highlights its broad applicability.

Figures & tables

Appendix figures & tables2 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. TextReasoningBench: Does Reasoning Really Improve Text Classification in Large Language Models?

    Mar 20, 2026Xinyu Guo, Yazhou Zhang, Jing QinLarge Language Model-Based Text ClassificationLLM Evaluation

  2. Constraint-Aware Hierarchical Search for Regulation-Driven Fine-Grained Classification

    Jul 12, 2026Siyu Wang, Wei Tan, Lulu ChenHierarchical ClassificationRetrieval-Augmented Classification