Palash Ranjan Roy

PhD Researcher in Computer Science · University of Saskatchewan · expected Aug 2028

Published as Palash Roy / Palash R. Roy · ORCID 0000-0001-9470-4233

I study code clones (how they are detected, refactored and generated), model merging, and efficient large language models for software engineering. I am a PhD researcher in the Software Research Lab (SRLab) and the Interactive Software Engineering and Analytics (iSE) Lab at the University of Saskatchewan, supervised by Dr. Kevin Schneider.

Palash Ranjan Roy

Latest

All news

Research

How should software engineering tools adapt when AI coding assistants generate and copy code? My work tests whether clone detectors still hold up on AI-generated code, builds benchmarks to measure this, and uses model merging and compression to make code models that generalize across clone domains and cost less to run. The results are released as open benchmarks, tools and replication packages, including GPTCloneBench and MergeSE.

Research themes

  • Code clones in the LLM era

    Do clone detectors and benchmarks hold up when code is written by AI?

    • Code Clones
    • Program Comprehension
    • LLM-Generated Code

    ICSME '25 · GPTCloneBench (ICSME '23) · IWSC '23

  • Model merging for software engineering

    One model across clone domains, without retraining, that generalizes to unseen clones.

    93% of multi-task performance with no training data; up to 4× better on unseen AI-generated clones.

    • Model Merging
    • OOD Generalization
    • AI4SE

    ASE '26 · MergeSE (ASE '26 Tool)

  • Efficient, sustainable code models

    Compressing code transformers to cut memory and CO2 while keeping accuracy.

    Up to 81% lower CO2 emissions while keeping about 98% of clone-detection accuracy.

    • Model Compression
    • Green & Sustainable SE
    • SE4AI

    FSE '26 · Distinguished Paper · Poster

  • Just-in-time clone refactoring

    Helping developers refactor clones as they write code.

    • Software Maintenance & Evolution
    • Refactoring

    ICSME '25 DS · CLEAR

Also: ESEM '24 · ICISET '22

Publications

Featured publications

A Unified Model for Cross-Domain Clone Detection via Model Merging

Palash Ranjan Roy, Banani Roy, Kevin A. Schneider, Chanchal K. Roy

41st IEEE/ACM International Conference on Automated Software Engineering (ASE '26), 2026, pp. 13 · CORE A*

Role: Led the study; designed and ran all experiments; drafted the paper.

  • Code Clones
  • Task Arithmetic (TIES, DARE)
  • OOD Generalization
  • Multi-Task Learning
Abstract
The growing diversity of code clone types, from syntactic copies to cross-language semantic clones to AI-generated duplicates, has created a fragmentation crisis in clone detection. Current deep learning detectors are domain specialists that degrade significantly outside their training distribution. In our evaluation, F1 drops exceed 70% across domains. Deploying multiple specialized models is impractical, yet training a single cross-domain detector requires simultaneous access to all training data. To address this, we investigate model merging, a family of post-hoc techniques that operate solely on trained checkpoints. We systematically evaluate parameter merging with five task-vector methods (Task Arithmetic, TIES, DARE-TIES, WUDI, PCB), architecture merging via greedy layer stitching, and cross-tokenizer alignment. Our study spans four pre-trained code models, three benchmarks, and twelve merging configurations. Same-base TIES merging creates effective cross-domain detectors, validated across two model families and three random seeds. It reaches 0.865 combined F1 on UniXcoder, 93% of multi-task training performance without any training data at the merging step. WUDI achieves the highest in-distribution combined F1 at 0.899, but TIES generalizes better to unseen AI-generated clones. We therefore recommend TIES for the practical recipe. Cross-base merging yields only marginal and high-variance gains across all five methods. This indicates that task vector compatibility through a shared pre-trained base is the binding factor for effective merging in our setting. Merged encoder-based detectors also outperform zero-shot instruction-tuned code LLMs on GPTCloneBench (0.609 vs. 0.454 F1 for the strongest LLM baseline) at substantially lower per-pair inference cost. They also generalize up to 4× better than multi-task training to unseen AI-generated clones, suggesting a trade-off between in-domain performance and OOD robustness. This work provides one of the first systematic empirical studies of model merging for software engineering and a practical recipe for building cross-domain code clone detectors.

MergeSE: Post-Hoc Model Merging for Software Engineering Tasks Without Retraining

Palash Ranjan Roy, Banani Roy, Kevin A. Schneider, Chanchal K. Roy

41st IEEE/ACM International Conference on Automated Software Engineering (ASE '26), 2026, pp. 5 · CORE A*

Role: Designed and implemented the tool.

  • OOD Generalization
  • Task Arithmetic (TIES, DARE)
  • Multi-Task Learning
  • Hugging Face Tooling
Abstract
Fine-tuned code models often behave as domain specialists and can degrade sharply under distribution shift: in our clone-detection setting, a model trained on same-language clones drops 71% F1 on cross-language clones, while multi-task training falls to 0.151 F1 on unseen AI-generated clones. Our companion study shows that post-hoc model merging can address this fragmentation, achieving 93% of multi-task performance without training data while generalizing 4× better to unseen clone types. However, no practical tool exists that lets SE researchers diagnose checkpoint compatibility, merge specialists, validate results on SE benchmarks, and export models for deployment. We present MergeSE, an open-source CLI and web tool for training-free model merging of HuggingFace encoder checkpoints. While motivated by OOD generalization in clone detection, MergeSE supports SE classification workflows more broadly through a built-in registry of nine task types, including vulnerability detection, defect prediction, and code-smell detection. MergeSE provides five operations: tasks, inspect, merge, evaluate, and export. It supports five merging algorithms, including TIES, DARE-TIES, Wudi, PCB, and averaging; detects cross-task classification-head mismatches; produces seedable deterministic outputs; and includes bundled benchmark samples for smoke-test reproduction. A full merge of two 124M-parameter checkpoints completes in under 5 seconds on CPU. End-to-end validation confirms that MergeSE-produced checkpoints match reference implementations and recover cross-domain performance from domain-specific specialists. The tool is available online at https://mergese.usask.ca, and the development repository is at https://github.com/srlabUsask/MergeSE.

Carbon-Taxed Transformers: A Green Compression Pipeline for Overgrown Language Models

Ajmain Inqiad Alam, Palash Ranjan Roy, Chanchal K. Roy, Banani Roy, Kevin A. Schneider

Proceedings of the ACM on Software Engineering (PACMSE), FSE 2026, pp. 1035–1058 · CORE A*

ACM SIGSOFT Distinguished Paper Award

Role: Sustainability framing; carbon and energy analysis; writing.

  • Green & Sustainable SE
  • Model Compression
  • Code Clones
  • Pruning
Abstract
The accelerating adoption of Large Language Models (LLMs) in software engineering (SE) has brought with it a silent crisis: unsustainable computational cost. While these models demonstrate remarkable capabilities in different SE tasks, they are unmanageably large, slow to deploy, memory-intensive, and carbon-heavy. This reality threatens not only the scalability and accessibility of AI-powered SE, but also its long-term environmental sustainability. The research challenge is clear: we must go beyond accuracy and address efficiency and environmental cost as first-class design constraints. To meet this challenge, we introduce Carbon-Taxed Transformers (CTT), a systematic multi-architectural compression principled pipeline ordering inspired by economic carbon taxation principles. Drawing from the economic concept of carbon pricing, CTT operationalizes a computational carbon tax that penalizes architectural inefficiencies and rewards deployment-ready compression. We evaluate CTT across three core SE tasks: code clone detection, code summarization, and code generation, with models spanning encoder-only, encoder-decoder, and decoder-only architecture. Our results show that CTT delivers on inference: (1) up to 49× memory reduction, (2) time reduction up to 8-10× for clone detection, up to 3× for summarization, and 4–7× for generation, (3) up to 81% reduction in CO2 emissions and (4) CTT retains around 98% accuracy on clone detection, around 89% on summarization, and up to 91% (textual metrics) and 68% (pass@1) for generation. Two ablation studies show that pipeline ordering and individual component contributions are both essential, providing empirical justification for CTT’s design and effectiveness. This work establishes a viable path toward responsible AI in SE through aggressive yet performance-preserving compression.

Are Classical Clone Detectors Good Enough for the AI Era?

Ajmain Inqiad Alam, Palash Ranjan Roy, Farouq Al-Omari, Chanchal K. Roy, Banani Roy, Kevin A. Schneider

2025 IEEE International Conference on Software Maintenance and Evolution (ICSME), pp. 295–307 · CORE A

Role: Validation; expert interviews; writing.

  • Code Clones
  • LLM-Generated Code
  • Software Maintenance & Evolution
  • Empirical SE
Abstract
The increasing adoption of AI-generated code has reshaped modern software development, introducing syntactic and semantic variations in cloned code. Unlike traditional human-written clones, AI-generated clones exhibit systematic syntactic patterns and semantic differences learned from large-scale training data. This shift presents new challenges for classical code clone detection (CCD) tools, which have historically been validated primarily on human-authored codebases and optimized to detect syntactic (Type 1-3) and limited semantic clones. Given that AI-generated code can produce both syntactic and complex semantic clones, it is essential to evaluate the effectiveness of classical CCD tools within this new paradigm. In this paper, we systematically evaluate nine widely used CCD tools using GPTCloneBench, a benchmark containing GPT-3-generated clones. To contextualize and validate our results, we further test these detectors on established human-authored benchmarks, BigCloneBench and SemanticCloneBench, to measure differences in performance between traditional and AI-generated clones. Our analysis demonstrates that classical CCD tools, particularly those enhanced by effective normalization techniques, retain considerable effectiveness against AI-generated clones, while some exhibit notable performance variation compared to traditional benchmarks. This paper contributes by (1) evaluating classical CCD tools against AI-generated clones, providing critical insights into their current strengths and limitations; (2) highlighting the role of normalization techniques in improving detection accuracy; and (3) delivering detailed scalability and execution-time analyses to support practical CCD tool selection. The research underscores the continued relevance of classical CCD tools and suggests adopting a hybrid approach that combines both classical and AI-based methods to improve clone detection in the modern era.

GPTCloneBench: A comprehensive benchmark of semantic clones and cross-language clones using GPT-3 model and SemanticCloneBench

Ajmain Inqiad Alam (equal contribution), Palash Ranjan Roy (equal contribution), Farouq Al-Omari, Chanchal K. Roy, Banani Roy, Kevin A. Schneider

Equal contribution (co-first authors)

2023 IEEE International Conference on Software Maintenance and Evolution (ICSME), pp. 1–13 · CORE A

Role: Co-led (equal contribution): conception, methodology, validation, supervision of four undergraduates, writing.

  • Code Clones
  • LLM-Generated Code
  • Benchmarks & Datasets
  • Prompting
Abstract
With the emergence of Machine Learning, there has been a surge in leveraging its capabilities for problem-solving across various domains. In the code clone realm, the identification of type-4 or semantic clones has emerged as a crucial yet challenging task. Researchers aim to utilize Machine Learning to tackle this challenge, often relying on the Big-CloneBench dataset. However, it’s worth noting that BigCloneBench, originally not designed for semantic clone detection, presents several limitations that hinder its suitability as a comprehensive training dataset for this specific purpose. Furthermore, CLCDSA dataset suffers from a lack of reusable examples aligning with real-world software systems, rendering it inadequate for cross-language clone detection approaches. In this work, we present a comprehensive semantic clone and cross-language clone benchmark, GPTCloneBench by exploiting SemanticCloneBench and OpenAI’s GPT-3 model. In particular, using code fragments from SemanticCloneBench as sample inputs along with appropriate prompt engineering for GPT-3 model, we generate semantic and cross-language clones for these specific fragments and then conduct a combination of extensive manual analysis, tool-assisted filtering, functionality testing and automated validation in building the benchmark. From 79,928 clone pairs of GPT-3 output, we created a benchmark with 37,149 true semantic clone pairs, 19,288 false semantic pairs(Type-1/Type-2), and 20,770 cross-language clones across four languages (Java, C, C#, and Python). Our benchmark is 15-fold larger than SemanticCloneBench, has more functional code examples for software systems and programming language support than CLCDSA, and overcomes BigCloneBench’s qualities, quantification, and language variety limitations. GPTCloneBench is available at https://doi.org/10.5281/zenodo.8259987.

Other publications

2025

2024

2023

Unveiling the Potential of Large Language Models in Generating Semantic and Cross-Language Clones

Palash Ranjan Roy (equal contribution), Ajmain Inqiad Alam (equal contribution), Farouq Al-Omari, Banani Roy, Chanchal K. Roy, Kevin A. Schneider

Equal contribution (co-first authors)

2023 IEEE 17th International Workshop on Software Clones (IWSC), pp. 22–28

People's Choice Best Paper Award (IWSC 2023)

  • Code Clones
  • LLM-Generated Code
  • Prompting (Few-Shot)
  • Program Comprehension

2022

A Study on Paper and Author Ranking

Palash Ranjan Roy, Md. Noushin Islam, Labiba Tasfiya Jeba, Md. Adnanul Haq, Iffat Afsara Prome, Mohammad Kaykobad, Tanvir Kaykobad

2022 International Conference on Innovations in Science, Engineering and Technology (ICISET), pp. 545–549

  • Scientometrics

Citations 115 · h-index 4 · Source: Google Scholar, Nov 2026

All publications with abstracts and BibTeX

Tools & Benchmarks

  • MergeSEtoolpaper: ASE 2026 Tool Track
    Open-source CLI and web tool for training-free merging of Hugging Face encoder checkpoints, with inspect, merge, evaluate and export steps for software engineering classification tasks.
  • GPTCloneBenchbenchmarkpaper: ICSME 2023
    Benchmark of 37,149 true semantic clone pairs, 19,288 false semantic pairs and 20,770 cross-language clone pairs in Java, C, C# and Python, built from SemanticCloneBench and GPT-3.

Experience

Education

  • 2024 – Aug 2028 (expected)
    Ph.D. in Computer Science
    University of Saskatchewan
    Supervisor: Dr. Kevin Schneider
  • 2022 – 2024
    M.Sc. in Computer Science
    University of Saskatchewan · Degree awarded June 2025
    Thesis: An Exploratory Study on the Roles of LLMs in Code Similarity Detection and Generation · Supervisors: Dr. Kevin Schneider and Dr. Banani Roy
  • 2018 – 2022
    B.Sc. in Computer Science and Engineering (CSE)
    BRAC University
    Thesis: A Study on Paper and Author Ranking · Supervisor: Dr. Mohammad Kaykobad

Teaching & Mentoring

  • Winter 2025
    Course redesign and guest lecturing, Advanced Software Engineering
    University of Saskatchewan
    Redesigned the course with Prof. Chanchal K. Roy and two students to cover AI for software engineering and software engineering for AI, and gave some of the lectures.
  • Present
    Research Mentor, M.Sc. and junior Ph.D. students
    Software Research Lab (SRLab) and iSE Lab, University of Saskatchewan
    Mentoring four M.Sc. students and junior Ph.D. students on their research.
  • 2023 – Present
    Undergraduate Research Supervisor, NSERC USRA
    Software Research Lab (SRLab) and iSE Lab, University of Saskatchewan
    Supervising NSERC USRA undergraduate researchers every summer since 2023; 7 students so far.
  • 2022 – Present
    Lead Graduate Teaching Assistant
    Department of Computer Science, University of Saskatchewan
    Instructed undergraduate students in data structures, programming, and practical computing labs.
  • 2026 – Present
    Graduate Peer Mentor (PAL)
    University Library, University of Saskatchewan
    Helping new graduate students navigate grad life through the Peer Assisted Learning (PAL) program.

Research & Professional Positions

  • 2022 – Present
    Research Technician (Software Engineer & Systems Analyst)
    iSE & SR Lab, University of Saskatchewan
    Supporting web-based systems, maintaining CFI equipment, and supporting the SOAR CREATE Program.
  • May–Aug 2022
    Visiting Research Student
    University of Saskatchewan
    Developed multiple software engineering tools and published research in code clones and large language models.

Leadership & Service

  • 2023 – Present
    Organizing committee, SOAR Symposium
    University of Saskatchewan
  • 2026 – 2027
    Provost and Vice-President Academic Search Committee member
    Graduate student member of the 12-person search committee.
  • 2025 – 2026
    President
    Graduate Students' Association (GSA), University of Saskatchewan
    Elected to lead the association for more than 4,000 graduate students. As its official spokesperson, represented graduate students on the University Senate, University Council and CGPS Faculty Council, and gave reports to each of them.
    • Led the executive team that won back the GSA's non-profit status (September 2025) and started an investment plan
    • Brought the GSA into a SSHRC-funded research partnership worth about $200,000
    • Grew the joint GSA and CGPS need-based bursary, which had a record number of applications in Winter 2026
    • Pushed for a higher minimum funding level for PhD students, set at $25,000 from September 2026
    • Spoke up for graduate students with the university and government on support for international students, childcare and transit, and pushed for a graduate student seat on the Board of Governors
    • Co-organized the 2025 Anti-Racism Symposium, hosted the GSA's first Indigenous Resource Fair, and helped new graduate student groups get recognized

    Seats held

    • University Senate member
    • GSA representative, University Council
    • Governance Committee of University Council (non-voting member)
    • CGPS Faculty Council member
    • CGPS Executive and Coordinating Committee member
    • CGPS Distinguished Graduate Mentor Award Committee member
    • New and Distinguished Researcher Award Selection Committee member
    • Publicly Engaged Scholarship Team Award Committee member
    • Co-Curricular Records Advisory Committee member
  • 2024 – 2025
    President
    Bangladeshi Students' Association (BSAUS), University of Saskatchewan
  • 2025
    Organizer, campus equity, diversity and inclusion (EDI) workshop
    University of Saskatchewan
  • 2023 – 2024
    Vice President Finance
    Computer Science Graduate Council, University of Saskatchewan
  • 2022 – 2023
    Vice President Social
    Computer Science Graduate Council, University of Saskatchewan

Reviewing

Invited Talks

  • Feb 2026
    Practical AI for Research Administration: Using AI Effectively, Responsibly, and with Human Oversight
  • 2025
    Large Language Models and Code Similarity
    Thompson Rivers University
  • 2024
    AI for Software Engineering
    University of Saskatchewan
  • 2024
    The Effects of Visual Embellishment on Comprehension and Memorability of Charts
    University of Saskatchewan
  • 2023
    Software Engineering in Practice
    BRAC University
  • 2022
    How to start building your first Robot?
    BRAC University

Skills & Methods

  • Research methods
    Code clone detection and clone benchmark construction · Model merging (Task Arithmetic, TIES, DARE-TIES, WUDI, PCB) · Model compression (neural architecture search, structured pruning, quantization, knowledge distillation) · Empirical software engineering studies · Prompt engineering for code generation
  • Machine learning
    Python · PyTorch · Hugging Face Transformers and Datasets · Pre-trained code models (CodeBERT, UniXcoder) · ONNX export · Optuna · CodeCarbon
  • Tools and infrastructure
    Research systems & web deployment (hosting research tools as web services) · Flask · Docker · JavaScript · Clone detectors: NiCad, PMD/CPD, Simian, Deckard, CloneWorks, StoneDetector

Awards & Honors

  • 2026
    ACM SIGSOFT Distinguished Paper Award
    ACM International Conference on the Foundations of Software Engineering (FSE 2026)
  • 2025
    Best Doctoral Proposal Award (ICSME 2025 Doctoral Symposium)
    IEEE International Conference on Software Maintenance and Evolution (ICSME 2025), Auckland, New Zealand
  • 2025
    Research Excellence in Science, Technology, Engineering, or Math
    Graduate Students' Association, University of Saskatchewan · Press
  • 2025
    Best Thesis Award (M.Sc.)
    Department of Computer Science, University of Saskatchewan
  • 2024
    SOAR Distinguished Research Award
    NSERC CREATE SOAR program, Canada
  • 2024
    CS Citizenship Award (M.Sc.)
    Department of Computer Science, University of Saskatchewan · Press
  • 2024
    ICSAC Research Award
    8th Symposium on Innovations in Computer Science and Applied Computing (ICSAC), University of Saskatchewan
  • 2023
    People's Choice Best Paper Award (IWSC 2023)
    17th International Workshop on Software Clones (IWSC 2023), Bogotá, Colombia · Press
  • 2023
    Student Encouragement Award (IWSC 2023)
    17th International Workshop on Software Clones (IWSC 2023), Bogotá, Colombia · Press
  • 2023
    People's Choice Best Presentation Award
    SOAR Symposium at Saskatoon, Saskatchewan

Scholarships

  • 2024 – 2026
    CGPS 75th Anniversary Award
    College of Graduate and Postdoctoral Studies (CGPS), University of Saskatchewan

News

Older news (11)

From the blog

  • Cover image for Steal Like an Artist, Fourteen Years Later

    Steal Like an Artist, Fourteen Years Later

    A review of Austin Kleon's Steal Like an Artist, read from inside a PhD on code clones and large language models. What the book gets right, where its assumptions no longer hold, and five things worth keeping.

All posts

Contact

[email protected]

The best way to reach me is by email. You can also use the form below.

Profiles

Send a message