mlsanityData to 13 Oct 2026

Likelihood Hacking in Probabilistic Program Synthesis

arXiv 2603.24126 ↗First posted 25 Mar 2026cs.LG cs.PLcited by 2

Not on the map. Why?

Abstract (arXiv)

When language models are trained by reinforcement learning (RL) to write probabilistic programs, they can artificially inflate their marginal-likelihood reward by producing programs whose data distribution fails to normalise instead of fitting the data better. We call this failure likelihood hacking (LH). We formalise LH in a core probabilistic programming language (PPL) and give sufficient syntactic conditions for its prevention, proving that a safe language fragment Lsafe satisfying these conditions cannot produce likelihood-hacking programs. Empirically, we show that GRPO-trained models generating PyMC code discover LH exploits within the first few training steps, driving violation rates well above the untrained-model baseline. We implement Lsafe's conditions as textttSafeStan, a LH-resistant modification of Stan, and show empirically that it suppresses LH under optimisation pressure. These results show that language-level safety constraints are both theoretically grounded and effective in practice for automated Bayesian model discovery.

Key facts. Cited by 2 papers in the map (data through 13 Oct 2026). Builds on 31 of its 66 references that are in the map. First posted on arXiv 25 Mar 2026.

Builds on

31 of 66 references.

References · 31

  1. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,091
  2. 2016Concrete Problems in AI Safetycited by 1,614
  3. 2022Scaling Laws for Reward Model Overoptimizationcited by 1,077
  4. 2024The AI Scientist: Towards Fully Automated Open-Ended Scientific Discoverycited by 1,041
  5. 2025The AI Scientist-v2: Workshop-Level Automated Scientific Discovery via Agentic Tree Searchcited by 399
  6. 2018Pyro: Deep Universal Probabilistic Programmingcited by 380
  7. 2022The Effects of Reward Misspecification: Mapping and Mitigating Misaligned Modelscited by 320
  8. 2019Risks from Learned Optimization in Advanced Machine Learning Systemscited by 254
  9. 2022Defining and Characterizing Reward Hackingcited by 198
  10. 2018Categorizing Variants of Goodhart's Lawcited by 142
  11. 2024Scaling Laws for Reward Model Overoptimization in Direct Alignment Algorithmscited by 142
  12. 2025Superintelligent Agents Pose Catastrophic Risks: Can Scientist AI Offer a Safer Path?cited by 74
19 more
  1. 2025School of Reward Hacks: Hacking harmless tasks generalizes to misaligned behavior in LLMscited by 63
  2. 2024Risks of AI Scientists: Prioritizing Safeguarding Over Autonomycited by 49
  3. 2024Automated Statistical Model Discovery with Language Modelscited by 41
  4. 2023Goodhart's Law in Reinforcement Learningcited by 38
  5. 2025BED-LLM: Intelligent Information Gathering with LLMs and Bayesian Experimental Designcited by 22
  6. 2019Bayesian Synthesis of Probabilistic Programs for Automatic Data Modelingcited by 19
  7. 2025MONA: Myopic Optimization with Non-myopic Approval Can Mitigate Multi-step Reward Hackingcited by 19
  8. 2020SPPL: Probabilistic Programming with Fast Exact Symbolic Inferencecited by 18
  9. 2025BoxingGym: Benchmarking Progress in Automated Experimental Design and Model Discoverycited by 17
  10. 2026Benchmarking Reward Hack Detection in Code Environments via Contrastive Analysiscited by 16
  11. 2016Semantics for probabilistic programming: higher-order functions, continuous distributions, and soft constraintscited by 12
  12. 2026A Probabilistic Framework for LLM-Based Model Discoverycited by 12
  13. 2025Large Language Bayescited by 10
  14. 2026Adversarial Reward Auditing for Active Detection and Mitigation of Reward Hackingcited by 10
  15. 2019Towards Verified Stochastic Variational Inference for Probabilistic Programscited by 6
  16. 2022Affine Monads and Lazy Structures for Bayesian Programmingcited by 5
  17. 2025RefineStat: Efficient Exploration for Probabilistic Program Synthesiscited by 5
  18. 2018Probabilistic Programming with Densities in SlicStan: Efficient, Flexible and Deterministiccited by 3
  19. 2021Sound Probabilistic Inference via Guide Typescited by 3

Built on by

Cited by year (2026 to 13 Oct)

Citing papers per year: 2026: 2.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Reward Hacking in Language Model Agents: Revisiting AI Safety Gridworlds
  2. 2025Inference-Time Reward Hacking in Large Language Models
  3. 2024Evaluating Defences against Unsafe Feedback in RLHF
  4. 2024Probabilistic Inference in Language Models via Twisted Sequential Monte Carlo
  5. 2021flip-hoisting: Exploiting Repeated Parameters in Discrete Probabilistic Programs
  6. 2026Selective Left-Shift: Turning Test-Time Compute and Difficulty-based Curation into Training Data for Low-Resource Code Generation
  7. 2025The Alignment Auditor: A Bayesian Framework for Verifying and Refining LLM Objectives
  8. 2026From Curiosity to Caution: Mitigating Reward Hacking for Best-of-N with Pessimism