[Paper Review] Reflections from the 2024 Large Language Model (LLM) Hackathon for Applications in Materials Science and Chemistry
This paper presents GlossaGen, an LLM-powered framework that automatically generates structured scientific glossaries and knowledge graphs from PDF or TeX documents, using text chunking, chain-of-thought prompting, and LLMs like GPT-3.5-Turbo and GPT-4-Turbo. It achieves ~70–80% accuracy in definitions requiring minimal manual edits, significantly reducing the time for creating glossaries in academic writing.
Here, we present the outcomes from the second Large Language Model (LLM) Hackathon for Applications in Materials Science and Chemistry, which engaged participants across global hybrid locations, resulting in 34 team submissions. The submissions spanned seven key application areas and demonstrated the diverse utility of LLMs for applications in (1) molecular and material property prediction; (2) molecular and material design; (3) automation and novel interfaces; (4) scientific communication and education; (5) research data management and automation; (6) hypothesis generation and evaluation; and (7) knowledge extraction and reasoning from scientific literature. Each team submission is presented in a summary table with links to the code and as brief papers in the appendix. Beyond team results, we discuss the hackathon event and its hybrid format, which included physical hubs in Toronto, Montreal, San Francisco, Berlin, Lausanne, and Tokyo, alongside a global online hub to enable local and virtual collaboration. Overall, the event highlighted significant improvements in LLM capabilities since the previous year's hackathon, suggesting continued expansion of LLMs for applications in materials science and chemistry research. These outcomes demonstrate the dual utility of LLMs as both multipurpose models for diverse machine learning tasks and platforms for rapid prototyping custom applications in scientific research.
Motivation & Objective
- To address the time-consuming challenge of manually creating glossaries in academic articles, especially in materials science and chemistry.
- To automate the extraction of technical terms and their definitions from scientific PDFs and TeX files using LLMs.
- To represent extracted terminology as an interactive knowledge graph to visualize relationships between scientific concepts.
- To improve scholarly communication by enabling quick, accurate, and reusable glossary creation for reviews, grants, and publications.
- To develop a modular, extensible framework that supports future enhancements like LaTeX integration and image parsing.
Proposed method
- Pre-processing scientific documents using PyMuPDF to extract text, title, and DOI, followed by chunking into context-preserving segments.
- Employing GPT-3.5-Turbo and GPT-4-Turbo with chain-of-thought prompting and typed predictors to extract terms and definitions with high precision.
- Using a modular Python package built with DSPy to structure LLM outputs and ensure consistent formatting.
- Transforming extracted terms and definitions into a Neo4J-based knowledge graph with semantic relationships (e.g., 'MATERIAL – exhibits → PROPERTY').
- Developing a Gradio-based front-end interface for interactive exploration and customization of the generated glossary and knowledge graph.
- Applying post-processing to remove duplicate entries and ensure data quality in the final glossary.

Experimental results
Research questions
- RQ1Can LLMs effectively extract accurate scientific terminology and definitions from full-text research papers in materials science and chemistry?
- RQ2To what extent can LLM-generated glossaries reduce manual effort compared to traditional handcrafted glossaries?
- RQ3How well do LLMs preserve contextual relationships between scientific terms when constructing knowledge graphs?
- RQ4What is the impact of prompting strategies like chain-of-thought on the quality and structure of extracted definitions?
- RQ5How can the framework be extended to support LaTeX integration and image-based term extraction?
Key findings
- The LLM-generated glossary achieved ~70–80% accuracy, with definitions requiring little to no manual revision, as validated by a domain expert in zeolite science.
- Text chunking using PyMuPDF preserved contextual integrity, enabling effective LLM processing of long-form scientific documents.
- Chain-of-thought prompting and typed predictors significantly improved the structure and accuracy of LLM outputs.
- The knowledge graph representation successfully illustrated semantic relationships between scientific terms, such as 'material' exhibiting a 'property'.
- The Gradio-based interface enabled intuitive user interaction with the glossary and knowledge graph, supporting real-time exploration.
- The framework’s modular design using DSPy and GitHub-based version control supports extensibility and collaborative development.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.