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.

相关推荐
雾隐隐o几秒前
AI 零代码生成平台 11|性能、安全与稳定性优化
人工智能
程序员cxuan2 分钟前
再见 Claude,国模 SOTA 模型来了
人工智能·后端·程序员
程序员cxuan5 分钟前
夯爆了,影视界的 Codex 来了!
人工智能·后端·程序员
专注仿真21 分钟前
仿真智能体训练(评估指标篇):任务完成率算法详解与实战
人工智能·算法·机器学习·afsim智能体·仿真训练·afsim智能体训练·任务完成率算法
向科→向总工→空间动态计系统25 分钟前
动态零轴融合三铁律
大数据·开发语言·人工智能·python·机器人
阿阿阿安33 分钟前
智能体通信协议(一) MCP 之架构与协议规范
人工智能·ai·agent·mcp
Star4zure40 分钟前
Lossless Scaling 最新游戏画面增强实用教程
人工智能·性能优化·小黄鸭·lsfg·智能补帧·无损放大·游戏帧率
Sereneoned40 分钟前
开源发布!零 Hook 给微信 4.x 装上“像真人一样思考”的 AI 智能助理(附 Apple 液态玻璃控制台)
人工智能·aigc
Akcoder1 小时前
一个 iOS 工程师的 LLM 应用入门:从 SSE 到 Function Calling
人工智能
Smoothcloud润云1 小时前
GPU服务器租用训练缓存小文件与inode耗尽排查实战
运维·服务器·人工智能·缓存·ai·gpu算力