NLP Bi-Encoder和Re-ranker

Retrieve & Re-Rank

https://www.sbert.net/examples/applications/retrieve_rerank/README.html

Bi-Encoder vs. Cross-Encoder

https://www.sbert.net/examples/applications/cross-encoder/README.html

Bi-Encoder会用BERT对输入文本编码,再根据cosine相似度分数筛选文本。Cross-Encoder会直接计算两个句子的相关性分数。

如何将BI和Cross Encoder配合使用?可以先用BI-Encoder选出top 100个候选项,再用Cross-Encoder挑选最佳选项。

Combining Bi- and Cross-Encoders

Cross-Encoder achieve higher performance than Bi-Encoders, however, they do not scale well for large datasets.

Here, it can make sense to combine Cross- and Bi-Encoders, for example in Information Retrieval / Semantic Search scenarios:

First, you use an efficient Bi-Encoder to retrieve e.g. the top-100 most similar sentences for a query.

Then, you use a Cross-Encoder to re-rank these 100 hits by computing the score for every (query, hit) combination.

相关推荐
九河云13 小时前
智能家居生态数字化:设备联动场景化编程与用户习惯学习系统建设
人工智能·学习·智能家居
阿恩.77013 小时前
国际会议:评职称、申博、考研的硬核加分项
人工智能·经验分享·笔记·计算机网络·能源
严文文-Chris13 小时前
【机器学习三大范式对比总结】
人工智能·机器学习
极客BIM工作室13 小时前
AI导读AI论文: DeepSeek-V3.2: Pushing the Frontier of Open Large Language Models
人工智能·语言模型·自然语言处理
Mintopia14 小时前
🚀 垂直领域 WebAIGC 技术联盟:协同创新与资源共享模式
人工智能·架构·aigc
Baihai_IDP14 小时前
用户体验与商业化的两难:Chatbots 的广告承载困境分析
人工智能·面试·llm
研华科技Advantech14 小时前
重型汽车NVH智能检测方案:边缘计算+数据采集+智能算法技术实践
人工智能·汽车·边缘计算·新能源·nvh
qq_2339070314 小时前
GEO优化企业2025推荐,提升网站全球访问速度与用户体验
大数据·人工智能·python·ux
落羽的落羽14 小时前
【Linux系统】初探 虚拟地址空间
linux·运维·服务器·c++·人工智能·学习·机器学习
光锥智能14 小时前
亚马逊云科技全新推出三款前沿AI Agent,迈向软件开发新纪元
人工智能·科技