T220 : Probabilistic program analysis

Supervision:
Contact person: Angelika Kimmig
Supervisor(s): Luc De Raedt Angelika Kimmig
Daily advisor(s): Angelika Kimmig
Research group:
Declarative Languages and Artificial Intelligence
Context:

Quantifying the likelihood of different execution properties of a program under a certain distribution of inputs (called "usage profile") can be an important part of understanding the behavior of the program or the impact of implementation choices. For instance, if the program is unlikely to call a certain subroutine given the usage profile, that might be a reason not to optimize the implementation of that subroutine. Or, if a program classifies situations based on a number of sensor readings, we might be interested in the probability that random noise in the readings changes the classification result.

As a more concrete example, consider a coffee machine with a number of recipes combining different amounts of coffee, milk, sugar and cocoa, and containers of given sizes for those ingredients. A monitoring program for such a machine tracks the supply levels, that is, given a sequence of recipes demanded, it computes how much of each ingredient is still left in the machine, and disables a choice of recipe if supplies are below certain thresholds. Given a distribution over daily demands (for instance, from usage data collected in the past), we can ask questions such as:

  • What is the probability that the machine runs out of coffee during the day if it is refilled every morning?
  • What is the probability that the machine only offers plain coffee at the end of the day if it is refilled every morning?
  • What is the probability that the machine runs out of milk before running out of coffee if it is refilled every morning?
  • How do these probabilities change if the machine is only refilled every other day?
  • How do these probabilities change if storage space is distributed differently among the ingredients, e.g., more coffee, less sugar?

Probabilistic logic programming (PLP) languages such as ProbLog (http:// dtai.cs.kuleuven.be/problog/ ) are promising tools to study such tasks, as they (1) allow the user to naturally represent probability distributions, programs, and properties of programs, and (2) come with general purpose inference algorithms to compute the probability of a query (or property) being true.

However, naive encodings of such tasks likely pose a challenge to these inference algorithms, as the space of possibilities they need to explore grows rapidly with the number of inputs. One way to tackle this challenge is the use of symbolic execution techniques, which detect and exploit different inputs that result in the same behavior of the program.

Aim:

The goal of this thesis is to model a range of probabilistic program analysis tasks in PLP, and to investigate new or modified inference approaches for PLP based on symbolic execution.

Possible research questions:
  • Which types of properties can naturally be modeled in PLP?
  • Are there additional language constructs that would be useful?
  • How well do current PLP inference techniques perform in this setting?
  • Can new techniques based on symbolic execution improve performance?
Approach:

This thesis combines modeling and experimentation on the one hand with the development or improvement of probabilistic inference techniques on the other hand.

Relevant literature:

ProbLog: http://dtai.cs.kuleuven.be/problog/

A. Filieri, C. Pasareanu, W. Visser. Reliability analysis in symbolic pathfinder. Proceedings of the 2013 International Conference on Software Engineering. http://dl.acm.org/ citation.cfm?id=2486870

examples on http://systems.cs.colorado.edu/research/cyberphysical/probabilistic-program- analysis/

Student profile:

Interest in program analysis and probabilistic logic modeling; knowledge of Prolog and/or Python is an advantage.

This topic is for 1 student(s).

This topic can be selected by

  • all Master in de Ingenieurswetenschappen: Computerwetenschappen (ir) students
  • all Master of Engineering: Computer Science students

Clusters, in which this topic appears:
  • Programming Languages
  • Machine Learning
18-07-2008