SASalwa Alamir

Salwa Alamir

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

Salwa Alamir has a total of 14 co-authors. Here are the top co-authors by number of shared publications:


Latest Publications

  • Evaluation and optimisation of synthetic coronary artery models in training of DL model predicting cardiovascular haemodynamic variables

    by Salwa Alamir, Vincenzo Tufaro, Christos V. Bourantas, Andreas Baumbach, Qianni Zhang, Joseph Jacob, Ryo Torii

  • Open Access

    Model Extraction and Explanation of Review Decisions: A Case Study on Cloud Migration Planning

    by Vali Tawosi, Salwa Alamir, Xiaomo Liu

    Model extraction and explanation are essential for interpreting the decision logic of complex systems. One example is the complex decision system that assigns Identified Actions (IAs) to applications that are planned for migration to the public cloud. In this paper, we show that it is possible to extract interpretable surrogate models that approximate the behaviour of these systems by leveraging application metadata and historical observations. Our approach enables application owners to understand and anticipate identified actions assigned to their applications, providing actionable insights for more efficient cloud migration planning. Using Random Forest models and explanation techniques such as SHAP and Bellatrex, we achieve an average F1-score of 91% for the top 20 IAs, demonstrating the effectiveness of model extraction and explanation in this context. We discuss current challenges and invite future work to further advance these methods.


  • Open Access

    Software Vulnerability and Functionality Assessment using Large Language Models

    by Rasmus Ingemann Tuffveson Jensen, Vali Tawosi, Salwa Alamir

    While code review is central to the software development process, it can be tedious and expensive to carry out. In this paper, we investigate whether and how Large Language Models (LLMs) can aid with code reviews. Our investigation focuses on two tasks that we argue are fundamental to good reviews: (i) flagging code with security vulnerabilities and (ii) performing software functionality validation, i.e., ensuring that code meets its intended functionality. To test performance on both tasks, we use zero-shot and chain-of-thought prompting to obtain final "approve or reject" recommendations. As data, we employ seminal code generation datasets (HumanEval and MBPP) along with expert-written code snippets with security vulnerabilities from the Common Weakness Enumeration (CWE). Our experiments consider a mixture of three proprietary models from OpenAI and smaller open-source LLMs. We find that the former outperforms the latter by a large margin. Motivated by promising results, we finally ask our models to provide detailed descriptions of security vulnerabilities. Results show that 36.7% of LLM-generated descriptions can be associated with true CWE vulnerabilities.


  • Open Access

    Translating between SQL Dialects for Cloud Migration

    by Ran Zmigrod, Salwa Alamir, Xiaomo Liu

    Migrations of systems from on-site premises to the cloud has been a fundamental endeavor by many industrial institutions. A crucial component of such cloud migrations is the transition of databases to be hosted online. In this work, we consider the difficulties of this migration for SQL databases. While SQL is one of the prominent methods for storing database procedures, there are a plethora of different SQL dialects (e.g., MySQL, Postgres, etc.) which can complicate migrations when the on-premise SQL dialect differs to the dialect hosted on the cloud. Tools exist by common cloud provides such as AWS and Azure to aid in translating between dialects in order to mitigate the majority of the difficulties. However, these tools do not successfully translate 100% of the code. Consequently, software engineers must manually convert the remainder of the untranslated database. For large organizations, this task quickly becomes intractable and so more innovative solutions are required. We consider this challenge a novel yet vital industrial research problem for any large corporation that is considering cloud migrations. Furthermore, we introduce potential avenues of research to tackle this challenge that have yielded promising preliminary results.


  • Open Access

    Search-based Optimisation of LLM Learning Shots for Story Point Estimation

    by Vali Tawosi, Salwa Alamir, Xiaomo Liu

    One of the ways Large Language Models (LLMs) are used to perform machine learning tasks is to provide them with a few examples before asking them to produce a prediction. This is a meta-learning process known as few-shot learning. In this paper, we use available Search-Based methods to optimise the number and combination of examples that can improve an LLM's estimation performance, when it is used to estimate story points for new agile tasks. Our preliminary results show that our SBSE technique improves the estimation performance of the LLM by 59.34% on average (in terms of mean absolute error of the estimation) over three datasets against a zero-shot setting.

  • Open Access

    Software Vulnerability and Functionality Assessment using LLMs

    by Rasmus Ingemann Tuffveson Jensen, Vali Tawosi, Salwa Alamir

    While code review is central to the software development process, it can be tedious and expensive to carry out. In this paper, we investigate whether and how Large Language Models (LLMs) can aid with code reviews. Our investigation focuses on two tasks that we argue are fundamental to good reviews: (i) flagging code with security vulnerabilities and (ii) performing software functionality validation, i.e., ensuring that code meets its intended functionality. To test performance on both tasks, we use zero-shot and chain-of-thought prompting to obtain final ``approve or reject'' recommendations. As data, we employ seminal code generation datasets (HumanEval and MBPP) along with expert-written code snippets with security vulnerabilities from the Common Weakness Enumeration (CWE). Our experiments consider a mixture of three proprietary models from OpenAI and smaller open-source LLMs. We find that the former outperforms the latter by a large margin. Motivated by promising results, we finally ask our models to provide detailed descriptions of security vulnerabilities. Results show that 36.7% of LLM-generated descriptions can be associated with true CWE vulnerabilities.


  • Open Access

    Neural Transition-based Parsing of Library Deprecations

    by Petr Babkin, Nacho Navarro, Salwa Alamir, Sameena Shah

    This paper tackles the challenging problem of automating code updates to fix deprecated API usages of open source libraries by analyzing their release notes. Our system employs a three-tier architecture: first, a web crawler service retrieves deprecation documentation from the web; then a specially built parser processes those text documents into tree-structured representations; finally, a client IDE plugin locates and fixes identified deprecated usages of libraries in a given codebase. The focus of this paper in particular is the parsing component. We introduce a novel transition-based parser in two variants: based on a classical feature engineered classifier and a neural tree encoder. To confirm the effectiveness of our method, we gathered and labeled a set of 426 API deprecations from 7 well-known Python data science libraries, and demonstrated our approach decisively outperforms a non-trivial neural machine translation baseline.