Git Product home page Git Product logo

emea's Introduction

Efficient Test Time Adapter Ensembling for Low-resource Language Varieties

This repository contains the implementation for our paper.

Efficient Test Time Adapter Ensembling for Low-resource Language Varieties
Xinyi Wang, Yulia Tsvetkov,Sebastian Ruder, Graham Neubig
EMNLP 2021 Findings

Our code is based on the adapter-transformers codebase and the XTREME benchmark

Introduction

We find that specialized language adapters might not be robust to unseen language variations, and that utilization of multiple existing pretrained language adapters alleviates this issue. We propose an algorithm named EMEA(Entropy Minimized Ensemble of Language Adapters), which optimizes the ensemble weights of a group of related language adapters at test time for each test input.

Main method implementation

The main function for optimizing the adapter weighting using EMEA is here.

Download the data

We simply use the data downloading instruction from the official XTREME repo. We also provide the processed data for NER in data/.

Installation

To install the dependencies: pip install --editable .

Decoding scripts

EMEA is a test time decoding algorithm. You need to train a task adapter before testing out the different decoding strategies. Here we provide a pretrained NER task adapter in outputs/ner/.

Baseline bash job_scripts/test_panx_adapter.sh

Ensemble bash job_scripts/test_panx_adapter_ensemble.sh

EMEA-s1 bash job_scripts/test_panx_adapter_emea_s1.sh

EMEA-s10 bash job_scripts/test_panx_adapter_emea_s10.sh

Citation

Please cite our paper as:

@inproceedings{wang2021emea,
    title={Efficient Test Time Adapter Ensembling for Low-resource Language Varieties},
    author={Wang, Xinyi and
            Tsvetkov, Yulia and
            Ruder, Sebastian and
            Neubig, Graham},
    booktitle={EMNLP: Findings},
    year={2021}
}

emea's People

Contributors

cindyxinyiwang avatar

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.