We gratefully acknowledge support from
the Simons Foundation and member institutions.
Full-text links:

Download:

Current browse context:

cs.PL

Change to browse by:

cs

References & Citations

DBLP - CS Bibliography

Bookmark

(what is this?)
CiteULike logo BibSonomy logo Mendeley logo del.icio.us logo Digg logo Reddit logo ScienceWISE logo

Computer Science > Programming Languages

Title: Distill: Domain-Specific Compilation for Cognitive Models

Abstract: 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.
Comments: 11 pages, 7 figures
Subjects: Programming Languages (cs.PL)
Cite as: arXiv:2110.15425 [cs.PL]
  (or arXiv:2110.15425v2 [cs.PL] for this version)

Submission history

From: Raghavendra Pradyumna Pothukuchi [view email]
[v1] Thu, 28 Oct 2021 20:27:22 GMT (1346kb,D)
[v2] Fri, 14 Jan 2022 11:09:41 GMT (1454kb,D)

Link back to: arXiv, form interface, contact.