Distill: Domain-Specific Compilation for Cognitive Models

Jan Vesely, Raghavendra Pradyumna Pothukuchi, Ketaki Joshi, Samyak Gupta, Jonathan D. Cohen, Abhishek Bhattacharjee

Research output: Chapter in Book/Report/Conference proceedingConference contribution

Abstract

Computational models of cognition enable a better understanding of the human brain and behavior, psychiatric and neurological illnesses, clinical interventions to treat illnesses, and also offer a path towards human-like artificial intelligence. Cognitive models are also, however, laborious to develop, requiring composition of many types of computational tasks, and suffer from poor performance as they are generally designed using high-level languages like Python. In this work, we present Distill, a domain-specific compilation tool to accelerate cognitive models while continuing to offer cognitive scientists the ability to develop their models in flexible high-level languages. Distill uses domain-specific knowledge to compile Python-based cognitive models into LLVM IR, carefully stripping away features like dynamic typing and memory management that add performance overheads without being necessary for the underlying computation of the models. The net effect is an average of 27 × performance improvement in model execution over state-of-The-Art techniques using Pyston and PyPy. Distill also repurposes classical compiler data flow analyses to reveal properties about data flow in cognitive models that are useful to cognitive scientists. Distill is publicly available, integrated in the PsyNeuLink cognitive modeling environment, and is already being used by researchers in the brain sciences.

Original languageEnglish (US)
Title of host publicationCGO 2022 - Proceedings of the 2022 IEEE/ACM International Symposium on Code Generation and Optimization
EditorsJae W. Lee, Sebastian Hack, Tatiana Shpeisman
PublisherInstitute of Electrical and Electronics Engineers Inc.
Pages301-312
Number of pages12
ISBN (Electronic)9781665405843
DOIs
StatePublished - 2022
Event20th IEEE/ACM International Symposium on Code Generation and Optimization, CGO 2022 - Seoul, Korea, Republic of
Duration: Apr 2 2022Apr 6 2022

Publication series

NameCGO 2022 - Proceedings of the 2022 IEEE/ACM International Symposium on Code Generation and Optimization

Conference

Conference20th IEEE/ACM International Symposium on Code Generation and Optimization, CGO 2022
Country/TerritoryKorea, Republic of
CitySeoul
Period4/2/224/6/22

All Science Journal Classification (ASJC) codes

  • Hardware and Architecture
  • Software
  • Control and Optimization

Keywords

  • Domain-specific compilation
  • JIT compilers
  • Python.
  • cognitive models
  • human brain

Fingerprint

Dive into the research topics of 'Distill: Domain-Specific Compilation for Cognitive Models'. Together they form a unique fingerprint.

Cite this