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.

相关推荐
爱思德学术2 分钟前
中国计算机学会(CCF)推荐学术会议-C(人工智能):KSEM 2026
人工智能·知识图谱·知识工程·知识科学
玖日大大9 分钟前
英伟达 AI 芯片:架构演进与智能时代的算力基石
人工智能·架构
中国云报24 分钟前
从单一算力到融合基础设施:中国电子云重构AI时代算力版图
人工智能·重构
一点 内容27 分钟前
用户体验与商业化的两难:Chatbots的广告承载困境分析
人工智能·经验分享
白日做梦Q37 分钟前
深度学习与机器学习的3个关键区别
人工智能·深度学习·机器学习
泯泷39 分钟前
告别“接口地狱”,MCP 协议如何让 AI Agent 像乐高一样即插即用?
人工智能·openai·ai编程
火山引擎开发者社区1 小时前
DeepSeek-V3.2正式登陆火山方舟
大数据·人工智能
RPA 机器人就找八爪鱼1 小时前
RPA 赋能银行数字化转型:四大核心应用场景深度解析
数据库·人工智能·rpa
newsxun1 小时前
行风伟业集团举办私董鉴藏会,聚焦当代艺术价值与前瞻收藏
人工智能
free-elcmacom1 小时前
机器学习入门<6>BP神经网络揭秘:从自行车摔跤到吃一堑长一智的AI智慧
人工智能·python·深度学习·神经网络·机器学习