arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2501.02844cs.CLcs.IRcs.LG
收藏

基于图的在线检索增强生成用于动态少样本社交媒体文本分类

GORAG: Graph-based Online Retrieval Augmented Generation for Dynamic Few-shot Social Media Text Classification

The Hong Kong University of Science and Technology(香港科学与技术大学);The Hong Kong Polytechnic University(香港理工大学);Guangzhou HKUST Fok Ying Tung Research Institute(广州HKUST福ying顿研究 institute)

Yubo Wang, Haoyang Li, Fei Teng, Lei Chen

AI总结:

GORAG提出一种基于图的在线检索增强生成框架,用于动态少样本社交媒体文本分类,通过构建关键词和标签的加权图并动态检索上下文以提升分类性能。

摘要:

文本分类对于Web for Good应用如仇恨言论和虚假信息检测至关重要。然而,传统模型(如BERT)在动态少样本设置中常常表现不佳,其中标注数据稀缺,目标标签经常变化。尽管大语言模型(LLMs)在少样本设置中显示出潜力,但其性能常受到动态演变场景中输入规模增加的阻碍。为了解决这些问题,我们提出了GORAG,一种基于图的在线检索增强生成框架,用于动态少样本文本分类。GORAG构建并维护一个关键词和文本标签的加权图,用边表示它们的相关性。为了建模这些相关性,GORAG采用边加权机制以优先考虑提取信息的重要性和可靠性,并通过定制的最小生成树动态检索相关上下文。实证评估表明,GORAG通过提供更全面和精确的上下文信息,在现有方法中表现更优。我们的代码已发布在:https://github.com/Wyb0627/GORAG。

英文摘要:

Text classification is vital for Web for Good applications like hate speech and misinformation detection. However, traditional models (e.g., BERT) often fail in dynamic few-shot settings where labeled data are scarce, and target labels frequently evolve. While Large Language Models (LLMs) show promise in few-shot settings, their performance is often hindered by increased input size in dynamic evolving scenarios. To address these issues, we propose GORAG, a Graph-based Online Retrieval-Augmented Generation framework for dynamic few-shot text classification. GORAG constructs and maintains a weighted graph of keywords and text labels, representing their correlations as edges. To model these correlations, GORAG employs an edge weighting mechanism to prioritize the importance and reliability of extracted information and dynamically retrieves relevant context using a tailored minimum-cost spanning tree for each input. Empirical evaluations show GORAG outperforms existing approaches by providing more comprehensive and precise contextual information. Our code is released at: https://github.com/Wyb0627/GORAG.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑