Code corresponding to the paper Language Models can Exploit Cross-Task In-context Learning for Data-Scarce Novel Tasks accepted to the Main Conference of ACL'24.
To generate the dataset splits of taget, source and psudo-target. First run the data_preprocess.ipynb file. This will generate the various splits in the data folder.
Then extract all the similar prompts by running the get_similar_prompts.py script. This will generate target-prompts and target-psudo-prompts in the data folder. Note pass --make_psudo argument to generate target-psudo-prompts.
Use the drive folder for scripts to reproduce main results.
We use exact match to calculate the accuracy for the tables (unless force decoding is specified explicitly). Use the Eval.ipynb notebook for calculating accuracy based on exact match.
If you found the paper helpful, consider citing it:
@misc{chatterjee2024language,
title={Language Models can Exploit Cross-Task In-context Learning for Data-Scarce Novel Tasks},
author={Anwoy Chatterjee and Eshaan Tanwar and Subhabrata Dutta and Tanmoy Chakraborty},
year={2024},
eprint={2405.10548},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
