Please follow the following steps to reproduce the result in the paper.

Please follow the following steps:

1. Install requirements.txt

2. For GPU users: Also install Faiss-GPU to speed up nearest neighbors.

3. For synthetic data:
  - Shared component extraction: Open synthetic_train.ipynb notebook. Validation of theorem 1 and 3.
  - Private component extraction: Open private_extraction.ipynb notebook. Validation of theorem 6.

4. Real data:
  (i) For word embedding alignment please follow the following steps:

    a. Open Word Alignment folder:
      - create a folder named data.
      - cd data/
      - wget https://dl.fbaipublicfiles.com/arrival/vectors.tar.gz
      - Extract folder vectors inside data
      
      - create another folder named crosslingual inside data.
      - Inside data/crosslingual
      - wget https://dl.fbaipublicfiles.com/arrival/wordsim.tar.gz   wget https://dl.fbaipublicfiles.com/arrival/dictionaries.tar.gz
      - Extract folders dictionaries, wordsim

      - Run bash run.sh to get results.

  (ii) For single-cell sequence analysis. Please follow the following steps:
      - Run bash run.sh