Tuesday, November 24, 2026
Science
No Result
View All Result
  • Login
  • HOME
  • SCIENCE NEWS
  • CONTACT US
  • HOME
  • SCIENCE NEWS
  • CONTACT US
No Result
View All Result
Scienmag
No Result
View All Result
Home Science News Technology and Engineering

Deep Reinforcement Learning Enhances Model-Based Testing for Graph Transformation Systems

November 24, 2026
in Technology and Engineering
Denise Maddox
By Denise Maddox Scienmag Editorial Profile - Mechanical Engineering
Reading Time: 6 mins read
0
Deep Reinforcement Learning Enhances Model-Based Testing for Graph Transformation Systems

Deep Reinforcement Learning Enhances Model-Based Testing for Graph Transformation Systems

65
SHARES
587
VIEWS
Share on FacebookShare on Twitter
ADVERTISEMENT

Software engineering researchers have introduced MoTDeReL, an automated model-based testing framework that leverages deep reinforcement learning to navigate complex state spaces and generate comprehensive test suites for software architectures specified through graph transformation systems. Graph transformations provide a mathematically formal and visual approach to modeling complex software operations by treating system configurations as graphs and runtime behaviors as transformation rules that transition between states. However, traditional model-based testing techniques that rely on exhaustive model checking over these graph transition systems frequently collapse under severe scalability bottlenecks known as the state-space explosion problem. While previous heuristic search and optimization approaches such as genetic algorithms and particle swarm optimization have attempted to mitigate this challenge by exploring restricted subsets of the state space, they often struggle with redundant test generation, random search trajectories, and substantial computational overhead. The newly developed MoTDeReL framework resolves these operational bottlenecks by integrating a Double Deep Q-Network into the open-source GROOVE modeling environment, allowing an intelligent testing agent to learn optimal structural traversal strategies directly through dynamic reward and penalty feedback.

In graph transformation systems, system dynamics are formally represented through a triple consisting of an abstract type graph schema, an initial host graph, and a collection of graph rewrite rules. Each transformation rule defines preconditions via a left-hand side graph, post-conditions via a right-hand side graph, and forbidden configurations through negative application conditions. When applied iteratively to an initial host graph, these rules generate a labelled transition system whose states correspond to distinct graph topologies and whose transitions represent executed operational rules. To rigorously evaluate system behaviors, model-based testing strategies often utilize data-flow criteria that track how data elements are created, modified, read, and deleted across sequential rule executions. In particular, verifying uninterrupted def-clear paths between definition points and usage sites—known as def-use pairs—allows engineers to expose subtle integration faults that typically remain undetectable using standard control-flow metrics. Because graph transformation rules inherently capture rich syntactic and structural dependencies, tracking these relational interactions across transformation sequences provides an exceptionally expressive foundation for establishing formal test objectives and assessing runtime test suite adequacy.

The conceptual architecture of MoTDeReL reframes test case derivation as an interactive decision-making process formulated within a Markov Decision Process. Rather than relying on static heuristic searches or exhaustive state exploration, MoTDeReL deploys an autonomous computational agent that begins at the initial host graph configuration and systematically selects transformation moves within the reachable state space. In the initial phases of exploration, the agent behaves stochastically to sample possible transitions, but as it traverses the graph environment, it progressively adapts its policy based on scalar reward feedback. The core neural architecture driving MoTDeReL is a Double Deep Q-Network implemented as a three-layer multilayer perceptron comprising an input layer, a hidden layer, and an output layer. The input layer receives a vector representing the historical sequence of rules applied from the initial state, with the number of input nodes bounded by the maximum allowed test case length. The hidden layer employs rectified linear unit activation functions and contains a neuron count configured to two-thirds of the input layer dimensions, while the output layer uses identity activation functions matching the maximum number of applicable rules.

To ensure robust convergence and mitigate the risk of overestimating action values, the Double Deep Q-Network decouples the selection and evaluation of state transitions across two independent neural structures: an online primary network and a synchronized target network. During each operational move, the online network selects the candidate rule yielding the highest estimated Q-value, while the target network calculates the corresponding value evaluation used to update network parameters. Experience tuples containing the current state, selected rule, obtained reward, and resulting state are deposited into an experience replay memory with a designated capacity of one thousand entries. When the memory reaches the batch threshold, MoTDeReL extracts random mini-batches of eight samples to train the primary network via gradient descent using the Root Mean Square Propagation optimizer with a learning rate of 0.001.

Action selection in MoTDeReL is governed by an epsilon-greedy policy designed to strike a measured balance between exploratory discovery and policy exploitation. The exploration parameter epsilon is initialized at 0.2 and decays by a factor of 0.995 at each operational step, steadily shifting the agent from initial randomized exploration toward deterministic exploitation of learned value functions. In instances where the neural network predicts an action that is not legally applicable to the current graph configuration, MoTDeReL filters the output layer to restrict evaluation exclusively to valid, enabled transformation rules before executing the transition with the highest predicted score. The agent evaluates the long-term utility of its trajectories using a discount factor gamma configured to 0.95, a value selected to prevent the generation of excessively short, uninformative test cases while discouraging unnecessarily prolonged execution paths. Episodes terminate when the test case reaches its prescribed maximum step bound, encounters a terminal graph state, or exhibits stagnated fitness where identical reward scores recur beyond an established repetition threshold.

The reward mechanism in MoTDeReL serves as the critical guidance signal directing the agent toward high-value test sequences by measuring data-flow coverage. Prior to runtime test generation, the framework executes a static precomputation algorithm across the graph grammar to generate global event signatures that categorize pattern elements into creations, structural updates, reads, or deletions across left-hand side, right-hand side, and negative application condition specifications. During exploration, a dedicated data-flow coverage algorithm maps runtime transformation instances back to these signatures, tracking active element definitions in a dynamic register to verify def-clear properties across six formal relational types: Create-Read, Create-Delete, Create-Update, Update-Read, Update-Update, and Delete-Negative Application Condition. The reward awarded for reaching a state corresponds directly to the cardinality of newly covered, non-redundant data-flow dependencies along the path. To actively discourage cyclic or repetitive exploration of already covered behaviors, the reward function checks previous episode histories and penalizes redundant coverage values by subtracting the number of prior occurrences from the current score.

The empirical performance of MoTDeReL was evaluated across six benchmark software models of varying structural complexity: the Dining Philosophers Problem, the Hotel Management System, the Bug Tracker System, the Online Shopping System, the Travel Agency System, and the Scanflow Cash Register Protocol. While the Dining Philosophers and Hotel Management models represent foundational concurrent benchmarks, the remaining case studies represent intricate real-world transactional workflows characterized by massive state spaces that challenge traditional verification tools. MoTDeReL was benchmarked against five prominent test generation approaches from the literature: FP-Growth, hybrid genetic particle swarm optimization, genetic algorithms, WholeAcoT based on ant colony optimization, and the multi-objective search algorithm ISR-MCF. All experimental configurations were executed ten independent times on an Intel Core i7 system with sixteen gigabytes of memory to account for stochastic variation, analyzing mean coverage, median coverage, variance, generated test suite sizes, and total test development execution time.

Across all evaluated case studies, MoTDeReL consistently achieved the highest average data-flow coverage scores, demonstrating widening performance margins as system complexity increased. In the Dining Philosophers benchmark, MoTDeReL recorded a mean coverage of 18.2, slightly surpassing WholeAcoT at 17.5 and genetic algorithms at 17.1. In the Hotel Management System, MoTDeReL attained an average coverage score of 54.3, substantially outperforming WholeAcoT at 34.0, genetic algorithms at 33.9, FP-Growth at 32.9, and the hybrid optimization baseline at 8.0. For the Bug Tracker System, MoTDeReL achieved 95.5 compared to 85.9 for WholeAcoT and 84.0 for ISR-MCF. In the Online Shopping System, MoTDeReL led with 223.2 coverage against WholeAcoT at 207.8 and ISR-MCF at 166.3. In the Travel Agency System, MoTDeReL reached 370.7, far ahead of WholeAcoT at 286.7 and ISR-MCF at 230.0. In the largest benchmark, the Scanflow Cash Register Protocol, MoTDeReL achieved an outstanding mean coverage of 981.6, more than double WholeAcoT at 457.2, while genetic algorithms achieved 390.8, FP-Growth reached 351.1, and hybrid optimization trailed at 108.0.

Statistical validation using the non-parametric Mann-Whitney U test and the Vargha-Delaney A12 effect size metric confirmed the statistical significance and practical magnitude of MoTDeReL’s performance gains. Out of thirty total pairwise comparisons conducted against competing techniques, twenty-three yielded statistically significant differences with probability values below 0.05. The remaining seven comparisons—such as evaluations against WholeAcoT in the Dining Philosophers, Bug Tracker, and Online Shopping systems—did not achieve significance below the 0.05 alpha threshold due to marginal differences or sample variance, though MoTDeReL retained higher absolute mean values across every evaluated scenario without exhibiting inferior performance in any benchmark.

Evaluation of computational overhead and testing cost further established the operational advantages of deep reinforcement learning for model-based testing. Testing cost, defined formally as the ratio of total test suite length to achieved coverage value, demonstrated that while MoTDeReL does not always generate the absolute shortest raw test sequences, it achieves superior coverage density that yields lower overall cost per covered requirement compared to genetic and swarm approaches in most complex systems. In terms of test development time, MoTDeReL proved to be the fastest approach across every single case study, exhibiting dramatic runtime reductions over ant colony optimization whose excessive computational complexity renders it impractical for large models. The authors note several constraints for future investigation, including hyperparameter sensitivity across diverse systems, potential initial suboptimality in zero-knowledge agents, and opportunities to incorporate prioritized experience replay, actor-critic architectures, and mutation score indicators directly into the reinforcement learning reward structure.

Subject of Research: Automated test case generation for graph transformation systems using deep reinforcement learning

Article Title: MoTDeReL: Model-based testing through deep reinforcement learning for software systems specified through graph transformation

Article References: Ghasemi, S., Asgari Araghi, M., Rafe, V., & Heckel, R. (2026). MoTDeReL: Model-based testing through deep reinforcement learning for software systems specified through graph transformation. Automated Software Engineering, 33(2), Article 68. https://doi.org/10.1007/s10515-026-00610-3

Image Credits: AI Generated

DOI: 10.1007/s10515-026-00610-3

Keywords: deep reinforcement learning, model-based testing, graph transformation systems, test case generation, Double Deep Q-Network, data-flow coverage, GROOVE toolset, software verification, def-use pairs, state space explosion, testing cost, search-based software engineering, heuristic optimization, Markov Decision Processes, Scanflow Cash Register Protocol, Hotel Management System, empirical software engineering

Cite Scienmag News

Denise Maddox. (November 24, 2026). Deep Reinforcement Learning Enhances Model-Based Testing for Graph Transformation Systems. Scienmag. https://scienmag.com/deep-reinforcement-learning-enhances-model-based-testing-for-graph-transformation-systems/

Denise Maddox. "Deep Reinforcement Learning Enhances Model-Based Testing for Graph Transformation Systems." Scienmag, 24 November 2026, https://scienmag.com/deep-reinforcement-learning-enhances-model-based-testing-for-graph-transformation-systems/. Accessed 24 November 2026.

Denise Maddox. "Deep Reinforcement Learning Enhances Model-Based Testing for Graph Transformation Systems." Scienmag. November 24, 2026. https://scienmag.com/deep-reinforcement-learning-enhances-model-based-testing-for-graph-transformation-systems/

Tags: data-flow coveragedeep reinforcement learningdef-use pairsDouble Deep Q-Networkempirical software engineeringgraph transformation systemsGROOVE toolsetheuristic optimizationHotel Management SystemMarkov decision processesmodel-based testingScanflow Cash Register Protocolsearch-based software engineeringsoftware verificationstate space explosiontest case generationtesting cost
Share26Tweet16
Previous Post

Semi-Autonomous Augmented Reality Systems Balance Adaptive Assistance With User Agency

Next Post

External Mitigation and Education Drive Positive Snow Leopard Attitudes in Nepal

Related Posts

Search-Enabled AI Models Routinely Consume Web Content Without Citing Sources
Technology and Engineering

Search-Enabled AI Models Routinely Consume Web Content Without Citing Sources

November 24, 2026
Machine Learning Predicts Customer Cannibalization Across Expanding Restaurant Chains
Technology and Engineering

Machine Learning Predicts Customer Cannibalization Across Expanding Restaurant Chains

November 24, 2026
Oil Presence and Rock Wettability Substantially Reduce Polymer Retention in Carbonates
Technology and Engineering

Oil Presence and Rock Wettability Substantially Reduce Polymer Retention in Carbonates

November 24, 2026
Lightweight Calibration Layer Curbs Unknown Object Errors in Frozen Vision Models
Technology and Engineering

Lightweight Calibration Layer Curbs Unknown Object Errors in Frozen Vision Models

November 24, 2026
Review Details Material Compatibility and Reliability Limits in Immersion Cooling Fluids
Technology and Engineering

Review Details Material Compatibility and Reliability Limits in Immersion Cooling Fluids

November 24, 2026
European Cultivated Pork Preferences Depend Heavily on National Quality Cues
Technology and Engineering

European Cultivated Pork Preferences Depend Heavily on National Quality Cues

November 24, 2026
Next Post
External Mitigation and Education Drive Positive Snow Leopard Attitudes in Nepal

External Mitigation and Education Drive Positive Snow Leopard Attitudes in Nepal

  • Mothers who receive childcare support from maternal grandparents show more optimized

    Mothers who receive childcare support from maternal grandparents show more parental warmth, finds NTU Singapore study

    27657 shares
    Share 11059 Tweet 6912
  • University of Seville Breaks 120-Year-Old Mystery, Revises a Key Einstein Concept

    1061 shares
    Share 424 Tweet 265
  • Bee body mass, pathogens and local climate influence heat tolerance

    682 shares
    Share 273 Tweet 171
  • Researchers record first-ever images and data of a shark experiencing a boat strike

    546 shares
    Share 218 Tweet 137
  • Groundbreaking Clinical Trial Reveals Lubiprostone Enhances Kidney Function

    531 shares
    Share 212 Tweet 133
Science

Embark on a thrilling journey of discovery with Scienmag.com—your ultimate source for cutting-edge breakthroughs. Immerse yourself in a world where curiosity knows no limits and tomorrow’s possibilities become today’s reality!

RECENT NEWS

  • Static Magnetic Fields Alter Embryonic Timing and Larval Growth in Rainbow Cichlids
  • Invasive Streptococcus pyogenes Lineages Shifted Dynamically Across Argentina Over Seven Years
  • Pulmonary Valve Replacement Yields Early Cardiac Benefits but Long-Term Data Remain Scarce
  • Camera Prototype Uses Color Index to Cut Turfgrass Herbicide Use by 62 Percent

Categories

  • Agriculture
  • Anthropology
  • Archaeology
  • Athmospheric
  • Biology
  • Biotechnology
  • Blog
  • Bussines
  • Cancer
  • Chemistry
  • Climate
  • Earth Science
  • Editorial Policy
  • Marine
  • Mathematics
  • Medicine
  • Pediatry
  • Policy
  • Psychology & Psychiatry
  • Science Education
  • Science News
  • Social Science
  • Space
  • Technology and Engineering

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 5,151 other subscribers

© 2026 Scienmag - Science Magazine

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
No Result
View All Result
  • HOME
  • SCIENCE NEWS
  • CONTACT US

© 2026 Scienmag - Science Magazine

Discover more from Science

Subscribe now to keep reading and get access to the full archive.

Continue reading