Skip to content

kourouklides/CLCL

 
 

Repository files navigation

Compositional Language Continual Learning

Li, Y., Zhao, L., Church, K., and Elhoseiny, M. Compositional language continual learning. In International Conference on Learning Representations, 2020. URL https://openreview.net/forum?id=rklnDgHtDS.

Dependencies

The code needs TensorFlow, and the following requirments.

pip install -r requirements.txt
sudo apt-get install python-tk

Instruction Learning Experiments

# Please fix CUDA_VISIBLE_DEVICES in the scrips.
python sequential_data_generator.py --data_name data_scan
sh experiments_scan/main_proposed_scan/main_proposed_scan.a.sh
sh experiments_scan/baseline_Standard_scan/baseline_Standard_scan.a.sh
sh experiments_scan/baseline_Compositional_scan/baseline_Compositoinal_scan.a.sh
sh experiments_scan/baseline_EWC_scan/baseline_EWC_scan.a.sh
sh experiments_scan/baseline_MAS_scan/baseline_MAS_scan.a.sh

# Plotting results
python scan_evalutation_plot.py

Machine Translation Experiments

# Please fix CUDA_VISIBLE_DEVICES in the scrips.
python sequential_data_generator.py --data_name data_translate
sh experiments_translate/main_proposed_translate/main_proposed_translate.a.sh
sh experiments_translate/baseline_Standard_translate/baseline_Standard_translate.a.sh
sh experiments_translate/baseline_Compositional_translate/baseline_Compositoinal_translate.a.sh
sh experiments_translate/baseline_EWC_translate/baseline_EWC_translate.a.sh
sh experiments_translate/baseline_MAS_translate/baseline_MAS_translate.a.sh

# Plotting results
python machine_translation_evalutation_plot.py

Visualization

# Visualize attention maps
sh continual_learning_attension_visualization.sh

# Visualize embeddings
sh continual_learning_embedding_visualization.sh

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 66.3%
  • Shell 33.7%