We lifted 5 functions out of this paper's own repositories and ran 5 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.
| Repository | Role | Ran |
|---|---|---|
| thunlp-mt/plm4mt | canonical | 5 of 5 |
| Function | Status | Where it lives |
|---|---|---|
| import_params | Ran | thunlp-mt/plm4mt/thumt/bin/trainer.py code served (permissive licence) · get_code("bb55d10bc8ee2bfa") |
| import_params | Ran | thunlp-mt/plm4mt/thumt/bin/translator.py code served (permissive licence) · get_code("da8001b0f721ab57") |
| length_to_mask | Ran | thunlp-mt/plm4mt/thumt/models/prefix.py code served (permissive licence) · get_code("aaffde8b4d24daf4") |
| override_params | Ran | thunlp-mt/plm4mt/thumt/bin/translator.py code served (permissive licence) · get_code("e1d3da437c2d6fb3") |
| parse_args | Ran | thunlp-mt/plm4mt/thumt/bin/trainer.py code served (permissive licence) · get_code("256acbc162360bd6") |
Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.
Prompting has recently been shown as a promising approach for applying pre-trained language models to perform downstream tasks. We present Multi-Stage Prompting (MSP), a simple and automatic approach for leveraging pre-trained language models to translation tasks. To better mitigate the discrepancy between pre-training and translation, MSP divides the translation process via pre-trained language models into multiple separate stages: the encoding stage, the re-encoding stage, and the decoding stage. During each stage, we independently apply different continuous prompts for allowing pre-trained language models better shift to translation tasks. We conduct extensive experiments on three translation tasks. Experiments show that our method can significantly improve the translation performance of pre-trained language models.
The same record, over MCP at https://syntology.ai/mcp:
get_harvested_code_for_paper("2110.06609")
get_code_for_paper("2110.06609")
have("2110.06609")
Connect an agent — have() is free.