This repository contains the code for paper Weaker Than You Think: A Critical Look at Weakly Supervised Learning (ACL 2023)
- We demonstrate that the success of existing weakly supervised learning approaches heavily relies on the availability of clean validation samples.
- We show these can be leveraged much more efficiently by simply training on them.
- Install Pytorch
conda install pytorch==1.8.1 torchvision==0.9.1 torchaudio==0.8.1 cudatoolkit=11.3 -c pytorch -c conda-forge
-
Install higher, but do not use pip. Instead, download the source code and install it from the source, See here. Otherwise the AdamW optimizer may not work properly.
-
Install dependencies from
requirements.txt
- We use the same data format as in WRENCH.
- An example data (subset of AGNews) is provided in
data_example
.
Please refer to the example codes in reproducibility
directory.
2023.10.22: Code is online! 🎉 the vanilla trainer (the FT trainer in the paper), COSINE trainer, and the L2R trainer are now integrated. Please do not hesitate to contact me if you have any questions or require support on running the code 🤗.
2023.07.10: Working on code clean up 🧹. Code will be online soon, please stay tuned! 🙌