PILL-CoDe: Inverse Design of Polypills via Automatic Differentiation for Prescribed Drug-Release Kinetics
This work addresses the need for systematic design of polypills with customized release profiles, replacing ad hoc parameter sweeps with gradient-based optimization.
PILL-CoDe introduces an end-to-end differentiable framework for co-optimizing polypill geometry and excipient distribution to match prescribed drug-release kinetics, demonstrating accurate matching of both monotonic and non-monotonic target release profiles in single-phase and multi-excipient case studies.
Polypills are single oral dosage forms that combine multiple active pharmaceutical ingredients and excipients, enabling fixed-dose combination therapies, coordinated multi-phase release, and precise customization of patient-specific treatment protocols. Recent advances in additive manufacturing facilitate the physical realization of multi-material excipients, offering superior customization of target release profiles. However, polypill formulations remain tuned by ad hoc parameter sweeps. The current design workflows are ill-suited for the systematic exploration of the high-dimensional space of shapes, compositions, and release behaviors. We present PILL-CoDe, a polypill co-design framework that simultaneously optimizes tablet geometry and excipient distribution to match prescribed drug-release kinetics. The framework couples a supershape parametrization of the pill geometry with a coordinate-based neural network representation of the excipient distribution, and governs dissolution through a coupled system of modified Allen-Cahn and Fickian diffusion equations. Implemented in JAX, the entire pipeline is end-to-end differentiable, with automatic differentiation providing exact sensitivities for gradient-based co-optimization of shape and composition under manufacturability constraints. We demonstrate the method through single-phase and multi-excipient case studies, showing accurate matching of both monotonic and non-monotonic target release profiles.