ModelWriter: Text & Model-Synchronized Document Engineering Platform

Ferhat Erata, Claire Gardent, Bikash Gyawali, Anastasia Shimorina, Yvan Lussaud, Bedir Tekinerdogan, Geylani Kardas, Anne MonceauxarXiv 2024 · DOI

TL;DR

ModelWriter is an automated platform that synchronizes technical documents and architectural models to ensure they remain consistent and complete. By combining natural language processing with formal logic, it can automatically detect contradictions and missing links in complex engineering requirements, such as those used by Airbus for aircraft system installation.

What Problem Does This Paper Address?

In safety-critical industries like aerospace and automotive, engineering a product involves thousands of interconnected artifacts: requirements documents, architectural models, source code, and test cases. Standards like DO-178C (avionics) and ISO-26262 (automotive) mandate strict "traceability"—the ability to prove that every requirement is implemented in code and verified by a test.

Manually maintaining these links (traces) is a Herculean task prone to human error. If a requirement changes, engineers must manually find every related document or model element to update it. The challenge is twofold: understanding the meaning of natural language requirements and managing the structural relationships between them. ModelWriter aims to automate this process, turning technical documents into "living" artifacts that can reason about their own consistency.

Methods

The ModelWriter platform employs a sophisticated two-tier reasoning approach:

  1. Semantic Reasoning (Understanding Content):
    • Semantic Parsing: The system uses a Feature-Based Lexicalised Tree Adjoining Grammar (FB-LTAG) to convert natural language text into Description Logic (DL) formulae. This allows the computer to "understand" the technical meaning of a sentence.
  2. Theorem Proving: It uses the HermiT theorem prover to analyze these DL formulae. For example, if one rule says a bracket must be in a "hydraulic area" and another says it must be in a "fuel tank," and the system knows these areas are disjoint, it automatically flags a CONFLICT.
  3. Relational Reasoning (Understanding Structure):
    • Traceability Axioms: The authors formalized the meaning of trace links (like CONTAINS, REFINES, REQUIRES, EQUALS, and CONFLICTS) using First-Order Relational Logic.
  4. Model Finding: Using the Tarski module and the Kodkod model finder, the platform propagates these relations. If Rule A refines Rule B, and Rule B requires Rule C, the system can infer that Rule A also requires Rule C.

![Fig.

  1. Illustration of “conflicts, equals and requires”](/figures/art_bf4104ecd4ab4899a58b48c59cac9ec6)

Datasets

The researchers evaluated ModelWriter using a real-world industrial dataset:

  • Airbus SIDPs: A set of 960 System Installation Design Principles provided by Airbus. These are high-level rules used to ensure aircraft systems are installed correctly and safely.

Key Insights and Ideas

  • Hybrid Logic is Key: The "aha moment" is the realization that you can't just look at the text or just look at the links. By combining DL (for text meaning) and RL (for link structure), the system catches "hidden" inconsistencies. For instance, a conflict might not be obvious from the text of two rules alone, but becomes apparent when their logical implications are propagated through a chain of "refines" links.
  • Traceability as a Theory: The authors don't just treat traces as simple pointers; they treat them as a formal theory with properties like transitivity and anti-symmetry. This allows for automated "completeness" checks—identifying where a required link is missing.
  • Reversibility: The semantic parser is designed to be reversible, meaning the system can potentially generate natural language text from formal logic, helping bridge the gap between human engineers and formal verification tools.

![Fig.

  1. Inferring “requires” with “refines” and inferring “conflicts”](/figures/art_5142a1d7e4f04c7f8f8ab47736ce5671)

Key Results

  • Robust Parsing: The semantic parser successfully processed 97.50% of the 960 Airbus SIDPs.
  • High Accuracy: The Description Logic axioms generated from the text were found to be correct in 96% of cases.
  • Effective Inference: The system successfully built complex trace graphs (see Figure 3), identifying conflicts and requirements that were not manually specified by engineers.
  • Performance: Benchmarking showed that the Kodkod API was the most efficient engine for solving these traceability problems, often outperforming general-purpose solvers like Z3 or the Alloy Analyzer for this specific use case.

![Fig.

  1. Inferred Traces (red traces indicate reasoning using DL, blue indicates reasoning using RL, the black one indicates a manual trace)](/figures/art_b18a698d389c4fdc9201a05cd4fa34be)

Limitations and Future Work

While highly successful on the Airbus dataset, the authors note a few areas for growth:

  • Domain Specificity: The current lexicon and grammar are tailored to the SIDP use case. While the framework is modular, adapting it to a completely different domain (like medical devices) would require new linguistic resources.
  • User Interface: The paper focuses on the underlying logic; future work involves refining the "Tarski" text editor to make it more intuitive for non-logicians to define their own trace types.
  • Scaling: The authors plan to conduct more extensive case studies to see how the platform handles even larger, more diverse sets of industrial artifacts beyond just design principles.

Summary updated

BibTeX
@misc{erata2024modelwriter,
  author = {Ferhat Erata and Claire Gardent and Bikash Gyawali and Anastasia Shimorina and Yvan Lussaud and Bedir Tekinerdogan and Geylani Kardas and Anne Monceaux},
  title = {{ModelWriter: Text \& Model-Synchronized Document Engineering Platform}},
  year = {2024},
  eprint = {2403.01359},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.01359},
}
Figure