deep-spin / understanding-spigot

Code for the paper "Understanding the Mechanics of SPIGOT: Surrogate Gradients for Latent Structure Learning"
11 stars 0 forks source link

This repository contains the code for the paper "Understanding the Mechanics of SPIGOT: Surrogate Gradients for Latent Structure Learning" by Tsvetomila Mihaylova, Vlad Niculae and André F. T. Martins.

https://www.aclweb.org/anthology/2020.emnlp-main.171/

Requirements

pip install -r requirements.txt

Organization of the code

The code for the three groups of experiments in the paper are organized in separate folders:

Running the experiments

Each directory has a main.py file which needs to be executed.

There are shell scripts with examples of the necessary parameters for the experiments with structured variables.

The parameters for the experiments with categorical latent variable are set in the Python file.

More details will be added soon.

Questions

If you have any questions or problems running the code, please let me know. You can post an issue in the repository or email the first author on firstname.lastname @ gmail . com.