Prompt2Poly: Ask, Specify, Create – A Dialogue-Based Large Language Model for Targeted TSMPs Design

Abstract

Designing polymers with targeted properties is a complex task that often relies on expert knowledge and multi-step computational workflows. Existing approaches typically require rigid input formats and post hoc property filtering, limiting accessibility and responsiveness to user intent. We introduce Prompt2Poly, the first conversational framework that leverages large language models (LLMs) to generate thermoset shape memory polymers (TSMPs) based on user-defined property requirements. Prompt2Poly allows users to specify desired properties, such as glass transition temperature (Tg), rubbery modulus (Er), or particular chemical groups — directly through natural language prompts, enabling guided generation of polymer samples. The framework interprets these prompts, extracts the target constraints, and generates chemically valid, two monomer polymer structures aligned with the specified goals. Built on fine-tuned LLMs, Prompt2Poly supports multi-turn dialogue, enabling iterative refinement and deeper alignment with user intent. Using a curated dataset of TSMPs, we demonstrate that the framework generates novel, diverse, and property-consistent polymer candidates across various scenarios. Compared to strong base models (GPT-4 and Llama-3.2, prior to fine-tuning), Prompt2Poly achieves notable gains in chemical validity, novelty, and alignment with chemical groups and target Tg, and Er. By integrating property-aware generation and conversational interaction, Prompt2Poly demonstrates the potential of human-AI collaboration in materials science, making TSMPs design more intuitive, flexible, and accessible.

Supplementary files

Article information

Article type
Paper
Submitted
19 Sep 2025
Accepted
31 Oct 2025
First published
31 Oct 2025

Polym. Chem., 2025, Accepted Manuscript

Prompt2Poly: Ask, Specify, Create – A Dialogue-Based Large Language Model for Targeted TSMPs Design

B. Das, A. J. Peters, G. Li and X. Hei, Polym. Chem., 2025, Accepted Manuscript , DOI: 10.1039/D5PY00921A

To request permission to reproduce material from this article, please go to the Copyright Clearance Center request page.

If you are an author contributing to an RSC publication, you do not need to request permission provided correct acknowledgement is given.

If you are the author of this article, you do not need to request permission to reproduce figures and diagrams provided correct acknowledgement is given. If you want to reproduce the whole article in a third-party publication (excluding your thesis/dissertation for which permission is not required) please go to the Copyright Clearance Center request page.

Read more about how to correctly acknowledge RSC content.

Social activity

Spotlight

Advertisements