← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 8700.e · 生成模型:GPT-6

批内负例依赖样本互不相关

理解等级:高级

对每个query将配对response视为正例,把同批其他response作为负例,可高效提供对比信号。若多条查询共享有效答案,批内就有假负例;增大batch不保证更好,要检查重复与多正例关系。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • · 查看原书依据

      If you are using a dataset composed of pairs like (query, response), (passage, summary), etc., you can use the Multiple Negatives Ranking Loss. In a batch containing (query, response) pairs (q1, r1), (q2, r2)…​(qn, rn), for each query, there will be a positive pair, e.g., (q1, r1) and n – 1 negative pairs, e.g., (q1, r2), (q1, r3)…​etc. The loss function minimizes the negative log

    参考来源

    - 位置:《Designing Large Language Model Applications》第11章《表示学习与嵌入》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Designing Large Language Model Applications/_epub-src/OEBPS/ch11.html) - 结论依据:摘录中关于批内负例依赖样本互不相关的定义、比较或条件支撑卡片;原书表述不严谨的范围已在覆盖记录逐项限定,不把案例结果外推为普遍结论。 - 原始内容:If you are using a dataset composed of pairs like (query, response), (passage, summary), etc., you can use the Multiple Negatives Ranking Loss. In a batch containing (query, response) pairs (q1, r1), (q2, r2)…​(qn, rn), for each query, there will be a positive pair, e.g., (q1, r1) and n – 1 negative pairs, e.g., (q1, r2), (q1, r3)…​etc. The loss function minimizes the negative log