Contract-Based Specification Refinement and Repair for Mission Planning

Piergiuseppe Mallozzi, Inigo Incer, Pierluigi Nuzzo, Alberto Sangiovanni-VincentelliarXiv 2022

TL;DR

The CR³ framework automates the process of turning high-level robotic mission goals into executable plans by leveraging a library of pre-built components. When a mission doesn't perfectly match available robot capabilities, the system uses formal "contract algebra" to either search for the missing pieces in other libraries or automatically "patch" the mission requirements to make them achievable.

What Problem Does This Paper Address?

In autonomous robotics, we often use Linear Temporal Logic (LTL) to write specifications—formal rules like "always visit the charging station if the battery is low." Ideally, we use reactive synthesis to turn these rules into a controller that is "correct-by-construction."

However, two major hurdles exist:

  1. Complexity: Reactive synthesis is computationally brutal (double exponential in the length of the formula), making it impractical for complex, large-scale missions.
  2. Library Mismatch: Designers want to reuse libraries of pre-implemented behaviors. But what happens when a mission requirement (e.g., "patrol the front of the store") doesn't perfectly align with the library's capabilities (e.g., "visit locations L1 and L3")? Manually tweaking these specifications to match the hardware is error-prone and tedious.

The authors address how to bridge this gap between abstract mission planning and concrete implementation using a structured, automated methodology.

Methods

The researchers introduce CR³, a framework based on Assume-Guarantee Contracts. A contract $C = (A, G)$ defines what a component does ($G$ for Guarantees) provided the environment behaves a certain way ($A$ for Assumptions).

Key Components of CR³:

  • Semantic Type System: The framework uses "types" to define relationships between abstract concepts and concrete realities. For example, as seen in Figure 1, an abstract "Front of Store" ($L_F$) is defined as being "covered" by concrete locations $L_1, L_3,$ and $L_4$.
Fig. 1: Running Example Location Maps. The map on the left of the picture is ‘refined’ by the map on the right.
  • Refinement Analysis: An algorithm (Algorithm 1 in the paper) that calculates a Similarity Score and a Refinement Score to find the best match in a library.
  • Contract Algebra: This is the "secret sauce." If a library can't fulfill a mission, CR³ uses algebraic operations:
  • Quotient: Calculates exactly what is "missing" from the current library to satisfy the mission.
  • Separation & Merging: Automatically modifies (repairs) the original mission specification so that the existing library can implement it, ensuring the change is as minimal as possible.

The toolchain integrates NuSMV for model checking and STRIX for reactive synthesis to ensure the resulting plans are mathematically sound.

Datasets

The paper does not use large-scale public datasets. Instead, it validates the methodology using a Running Example of a robotic store assistant. The example involves a map refinement task (moving from a 3-zone abstract map to a 5-location concrete map) and a "greeting" mission where the robot must react to customers.

Key Insights and Ideas

  • Algebraic Repair over Manual Tweak: Instead of a human guessing how to fix a failing specification, the framework uses the Separation operator to find the "smallest" abstraction of the mission that the robot can actually perform.
  • Decoupling Logic from Physics: By using types (Extension, Covering, Adjacency), the mission logic remains independent of the specific robot or map until the final refinement step.
  • Search vs. Repair Trade-off: The framework gives designers a choice. If the similarity score is low, it suggests searching for new components (using the Quotient). If it's high ( $\ge 80\%$ ), it suggests repairing the mission to fit the current hardware.

Key Results

  • Automated Refinement: The authors demonstrated that CR³ could take a patrolling mission defined on an abstract map and successfully map it to a concrete implementation using library components $L_1$ and $L_2$.
  • Minimal Patching: In a "greeting" mission where the robot was required to greet immediately but the library only supported greeting in the next time step, CR³ automatically "patched" the mission to accept the one-step delay without human intervention.
  • Tool Implementation: The framework is implemented in a functional tool (though the link was hidden for blind review in the provided text) that handles the flow shown in Figure 2.
Flow diagram showing all the processes involved in creating a refinement from a library.

Limitations and Future Work

  • Time-Step Mismatch: The authors acknowledge that a "step" in an abstract mission might not equal a "step" in a concrete one (e.g., moving between rooms vs. moving between grid cells). Currently, this requires some manual adjustment of "next" ($X$) operators.
  • Scalability: While the theory holds, the authors plan to test CR³ on larger, real-world case studies to see how the heuristic similarity scores perform in massive libraries.
  • Library Generation: Future work will look into how to systematically generate these libraries of mission components in the first place.

Summary updated

Abstract

We address the problem of modeling, refining, and repairing formal specifications for robotic missions using assume-guarantee contracts. We show how to model mission specifications at various levels of abstraction and implement them using a library of pre-implemented specifications. Suppose the specification cannot be met using components from the library. In that case, we compute a proxy for the best approximation to the specification that can be generated using elements from the library. Afterward, we propose a systematic way to either 1) search for and refine the `missing part' of the specification that the library cannot meet or 2) repair the current specification such that the existing library can refine it. Our methodology for searching and repairing mission requirements leverages the quotient, separation, composition, and merging operations between contracts.
BibTeX
@misc{mallozzi2022contract,
  author = {Piergiuseppe Mallozzi and Inigo Incer and Pierluigi Nuzzo and Alberto Sangiovanni-Vincentelli},
  title = {{Contract-Based Specification Refinement and Repair for Mission Planning}},
  year = {2022},
  eprint = {2211.11908},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2211.11908},
}

Loading related content...

Figure