arXiv:2608.24807cs.SEAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.24807

Automatic Model Card Generation Using an LLM

Tajkia Rahman Toma, Balreet Grewal, Cor-Paul Bezemer

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

TAJKIA RAHMAN TOMA, University of Alberta, Canada

BALREET GREWAL, University of Alberta, Canada

COR-PAUL BEZEMER, University of Alberta, Canada

Model cards are structured documents that summarize key information about machine learning models to improve transparency, usability, and accountability. However, they often lack a consistent structure, and many models provide no model cards, making comparison and interpretation difficult. This paper presents two contributions. First, we propose MCTIDY, an LLM-based approach that reorganizes existing model cards into a standardized template to improve clarity and comparability. Second, we introduce MCGENIE, an LLM-based system that generates model cards directly from model repository data. We apply MCTIDY to 48 Hugging Face model cards and evaluate information retention, section alignment, hallucination, and stability. Our findings show high information retention with minimal textual loss, accurate section assignment, rare hallucinations primarily in descriptive sections, and strong stability across runs. We assess MCGENIE by generating model cards for the same 48 models and assessing semantic similarity, factual correctness, and sensitivity to input resources. The generated model cards achieved high semantic similarity (mean ≈ 0.9); over half were fully correct, and most remaining errors were minor. Generation quality depended strongly on the availability of supporting resources, particularly associated papers. Overall, our findings demonstrate the potential of LLM-based methods to enable scalable, standardized model card documentation.

CCS Concepts: • Software and its engineering → Documentation; Automatic programming; • Applied computing → Document preparation.

Additional Key Words and Phrases: Automation, Model Card, LLM

ACM Reference Format:

Tajkia Rahman Toma, Balreet Grewal, and Cor-Paul Bezemer. 2026. Automatic Model Card Generation Using an LLM. 1, 1 (August 2026), 33 pages. https://doi.org/10.1145/nnnnnnn.nnnnnnn

1 Introduction

Machine learning (ML) models are increasingly deployed in high-stakes domains such as healthcare [13, 14], finance [2, 11], and criminal justice [35, 39]. Model documentation plays a crucial role in providing developers and users with essential information about the development, limitations, and appropriate use of these ML models [21, 28]. Effective documentation enhances model transparency [21], which in turn supports accountability [38] and enables users to compare, select, and apply models more effectively [32]. In contrast, poor documentation, or the absence of documentation, can lead to misuse, misunderstanding, and frustration among users who need to understand a model's behavior, requirements, and performance in order to make informed decisions [4].

Authors' Contact Information: Tajkia Rahman Toma, tajkiatoma@ualberta.ca, University of Alberta, Edmonton, Canada; Balreet Grewal, balreet@ualberta.ca, University of Alberta, Edmonton, Canada; Cor-Paul Bezemer, bezemer@ualberta.ca, University of Alberta, Edmonton, Canada.

Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from permissions@acm.org. © 2026 Copyright held by the owner/author(s). Publication rights licensed to ACM. Manuscript submitted to ACM

Tajkia Rahman Toma, Balreet Grewal, and Cor-Paul Bezemer

Model cards [21] have emerged as a widely endorsed practice for documenting ML models [4, 19, 22, 24]. However, many models either lack documentation entirely or are insufficiently documented [4, 19], increasing the risk of model misuse [4]. Despite its importance, creating and maintaining comprehensive, standardized documentation remains a significant challenge [17, 25]. Writing model documentation from scratch is time-consuming, cognitively demanding, and often not prioritized by model developers, especially in fast-paced or resource-constrained environments [4, 17]. Automating the generation of model documentation not only ensures that more model providers provide essential information about the models, but also encourages broader adoption of standardized documentation practices.

Many recent studies have proposed solutions to support automatic model documentation generation [4, 8, 9, 28, 36]. These approaches, however, operate in constrained settings, such as relying on data stored in ML Metadata [12], descriptions available in computational notebooks, or focusing on alternative documentation formats. In contrast, we propose a solution that leverages resources that are often naturally generated during the model development process, such as model repository files or academic papers, reducing the need for additional structured inputs or specialized environments. By leveraging a large language model (LLM) to produce structured documentation based on such available resources, we can enhance the coverage, consistency, and accessibility of model information at scale.

Our study makes two contributions that build on each other. As our first contribution, we introduce MCTIDY, an approach for automatically reorganizing the content of existing model cards using an LLM to align them with a standard model card template. The goal is to improve the structure and readability of key information and enhance consistency across model documentation, thereby facilitating broader adoption of best practices and enabling more effective comparison and evaluation of models. Using off-the-shelf LLMs such as Gemini 2.0 Flash Thinking, MCTIDY allows model authors to reorganize their documentation easily, without the need for custom infrastructure or extensive manual edits. We reorganized the content of 48 existing Hugging Face model cards and conducted a systematic evaluation of MCTIDY along three research questions:

• RQ1.1: How correct are the reorganizations performed by MCTIDY? Due to the generative nature of LLMs, evaluating content retention after the reorganization and correct information placement are essential to ensure the integrity of reorganized model cards. MCTIDY retains most content during the reorganization: a median of only 4.5% of information checklist items derived from the original model cards were missing in the reorganized versions, with minimal textual omission. MCTIDY also placed content correctly in nearly all cases, with only 1.9% of the (sub)sections containing misplaced content. These findings suggest that MCTIDY performs well in both retaining information and assigning it to appropriate sections, making it a reliable tool for automated model card standardization.

• RQ1.2: How much hallucinated content is introduced by MCTIDY? Since hallucinations and misinterpretations are known limitations of LLMs, it is essential to assess their impact on content reorganization to determine the level of trust we can place in MCTIDY. The overall information accuracy remained high, with only minimal textual changes required to correct the hallucinations and misinterpretations. The hallucinations and misinterpretations were concentrated in specific (sub)sections, suggesting that minimal human oversight focused on these sections is sufficient to catch occasional errors and ensure the overall information accuracy of the reorganized model cards.

• RQ1.3: How consistent is MCTIDY across multiple runs? Given the inherently non-deterministic nature of LLMs, we evaluate the consistency of MCTIDY's outputs to assess the stability of its content reorganization across multiple runs. The results demonstrate high semantic consistency, with the median average semantic similarity scores across three runs reaching 0.97. Additionally, 87.5% of (sub)sections achieved semantic similarity scores of 0.90 or higher, further supporting MCTIDY's suitability for dependable large-scale documentation restructuring.

We released both MCTIDY and the 48 reorganized, manually verified model cards as part of our replication package [34]. These verified reorganized model cards not only serve as a benchmark for future research on automated model card generation but also enable scalable, section-by-section analysis of current documentation practices.

Building on this benchmark, our second contribution explores how LLMs can assist in automatically generating a model card from model repository files. While reorganization ensures structural consistency for existing model cards, many models still lack documentation altogether. In such cases, generation becomes essential. LLMs, with their ability to process and produce text reminiscent of human writing, could potentially automate and streamline the creation of comprehensive, standardized documentation. This would reduce the burden on developers, improve accessibility for users, and encourage more effective use of ML models. To evaluate this potential, we use our reorganized and validated dataset as the ground truth for assessing our approach for automatically generating model cards (MCGENIE), focusing on the following research questions:

  • RQ2.1: How semantically similar are the generated contents to the original model cards? We examined how semantically similar the generated model cards are to the original ones, in order to assess MCGENIE's ability to accurately capture and convey the key information from repository files. The generated model cards showed high overall semantic similarity (mean = 0.9), indicating strong information retention. However, sections demanding interpretation or reasoning (such as Caveats and Recommendations) had lower similarity, suggesting that while MCGENIE effectively preserves factual content, it is less consistent in replicating interpretive or context-dependent text.

  • RQ2.2: How correct is the information in the generated model cards? We assessed whether the information generated by MCGENIE is factually correct, as LLMs may introduce speculative or unsupported details. Over half (54.17%) of the generated model cards were entirely correct, and from the remainder, a median generated model card contained only one inaccurate (sub)section. These inaccuracies mainly stemmed from citation-content mismatches or speculative reasoning, suggesting that while MCGENIE reliably reproduces factual content, improving source alignment and grounding could further enhance its factual accuracy.

  • RQ2.3: Which input data is the most important for generating model cards? We examined how variations in input data influenced the generated model cards to understand which repository resources most strongly affect content quality. Repository papers had the greatest impact while configuration or tokenizer files had minimal effect. This implies that papers serve as the primary, information-rich source for MCGENIE, whereas other technical files provide supplementary but non-essential details.

The remainder of the paper is structured as follows. Section 2 discusses our study setup. Sections 3 and 4 discuss the results and implications of our study on MCTIDY and MCGENIE, respectively. Section 5 discusses the threats to the validity of this work, and Section 6 summarizes the related work. Section 7 concludes our work.

References (36)