Back to results

Johns Hopkins University

Automating the Analysis and Improvement of Dynamic Programming Algorithms with Applications to Natural Language Processing

Abstract

dc:description.abstract

This thesis develops a system for automatically analyzing and improving dynamic programs, such as those that have driven progress in natural language processing and computer science, more generally, for decades. Finding a correct program with the optimal asymptotic runtime can be unintuitive, time-consuming, and error-prone. This thesis aims to automate this laborious process. To this end, we develop an approach based on (1) a high-level, domain-specific language called Dyna for concisely specifying dynamic programs (2) a general-purpose solver to efficiently execute these programs (3) a static analysis system that provides type analysis and worst-case time/space complexity analyses (4) a rich collection of meaning-preserving transformations to programs, which systematizes the repeated insights of numerous authors when speeding up algorithms in the literature (5) a search algorithm for identifying a good sequence of transformations that reduce the runtime complexity given an initial, correct program We show that, in practice, automated search—like the mental search performed by human programmers—can find substantial improvements to the initial program. Empirically, we show that many speed-ups described in the NLP literature could have been discovered automatically by our system. We provide a freely available prototype system at https://github.com/timvieira/dyna-pi

Degree

thesis:*
Name thesis:degree_name
Ph.D.
Level thesis:degree_level
Doctoral
Discipline thesis:degree_discipline
Computer Science
Department thesis:degree_department
Computer Science
Grantor dc:publisher
Johns Hopkins University
Year dc:date.issued
2023

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Vieira, Timothy
Advisor dc:contributor.advisor
  • Eisner, Jason
Committee members dc:contributor.committeemember
  • Smith, Scott
  • Chiang, David
ORCID person:identifier.orcid

Subjects

dc:subject × 6

Rights

Language dc:language.iso
en_US

Identifiers

dc:identifier.*
Repository record dc:identifier.uri
http://jhir.library.jhu.edu/handle/1774.2/68957

Chain of custody

source
Harvested from
Johns Hopkins University
Base URL
jscholarship.library.jhu.edu/server/oai/request
Last updated
2026-11-20
Source record
OAI-PMH GetRecord
citation

Vieira, Timothy. Automating the Analysis and Improvement of Dynamic Programming Algorithms with Applications to Natural Language Processing. Doctoral thesis, Johns Hopkins University, 2023. http://jhir.library.jhu.edu/handle/1774.2/68957