Daniel Rodriguez-Cardenas
Current Organizations / Institutes
The organizations/institutes from the scholar's latest article
Research Subjects
Daniel Rodriguez-Cardenas has a total of 26 co-authors. Here are the top co-authors by number of shared publications:
- Denys Poshyvanyk
William & Mary, Williamsburg, VA, USA
8 shared publications - Dipin Khati
William & Mary, Williamsburg, USA
6 shared publications - Alejandro Velasco
William & Mary, Williamsburg, USA
4 shared publications - David Nader Palacio
Microsoft, Redmond, USA
4 shared publications David N. Palacio
Microsoft Redmond Washington USA
3 shared publicationsAnna Schmedding
Department of Computer Science William & Mary Williamsburg Virginia USA
2 shared publications
Latest Publications
- Open Access
- 7 October 2026
- Published by Association for Computing Machinery (ACM)
- p. 4548-4553
ECLAIR: A Causally-Grounded AI Framework for Scientific Discovery in Empirical Software Engineering
- 7 October 2026
- Published by Association for Computing Machinery (ACM)
- p. 4548-4553
Open AccessECLAIR: A Causally-Grounded AI Framework for Scientific Discovery in Empirical Software Engineering
- Open Access
- 2 June 2026
- Published by Wiley in Journal of Software: Evolution and Process
- Vol. 38 (6)
On Predicting Vulnerability Severity Using In‐Context Learning: An Industrial Case Study
Modern software systems require earlier and more scalable vulnerability severity assessment to reduce exposure to high‐impact security flaws. Security analysts typically assign CVSS scores, but this manual triage does not scale with the growth of disclosed vulnerabilities and often depends on cloud LLM services that raise confidentiality concerns. This paper presents an industrial case study on predicting CVSS v3.1 scores directly from vulnerable C/C++ snippets using in‐context learning with locally deployable, open‐source LLMs. We compare Propietary data with the Big‐Vul dataset, showing sufficiently aligned CVSS distributions to justify Big‐Vul as a proxy for industrial data when constructing prompt‐based testbeds. We then vary in‐context configurations and model parameters, evaluating CodeLlama2‐7B , CodeLlama2‐13B , Mistral‐7B , gpt‐oss , and GPT4o‐mini using mean squared error (MSE) and feasibility metrics. Our results show that medium‐sized open‐source code models, particularly CodeLlama2‐7B , can approximate the best cloud performance for CVSS regression when guided by lightweight, output‐constraining prompts, offering a practical, privacy‐preserving building block for severity triage in industrial settings.
- 2 June 2026
- Published by Wiley in Journal of Software: Evolution and Process
- Vol. 38 (6)
Open AccessOn Predicting Vulnerability Severity Using In‐Context Learning: An Industrial Case Study
Modern software systems require earlier and more scalable vulnerability severity assessment to reduce exposure to high‐impact security flaws. Security analysts typically assign CVSS scores, but this manual triage does not scale with the growth of disclosed vulnerabilities and often depends on cloud LLM services that raise confidentiality concerns. This paper presents an industrial case study on predicting CVSS v3.1 scores directly from vulnerable C/C++ snippets using in‐context learning with locally deployable, open‐source LLMs. We compare Propietary data with the Big‐Vul dataset, showing sufficiently aligned CVSS distributions to justify Big‐Vul as a proxy for industrial data when constructing prompt‐based testbeds. We then vary in‐context configurations and model parameters, evaluating CodeLlama2‐7B , CodeLlama2‐13B , Mistral‐7B , gpt‐oss , and GPT4o‐mini using mean squared error (MSE) and feasibility metrics. Our results show that medium‐sized open‐source code models, particularly CodeLlama2‐7B , can approximate the best cloud performance for CVSS regression when guided by lightweight, output‐constraining prompts, offering a practical, privacy‐preserving building block for severity triage in industrial settings.
- Open Access
- 12 April 2026
- Published by Association for Computing Machinery (ACM)
- p. 642-654
Enabling Global, Human-Centered Explanations for LLMs: From Tokens to Interpretable Code and Test Generation
- 12 April 2026
- Published by Association for Computing Machinery (ACM)
- p. 642-654
Open AccessEnabling Global, Human-Centered Explanations for LLMs: From Tokens to Interpretable Code and Test Generation
- Open Access
- 12 April 2026
- Published by Association for Computing Machinery (ACM)
- p. 1122-1133
A Causal Perspective on Measuring, Explaining and Mitigating Smells in LLM-Generated Code
Recent advances in large language models (LLMs) have accelerated their adoption in software engineering contexts. However, concerns persist about the structural quality of the code they produce. In particular, LLMs often replicate poor coding practices, introducing code smells (i.e., patterns that hinder readability, maintainability, or design integrity). Although prior research has examined the detection or repair of smells, we still lack a clear understanding of how and when these issues emerge in generated code. This paper addresses this gap by systematically measuring, explaining and mitigating smell propensity in LLM-generated code. We build on the Propensity Smelly Score (PSC), a probabilistic metric that estimates the likelihood of generating particular smell types, and establish its robustness as a signal of structural quality. Using PSC as an instrument for causal analysis, we identify how generation strategy, model size, model architecture and prompt formulation shape the structural properties of generated code. Our findings show that prompt design and architectural choices play a decisive role in smell propensity and motivate practical mitigation strategies that reduce its occurrence. A user study further demonstrates that PSC helps developers interpret model behavior and assess code quality, providing evidence that smell propensity signals can support human judgement. Taken together, our work lays the groundwork for integrating quality-aware assessments into the evaluation and deployment of LLMs for code.
- 12 April 2026
- Published by Association for Computing Machinery (ACM)
- p. 1122-1133
Open AccessA Causal Perspective on Measuring, Explaining and Mitigating Smells in LLM-Generated Code
Recent advances in large language models (LLMs) have accelerated their adoption in software engineering contexts. However, concerns persist about the structural quality of the code they produce. In particular, LLMs often replicate poor coding practices, introducing code smells (i.e., patterns that hinder readability, maintainability, or design integrity). Although prior research has examined the detection or repair of smells, we still lack a clear understanding of how and when these issues emerge in generated code. This paper addresses this gap by systematically measuring, explaining and mitigating smell propensity in LLM-generated code. We build on the Propensity Smelly Score (PSC), a probabilistic metric that estimates the likelihood of generating particular smell types, and establish its robustness as a signal of structural quality. Using PSC as an instrument for causal analysis, we identify how generation strategy, model size, model architecture and prompt formulation shape the structural properties of generated code. Our findings show that prompt design and architectural choices play a decisive role in smell propensity and motivate practical mitigation strategies that reduce its occurrence. A user study further demonstrates that PSC helps developers interpret model behavior and assess code quality, providing evidence that smell propensity signals can support human judgement. Taken together, our work lays the groundwork for integrating quality-aware assessments into the evaluation and deployment of LLMs for code.
- Open Access
- 12 April 2026
- Published by Association for Computing Machinery (ACM)
- p. 72-76
Detecting and Correcting Hallucinations in LLM-Generated Code via Deterministic AST Analysis
Large Language Models (LLMs) for code generation boost productivity but frequently introduce Knowledge Conflicting Hallucinations (KCHs), subtle, semantic errors, such as non-existent API parameters, that evade linters and cause runtime failures. Existing mitigations like constrained decoding or non-deterministic LLM-in-the-loop repair are often unreliable for these errors. This paper investigates whether a deterministic, static-analysis framework can reliably detect and auto-correct KCHs. We propose a post-processing framework that parses generated code into an Abstract Syntax Tree (AST) and validate it against a dynamically-generated Knowledge Base (KB) built via library introspection. This non-executing approach uses deterministic rules to find and fix both API and identifier-level conflicts. On a manually-curated dataset of 200 Python snippets, our framework detected KCHs with 100% precision and 87.6% recall (0.934 F1-score), and successfully auto-corrected 77.0% of all identified hallucinations. Our findings demonstrate that this deterministic post-processing approach is a viable and reliable alternative to probabilistic repair, offering a clear path toward trustworthy code generation.
- 12 April 2026
- Published by Association for Computing Machinery (ACM)
- p. 72-76
Open AccessDetecting and Correcting Hallucinations in LLM-Generated Code via Deterministic AST Analysis
Large Language Models (LLMs) for code generation boost productivity but frequently introduce Knowledge Conflicting Hallucinations (KCHs), subtle, semantic errors, such as non-existent API parameters, that evade linters and cause runtime failures. Existing mitigations like constrained decoding or non-deterministic LLM-in-the-loop repair are often unreliable for these errors. This paper investigates whether a deterministic, static-analysis framework can reliably detect and auto-correct KCHs. We propose a post-processing framework that parses generated code into an Abstract Syntax Tree (AST) and validate it against a dynamically-generated Knowledge Base (KB) built via library introspection. This non-executing approach uses deterministic rules to find and fix both API and identifier-level conflicts. On a manually-curated dataset of 200 Python snippets, our framework detected KCHs with 100% precision and 87.6% recall (0.934 F1-score), and successfully auto-corrected 77.0% of all identified hallucinations. Our findings demonstrate that this deterministic post-processing approach is a viable and reliable alternative to probabilistic repair, offering a clear path toward trustworthy code generation.
- Open Access
- 12 April 2026
- Published by Association for Computing Machinery (ACM)
- p. 243-248
Towards Comprehensive Benchmarking Infrastructure for LLMs In Software Engineering
- 12 April 2026
- Published by Association for Computing Machinery (ACM)
- p. 243-248
Open AccessTowards Comprehensive Benchmarking Infrastructure for LLMs In Software Engineering
- Open Access
- 12 April 2026
- Published by Association for Computing Machinery (ACM)
- p. 249-253
Tricky²: Towards a Benchmark for Evaluating Human and LLM Error Interactions
Large language models (LLMs) are increasingly integrated into software development workflows, yet they often introduce subtle logic or data-misuse errors that differ from human bugs. To study how these two error types interact, we construct Tricky2, a hybrid dataset that augments the existing TrickyBugs [14] corpus of human-written defects with errors injected by both GPT-5 and OpenAI-oss-20b across C++, Python, and Java programs. Our approach uses a taxonomy-guided prompting framework to generate machine-originated bugs while preserving original human defects and program structure. The resulting corpus spans human-only, LLM-only, and human+LLM splits, enabling analysis of mixed-origin error behavior, multi-bug repair robustness, and reliability in hybrid human–machine code. This paper outlines the dataset construction pipeline and illustrates its use through small-scale baseline evaluations of classification, localization, and repair tasks.
- 12 April 2026
- Published by Association for Computing Machinery (ACM)
- p. 249-253
Open AccessTricky²: Towards a Benchmark for Evaluating Human and LLM Error Interactions
Large language models (LLMs) are increasingly integrated into software development workflows, yet they often introduce subtle logic or data-misuse errors that differ from human bugs. To study how these two error types interact, we construct Tricky2, a hybrid dataset that augments the existing TrickyBugs [14] corpus of human-written defects with errors injected by both GPT-5 and OpenAI-oss-20b across C++, Python, and Java programs. Our approach uses a taxonomy-guided prompting framework to generate machine-originated bugs while preserving original human defects and program structure. The resulting corpus spans human-only, LLM-only, and human+LLM splits, enabling analysis of mixed-origin error behavior, multi-bug repair robustness, and reliability in hybrid human–machine code. This paper outlines the dataset construction pipeline and illustrates its use through small-scale baseline evaluations of classification, localization, and repair tasks.
- Open Access
- 23 June 2025
- Published by Association for Computing Machinery (ACM)
- p. 1270-1272
Towards More Interpretable Large Language Models for Code
- 23 June 2025
- Published by Association for Computing Machinery (ACM)
- p. 1270-1272
Open AccessTowards More Interpretable Large Language Models for Code
- Open Access
- 19 June 2025
- Published by Wiley
author
The adoption of Large Language Models (LLMs) across multiple contexts has sparked interest in understanding how scaling model size might lead to behavioral changes, as LLMs can exhibit behaviors not observed in their smaller counterparts. Understanding these emergent capabilities is essential for advancing LLM development and improving their interpretability across diverse tasks. However, whether LLMs exhibit true emergence in the context of Software Engineering remains an unexplored topic, as most research has focused on NLP tasks. In this paper, we investigate the emergence of capabilities in the context of SE. We propose a model-agnostic pipeline for evaluating this phenomenon across three SE tasks: bug fixing, code translation, and commit message generation. More precisely, for each task, we present a case study instantiating our pipeline to analyze the emergence of capabilities in CodeGen1-multi across four scales, ranging from 350M to 16.1B parameters. Our findings do not provide evidence to support the idea of emergent capabilities resulting from scaling the model size in the selected set of tasks. We hope our results can pave the way to a more nuanced understanding of the emergent capabilities of LLMs within the SE domain, guiding future research to focus on task-specific evaluations and the identification of alternative factors contributing to this phenomenon. Our work underscores the importance of task diversity in examining model behaviors and highlights potential limitations in transferring prior understandings of and approaches to emergence from NLP to Software Engineering.
- 19 June 2025
- Published by Wiley
Open Accessauthor
The adoption of Large Language Models (LLMs) across multiple contexts has sparked interest in understanding how scaling model size might lead to behavioral changes, as LLMs can exhibit behaviors not observed in their smaller counterparts. Understanding these emergent capabilities is essential for advancing LLM development and improving their interpretability across diverse tasks. However, whether LLMs exhibit true emergence in the context of Software Engineering remains an unexplored topic, as most research has focused on NLP tasks. In this paper, we investigate the emergence of capabilities in the context of SE. We propose a model-agnostic pipeline for evaluating this phenomenon across three SE tasks: bug fixing, code translation, and commit message generation. More precisely, for each task, we present a case study instantiating our pipeline to analyze the emergence of capabilities in CodeGen1-multi across four scales, ranging from 350M to 16.1B parameters. Our findings do not provide evidence to support the idea of emergent capabilities resulting from scaling the model size in the selected set of tasks. We hope our results can pave the way to a more nuanced understanding of the emergent capabilities of LLMs within the SE domain, guiding future research to focus on task-specific evaluations and the identification of alternative factors contributing to this phenomenon. Our work underscores the importance of task diversity in examining model behaviors and highlights potential limitations in transferring prior understandings of and approaches to emergence from NLP to Software Engineering.
- Open Access
- 19 June 2025
- Published by Wiley
On Predicting Vulnerability Severity Using In-Context Learning: An Industrial Case Study
Modern software systems demand earlier vulnerability severity detection to protect systems from critical issues such as data leaking or attacker access. Security analysts are in charge of triaging the vulnerability severity by computing a score following security standard methods. The triaging of vulnerability severity becomes critical as the number of vulnerabilities increases. In addition, this severity classification is also relevant for timely detection of vulnerabilities. Large Language Models (LLMs) have been demonstrated to assist security analysts in vulnerability detection and fixing. However, private models ( e.g., ChatGPT, Copilot, and Claude) require sending registered code and proprietary data to third-party companies. We present an industry experience report that uses registered and open data datasets to assess the effectiveness of predicting vulnerability severity. We designed an in-context learning solution to predict the severity score using open-source LLMs such as CodeLlama2 and Mistral . We observe that CodeLlama2-7B can predict the severity score with an average MSE of ≈7.62 in one shot. Our findings indicate CodeLlama2 is a promising LLM to assist security analysts in assessing the severity impact before deployment while protecting data exposure.
- 19 June 2025
- Published by Wiley
Open AccessOn Predicting Vulnerability Severity Using In-Context Learning: An Industrial Case Study
Modern software systems demand earlier vulnerability severity detection to protect systems from critical issues such as data leaking or attacker access. Security analysts are in charge of triaging the vulnerability severity by computing a score following security standard methods. The triaging of vulnerability severity becomes critical as the number of vulnerabilities increases. In addition, this severity classification is also relevant for timely detection of vulnerabilities. Large Language Models (LLMs) have been demonstrated to assist security analysts in vulnerability detection and fixing. However, private models ( e.g., ChatGPT, Copilot, and Claude) require sending registered code and proprietary data to third-party companies. We present an industry experience report that uses registered and open data datasets to assess the effectiveness of predicting vulnerability severity. We designed an in-context learning solution to predict the severity score using open-source LLMs such as CodeLlama2 and Mistral . We observe that CodeLlama2-7B can predict the severity score with an average MSE of ≈7.62 in one shot. Our findings indicate CodeLlama2 is a promising LLM to assist security analysts in assessing the severity impact before deployment while protecting data exposure.