Bidirectional Model Transformations

Research on bidirectional model transformations for round-trip engineering

Model transformations constitute a key technology for model-driven software engineering. Languages for model transformations rely on different computational paradigms, support batch or incremental, in-place or out-place transformations, etc. Model transformations may also be classified with respect to their direction. A unidirectional transformation receives a source model as input and returns a target model. In contrast, a bidirectional transformation may be executed in both directions.

In software engineering, a strict forward engineering process requires a chain of unidirectional transformations, which transform requirements eventually into code. In contrast, roundtrip engineering calls for bidirectional transformations that propagate changes back and forth. Bidirectional transformations have been studied also in a wide range of other application domains, including e.g. view-update problems in databases or bidirectional data exchange.

Developing bidirectional transformations in a conventional programming language is awkward and error-prone: Both transformation directions have to be programmed explicitly at a low level of abstraction, taking algorithmic details of change propagation into account. Therefore, domain-specific languages (DSLs) and theoretical approaches tailored towards bidirectional transformations have been developed.

Research on bidirectional transformations has often focused on the development of declarative approaches that guarantee consistent behavior of forward and backward transformations. Consistency has been formalized by a number of bidirectional transformation laws of different kinds.

However, these approaches have a major drawback which is shared by all of them: While they guarantee certain bidirectional transformation laws, they lack expressiveness: Certain bidirectional transformation problems cannot be solved at all, or they can be solved only partially, or they can be solved but with a considerably higher specification effort than expected. In previous work, this claim was substantiated by a number of benchmarks and case studies (see publications below).

  • (Anjorin & Buchmann, 2026) — The Families to Persons Case - Revisited (TTC 2026)
  • (Anjorin & Buchmann, 2026) — On the Practical Expressiveness of Triple Graph Grammars (MODELSWARD 2026)
  • (Anjorin et al., 2024) — Benchmarx 2.0: A Benchmark for Concurrent Model Synchronisation Approaches (MODELS 2024)
  • (Buchmann, 2024) — Prompting Bidirectional Model Transformations - The Good, The Bad and The Ugly (MODELS 2024)
  • (Anjorin et al., 2020) — Benchmarking bidirectional transformations: theory, implementation, application, and assessment (Software and Systems Modeling 2020)
  • (Westfechtel & Buchmann, 2018) — Incremental Bidirectional Transformations: Comparing Declarative and Procedural Approaches Using the Families to Persons Benchmark (ENASE 2018)
  • (Anjorin et al., 2017) — The Families to Persons Case (TTC 2017)
  • (Buchmann & Westfechtel, 2016) — Using triple graph grammars to realise incremental round-trip engineering (IET Software 2016)
  • (Greiner & Buchmann, 2016) — Round-trip Engineering UML Class Models and Java Models: A Real-world Use Case for Bidirectional Transformations with QVT-R (IJISMD 2016)
  • (Greiner et al., 2016) — Bidirectional Transformations with QVT-R: A Case Study in Round-trip Engineering UML Class Models and Java Source Code (MODELSWARD 2016)
  • (Buchmann & Westfechtel, 2013) — Towards Incremental Round-Trip Engineering Using Model Transformations (SEAA 2013)
  • (Buchmann et al., 2008) — Triple Graph Grammars or Triple Graph Transformation Systems? (MODELS 2008 Workshop)

The results from our case studies motivated us to set up a project dedicated to creating a light-weight framework for assisting developers in programming bidirectional transformations using an imperative programming language: BXtend.

In a later project, we added a declarative language on top of the BXtend framework, to support the declarative specification of model correspondences and automatic code generation for transformation code from this declarative specification: BXtendDSL. Most recently, BXAgent explores LLM-driven code generation for bidirectional transformations.

References

2026

  1. STAF Workshops
    The Families to Persons Case — Revisited
    Anthony Anjorin and Thomas Buchmann
    In Joint Proceedings of the STAF 2026 Workshops: AgileMDE, GCM, ICMM, LLM4SE, TTC, 2026
  2. On the Practical Expressiveness of Triple Graph Grammars
    Anthony Anjorin and Thomas Buchmann
    In Proceedings of the 14th International Conference on Model-Based Software and Systems Engineering, 2026

2024

  1. Benchmarx 2.0: A Benchmark for Concurrent Model Synchronisation Approaches
    Anthony Anjorin, Thomas Buchmann, and Lars Fritsche
    In Proceedings of the ACM/IEEE 27th International Conference on Model Driven Engineering Languages and Systems, Linz, Austria, 2024
  2. Prompting Bidirectional Model Transformations - The Good, The Bad and The Ugly
    Thomas Buchmann
    In Proceedings of the ACM/IEEE 27th International Conference on Model Driven Engineering Languages and Systems, Linz, Austria, 2024

2020

  1. Benchmarking bidirectional transformations: theory, implementation, application, and assessment
    Anthony Anjorin, Thomas Buchmann, Bernhard Westfechtel, and 6 more authors
    Software and Systems Modeling (SoSym), 2020

2018

  1. Incremental Bidirectional Transformations: Comparing Declarative and Procedural Approaches Using the Families to Persons Benchmark
    Bernhard Westfechtel and Thomas Buchmann
    In Evaluation of Novel Approaches to Software Engineering - 13th International Conference, ENASE 2018, Funchal, Madeira, Portugal, March 23-24, 2018, Revised Selected Papers, 2018

2017

  1. TTC
    The Families to Persons Case
    Anthony Anjorin, Thomas Buchmann, and Bernhard Westfechtel
    In Proceedings of the 10th Transformation Tool Contest (TTC 2017), co-located with the 2017 Software Technologies: Applications and Foundations (STAF 2017), Marburg, Germany, July 21, 2017, 2017

2016

  1. Using triple graph grammars to realise incremental round-trip engineering
    Thomas Buchmann and Bernhard Westfechtel
    IET Software, 2016
  2. IJISMD
    Round-trip Engineering UML Class Models and Java Models: A Real-world Use Case for Bidirectional Transformations with QVT-R
    Sandra Greiner and Thomas Buchmann
    International Journal of Information System Modeling and Design, 2016
  3. Bidirectional Transformations with QVT-R: A Case Study in Round-trip Engineering UML Class Models and Java Source Code
    Sandra Greiner, Thomas Buchmann, and Bernhard Westfechtel
    In MODELSWARD 2016 - Proceedings of the 4rd International Conference on Model-Driven Engineering and Software Development, Rome, Italy, 19-21 February, 2016, 2016

2013

  1. SEAA
    Towards Incremental Round-Trip Engineering Using Model Transformations
    Thomas Buchmann and Bernhard Westfechtel
    In 39th Euromicro Conference on Software Engineering and Advanced Applications, SEAA 2013, Santander, Spain, September 4-6, 2013, 2013

2008

  1. Triple Graph Grammars or Triple Graph Transformation Systems?
    Thomas Buchmann, Alexander Dotor, and Bernhard Westfechtel
    In Models in Software Engineering, Workshops and Symposia at MODELS 2008, Toulouse, France, September 28 - October 3, 2008. Reports and Revised Selected Papers, 2008