Giter VIP home page Giter VIP logo

hrshtv / ctreeot Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 464 KB

[ICML 2023] Official code for our paper: 'Conditional Tree Matching for Inference-Time Adaptation of Tree Prediction Models'

Python 96.92% Shell 3.08%
belief-propagation case-based-reasoning domain-adaptation message-passing optimal-transport sinkhorn-algorithm sinkhorn-distance structured-prediction text-to-sql text2sql

ctreeot's Introduction

Conditional Tree Matching for Inference-Time Adaptation of Tree Prediction Models

Official code for our paper: 'Conditional Tree Matching for Inference-Time Adaptation of Tree Prediction Models' presented at ICML 2023.

Overall Approach and Alignment Algorithm

Setup

  1. Create a virtual environment and activate it
  2. Install PyTorch 1.11.0 for your machine and CUDA version from here
  3. Install tqdm and matplotlib

Running the Code

  • ctreeot.py: implementation of the CTreeOT algorithm
  • sinkhorn.py: implementation of the Sinkhorn algorithm
  • main.py: runs the experiments comparing the run time and constraint violations of Sinkhorn and CTreeOT on various tree sizes. See run.sh for more details on how to run main.py.
  • plot.py: generates the run time and constraint violation plots comparing Sinkhorn and CTreeOT in ./plots. Note that the current plots present inside ./plots were obtained by running the experiments on Google Colab with an NVIDIA T4 GPU, unlike the ones reported in the paper which were on an NVIDIA RTX A6000 GPU.

Citation

If you found our work useful, please cite us as:

@InProceedings{pmlr-v202-varma23a,
  title = 	 {Conditional Tree Matching for Inference-Time Adaptation of Tree Prediction Models},
  author =       {Varma, Harshit and Awasthi, Abhijeet and Sarawagi, Sunita},
  booktitle = 	 {Proceedings of the 40th International Conference on Machine Learning},
  pages = 	 {34908--34923},
  year = 	 {2023},
  editor = 	 {Krause, Andreas and Brunskill, Emma and Cho, Kyunghyun and Engelhardt, Barbara and Sabato, Sivan and Scarlett, Jonathan},
  volume = 	 {202},
  series = 	 {Proceedings of Machine Learning Research},
  month = 	 {23--29 Jul},
  publisher =    {PMLR},
  pdf = 	 {https://proceedings.mlr.press/v202/varma23a/varma23a.pdf},
  url = 	 {https://proceedings.mlr.press/v202/varma23a.html}
}

ctreeot's People

Contributors

hrshtv avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  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.