Ellie Y. Cheng, Eric Atkinson, Guillaume Baudart, Louis Mandel, Michael Carbin
{"title":"混合粒子滤波的推理计划","authors":"Ellie Y. Cheng, Eric Atkinson, Guillaume Baudart, Louis Mandel, Michael Carbin","doi":"arxiv-2408.11283","DOIUrl":null,"url":null,"abstract":"Advanced probabilistic programming languages (PPLs) use hybrid inference\nsystems to combine symbolic exact inference and Monte Carlo methods to improve\ninference performance. These systems use heuristics to partition random\nvariables within the program into variables that are encoded symbolically and\nvariables that are encoded with sampled values, and the heuristics are not\nnecessarily aligned with the performance evaluation metrics used by the\ndeveloper. In this work, we present inference plans, a programming interface\nthat enables developers to control the partitioning of random variables during\nhybrid particle filtering. We further present Siren, a new PPL that enables\ndevelopers to use annotations to specify inference plans the inference system\nmust implement. To assist developers with statically reasoning about whether an\ninference plan can be implemented, we present an abstract-interpretation-based\nstatic analysis for Siren for determining inference plan satisfiability. We\nprove the analysis is sound with respect to Siren's semantics. Our evaluation\napplies inference plans to three different hybrid particle filtering algorithms\non a suite of benchmarks and shows that the control provided by inference plans\nenables speed ups of 1.76x on average and up to 206x to reach target accuracy,\ncompared to the inference plans implemented by default heuristics; the results\nalso show that inference plans improve accuracy by 1.83x on average and up to\n595x with less or equal runtime, compared to the default inference plans. We\nfurther show that the static analysis is precise in practice, identifying all\nsatisfiable inference plans in 27 out of the 33 benchmark-algorithm\ncombinations.","PeriodicalId":501197,"journal":{"name":"arXiv - CS - Programming Languages","volume":"54 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-08-21","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Inference Plans for Hybrid Particle Filtering\",\"authors\":\"Ellie Y. Cheng, Eric Atkinson, Guillaume Baudart, Louis Mandel, Michael Carbin\",\"doi\":\"arxiv-2408.11283\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Advanced probabilistic programming languages (PPLs) use hybrid inference\\nsystems to combine symbolic exact inference and Monte Carlo methods to improve\\ninference performance. These systems use heuristics to partition random\\nvariables within the program into variables that are encoded symbolically and\\nvariables that are encoded with sampled values, and the heuristics are not\\nnecessarily aligned with the performance evaluation metrics used by the\\ndeveloper. In this work, we present inference plans, a programming interface\\nthat enables developers to control the partitioning of random variables during\\nhybrid particle filtering. We further present Siren, a new PPL that enables\\ndevelopers to use annotations to specify inference plans the inference system\\nmust implement. To assist developers with statically reasoning about whether an\\ninference plan can be implemented, we present an abstract-interpretation-based\\nstatic analysis for Siren for determining inference plan satisfiability. We\\nprove the analysis is sound with respect to Siren's semantics. Our evaluation\\napplies inference plans to three different hybrid particle filtering algorithms\\non a suite of benchmarks and shows that the control provided by inference plans\\nenables speed ups of 1.76x on average and up to 206x to reach target accuracy,\\ncompared to the inference plans implemented by default heuristics; the results\\nalso show that inference plans improve accuracy by 1.83x on average and up to\\n595x with less or equal runtime, compared to the default inference plans. We\\nfurther show that the static analysis is precise in practice, identifying all\\nsatisfiable inference plans in 27 out of the 33 benchmark-algorithm\\ncombinations.\",\"PeriodicalId\":501197,\"journal\":{\"name\":\"arXiv - CS - Programming Languages\",\"volume\":\"54 1\",\"pages\":\"\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2024-08-21\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"arXiv - CS - Programming Languages\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/arxiv-2408.11283\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"arXiv - CS - Programming Languages","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/arxiv-2408.11283","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
Advanced probabilistic programming languages (PPLs) use hybrid inference
systems to combine symbolic exact inference and Monte Carlo methods to improve
inference performance. These systems use heuristics to partition random
variables within the program into variables that are encoded symbolically and
variables that are encoded with sampled values, and the heuristics are not
necessarily aligned with the performance evaluation metrics used by the
developer. In this work, we present inference plans, a programming interface
that enables developers to control the partitioning of random variables during
hybrid particle filtering. We further present Siren, a new PPL that enables
developers to use annotations to specify inference plans the inference system
must implement. To assist developers with statically reasoning about whether an
inference plan can be implemented, we present an abstract-interpretation-based
static analysis for Siren for determining inference plan satisfiability. We
prove the analysis is sound with respect to Siren's semantics. Our evaluation
applies inference plans to three different hybrid particle filtering algorithms
on a suite of benchmarks and shows that the control provided by inference plans
enables speed ups of 1.76x on average and up to 206x to reach target accuracy,
compared to the inference plans implemented by default heuristics; the results
also show that inference plans improve accuracy by 1.83x on average and up to
595x with less or equal runtime, compared to the default inference plans. We
further show that the static analysis is precise in practice, identifying all
satisfiable inference plans in 27 out of the 33 benchmark-algorithm
combinations.