Spécialisation d'un modèle de langage pour la génération de gammes opératoires industrielles multi-étapes : injection d'un référentiel d'équipements par fine-tuning sur données structurées

Authors

  • Luc BRUNET R&D Médiation

DOI:

https://doi.org/10.52497/jitipee.v10i1.416

Abstract

La synthèse automatique de procédés industriels par modèles génératifs a jusqu'ici porté sur la topologie des flowsheets (enchaînement d'opérations unitaires), sans sélection d'équipements dans un référentiel nommé ni spécification des conditions opératoires. Nous posons la question suivante : un modèle de langage ouvert de petite taille (8 milliards de paramètres) peut-il internaliser un référentiel encyclopédique de 444 familles d'équipements de procédés et générer, à partir d'une simple spécification entrée/sortie, une gamme opératoire conceptuelle — enchaînement ordonné de familles d'équipements identifiées par leur référence, avec ordres de grandeur des conditions opératoires ? Nous comparons empiriquement trois stratégies d'injection de connaissances : la distillation de contexte dans les poids (prompt baking), le fine-tuning supervisé en texte libre et le fine-tuning supervisé sur données JSON structurées, par adaptation de rang faible (LoRA) — ainsi qu'un baseline sans fine-tuning avec le référentiel complet en contexte. Les résultats montrent (i) que le prompt baking échoue au-delà de quelques milliers de tokens (effondrement génératif sur un prompt de 59 203 tokens), (ii) qu'à modèle de base constant, le fine-tuning en texte libre ne restitue aucune référence du référentiel (0/10) tandis que le fine-tuning JSON produit des sorties valides avec références exactes (5/5) — contraste attribuable au format sous réserve d'une ablation à contenu strictement constant, les deux datasets différant aussi par leur composition —, (iii) qu'un dataset de 166 exemples suffit, en 40 minutes d'entraînement sur une station de travail personnelle, pour obtenir un modèle générant des gammes multi-étapes conformes aux pratiques industrielles documentées sur les cas vus en entraînement, (iv) que les baselines sans fine-tuning atteignent l'exactitude référentielle par recopie du catalogue (31/32 avec le catalogue seul, 33/36 en ajoutant des exemples few-shot) mais peinent sur la validité industrielle des enchaînements (0/5 puis ~1/5), et (v) qu'hors du domaine du corpus (15 procédés puis 3 cas extrêmes) le modèle fine-tuné présente la dissociation inverse — enchaînements plausibles mais ancrage référentiel effondré (2/91 puis 0/19). Cette double dissociation — exactitude sans grammaire, grammaire sans exactitude — montre que exactitude référentielle et validité des enchaînements sont deux compétences séparables, acquises par des mécanismes distincts. Nous discutons les limites de l'étude — conformité industrielle appréciée qualitativement, réentraînement sans fuite à mener, variables non contrôlées — et positionnons l'approche par rapport aux générateurs de flowsheets à base de transformers et aux agents LLM en génie des procédés.

References

[1] Douglas J. M. (1988), “Conceptual Design of Chemical Processes”, McGraw-Hill.

[2] Biegler L. T., Grossmann I. E., Westerberg A. W. (1997), “Systematic Methods of Chemical Process Design”, Prentice Hall.

[3] Douglas J. M. (1985), “A hierarchical decision procedure for process synthesis.” AIChE Journal, 31(3), 353-362. https://doi.org/10.1002/aic.690310302

[4] Mencarelli L., Chen Q., Pagot A., Grossmann I. E. (2020), “A review on superstructure optimization approaches in process system engineering.” Computers & Chemical Engineering, 136, 106808. https://doi.org/10.1016/j.compchemeng.2020.106808

[5] Brown T. B. et al. (2020), “Language Models are Few-Shot Learners.” Advances in Neural Information Processing Systems, 33. https://arxiv.org/abs/2005.14165

[6] Decardi-Nelson B., Alshehri A. S., Ajagekar A., You F. (2024), “Generative AI and process systems engineering: The next frontier.” Computers & Chemical Engineering, 187, 108723. https://doi.org/10.1016/j.compchemeng.2024.108723

[7] Vogel G., Schulze Balhorn L., Schweidtmann A. M. (2023), “Learning from flowsheets: A generative transformer model for autocompletion of flowsheets.” Computers & Chemical Engineering, 171, 108162.

https://doi.org/10.1016/j.compchemeng.2023.108162

[8] Bhargava A., Witkowski C., Detkov A., Thomson M. (2024), “Prompt Baking”.

https://arxiv.org/abs/2409.13697

[9] Hu E. J. et al. (2022), “LoRA: Low-Rank Adaptation of Large Language Models.” Proc. International Conference on Learning Representations.

https://arxiv.org/abs/2106.09685

[10] Vogel G., Hirtreiter E., Schulze Balhorn L., Schweidtmann A. M. (2023), “SFILES 2.0: an extended text-based flowsheet representation.” Optimization and Engineering, 24(4), 2911-2933. https://doi.org/10.1007/s11081-023-09798-9

[11] Schulze Balhorn L., Hirtreiter E., Luderer L., Schweidtmann A. M. (2023), “Data augmentation for machine learning of chemical process flowsheets.” Computer Aided Chemical Engineering (ESCAPE-33), Elsevier.

https://doi.org/10.1016/B978-0-443-15274-0.50320-6

[12] Hirtreiter E., Schulze Balhorn L., Schweidtmann A. M. (2024), “Toward automatic generation of control structures for process flow diagrams with large language models.” AIChE Journal, 70(1), e18259.

https://doi.org/10.1002/aic.18259

[13] Schulze Balhorn L., Caballero M., Schweidtmann A. M. (2024), “Toward autocorrection of chemical process flowsheets using large language models.” Computer Aided Chemical Engineering, 53, 3109-3114.

https://doi.org/10.1016/B978-0-443-28824-1.50519-6

[14] Schulze Balhorn L., Degens K., Schweidtmann A. M. (2025), “Graph-to-SFILES: Control structure prediction from process topologies using generative artificial intelligence.” Computers & Chemical Engineering, 199, 109121.

https://doi.org/10.1016/j.compchemeng.2025.109121

[15] Gao Q., Schweidtmann A. M. (2024), “Deep reinforcement learning for process design: Review and perspective.” Current Opinion in Chemical Engineering, 44, 101012.

https://doi.org/10.1016/j.coche.2024.101012

[16] Boiko D. A., MacKnight R., Kline B., Gomes G. (2023), “Autonomous chemical research with large language models.” Nature, 624, 570-578.

https://doi.org/10.1038/s41586-023-06792-0

[17] Bran A. M., Cox S., Schilter O., Baldassari C., White A. D., Schwaller P. (2024), “Augmenting large language models with chemistry tools.” Nature Machine Intelligence, 6, 525-535. https://doi.org/10.1038/s42256-024-00832-8

[18] Ramos M. C., Collison C. J., White A. D. (2025), “A review of large language models and autonomous agents in chemistry.” Chemical Science, 16, 2514-2572.

https://doi.org/10.1039/D4SC03921A

[19] Schulze Balhorn L., Weber J. M., Buijsman S., Hildebrandt J. R., Ziefle M., Schweidtmann A. M. (2024), “Empirical assessment of ChatGPT's answering capabilities in natural science and engineering.” Scientific Reports, 14, 4998.

https://doi.org/10.1038/s41598-024-54936-7

[20] Dettmers T., Pagnoni A., Holtzman A., Zettlemoyer L. (2023), QLoRA: “Efficient Finetuning of Quantized LLMs.” Advances in Neural Information Processing Systems, 36. https://arxiv.org/abs/2305.14314

[21] Wei J. et al. (2022), “Finetuned Language Models Are Zero-Shot Learners.” Proc. International Conference on Learning Representations.

https://arxiv.org/abs/2109.01652

[22] Zhou C. et al. (2023), “LIMA: Less Is More for Alignment.” Advances in Neural Information Processing Systems, 36, 55006-55021.

https://arxiv.org/abs/2305.11206

[23] Lewis P. et al. (2020), “Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks.” Advances in Neural Information Processing Systems, 33.

https://arxiv.org/abs/2005.11401

[24] Ovadia O., Brief M., Mishaeli M., Elisha O. (2024), “Fine-Tuning or Retrieval? Comparing Knowledge Injection in LLMs.” Proc. Conference on Empirical Methods in Natural Language Processing (EMNLP).

https://arxiv.org/abs/2312.05934

[25] Luo Y., Yang Z., Meng F., Li Y., Zhou J., Zhang Y. (2023), “An Empirical Study of Catastrophic Forgetting in Large Language Models During Continual Fine-tuning.”

https://arxiv.org/abs/2308.08747

[26] Zhang D., Liu W., Tan Q. et al. (2024), “ChemLLM: A Chemical Large Language Model.”

https://arxiv.org/abs/2402.06852

[27] Yu B., Baker F. N., Chen Z., Ning X., Sun H. (2024), “LlaSMol: Advancing Large Language Models for Chemistry with a Large-Scale, Comprehensive, High-Quality Instruction Tuning Dataset”. Proc. Conference on Language Modeling (COLM).

https://arxiv.org/abs/2402.09391

[28] Buehler M. J. (2024), “MechGPT, a Language-Based Strategy for Mechanics and Materials Modeling That Connects Knowledge Across Scales, Disciplines and Modalities.” Applied Mechanics Reviews, 76(2), 021001.

https://doi.org/10.1115/1.4063843

[29] Tam Z. R., Wu C.-K., Tsai Y.-L., Lin C.-Y., Lee H.-y., Chen Y.-N. (2024), “Let Me Speak Freely? A Study on the Impact of Format Restrictions on Performance of Large Language Models.” Proc. EMNLP Industry Track.

https://arxiv.org/abs/2408.02442

[30] Willard B. T., Louf R. (2023), “Efficient Guided Generation for Large Language Models.” https://arxiv.org/abs/2307.09702

[31] Geng S., Josifoski M., Peyrard M., West R. (2023), “Grammar-Constrained Decoding for Structured NLP Tasks without Finetuning.” Proc. Conference on Empirical Methods in Natural Language Processing (EMNLP), 10932-10952.

https://arxiv.org/abs/2305.13971

[32] Patil S. G., Zhang T., Wang X., Gonzalez J. E. (2024), “Gorilla: Large Language Model Connected with Massive APIs.” Advances in Neural Information Processing Systems, 37.

https://arxiv.org/abs/2305.15334

[33] Askell A. et al. (2021), “A General Language Assistant as a Laboratory for Alignment.” https://arxiv.org/abs/2112.00861

[34] Snell C., Klein D., Zhong R. (2022), “Learning by Distilling Context.”

https://arxiv.org/abs/2209.15189

[35] Green D. W., Southard M. Z. (eds.) (2019), “Perry's Chemical Engineers' Handbook”, 9e éd., McGraw-Hill Education.

[36] Coulson J. M., Richardson J. F., Backhurst J. R., Harker J. H. (2002), “Coulson & Richardson's Chemical Engineering, Volume 2: Particle Technology and Separation Processes”, 5e éd., Butterworth-Heinemann.

[37] Yang A. et al. (2025), “Qwen3 Technical Report ”

https://arxiv.org/abs/2505.09388

[38] Arditi A. et al. (2024), “Refusal in Language Models Is Mediated by a Single Direction.” Advances in Neural Information Processing Systems, 37.

https://arxiv.org/abs/2406.11717

[39] Hannun A., Digani J., Katharopoulos A., Collobert R. (2023), “MLX: Efficient and flexible machine learning on Apple silicon.” Logiciel, version 0.x.

https://github.com/ml-explore/mlx

page de couverture de l'article

Published

2026-07-22

Issue

Section

Articles