Abstract
Efficiently designing polymers to meet specific requirements can expedite their translation into practical applications and lower development costs. Although generative inverse design is more efficient than trial-and-error or forward prediction–screening strategies, the imperfect validity of current polymer generative models prevents their seamless integration into scientific discovery workflows. Moreover, their limited controllability—such as the inability to reliably generate polymers with specific functional groups or classes—further constrains their practical utility. In this work, we integrate the robust Group SELFIES method with the state-of-the-art polymer generator PolyTAO to achieve generating 100% chemically valid polymer structures, removing a longstanding bottleneck in polymer design. Compared with previous polymer generation models, this work can generate—on demand—polymers that match specified chemical motifs, polymer classes, and target properties across an effectively unbounded chemical space. We further introduce a task-agnostic, continuous pretraining strategy that combines physics-informed heuristics with reinforcement learning. This approach preserves strong generative performance on user-defined tasks, even in low-data regimes. As a proof of concept, we rigorously validated the dielectric constants of 30 polyimides generated via controlled, on-demand design using first-principles calculations, finding deviations of less than 10% from their target values. Designed as a powerful backend engine for polymer inverse design, our model is deployment-ready, and integrates seamlessly with high-throughput, self-driving laboratories and industrial synthesis pipelines.



![Author ORCID: We display the ORCID iD icon alongside authors names on our website to acknowledge that the ORCiD has been authenticated when entered by the user. To view the users ORCiD record click the icon. [opens in a new tab]](https://www.cambridge.org/engage/assets/public/coe/logo/orcid.png)