Giter VIP home page Giter VIP logo

Comments (3)

muyuuuu avatar muyuuuu commented on June 12, 2024 1

这个问题很好,因为我没有看原论文,所以当时没有发现这一点,感谢您的反馈。

我这里的试验结果显示确实有效,我从代码的角度给出一个我的思考吧。

原论文数据集的句子都很长,不存在大量的 padding。而本次任务的数据 query 和 title 都很短,query 比 title 还要短,为了照顾长一些的 title,因此 max_len 比较大。

这样的话,而 CLS 的输出是最后一层表示经过全连接在激活,这部分是没有 mask 的,我猜测有一定的偏差。而first和last,里面的 attention 都有 mask,因此填充部分没有注意力,结果也好一些。

说来惭愧,bert mask 那部分我理解的不是很好,以上仅仅是我的猜测。

from e-commerce-search-recall.

lukan217 avatar lukan217 commented on June 12, 2024

image
据说在roberta模型上会有好的效果,不过我自己的实验上好像效果还差了点

from e-commerce-search-recall.

muyuuuu avatar muyuuuu commented on June 12, 2024

应该是的,我们这边也发现 roberta 的效果差了一些。

from e-commerce-search-recall.

Related Issues (2)

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.