The spatial relation classification task aims to categorize the spatial relations of the entities identified from text. Large Language Models (LLMs), with their outstanding language comprehension and generalization capabilities, have demonstrated strong performance across various NLP tasks. However, due to the lack of task-specific optimization for spatial relation classification, LLMs often fail to fully realize their potential in this task. In contrast, Small Language Models (SLMs) trained via supervised learning can effectively capture spatial relation patterns through task-specific training. However, their knowledge coverage and adaptability are limited compared to LLMs. In this work, we propose a hybrid framework that integrates SLMs and LLMs, leveraging Supervised In-Context Learning (ICL) to enhance spatial relation classification performance. The experimental results demonstrate that our approach outperforms the SOTA models on the SemEval 2015 dataset.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Spatial Relation Classification on Supervised In-Context Learning

  • Guoqi Yang,
  • Peifeng Li,
  • Qiaoming Zhu

摘要

The spatial relation classification task aims to categorize the spatial relations of the entities identified from text. Large Language Models (LLMs), with their outstanding language comprehension and generalization capabilities, have demonstrated strong performance across various NLP tasks. However, due to the lack of task-specific optimization for spatial relation classification, LLMs often fail to fully realize their potential in this task. In contrast, Small Language Models (SLMs) trained via supervised learning can effectively capture spatial relation patterns through task-specific training. However, their knowledge coverage and adaptability are limited compared to LLMs. In this work, we propose a hybrid framework that integrates SLMs and LLMs, leveraging Supervised In-Context Learning (ICL) to enhance spatial relation classification performance. The experimental results demonstrate that our approach outperforms the SOTA models on the SemEval 2015 dataset.