Giter Club home page Giter Club logo

Comments (2)

raven4752 avatar raven4752 commented on August 13, 2024

我们当时做这个的目的是把三元组形式的标记转换成二元组的标记,以加速训练效率。
我们的目标是给出所有成对出现在训练集里的样本 i 和样本 j 的相似度 y_ij,并且 y_ij 需要满足:

  • y_ij 在0~1之间
  • y_ij 和 y_ik 需要满足原始训练集样本 i, j, k 组成的三元组指出的相似性关系,即y_ij >y_ik

只用以上条件作为约束求解y_ij ,得到的优化问题比较困难,为了让这个优化问题容易求解,我们又加了一个约束条件:

  • y_ij 和未作fine-tuning的bert模型输出的样本 i, j 的相似度的 l2 距离尽可能小

这么做的想法是希望让得到的软标记 y_ij 对bert模型来说更加容易学习。
我们把以上约束条件加权转为无约束优化问题然后用l-bfgs算法求解,这样就估计出了样本i和样本j的相似度 。

from cail2019.

Sky2line886 avatar Sky2line886 commented on August 13, 2024

非常感谢大神的解惑

from cail2019.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.