计算机科学
语义网
情报检索
排名(信息检索)
人工智能
语义学(计算机科学)
万维网
自然语言处理
本体论
基于案例的推理
自动推理
学习排名
钥匙(锁)
知识表示与推理
作者
Zishuo Xu,Dezhong Yao,Yao Wan
出处
期刊:
[Institute of Electrical and Electronics Engineers]
日期:2026-06-01
卷期号:: 1410-1420
被引量:1
标识
DOI:10.1109/2575-8411.2026.00137
摘要
The rapid growth of Web APIs has made automated Web API recommendation essential for efficient mashup development. However, existing approaches suffer from two major limitations: 1) they rely on fixed top-$N$recommendation strategies that cannot adapt to mashup complexity, and 2) they provide little or no explanation for recommended APIs, limiting transparency and user trust. To address these challenges, we propose WARR1, an explainable Web API recommendation framework that integrates semantic reasoning with adaptive, variable-cardinality recommendation. Built on a lightweight large language model (LLM), WAR-R1 generates both a set of relevant APIs and a natural-language justification for each recommendation. To support adaptive recommendation size, we introduce special start and stop tokens that allow the model to learn when to begin and terminate API generation. WAR-R1 is trained in two stages: supervised fine-tuning on an annotated mashup-API corpus, followed by reinforcement learning using Group Relative Policy Optimization (GRPO) with low-rank adaptation to jointly optimize recommendation accuracy and reasoning quality. Experiments on the ProgrammableWeb dataset show that WAR-R1 outperforms state-of-the-art baselines by up to$\mathbf{1 0. 8 9 \%}$in recommendation accuracy while consistently producing high-quality, semantically grounded explanations. Extensive ablation studies validate the effectiveness of reinforcement learning, special token design, and integrated reasoning.
科研通智能强力驱动
Strongly Powered by AbleSci AI