PILL-CoDe: Inverse Design of Polypills via Automatic Differentiation for Prescribed Drug-Release Kinetics
Pith reviewed 2026-05-16 23:00 UTC · model grok-4.3
The pith
PILL-CoDe uses automatic differentiation to co-optimize polypill shape and excipient distribution for any target drug release profile.
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
Core claim
PILL-CoDe 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. Demonstrations show accurate matching of both monotonic and non-monotonic target release
What carries the argument
The JAX-implemented end-to-end differentiable pipeline that couples supershape geometry parametrization, neural network excipient fields, and physics-based dissolution simulation to enable gradient-based joint optimization.
Load-bearing premise
The chosen modified Allen-Cahn plus Fickian diffusion model accurately captures the dissolution kinetics of the multi-material tablets.
What would settle it
Produce the optimized polypill designs via additive manufacturing and perform in-vitro dissolution tests to measure the actual release kinetics and compare them to the simulated targets.
Figures
read the original abstract
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.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The manuscript proposes PILL-CoDe, a co-design framework for polypills that parametrizes tablet geometry using supershapes and excipient distribution using coordinate-based neural networks. Dissolution is simulated via a coupled system of modified Allen-Cahn and Fickian diffusion equations. The entire pipeline is implemented in JAX to enable end-to-end differentiability, allowing gradient-based optimization of shape and composition to achieve prescribed drug-release kinetics under manufacturability constraints. The method is demonstrated on in-silico case studies for single-phase and multi-excipient polypills matching monotonic and non-monotonic target profiles.
Significance. This work introduces an innovative differentiable physics-informed approach to inverse design in pharmaceutical engineering, potentially streamlining the development of complex fixed-dose combination therapies. The use of automatic differentiation for exact gradient computation in a high-dimensional design space is a notable technical contribution. However, the significance is tempered by the purely computational nature of the results, as no experimental validation is provided to confirm that optimized designs translate to real-world performance.
major comments (2)
- [Case Studies] The reported demonstrations show the optimizer recovering designs that match synthetic target release profiles generated from the same PDE model. However, no quantitative metrics such as mean squared error, maximum deviation, or convergence behavior are provided to assess the accuracy and reliability of the optimization process.
- [Physical Model] The framework's validity hinges on the modified Allen-Cahn and Fickian diffusion model accurately capturing multi-material dissolution kinetics. The manuscript does not include any experimental comparison or parameter calibration against in-vitro data from 3D-printed polypills, which is a load-bearing assumption for claiming practical utility.
minor comments (2)
- [Abstract] The abstract claims 'accurate matching' of target profiles but does not specify any error measures; including brief quantitative results would strengthen the summary.
- [Notation] Ensure consistent definition of all parameters in the supershape and neural network representations across the text and figures.
Simulated Author's Rebuttal
We thank the referee for the thoughtful review and constructive comments on our manuscript. We address each major comment point by point below. We agree that quantitative metrics will improve the clarity of the case studies and will incorporate them in the revision. For the physical model, we will expand the discussion of assumptions and limitations while clarifying the computational scope of the current work.
read point-by-point responses
-
Referee: [Case Studies] The reported demonstrations show the optimizer recovering designs that match synthetic target release profiles generated from the same PDE model. However, no quantitative metrics such as mean squared error, maximum deviation, or convergence behavior are provided to assess the accuracy and reliability of the optimization process.
Authors: We agree that quantitative metrics are essential for rigorously evaluating the optimization performance. In the revised manuscript, we will add tables and figures reporting mean squared error (MSE) and maximum absolute deviation between the achieved and target release profiles for all case studies. We will also include convergence plots showing the evolution of the loss function and design parameters over optimization iterations, along with statistics on run-to-run variability when using different initializations. These additions will directly quantify the accuracy and reliability of the gradient-based co-optimization. revision: yes
-
Referee: [Physical Model] The framework's validity hinges on the modified Allen-Cahn and Fickian diffusion model accurately capturing multi-material dissolution kinetics. The manuscript does not include any experimental comparison or parameter calibration against in-vitro data from 3D-printed polypills, which is a load-bearing assumption for claiming practical utility.
Authors: The current manuscript presents a computational framework for inverse design, with all demonstrations performed in-silico using synthetic targets generated from the same PDE system. We will revise the manuscript to include an expanded discussion of the model assumptions, citing the literature basis for the modified Allen-Cahn and Fickian components, and explicitly state the limitations regarding direct experimental validation. Parameter calibration against in-vitro data from 3D-printed polypills is an important next step but lies outside the scope of this work, which focuses on establishing the differentiable co-design methodology. We will add a dedicated limitations subsection outlining plans for future experimental studies. revision: partial
- Direct experimental validation or parameter calibration of the optimized polypill designs against in-vitro dissolution data from 3D-printed samples cannot be provided in the current revision, as the work is purely computational and no such data were generated.
Circularity Check
No circularity: optimization recovers designs for externally prescribed targets via independent physics model
full rationale
The paper defines an end-to-end differentiable pipeline (supershape geometry + NN excipient field + modified Allen-Cahn/Fickian PDE) whose loss is the mismatch to a prescribed release profile supplied as an external input. Demonstrations recover parameters that reproduce synthetic targets generated from the same forward model, but this is standard validation of an inverse solver rather than a reduction of the claimed result to its own fitted values by construction. No self-citation load-bearing steps, no uniqueness theorems imported from prior author work, no ansatz smuggled via citation, and no renaming of known empirical patterns appear in the provided text. The central claim (gradient-based co-optimization under manufacturability constraints) remains independent of the target data and does not collapse to a tautology.
Axiom & Free-Parameter Ledger
axioms (2)
- domain assumption Modified Allen-Cahn equation accurately models the moving dissolution front in multi-material tablets
- domain assumption Fickian diffusion governs drug transport inside the dissolving matrix
Lean theorems connected to this paper
-
IndisputableMonolith/Cost/FunctionalEquation.leanwashburn_uniqueness_aczel unclear?
unclearRelation between the paper passage and the cited Recognition theorem.
governs dissolution through a coupled system of modified Allen-Cahn and Fickian diffusion equations... end-to-end differentiable... gradient-based co-optimization
-
IndisputableMonolith/Foundation/AlexanderDuality.leanalexander_duality_circle_linking unclear?
unclearRelation between the paper passage and the cited Recognition theorem.
supershape parametrization... coordinate-based neural network representation of the excipient distribution
What do these tags mean?
- matches
- The paper's claim is directly supported by a theorem in the formal canon.
- supports
- The theorem supports part of the paper's argument, but the paper may add assumptions or extra steps.
- extends
- The paper goes beyond the formal theorem; the theorem is a base layer rather than the whole result.
- uses
- The paper appears to rely on the theorem as machinery.
- contradicts
- The paper's claim conflicts with a theorem or certificate in the canon.
- unclear
- Pith found a possible connection, but the passage is too broad, indirect, or ambiguous to say the theorem truly supports the claim.
Reference graph
Works this paper leans on
- [1]
-
[2]
U.S. Food and Drug Administration, CDER, Discussion paper: Distributed manufacturing and point of care manufacturing of drugs,https: //downloads.regulations.gov/FDA-2022-N-2316-0002/content.pdf, federal Register notice: 87 FR 62416 (Oct 14, 2022) (2022)
work page 2022
-
[3]
U.S. Food and Drug Administration, CDER, Distributed manufacturing of drugs: Stakeholder feedback and action plan,https://www.fda. gov/media/173449/download(2023)
work page 2023
-
[4]
K. Sen, T. Mehta, S. Sansare, L. Sharifi, A. W. Ma, B. Chaudhuri, Pharmaceutical applications of powder-based binder jet 3d printing process–a review, Advanced drug delivery reviews 177 (2021) 113943
work page 2021
- [5]
-
[6]
I. Seoane-Via ˜no, P. Januskaite, C. Alvarez-Lorenzo, A. W. Basit, A. Goyanes, Semi-solid extrusion 3d printing in drug delivery and biomedicine: Personalised solutions for healthcare challenges, Journal of controlled release 332 (2021) 367–389
work page 2021
- [7]
-
[8]
S. Deshmane, P. Kendre, H. Mahajan, S. Jain, Stereolithography 3d printing technology in pharmaceuticals: a review, Drug Development and Industrial Pharmacy 47 (9) (2021) 1362–1372
work page 2021
-
[9]
X. Xu, P. Robles-Mart ´ınez, C. M. Madla, F. Joubert, A. Goyanes, A. W. Basit, S. Gaisford, Stereolithography printing of an antihypertensive polyprintlet: case study of an unexpected photopolymer drug reaction, International Journal of Pharmaceutics 586 (2020) 119594.doi: 10.1016/j.ijpharm.2020.119594
-
[10]
FierceBiotech, Mit-based startup nabs $30m for first 3-d printed drug approved by fda, accessed 2025-10-26 (aug 2015)
work page 2025
-
[11]
N. Scoutaris, M. R. Alexander, P. R. Gellert, C. J. Roberts, Inkjet printing as a novel medicine formulation technique, Journal of controlled release 156 (2) (2011) 179–185
work page 2011
-
[12]
S. J. Trenfield, A. Awad, A. Goyanes, S. Gaisford, A. W. Basit, 3d printing pharmaceuticals: drug development to frontline care, Trends in pharmacological sciences 39 (5) (2018) 440–451
work page 2018
-
[13]
Aprecia Pharmaceuticals, Fda approves the first 3d printed drug product,https://aprecia.com/resources/press/ fda-approves-the-first-3d-printed-drug-product/(2015)
work page 2015
- [14]
- [15]
-
[16]
Defense Advanced Research Projects Agency, Battlefield medicine,https://www.darpa.mil/research/programs/ battlefield-medicine(2017)
work page 2017
-
[17]
J. J. Lewin III, E. J. Choi, G. Ling, Pharmacy on demand: New technologies to enable miniaturized and mobile drug manufacturing, American Journal of Health-System Pharmacy 73 (2) (2016) 45–54
work page 2016
-
[18]
URLhttps://globalbiodefense.com/2012/03/26/darpa-biologically-derived-medicines-on-demand-baa/
Defense Advanced Research Projects Agency (DARPA), Biologically-derived medicines on demand (bio-mod): Broad agency announcement, Program announcement (archival report), accessed 2025-10-26 (2012). URLhttps://globalbiodefense.com/2012/03/26/darpa-biologically-derived-medicines-on-demand-baa/
work page 2025
-
[19]
International Space Station National Laboratory, In space production applications,https://issnationallab.org/ research-and-science/space-research-overview/research-areas/in-space-production-applications/(2024)
work page 2024
-
[20]
National Aeronautics and Space Administration, In space for earth!,https://www.nasa.gov/wp-content/uploads/2023/10/ in-space-production-applications-overview-october-2023.pdf(2023)
work page 2023
-
[21]
A. Konta, S. Ab Rahim, E. Pawlikowska, J. Mrosko, A. Kaczmarek-Szcz ´os, M. Paluch, Personalised printed medicines: Which techniques print what, Pharmaceutics 9 (3) (2017) 21.doi:10.3390/pharmaceutics9030021
-
[22]
J. Panetta, H. Mohammadian, E. Luci, V . Babaei, Shape from release: Inverse design and fabrication of controlled release structures, ACM Transactions on Graphics 41 (6) (2022) 1–16.doi:10.1145/3550454.3555456
-
[23]
R. Altunay, J. Suuronen, E. Immonen, L. Roininen, J. H ¨am¨al¨ainen, Computational design of personalized drugs via robust optimization under uncertainty, arXiv preprint arXiv:2507.16470 (2025)
-
[24]
B. Du, V . R. Daniels, Z. Vaksman, J. L. Boyd, C. Crady, L. Putcha, Evaluation of physical and chemical changes in pharmaceuticals flown on space missions, The AAPS journal 13 (2) (2011) 299–308
work page 2011
-
[25]
J. Van der Merwe, J. Steenekamp, D. Steyn, J. Hamman, The role of functional excipients in solid oral dosage forms to overcome poor drug dissolution and bioavailability, Pharmaceutics 12 (5) (2020) 393
work page 2020
-
[26]
S. A. Khaled, J. C. Burley, M. R. Alexander, J. Yang, C. J. Roberts, 3d printing of five-in-one dose combination polypill with defined immediate and sustained release profiles, Journal of controlled release 217 (2015) 308–314
work page 2015
-
[27]
D. M. Saylor, C.-S. Kim, D. V . Patwardhan, J. A. Warren, Diffuse-interface theory for structure formation and release behavior in controlled drug release systems, Acta biomaterialia 3 (6) (2007) 851–864
work page 2007
-
[28]
S.-F. Mohseni-Motlagh, R. Dolatabadi, M. Baniassadi, M. Karimpour, M. Baghani, Tablet geometry effect on the drug release profile from a hydrogel-based drug delivery system, Pharmaceutics 15 (7) (2023) 1917
work page 2023
-
[29]
A. Goyanes, P. R. Martinez, A. Buanz, A. W. Basit, S. Gaisford, Effect of geometry on drug release from 3d printed tablets, International journal of pharmaceutics 494 (2) (2015) 657–663
work page 2015
-
[30]
J. Gielis, A generic geometric transformation that unifies a wide range of natural and abstract shapes, American journal of botany 90 (3) (2003) 333–338
work page 2003
-
[31]
R. K. Padhy, K. Suresh, A. Chandrasekhar, Tomas: topology optimization of multiscale fluid flow devices using variational auto-encoders and super-shapes, Structural and Multidisciplinary Optimization 67 (7) (2024) 119
work page 2024
-
[32]
A. Chandrasekhar, K. Suresh, Multi-material topology optimization using neural networks, Computer-Aided Design 136 (2021) 103017
work page 2021
-
[33]
S. M. Allen, J. W. Cahn, A microscopic theory for antiphase boundary motion and its application to antiphase domain coarsening, Acta metallurgica 27 (6) (1979) 1085–1095
work page 1979
-
[34]
Z. Xu, H. Huang, X. Li, P. Meakin, Phase field and level set methods for modeling solute precipitation and/or dissolution, Computer Physics Communications 183 (1) (2012) 15–19
work page 2012
-
[35]
Fick, Ueber diffusion, Annalen der physik 170 (1) (1855) 59–86
A. Fick, Ueber diffusion, Annalen der physik 170 (1) (1855) 59–86
-
[36]
B. Goodacre, P. Murray, A mathematical model of drug absorption, Journal of Clinical Pharmacy and Therapeutics 6 (2) (1981) 117–133
work page 1981
-
[37]
J. Siepmann, F. Siepmann, Mathematical modeling of drug dissolution, International journal of pharmaceutics 453 (1) (2013) 12–24
work page 2013
-
[38]
Z. Xu, P. Meakin, Phase-field modeling of solute precipitation and dissolution, The Journal of chemical physics 129 (1) (2008)
work page 2008
-
[39]
S. Yang, N. Ukrainczyk, A. Caggiano, E. Koenders, Numerical phase-field model validation for dissolution of minerals, Applied Sciences 11 (6) (2021) 2464
work page 2021
-
[40]
I. Singer-Loginova, H. Singer, The phase field technique for modeling multiphase materials, Reports on progress in physics 71 (10) (2008) 106501
work page 2008
-
[41]
R. Yang, K. L. Chong, H.-R. Liu, R. Verzicco, D. Lohse, Melting and solidification in periodically modulated thermal convection, Journal of Fluid Mechanics 998 (2024) A10
work page 2024
-
[42]
D. Sleziona, D. R. Ely, M. Thommes, Modeling of particle dissolution behavior using a geometrical phase-field approach, Molecular Phar- maceutics 19 (11) (2022) 3749–3756
work page 2022
-
[43]
C. Bringedal, L. V on Wolff, I. S. Pop, Phase field modeling of precipitation and dissolution processes in porous media: Upscaling and numerical experiments, Multiscale Modeling & Simulation 18 (2) (2020) 1076–1112
work page 2020
-
[44]
A. Dokoumetzidis, P. Macheras, A century of dissolution research: from noyes and whitney to the biopharmaceutics classification system, International journal of pharmaceutics 321 (1-2) (2006) 1–11
work page 2006
-
[45]
R. Kumar Padhy, P. Thombre, K. Suresh, A. Chandrasekhar, Treetop: topology optimization using constructive solid geometry trees, Struc- tural and Multidisciplinary Optimization 68 (2) (2025) 1–13
work page 2025
-
[46]
R. K. Padhy, A. Chandrasekhar, Photos: topology optimization of photonic components using a shape library, Engineering with Computers 41 (2) (2025) 1141–1153
work page 2025
-
[47]
F. Wang, B. S. Lazarov, O. Sigmund, On projection methods, convergence and robust formulations in topology optimization, Structural and multidisciplinary optimization 43 (6) (2011) 767–784
work page 2011
-
[48]
M. Tancik, P. Srinivasan, B. Mildenhall, S. Fridovich-Keil, N. Raghavan, U. Singhal, R. Ramamoorthi, J. Barron, R. Ng, Fourier features let networks learn high frequency functions in low dimensional domains, Advances in neural information processing systems 33 (2020) 7537–7547
work page 2020
-
[49]
A. Chandrasekhar, K. Suresh, Approximate length scale filter in topology optimization using fourier enhanced neural networks, Computer- Aided Design 150 (2022) 103277. 19
work page 2022
-
[50]
A. F. Agarap, Deep learning using rectified linear units (relu), arXiv preprint arXiv:1803.08375 (2018)
work page internal anchor Pith review Pith/arXiv arXiv 2018
- [51]
-
[52]
J. Bradbury, R. Frostig, P. Hawkins, M. J. Johnson, C. Leary, D. Maclaurin, G. Necula, A. Paszke, J. VanderPlas, S. Wanderman-Milne, Q. Zhang, JAX: composable transformations of Python+NumPy programs (2018). URLhttp://github.com/jax-ml/jax
work page 2018
-
[53]
L. D. Dalcin, R. R. Paz, P. A. Kler, A. Cosimo, Parallel distributed computing using python, Advances in Water Resources 34 (9) (2011) 1124 – 1139, new Computational Methods and Software Tools.doi:10.1016/j.advwatres.2011.04.013
- [54]
-
[55]
D. P. Kingma, J. Ba, Adam: A method for stochastic optimization, arXiv preprint arXiv:1412.6980 (2014)
work page internal anchor Pith review Pith/arXiv arXiv 2014
-
[56]
H. Kervadec, J. Dolz, J. Yuan, C. Desrosiers, E. Granger, I. B. Ayed, Constrained deep networks: Lagrangian optimization via log-barrier extensions, in: 2022 30th European Signal Processing Conference (EUSIPCO), IEEE, 2022, pp. 962–966
work page 2022
- [57]
-
[58]
A. Chandrasekhar, A. Mirzendehdel, M. Behandish, K. Suresh, Frc-tounn: Topology optimization of continuous fiber reinforced composites using neural network, Computer-Aided Design 156 (2023) 103449
work page 2023
- [59]
- [60]
-
[61]
M. Blondel, Q. Berthet, M. Cuturi, R. Frostig, S. Hoyer, F. Llinares-L ´opez, F. Pedregosa, J.-P. Vert, Efficient and modular implicit differenti- ation, Advances in neural information processing systems 35 (2022) 5230–5242
work page 2022
-
[62]
Q. Wang, P. Moin, G. Iaccarino, Minimal repetition dynamic checkpointing algorithm for unsteady adjoint calculation, SIAM Journal on Scientific Computing 31 (4) (2009) 2549–2567
work page 2009
-
[63]
K. A. James, H. Waisman, Topology optimization of viscoelastic structures using a time-dependent adjoint method, Computer Methods in Applied Mechanics and Engineering 285 (2015) 166–187
work page 2015
-
[64]
J. Alexandersen, M. Appel, Large-scale topology optimisation of time-dependent thermal conduction using space-time finite elements and a parallel space-time multigrid preconditioner, arXiv preprint arXiv:2508.09589 (2025)
- [65]
discussion (0)
Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.