DRDaniel Rodriguez-Cardenas

Daniel Rodriguez-Cardenas

*This is an algorithmically generated author record based on publicly available information.

Current Organizations / Institutes

The organizations/institutes from the scholar's latest article


Daniel Rodriguez-Cardenas has a total of 26 co-authors. Here are the top co-authors by number of shared publications:


Latest Publications

  • Open Access

    ECLAIR: A Causally-Grounded AI Framework for Scientific Discovery in Empirical Software Engineering

    by Alejandro Velasco, Daniel Rodriguez-Cardenas, Dipin Khati, David N. Palacio, Denys Poshyvanyk

  • Open Access

    On Predicting Vulnerability Severity Using In‐Context Learning: An Industrial Case Study

    by Daniel Rodriguez‐Cardenas, David N. Palacio, Anna Schmedding, Yiyang Lu, Aadil Mallick, Bill Hudson, Chris Gourley, Michael Roytman, Chris Shenefiel, Evgenia Smirni, et al.

    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

    Enabling Global, Human-Centered Explanations for LLMs: From Tokens to Interpretable Code and Test Generation

    by Dipin Khati, Daniel Rodriguez-Cardenas, David N. Palacio, Alejandro Velasco, Michele Tufano, Denys Poshyvanyk


  • Open Access

    A Causal Perspective on Measuring, Explaining and Mitigating Smells in LLM-Generated Code

    by Alejandro Velasco, Daniel Rodriguez-Cardenas, Dipin Khati, David N. Palacio, Lutfar Rahman Alif, Denys Poshyvanyk

    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

    Detecting and Correcting Hallucinations in LLM-Generated Code via Deterministic AST Analysis

    by Dipin Khati, Daniel Rodriguez-Cardenas, Paul Pantzer, Denys Poshyvanyk

    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

    Towards Comprehensive Benchmarking Infrastructure for LLMs In Software Engineering

    by Daniel Rodriguez-Cardenas, Xiaochang Li, Marcos Macedo, Antonio Mastropaolo, Dipin Khati, Yuan Tian, Huajie Shao, Denys Poshyvanyk


  • Open Access

    Tricky²: Towards a Benchmark for Evaluating Human and LLM Error Interactions

    by Cole Granger, Dipin Khati, Daniel Rodriguez-Cardenas, Denys Poshyvanyk

    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

    author

    by Conor O’Brien, Daniel Rodriguez-Cardenas, Alejandro Velasco, David N. Palacio, Denys Poshyvanyk

    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

    On Predicting Vulnerability Severity Using In-Context Learning: An Industrial Case Study

    by Daniel Rodriguez-Cardenas, David N. Palacio, Anna Schmedding, Yiyang Lu, Bill Hudson, Chris Gourley, Michael Roytman, Chris Shenefiel, Evgenia Smirni, Denys Poshyvanyk

    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.