Re52:读论文 How Much Knowledge Can You Pack Into the Parameters of a Language Model?

2020年EMNLP论文探讨了如何通过无上下文的QA任务评估T5语言模型中的知识含量。实验结果显示T5在该任务中表现出色,但存在部分似是而非的答案。论文详细介绍了预训练和微调过程,以及未来研究方向。
部署运行你感兴趣的模型镜像

诸神缄默不语-个人优快云博文目录
诸神缄默不语的论文阅读笔记和分类

论文名称:How Much Knowledge Can You Pack Into the Parameters of a Language Model?

ArXiv网址:https://arxiv.org/abs/2002.08910

代码和模型权重:https://github.com/google-research/google-research/tree/master/t5_closed_book_qa

本文是2020年EMNLP论文,作者来自谷歌。

本文通过无上下文/外部知识的QA任务来度量LM中储存的知识信息。实验结果证明LM的表现非常好。
(但是这个T5也经过了各种疯狂微调捏)

预训练模型:T5(包括T5.1.1)
继续预训练:Salient Span Masking (SSM)
在度量知识的下游任务上微调:QA(用text2text的T5直接回答,不太需要考虑具体的回答格式)
在这里插入图片描述
解码方案是贪心算法

注意本文实验用的QA数据不在T5预训练数据中

主实验结果:
在这里插入图片描述

有些回答说起来也算答对了,但是不完全跟标准答案一样的FP情况:
在这里插入图片描述

这篇paper的未来展望部分写得非常细致,附录里面也写了很多详细的其它尝试工作,很敬业了。

您可能感兴趣的与本文相关的镜像

Qwen3-VL-30B

Qwen3-VL-30B

图文对话
Qwen3-VL

Qwen3-VL是迄今为止 Qwen 系列中最强大的视觉-语言模型,这一代在各个方面都进行了全面升级:更优秀的文本理解和生成、更深入的视觉感知和推理、扩展的上下文长度、增强的空间和视频动态理解能力,以及更强的代理交互能力

To translate the names of image files in a folder into English using Qt, you can follow these steps: 1. **Include necessary libraries**: First, make sure you have included the `QtWidgets` and `QtGui` libraries, as they provide file handling and translation support. ```cpp #include <QApplication> #include <QDir> #include <QTranslator> #include <QTextCodec> ``` 2. **Create a translator object**: Instantiate a `QTranslator` instance and load an English translation resource: ```cpp QTranslator translator; QFile langFile(QStringLiteral("en_US.qm")); // Replace "en_US" with your desired language code if (langFile.open(QIODevice::ReadOnly | QIODevice::Text)) { translator.load(langFile); } ``` 3. **Detect current locale**: Use `QLocale` to determine the user's system language if needed, or force it to English: ```cpp QLocale locale; if (!translator.loadFromResource(QStringLiteral("qt"), QStringLiteral("en"))) { // Forcing English locale = QLocale(QLatin1String("en")); } ``` 4. **Iterate over files and translate their names**: Loop through the images in the folder, get the original name, apply the translation, and update the file name: ```cpp QDir directory("path/to/folder"); foreach (const QString &fileName, directory.entryList()) { if (fileName.endsWith(".jpg") || fileName.endsWith(".png")) { QString untranslatedName = QDir::toNativeSeparators(fileName); QString translatedName = translator.translate(untranslatedName); if (!translatedName.isEmpty()) { QString newFileName = translatedName + QLatin1String("."); // Add period back for file extension QFile source(untranslatedName); QFile target(newFileName); if (source.exists() && !target.exists()) { source.rename(target); } } } } ``` 5. **Handle exceptions**: Don't forget to handle any errors that might occur during file operations. 6. **Run the application**: Initialize your `QApplication` and run the main loop. ```cpp int main(int argc, char *argv[]) { QApplication app(argc, argv); // ... Rest of your program logic return app.exec(); } ```
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

诸神缄默不语

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值