Distill: Domain-Specific Compilation for Cognitive Models

10/28/2021
by   Ján Veselý, et al.
0

This paper discusses our proposal and implementation of Distill, a domain-specific compilation tool based on LLVM to accelerate cognitive models. Cognitive models explain the process of cognitive function and offer a path to human-like artificial intelligence. However, cognitive modeling is laborious, requiring composition of many types of computational tasks, and suffers from poor performance as it relies on high-level languages like Python. In order to continue enjoying the flexibility of Python while achieving high performance, 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 overheads to the actual model. As we show, this permits significantly faster model execution. We also show that the code so generated enables using classical compiler data flow analysis passes to reveal properties about data flow in cognitive models that are useful to cognitive scientists. Distill is publicly available, is being used by researchers in cognitive science, and has led to patches that are currently being evaluated for integration into mainline LLVM.

READ FULL TEXT
research
06/05/2017

Types of Cognition and its Implications for future High-Level Cognitive Machines

This work summarizes part of current knowledge on High-level Cognitive p...
research
07/20/2023

LLM Cognitive Judgements Differ From Human

Large Language Models (LLMs) have lately been on the spotlight of resear...
research
09/12/2016

Devito: Towards a generic Finite Difference DSL using Symbolic Python

Domain specific languages (DSL) have been used in a variety of fields to...
research
11/10/2020

MotePy: A domain specific language for low-overhead machine learning and data processing

A domain specific language (DSL), named MotePy is presented. The DSL off...
research
09/06/2022

Cognitive Assistance for Inquiry-Based Modeling

Inquiry-based modeling is essential to scientific practice. However, mod...
research
02/22/2013

Towards Python-based Domain-specific Languages for Self-reconfigurable Modular Robotics Research

This paper explores the role of operating system and high-level language...
research
10/02/2020

AI Centered on Scene Fitting and Dynamic Cognitive Network

This paper briefly analyzes the advantages and problems of AI mainstream...

Please sign up or login with your details

Forgot password? Click here to reset