SlideShare a Scribd company logo
Incremental and Streaming
Model Transformations
Istvan David
A case for incrementality
• MT rule: precondition  postcondition
Querying
Evolution of large (instance) models
Re-evaluation of MT preconditions as the model changes
Batch vs Incremental
Example: live model validation
Maintaining live models, models@run.time, managing streamed models,
live M2M synchronization...
A case for incrementality
• MT rule: precondition  postcondition
Querying
Evolution of large (instance) models
Re-evaluation of MT preconditions as the model changes
Batch vs Incremental
Example: live model validation
Maintaining live models, models@run.time, managing streamed models,
live M2M synchronization...
How big are models?
Markus Scheidgen: How Big Are Models – An Estimation (2012)
Application Model size
System models 108
Sensor data 109
Geospatial models 1012
Batch vs Incremental
• Efficiency vs complexity
• Batch: easy to implement
• Incremental: efficient execution, but very complex algorithms required
Typical in state-of-the-
practice tools!
...on the querying side
Batch vs Incremental
• Efficiency vs complexity
• Batch: easy to implement
• Incremental: efficient execution, but very complex algorithms required
• Incremental graph pattern matching
• More space, less time
• Cache matches of graph patterns
• Update cache upon changes
• Notify about relevant changes
• RETE, LEAPS, TREAT...
Typical in state-of-the-
practice tools!
...on the querying side
Source: D Varró, Incremental evaluation of model queries, Presentation @DSM-TP 2015,
http://msdl.cs.mcgill.ca/conferences/dsm-tp-
2015/material/15.08.26.IncrementalQueries.DanielVarro.pdf
Batch vs Incremental
• Efficiency vs complexity
• Batch: easy to implement
• Incremental: efficient execution, but very complex algorithms required
• Incremental graph pattern matching
• More space, less time
• Cache matches of graph patterns
• Update cache upon changes
• Notify about relevant changes
• RETE, LEAPS, TREAT...
Typical in state-of-the-
practice tools!
...on the querying side
Source: D Varró, Incremental evaluation of model queries, Presentation @DSM-TP 2015,
http://msdl.cs.mcgill.ca/conferences/dsm-tp-
2015/material/15.08.26.IncrementalQueries.DanielVarro.pdf
No
incrementality
Dirty
incrementality
Incrementality
by traceability
„Reactive” MTs
Large-step, re-execute from
scratch only for the changed
models
Small-step, detect missing
traceability links
Detect new activations, fire rule
activations
A case for incrementality
• MT rule: precondition  postcondition
Querying
Evolution of large (instance) models
Re-evaluation of MT preconditions as the model changes
Batch vs Incremental
Example: live model validation
Maintaining live models, models@run.time, managing streamed models,
live M2M synchronization...
How big are models?
Markus Scheidgen: How Big Are Models – An Estimation (2012)
Application Model size
System models 108
Sensor data 109
Geospatial models 1012
Assumption: models
are materialized
...what if they are
not?
Streaming MTs
• Models aren’t completely materialized
• Native (or natural) streams
• Sensor systems, CPS, cloud computing...
• Artificial (generated) streams
• Model split up and pushed through a channel
• Large models (AUTOSAR, etc)
• Streaming MTs over live models [1]
“a special kind of transformation in which the whole input model is not
completely available at the beginning of the transformation, but it is
continuously generated”
Sánchez Cuadrado, J., Lara, J.: Streaming model transformations:
Scenarios, challenges and initial solutions (2013) In Duddy, K., Kappel,
G., eds.: Theory and Practice of Model Transformations. Volume 7909
of Lecture Notes in Computer Science. Springer Berlin Heidelberg
(2013) 116
Streaming MTs
• Models aren’t completely materialized
• Native (or natural) streams
• Sensor systems, CPS, cloud computing...
• Artificial (generated) streams
• Model split up and pushed through a channel
• Large models (AUTOSAR, etc)
• Streaming MTs over live models [1]
[1] I. Dávid, I. Ráth, and D. Varró, Streaming model transformations by complex event processing, MoDELS 2014,
Conference acceptance rate: 26%. Invited for submission to MODELS14 Special Issue in SoSyM
Techniques
• Model fragment processing (Lara et al)
• Actual fragments of models are streamed
• Fragments are assembled on the target side
• Ongoing work, implementation planned via Apache Spark
• Related: P2P distributed models (Hartman et al [2])
• Complex event processing
• Model change information streamed as a series of events
• Evaluation of temporal and timing relationships
• Implemented within the VIATRA framework [3]
[2] Hartman et al, Stream my Models: Reactive Peer-to-Peer Distributed Models@run.time, MoDELS 2015
[3] http://www.eclipse.org/viatra/
Pointers
• Incremental MTs
• Tools: IncQuery, ATL, Epsilon...
• Background: RETE (Forgy, 1983), other „custom” cache algorithms
• A. Kusel et al, A Survey on Incremental Model Transformation Approaches,
Workshop on Models and Evolution 2013
• Streaming MTs
• Sánchez Cuadrado, J., Lara, J, Streaming model transformations: Scenarios,
challenges and initial solutions, 2013
• I. Dávid, I. Ráth, D. Varró, Streaming model transformations by complex event
processing, MoDELS 2014
• https://wiki.eclipse.org/VIATRA/CEP
• Hartman et al, Stream my Models: Reactive Peer-to-Peer Distributed
Models@run.time, MoDELS 2015

More Related Content

PDF
Mining System Logs to Learn Error Predictors, Universität Stuttgart, Stuttgar...
PDF
Engineering Process Transformation to Manage (In)consistency
PDF
Engineering Process Transformation to Manage (In)consistency in Complex Systems
PDF
Towards Inconsistency Tolerance by Quantification of Semantic Inconsistencies
PDF
Multi Model Machine Learning by Maximo Gurmendez and Beth Logan
PPTX
Liquid process model collections
PDF
Mining Big Data Streams with APACHE SAMOA
PDF
Mining big data streams with APACHE SAMOA by Albert Bifet
Mining System Logs to Learn Error Predictors, Universität Stuttgart, Stuttgar...
Engineering Process Transformation to Manage (In)consistency
Engineering Process Transformation to Manage (In)consistency in Complex Systems
Towards Inconsistency Tolerance by Quantification of Semantic Inconsistencies
Multi Model Machine Learning by Maximo Gurmendez and Beth Logan
Liquid process model collections
Mining Big Data Streams with APACHE SAMOA
Mining big data streams with APACHE SAMOA by Albert Bifet

Similar to Incremental and Streaming Model Transformations (20)

PDF
AnalyticOps: Lessons Learned Moving Machine-Learning Algorithms to Production...
PPTX
Shikha fdp 62_14july2017
PPTX
Automated Analytics at Scale
PPTX
Metrology sampling models using tool sensor data
PDF
The Data Scientist’s Toolkit: Key Techniques for Extracting Value
PPTX
UNIT - 1 INTRODUCTION OF MACHINE LEARNING and Foundation of ML
PDF
Mykola Mykytenko: MLOps: your way from nonsense to valuable effect (approache...
PPTX
Incremental Queries and Transformations for Engineering Critical Systems
PDF
ML Model Serving at Twitter
PPTX
ICML'16 Scaling ML System@Twitter
PDF
Operationalizing Edge Machine Learning with Apache Spark with Nisha Talagala ...
PPTX
Python for Machine Learning_ A Comprehensive Overview.pptx
PPTX
Predictive Analytics: Context and Use Cases
PDF
Crossing the Analytics Chasm and Getting the Models You Developed Deployed
PPTX
Decreasing your Coffe Consumption by Incremental Code regeneration
PDF
Big learning 1.2
PDF
A survey on Machine Learning In Production (July 2018)
PPTX
MLOps.pptx
PDF
PythonQuants conference - QuantUniversity presentation - Stress Testing in th...
PDF
Un puente enre MLops y Devops con Openshift AI
AnalyticOps: Lessons Learned Moving Machine-Learning Algorithms to Production...
Shikha fdp 62_14july2017
Automated Analytics at Scale
Metrology sampling models using tool sensor data
The Data Scientist’s Toolkit: Key Techniques for Extracting Value
UNIT - 1 INTRODUCTION OF MACHINE LEARNING and Foundation of ML
Mykola Mykytenko: MLOps: your way from nonsense to valuable effect (approache...
Incremental Queries and Transformations for Engineering Critical Systems
ML Model Serving at Twitter
ICML'16 Scaling ML System@Twitter
Operationalizing Edge Machine Learning with Apache Spark with Nisha Talagala ...
Python for Machine Learning_ A Comprehensive Overview.pptx
Predictive Analytics: Context and Use Cases
Crossing the Analytics Chasm and Getting the Models You Developed Deployed
Decreasing your Coffe Consumption by Incremental Code regeneration
Big learning 1.2
A survey on Machine Learning In Production (July 2018)
MLOps.pptx
PythonQuants conference - QuantUniversity presentation - Stress Testing in th...
Un puente enre MLops y Devops con Openshift AI
Ad

Recently uploaded (20)

PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PDF
Softaken Excel to vCard Converter Software.pdf
PDF
Understanding Forklifts - TECH EHS Solution
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PDF
System and Network Administration Chapter 2
PPTX
Computer Software and OS of computer science of grade 11.pptx
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
PPTX
Operating system designcfffgfgggggggvggggggggg
PPTX
Why Generative AI is the Future of Content, Code & Creativity?
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PPTX
history of c programming in notes for students .pptx
Navsoft: AI-Powered Business Solutions & Custom Software Development
Softaken Excel to vCard Converter Software.pdf
Understanding Forklifts - TECH EHS Solution
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
Design an Analysis of Algorithms I-SECS-1021-03
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
Adobe Illustrator 28.6 Crack My Vision of Vector Design
Design an Analysis of Algorithms II-SECS-1021-03
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
System and Network Administration Chapter 2
Computer Software and OS of computer science of grade 11.pptx
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
Operating system designcfffgfgggggggvggggggggg
Why Generative AI is the Future of Content, Code & Creativity?
How to Choose the Right IT Partner for Your Business in Malaysia
history of c programming in notes for students .pptx
Ad

Incremental and Streaming Model Transformations

  • 1. Incremental and Streaming Model Transformations Istvan David
  • 2. A case for incrementality • MT rule: precondition  postcondition Querying Evolution of large (instance) models Re-evaluation of MT preconditions as the model changes Batch vs Incremental Example: live model validation Maintaining live models, models@run.time, managing streamed models, live M2M synchronization...
  • 3. A case for incrementality • MT rule: precondition  postcondition Querying Evolution of large (instance) models Re-evaluation of MT preconditions as the model changes Batch vs Incremental Example: live model validation Maintaining live models, models@run.time, managing streamed models, live M2M synchronization... How big are models? Markus Scheidgen: How Big Are Models – An Estimation (2012) Application Model size System models 108 Sensor data 109 Geospatial models 1012
  • 4. Batch vs Incremental • Efficiency vs complexity • Batch: easy to implement • Incremental: efficient execution, but very complex algorithms required Typical in state-of-the- practice tools! ...on the querying side
  • 5. Batch vs Incremental • Efficiency vs complexity • Batch: easy to implement • Incremental: efficient execution, but very complex algorithms required • Incremental graph pattern matching • More space, less time • Cache matches of graph patterns • Update cache upon changes • Notify about relevant changes • RETE, LEAPS, TREAT... Typical in state-of-the- practice tools! ...on the querying side Source: D Varró, Incremental evaluation of model queries, Presentation @DSM-TP 2015, http://msdl.cs.mcgill.ca/conferences/dsm-tp- 2015/material/15.08.26.IncrementalQueries.DanielVarro.pdf
  • 6. Batch vs Incremental • Efficiency vs complexity • Batch: easy to implement • Incremental: efficient execution, but very complex algorithms required • Incremental graph pattern matching • More space, less time • Cache matches of graph patterns • Update cache upon changes • Notify about relevant changes • RETE, LEAPS, TREAT... Typical in state-of-the- practice tools! ...on the querying side Source: D Varró, Incremental evaluation of model queries, Presentation @DSM-TP 2015, http://msdl.cs.mcgill.ca/conferences/dsm-tp- 2015/material/15.08.26.IncrementalQueries.DanielVarro.pdf No incrementality Dirty incrementality Incrementality by traceability „Reactive” MTs Large-step, re-execute from scratch only for the changed models Small-step, detect missing traceability links Detect new activations, fire rule activations
  • 7. A case for incrementality • MT rule: precondition  postcondition Querying Evolution of large (instance) models Re-evaluation of MT preconditions as the model changes Batch vs Incremental Example: live model validation Maintaining live models, models@run.time, managing streamed models, live M2M synchronization... How big are models? Markus Scheidgen: How Big Are Models – An Estimation (2012) Application Model size System models 108 Sensor data 109 Geospatial models 1012 Assumption: models are materialized ...what if they are not?
  • 8. Streaming MTs • Models aren’t completely materialized • Native (or natural) streams • Sensor systems, CPS, cloud computing... • Artificial (generated) streams • Model split up and pushed through a channel • Large models (AUTOSAR, etc) • Streaming MTs over live models [1] “a special kind of transformation in which the whole input model is not completely available at the beginning of the transformation, but it is continuously generated” Sánchez Cuadrado, J., Lara, J.: Streaming model transformations: Scenarios, challenges and initial solutions (2013) In Duddy, K., Kappel, G., eds.: Theory and Practice of Model Transformations. Volume 7909 of Lecture Notes in Computer Science. Springer Berlin Heidelberg (2013) 116
  • 9. Streaming MTs • Models aren’t completely materialized • Native (or natural) streams • Sensor systems, CPS, cloud computing... • Artificial (generated) streams • Model split up and pushed through a channel • Large models (AUTOSAR, etc) • Streaming MTs over live models [1] [1] I. Dávid, I. Ráth, and D. Varró, Streaming model transformations by complex event processing, MoDELS 2014, Conference acceptance rate: 26%. Invited for submission to MODELS14 Special Issue in SoSyM
  • 10. Techniques • Model fragment processing (Lara et al) • Actual fragments of models are streamed • Fragments are assembled on the target side • Ongoing work, implementation planned via Apache Spark • Related: P2P distributed models (Hartman et al [2]) • Complex event processing • Model change information streamed as a series of events • Evaluation of temporal and timing relationships • Implemented within the VIATRA framework [3] [2] Hartman et al, Stream my Models: Reactive Peer-to-Peer Distributed Models@run.time, MoDELS 2015 [3] http://www.eclipse.org/viatra/
  • 11. Pointers • Incremental MTs • Tools: IncQuery, ATL, Epsilon... • Background: RETE (Forgy, 1983), other „custom” cache algorithms • A. Kusel et al, A Survey on Incremental Model Transformation Approaches, Workshop on Models and Evolution 2013 • Streaming MTs • Sánchez Cuadrado, J., Lara, J, Streaming model transformations: Scenarios, challenges and initial solutions, 2013 • I. Dávid, I. Ráth, D. Varró, Streaming model transformations by complex event processing, MoDELS 2014 • https://wiki.eclipse.org/VIATRA/CEP • Hartman et al, Stream my Models: Reactive Peer-to-Peer Distributed Models@run.time, MoDELS 2015