arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.01600cs.SE
收藏

MCBA:一种基于拟阵约束的兼顾兼容性与多样性的复合服务推荐方法

MCBA: A Matroid Constraint-Based Approach for Composite Service Recommendation Considering Compatibility and Diversity

Ying Sun, Xiao Wang, Hanchuan Xu, Zhongjie Wang

AI总结:

本文提出基于拟阵约束的复合服务推荐方法 MCBA,通过最小群 Steiner 树建模 API 组合发现并利用划分拟阵约束下的最大边际相关性方法保证推荐多样性,实验证明其在准确性、兼容性、多样性和效率上优于现有方法。

摘要:

随着微服务日益普及,许多公司将其业务流程封装为 Web API 以供远程调用。这些轻量级 Web API 为 mashup 开发者提供了一种高效途径,使其无需从零开始即可实现复杂功能。然而,这也带来了挑战,例如开发者的搜索结果集中于热门 API 从而限制了多样性,以及验证 API 兼容性存在困难。因此,需要一种方法从大量候选 API 中推荐满足 mashup 功能需求的、兼容且多样的 API 组合。为解决该问题,本文提出了一种基于拟阵约束的复合服务推荐方法(MCBA),该方法包含两个阶段:关注兼容性的 API 组合发现阶段和关注多样性的 top-k 组合推荐阶段。在第一阶段,API 组合问题被建模为最小群 Steiner 树(MGST)问题,随后通过一种“压缩-求解”算法加以解决。在第二阶段,采用划分拟阵约束下的最大边际相关性方法(MMR-PMC)来保证推荐多样性。在真实世界数据集上的综合实验表明,MCBA 在准确性、兼容性、多样性和效率方面均优于多种最先进的方法。

英文摘要:

With the growing popularity of microservices, many companies are encapsulating their business processes as Web APIs for remote invocation. These lightweight Web APIs offer mashup developers an efficient way to achieve complex functionalities without starting from scratch. However, this also presents challenges, such as the concentration of developers'search results on popular APIs limiting diversity, and difficulties in verifying API compatibility. A method is needed to recommend diverse compositions of compatible APIs that fulfill mashup functional requirements from a large pool of candidate APIs. To tackle this issue, this paper introduces a Matroid Constraint-Based Approach (MCBA) for composite service recommendation, consisting of two stages: API composition discovery focusing on compatibility and top-k composition recommendation focusing on diversity. In the first stage, the API composition issue is formulated as a minimal group Steiner tree (MGST) problem, subsequently addressed by a "compression-solution" algorithm. In the second stage, a Maximum Marginal Relevance method under partition matroid constraints (MMR-PMC) is employed to ensure recommendation diversity. Comprehensive experiments on the real-world dataset show that MCBA surpasses several state-of-the-art methods in terms of accuracy, compatibility, diversity, and efficiency.

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

↑