lnu.sePublications
Change search
Link to record
Permanent link

Direct link
Ericsson, Morgan, DocentORCID iD iconorcid.org/0000-0003-1173-5187
Publications (10 of 97) Show all publications
Bruneel, T., Crucerescu, S., Löwe, W., Ericsson, M., Perez-Palacin, D. & Nordqvist, J. (2026). A modular multi-agent pipeline framework for large-scale code translation. Future Generation Computer Systems, 184, Article ID 108599.
Open this publication in new window or tab >>A modular multi-agent pipeline framework for large-scale code translation
Show others...
2026 (English)In: Future Generation Computer Systems, ISSN 0167-739X, E-ISSN 1872-7115, Vol. 184, article id 108599Article in journal (Refereed) Published
Abstract [en]

This publication presents an established engineering-driven framework for pipelining large language model (LLM) agents for automatic code translation. The framework is applied in a long-term ongoing industrial project with Danfoss Power Solutions aimed at translating five million lines of Delphi to C#. To manage this scale, the source codebase is divided into translatable chunks, which are processed independently through an agentic LLM pipeline, with subsequently the reassembly of the translated code chunks in the target language. Due to the inherent stochasticity of LLMs, the framework incorporates processing and validation functions to ensure consistency and correctness. As an extended version of our short paper (Bruneel et al., 2025), this paper provides a significantly more comprehensive architectural blueprint. Specifically, we present an indepth background & related work section, formalise the chunking and reassembly strategies, detail the internal mechanics of agent stages, and introduce sequential agent orchestration alongside the dynamic LLM pipeline architecture. Furthermore, we report early empirical observations regarding the pipeline's computational overhead, validation dynamics, and translation quality, noting a practical impact of an initial 10x acceleration over estimated manual translation efforts. Ultimately, we share these expanded insights to inform future development and application in similar large-scale translation tasks.

Place, publisher, year, edition, pages
Elsevier, 2026
Keywords
code translation, large language models, mlops, llmops, llm pipeline, pipeline orchestration
National Category
Software Engineering Computer Sciences
Identifiers
urn:nbn:se:lnu:diva-148289 (URN)10.1016/j.future.2026.108599 (DOI)001790510700001 ()2-s2.0-105039308191 (Scopus ID)
Available from: 2026-07-02 Created: 2026-07-02 Last updated: 2026-08-17Bibliographically approved
Cui, M., Wingkvist, A. & Ericsson, M. (2026). Fine-grained Computation-Communication Overlap via Tile-level Signaling and Scheduling for Mixture-of-Experts. In: 55th International Conference on Parallel Processing Icpp 2026 Main Conference Proceedings: . ACM Digital Library
Open this publication in new window or tab >>Fine-grained Computation-Communication Overlap via Tile-level Signaling and Scheduling for Mixture-of-Experts
2026 (English)In: 55th International Conference on Parallel Processing Icpp 2026 Main Conference Proceedings, ACM Digital Library, 2026Conference paper, Published paper (Refereed)
Abstract [en]

Mixture-of-Experts (MoE) architectures increase model capacity without proportionally increasing computation cost and have become a key building block for scaling large language models (LLMs) to trillion-parameter regimes. Efficient deployment of these MoE models relies on distributed execution across multiple GPUs, where each MoE layer involves two all-to-all communications: dispatching tokens to expert ranks and returning the expert outputs to their source ranks. Conventional MoE implementations launch this return all-to-all after expert compute completes, exposing communication latency on the critical path and reducing GPU utilization. We present a fine-grained approach that overlaps expert compute with the second all-to-all via tile-level signaling and scheduling. Our producer-consumer co-design combines: (1) a persistent per-rank computation kernel (producer) that covers all local experts on the rank to eliminate repeated kernel launch overhead and prioritizes remote-critical tiles, and (2) a persistent communication kernel (consumer) on a small dedicated partition of streaming multiprocessors (SMs) that issues segment-granular transfers as tiles become ready. Our co-design avoids intrusive changes to the underlying computation operators or communication primitives, making it practical for improving distributed MoE execution efficiency on multi-GPU systems. On a 4-A100 GPU platform, evaluated on three MoE models against four state-of-the-art MoE systems, our approach achieves up to 2.64x end-to-end speedup and 2.74x MoE-layer speedup. Compared with a conventional non-overlap baseline, our approach consistently improves both operator- and MoE-layer-level performance across varying GEMM shapes, router modes, and a broad range of producer/consumer SM partitions, while preserving correctness.

Place, publisher, year, edition, pages
ACM Digital Library, 2026
Keywords
Compute-communication overlap, Distributed machine learning, GPU resource utilization, MoE, Multi-GPU systems
Identifiers
urn:nbn:se:lnu:diva-150838 (URN)10.1145/3832810.3832907 (DOI)2-s2.0-105053580346 (Scopus ID)9798400726576 (ISBN)
Available from: 2026-11-05 Created: 2026-11-05 Last updated: 2026-11-05
Björnberg, D., Nordqvist, J., Ericsson, M., Lindeberg, J., Löwe, W. & Fransson, J. (2026). Gradient Tree Boosting for Regression Transfer. Transactions on Machine Learning Research, Article ID 7551.
Open this publication in new window or tab >>Gradient Tree Boosting for Regression Transfer
Show others...
2026 (English)In: Transactions on Machine Learning Research, article id 7551Article in journal (Refereed) Published
Abstract [en]

Many real-world modeling problems are hindered by limited data availability. In such cases, transfer learning leverages related source domains to improve predictions in a target domain of interest. We extend the classical gradient tree boosting paradigm to a regression transfer algorithm by modeling the weak learner as a sum of two regression trees. The trees are fitted on source data and target data, respectively, and jointly optimized for the target data. We derive optimal coefficients for the model update under the least-squares, the least-absolute-deviation, and the Huber loss functions. We benchmark our approach against boosting-based regression transfer methods in twelve transfer scenarios. The results indicate that our approach constitutes a competitive alternative within the realm of boosting-based regression transfer. Moreover, we provide a theoretical justification as well as empirical validation that our approach is robust under larger domain shifts.

National Category
Mathematical sciences
Identifiers
urn:nbn:se:lnu:diva-149112 (URN)
Available from: 2026-08-17 Created: 2026-08-17 Last updated: 2026-08-18Bibliographically approved
Jabeen, R., Ericsson, M., Nordqvist, J. & Wingkvist, A. (2026). Graph Embeddings for Software Architecture Recovery. Nordic Machine Intelligence, 6(4), 20-36
Open this publication in new window or tab >>Graph Embeddings for Software Architecture Recovery
2026 (English)In: Nordic Machine Intelligence, E-ISSN 2703-9196, Vol. 6, no 4, p. 20-36Article in journal (Refereed) Published
Abstract [en]

A software system's source code is organized into files, but the way those files group into architectural modules is often undocumented or has drifted from the original design. Software architecture recovery (SAR) reconstructs this module view to help developers understand and maintain large systems.

We study SAR from file-level static dependency graphs by learning file embeddings in a self-supervised manner and clustering them into modules. Using node2vec as a baseline, we train graph autoencoders via link reconstruction and compare dependency-based representations (a graph attention encoder, with and without personalized PageRank diffusion) against heterogeneous ones that also incorporate the project's folder structure. We evaluate eleven open-source Java, C, and C++ systems against ground-truth architectures using complementary alignment and modularity metrics. Recovery from a dependency structure alone is useful but limited, bounded more by how much structural context is available to the model than by the choice of encoder. Folder organization helps where dependency cohesion is weak, but heterogeneous methods often gain alignment by drifting from pure dependency modularity, a trade-off between structural cohesion and the developer-intended decomposition. No single method wins on every system and metric — node2vec and the diffusion model are comparable on dependencies alone, while folder-aware methods are worth their added complexity mainly when cohesion is weak. All representations scale well and are practical to run and tune, so representation learning is not the bottleneck for adoption.

Place, publisher, year, edition, pages
University of Oslo Library, 2026
Keywords
Graph autoencoders, Graph attention networks, Software architectures
National Category
Software Engineering Computer Sciences
Identifiers
urn:nbn:se:lnu:diva-148830 (URN)10.5617/nmi.13153 (DOI)
Funder
Knowledge Foundation
Available from: 2026-07-24 Created: 2026-07-24 Last updated: 2026-08-18Bibliographically approved
Jabeen, R., Ericsson, M., Nordqvist, J. & Wingkvist, A. (2026). Graph Representation Learning for Software Architecture Recovery. In: Esann 2026 Proceedings 34th European Symposium on Artificial Neural Networks Computational Intelligence and Machine Learning: . Universite Catholique de Louvain
Open this publication in new window or tab >>Graph Representation Learning for Software Architecture Recovery
2026 (English)In: Esann 2026 Proceedings 34th European Symposium on Artificial Neural Networks Computational Intelligence and Machine Learning, Universite Catholique de Louvain , 2026Conference paper, Published paper (Refereed)
Abstract [en]

Software architecture recovery aims to infer a system’s modular organization from source code, bridging the gap between design intent and implementation structure. Traditional techniques rely on handcrafted heuristics and often fail to capture deeper architectural relationships. We investigate whether GNNs can recover these relationships by framing the task as unsupervised representation learning over a multi-relational software graph. Our approach learns node embeddings that reflect architectural boundaries, offering a promising alternative to existing recovery methods.

Place, publisher, year, edition, pages
Universite Catholique de Louvain, 2026
Identifiers
urn:nbn:se:lnu:diva-150868 (URN)10.14428/esann/2026.ES2026-316 (DOI)2-s2.0-105046211025 (Scopus ID)9782875870964 (ISBN)
Available from: 2026-11-05 Created: 2026-11-05 Last updated: 2026-11-05
Björnberg, D., Ericsson, M., Lindeberg, J., Löwe, W., Nordqvist, J., Wallerman, J. & Fransson, J. (2026). Improving national forest attribute maps of Sweden with machine learning. Science of Remote Sensing, 13, Article ID 100395.
Open this publication in new window or tab >>Improving national forest attribute maps of Sweden with machine learning
Show others...
2026 (English)In: Science of Remote Sensing, ISSN 2666-0172, Vol. 13, article id 100395Article in journal (Refereed) Published
Abstract [en]

Remote sensing techniques are widely used for mapping and monitoring forest attributes, providing valuable information on forest cover, biomass, and overall forest health. In recent years, national airborne laser scanning (ALS) campaigns have been conducted in several countries to map forest resources. When combining ALS with field inventory data, these datasets enable the development of nationwide models for prediction of forest attributes. In this study, we explore the potential of machine learning (ML) to enhance existing modeling approaches for nationwide forest attribute mapping in Sweden. We achieve this by relating ALS data from the most recent ALS campaign of Sweden with field data from the Swedish National Forest Inventory (NFI). By aggregating laser metrics from surveyed areas (NFI plots), as well as over surrounding areas to the plots, we investigate (1) if ML approaches can outperform existing linear regression baseline models and (2) if further enhancements of the predictive capacity can be achieved by including surrounding, spatially correlated ALS data. To this end, we used extreme gradient boosting (XGBoost), as well as a convolutional neural network (CNN), specialized to handle tabular data and spatially correlated data, respectively. The models were evaluated on five forest variables: basal-area weighted mean tree height, basal-area weighted mean stem diameter, basal area, stem volume, and above-ground biomass. All models were evaluated on several nested datasets to assess the robustness, showcasing consistent results across datasets. We achieved significant improvements in prediction accuracy across all investigated forest variables. Furthermore, incorporating surrounding information to the modeling rendered further improvements for diameter, basal area, and biomass predictions. The approaches tested and developed here thus form a promising basis for flexible modeling approaches that can be transferred globally for large-scale forest monitoring and management.

Place, publisher, year, edition, pages
Elsevier, 2026
Keywords
Airborne laser scanning, Forest variable estimation, Forest mapping, Forest monitoring, Remote sensing
National Category
Forest Science
Research subject
Technology (byts ev till Engineering), Forestry and Wood Technology
Identifiers
urn:nbn:se:lnu:diva-145305 (URN)10.1016/j.srs.2026.100395 (DOI)001690318200001 ()2-s2.0-105044367775 (Scopus ID)
Funder
Knowledge FoundationVinnovaSwedish Energy AgencyEU, Horizon Europe, 773324Swedish Research Council FormasEU, Horizon 2020
Available from: 2026-02-27 Created: 2026-02-27 Last updated: 2026-11-05Bibliographically approved
Jabeen, R., Ericsson, M., Nordqvist, J. & Wingkvist, A. (2026). Representation Learning for Software Architecture Recovery. In: Fse Companion 2026 Proceedings of the 34th ACM International Conference on the Foundations of Software Engineering: . ACM Digital Library
Open this publication in new window or tab >>Representation Learning for Software Architecture Recovery
2026 (English)In: Fse Companion 2026 Proceedings of the 34th ACM International Conference on the Foundations of Software Engineering, ACM Digital Library, 2026Conference paper, Published paper (Refereed)
Abstract [en]

Software architecture recovery is important for program understanding, maintenance, and re-engineering, particularly in large-scale systems where architectural documentation is often incomplete or outdated. As software evolves, architectural drift and erosion can cause the implemented system to diverge from its intended design, making manual recovery labor-intensive and difficult to scale. We present GAER, an unsupervised graph-based approach for software architecture recovery. The approach learns architecture-aware representations of software entities from source code and clusters them to recover architectural modules. GAER highlights the promise of graph representation learning as a scalable and data-driven foundation for software architecture recovery.

Place, publisher, year, edition, pages
ACM Digital Library, 2026
Keywords
graph auto-encoder, software architecture
Identifiers
urn:nbn:se:lnu:diva-150841 (URN)10.1145/3803437.3807406 (DOI)2-s2.0-105045852625 (Scopus ID)9798400726361 (ISBN)
Available from: 2026-11-05 Created: 2026-11-05 Last updated: 2026-11-05
Bruneel, T., Löwe, W., Ericsson, M., Perez-Palacin, D. & Nordqvist, J. (2025). Automated Code Translation using an Engineering-Driven Pipeline Approach of Language Models. In: L. Quaranta, G. Mallardi, A. Carbonaro (Ed.), Proceedings of the 1st ECAI Workshop on Machine Learning Operations (MLOps25@ECAI 2025): co-located with the 28th European Conference on Artificial Intelligence (ECAI 2025). Paper presented at 1st ECAI Workshop on Machine Learning Operations (MLOps25@ECAI 2025) co-located with 28th European Conference on Artificial Intelligence (ECAI 2025), Bologna, Italy, October 25, 2025 (pp. 48-54). CEUR Workshop Proceedings, 4109
Open this publication in new window or tab >>Automated Code Translation using an Engineering-Driven Pipeline Approach of Language Models
Show others...
2025 (English)In: Proceedings of the 1st ECAI Workshop on Machine Learning Operations (MLOps25@ECAI 2025): co-located with the 28th European Conference on Artificial Intelligence (ECAI 2025) / [ed] L. Quaranta, G. Mallardi, A. Carbonaro, CEUR Workshop Proceedings , 2025, Vol. 4109, p. 48-54Conference paper, Published paper (Refereed)
Abstract [en]

This paper presents an engineering-driven approach to pipelining large language models (LLMs) for automatic code translation. The method is applied in an ongoing industrial project with Danfoss Power Solutions aimed at translating five million lines of their code from Delphi to C#. To manage this scale, the codebase is first divided into chunks, each processed independently through the LLM pipeline and subsequently reassembled. Due to the inherent stochasticity of LLM outputs, the pipeline incorporates processing and validation functions to ensure consistency and correctness. While still in its early stages, this approach demonstrates promising results. With this publication, we share our initial LLM agents orchestration with an initial draft pipeline used in the industry case, with insights to inform future development and application in similar large-scale translation tasks.

Place, publisher, year, edition, pages
CEUR Workshop Proceedings, 2025
Series
CEUR Workshop Proceedings (CEUR-WS.org), E-ISSN 1613-0073 ; 4109
Keywords
Code Translation, Large Language Models, MLOps, LLMOps, LLM Pipeline, Pipeline Orchestration
National Category
Software Engineering Computer Sciences
Research subject
Computer Science, Software Technology
Identifiers
urn:nbn:se:lnu:diva-150349 (URN)2-s2.0-105039092844 (Scopus ID)
Conference
1st ECAI Workshop on Machine Learning Operations (MLOps25@ECAI 2025) co-located with 28th European Conference on Artificial Intelligence (ECAI 2025), Bologna, Italy, October 25, 2025
Available from: 2026-10-27 Created: 2026-10-27 Last updated: 2026-11-04Bibliographically approved
Jabeen, R., Ericsson, M., Nordqvist, J. & Wingkvist, A. (2025). Graph Convolutional Networks for Mapping Source Code Entities to Architectural Modules. In: 2025 IEEE 22nd International Conference on Software Architecture Companion (ICSA-C): . Paper presented at 22nd IEEE International Conference on Software Architecture (ICSA 2025), Odense, Denmark, March 31 - April 4, 2025 (pp. 472-481). IEEE
Open this publication in new window or tab >>Graph Convolutional Networks for Mapping Source Code Entities to Architectural Modules
2025 (English)In: 2025 IEEE 22nd International Conference on Software Architecture Companion (ICSA-C), IEEE, 2025, p. 472-481Conference paper, Published paper (Other academic)
Abstract [en]

Mapping source code entities manually to architectural modules is labor-intensive and time-consuming. Automating this process can help adopt static architecture compliance checking techniques like reflection modeling. We propose a graph-based semi-supervised learning approach to automate this mapping. Our method leverages syntactic and semantic dependencies extracted from compiled software artifacts and formulates the problem as a node classification task on a graph. We investigated Graph Convolutional Network (GCN) variants: (1) a homogeneous graph approach that treats all dependencies uniformly and (2) a heterogeneous graph approach that maintains distinct dependency types, utilizing a Relational Graph Convolutional Network (RGCN). The proposed method was evaluated on eight open-source Java systems and benchmarked against the state-of-the-art Naive Bayes classifier. Results demonstrate that the RGCNN variant outperforms the baseline, offering improved accuracy for mapping source code entities to architectural modules.

Place, publisher, year, edition, pages
IEEE, 2025
Keywords
Graph convolution network, software architecture
National Category
Computer Sciences
Research subject
Computer Science, Software Technology
Identifiers
urn:nbn:se:lnu:diva-138079 (URN)10.1109/ICSA-C65153.2025.00071 (DOI)2-s2.0-105007946654 (Scopus ID)
Conference
22nd IEEE International Conference on Software Architecture (ICSA 2025), Odense, Denmark, March 31 - April 4, 2025
Available from: 2025-04-16 Created: 2025-04-16 Last updated: 2026-11-02Bibliographically approved
Pelgrom, N., Hangelbäck, J., Ericsson, M., Nordqvist, J. & Grahn, H. (2025). Hallucinations and Training-Data Bias: Results from Two Number Transcription Experiments Using GPT Models. In: Computational Science and Computational Intelligence (CSCI 2024): . Paper presented at International Conference on Computational Science and Computational Intelligence (pp. 59-69). Springer Science+Business Media B.V., 2501
Open this publication in new window or tab >>Hallucinations and Training-Data Bias: Results from Two Number Transcription Experiments Using GPT Models
Show others...
2025 (English)In: Computational Science and Computational Intelligence (CSCI 2024), Springer Science+Business Media B.V., 2025, Vol. 2501, p. 59-69Conference paper, Published paper (Refereed)
Abstract [en]

This paper presents two experiments testing the capabilities of the models GPT-4-vision-preview and GPT-4o, to transcribe images of randomly generated number-strings. We noticed a tendency for longer number strings to be read inaccurately while transcribing invoices using the models, so we created an experiment with images with minimal noise to see what amount of digits these models are able to transcribe with full accuracy. We further tested weather the mistakes that occur in transcribing longer strings are reoccurring when the images are re-tested. We analyzed the character of the mistakes made, and weather any digits are over represented among the ones involved in mistakes. We found, among more results described in the paper, that the models are 100% accurate up to 75 digits per image, that the same mistakes are reoccurring when the same image is rerun, and that hallucinations are only 23% of all mistakes made by the models.

Place, publisher, year, edition, pages
Springer Science+Business Media B.V., 2025
Series
Communications in Computer and Information Science ; 2501
Keywords
Generative AI, Large Language Model, LLM Hallucinations, OCR
National Category
Computer and Information Sciences
Identifiers
urn:nbn:se:lnu:diva-142938 (URN)10.1007/978-3-031-90341-0_5 (DOI)2-s2.0-105006767018 (Scopus ID)9783031903403 (ISBN)
Conference
International Conference on Computational Science and Computational Intelligence
Available from: 2025-12-23 Created: 2025-12-23 Last updated: 2026-11-02Bibliographically approved
Organisations
Identifiers
ORCID iD: ORCID iD iconorcid.org/0000-0003-1173-5187

Search in DiVA

Show all publications