Back to search

Chalmers University of Technology

Measuring Design Pattern Compliance Using Programming Language Models

Abstract

dc:description.abstract

The complexity of automotive control software makes evaluation of the quality of their design difficult. Software architects, on whom falls the responsibility of verifying whether the implementation complies with specified design patterns, often have little choice but to revert to fully manual review. Such a clearly inefficient process is prone to error, increasing the chances of design regression. In recent days, neural language models (like BERT) pre-trained on source code corpora are beginning to be used for automating a variety of programming tasks. The primary objective of this work is to assess whether such a language model can also be used to automate the assessment of design compliance. Training a Programming Language Model using the Masked language Modeling objective and applying the principle of linguistic regularity in program embeddings, we demonstrate a method that measures compliance with one automotive software design pattern. Results from this work indicate that, by automating such design compliance checking, neural language models can provide valuable assistance to human architects in assessing and fixing violations in automotive software design.

Degree

thesis:*
Level thesis:degree_level
H
Department dc:contributor.department
Chalmers tekniska högskola / Institutionen för data och informationsteknik
Year dc:date.issued
2022

Author and committee

dc:creator, dc:contributor.*
Authors dc:creator
  • SUN, JIAPENG
  • KARRI, ANJALI POORNIMA
Advisors dc:contributor.supervisor
  • Horkoff, Jennifer
  • Staron, Miroslaw
Committee member dc:contributor.committeemember
  • Strüber, Daniel

Subjects

dc:subject × 5

Rights

Language dc:language.iso
eng

Identifiers

dc:identifier.*
Dc Identifier Coursecode
DATX05

Chain of custody

source
Harvested from
Chalmers University of Technology
Base URL
odr.chalmers.se/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
citation

SUN, JIAPENG; KARRI, ANJALI POORNIMA. Measuring Design Pattern Compliance Using Programming Language Models. H thesis, 2022. https://hdl.handle.net/20.500.12380/305122