HSGraphAgent knowledge-graph-guided reasoning framework. Source: paper.HSGraphAgent represents the Harmonized System hierarchy and exclusion notes as an explicit knowledge graph that guides large language models through legal classification paths. Its Select-Redirect mechanism restricts each decision to valid child nodes and redirects reasoning when an exclusion rule is triggered. Experiments on four-digit headings and six-digit HS codes show that rule-aware graph reasoning substantially improves fine-grained accuracy and interpretability over direct generation and retrieval-augmented baselines.
HSGraphAgent 将海关 HS 编码体系建模为包含层级关系和排除规则的知识图谱,引导大语言模型从 Section、Chapter、Heading 到 Subheading 逐级完成商品归类。该方法强调规则约束与可解释推理,避免仅凭文本相似度选择编码。