Pretrained Embeddings as a Behavior Specification Mechanism Parv Kapoor, Abigail Hammer, Ashish Kapoor, Karen Leung, Eunsuk Kang Abstract We propose an approach to formally specify the behavioral properties of systems that rely on a perception model for interactions with the physical world. The key idea is to introduce embeddings —mathematical representations of a real-world concept—as a first-class construct in a specification language, where properties are expressed in terms of distances between a pair of ideal and observed embeddings. To realize this approach, we propose a new type of temporal logic called Embedding Temporal Logic (ETL) , and describe how it can be used to express a wider range of properties about AI-enabled systems than previously possible. We demonstrate the applicability of ETL through a preliminary evaluation involving planning tasks in robots that are driven by foundation models; the results are promising, showing that embedding-based specifications can be used to steer a system towards desirable behaviors. 1 Introduction Modern artificial intelligence (AI) technologies, such as foundation models (FMs), are rapidly merging as a key component in autonomous systems, being used to perform critical functions such as perception and planning. Techniques for achieving high assurance, such as verification and run-time monitoring, rely on the availability of formal specifications that capture the desired properties of a system. However, formally specifying the behavior of an AI-enabled system remains an open challenge Seshia et al. (2018) . Formal specifications, especially those written in a temporal logic, are expressed in terms of propositions about parts of the system state that can be observed or estimated through sensors (e.g., the velocity of a robot). For autonomous systems, behavioral properties often refer to interactions with physical objects (e.g., “the robot should avoid colliding with a table”); to observe these objects, the system relies on a perception model that operates over a high-dimensional input image. A formal specification for such a system would require propositions that relate physical objects to the input image. Here lies the fundamental obstacle to specification: devising a precise, mathematical encoding of a physical object (e.g., a table) over the high-dimensional input space (e.g., pixels) is likely to be difficult, if not impossible. In this paper, we propose a new approach for formally specifying the behavioral properties of an AI-based system. The key idea is to introduce embeddings —mathematical representations of real-world objects—as a first-class concept in a specification notation, and express a property in terms of distances between a target embedding (an ideal representation of the world for the system to reach or avoid, given as part of the specification) and an observed embedding (a representation observed and generated through a sensor during system execution). For example, consider a rescue robot that is tasked with satisfying the following requirement: “Locate a potential victim while avoiding areas with fire.” Such a property would be difficult to specify using an existing specification language, due to its dependence on perception; even with access to accurate localization, the exact locations of these real-world objects are often unknown and dynamic. Instead, in an embedding-based approach, this task may be expressed as “reach the state of the world in which the system observes an object that closely resembles a potential victim, while avoiding those states where the observation resembles an area with fire.” Such a specification could then be used, for example, as part of a run-time monitor or a planner to ensure that the system conforms to the desired property. As a realization of this approach, we propose Embedding Temporal Logic (ETL) , a temporal logic for specifying the behaviors of AI-based systems (Section 3 ). Compared to state-based temporal specifications (such as linear temporal logic (LTL) Pnueli (1977) ), which are evaluated over a sequence of states, an ETL specification is evaluated over a sequence of embeddings , where each embedding is created from an observation that the system makes at a particular point in its execution. As counterparts to propositions in LTL, atomic constructs in ETL are embedding predicates , which impose a constraint over the distance between a pair of embeddings; e.g., dist(z_{o},z_{t})\leq\epsilon , where z_{t} and z_{o} are the target and observed embeddings, respectively, and \epsilon\in\mathbb{M} is a given distance threshold in metric space \mathbb{M}{} . A target embedding in a predicate is specified by providing images or text that correspond to a real-world concept (e.g., images or a textual description of fire). Standard temporal operators (e.g., \textbf{G},\textbf{F} ) are used to construct temporal properties out of atomic predicates. We believe that embeddings as a specification mechanism have potential to significantly broaden the range of properties that can be specified using a formal specification language , facilitate the development of new assurance methods, and enable existing methods to be applied to AI-enabled systems. Additionally, leveraging embeddings for specification allows us to use the power of large, pretrained FMs Radford et al. (2021a) ; Firoozi et al. (2023) —which excel at encoding high-level features and concepts into embedding spaces. Moreover, integrating world models Ha and Schmidhuber (2018) that evolve within these embedding spaces further enriches our ability to reason about and verify the dynamic behaviors of such systems. As a potential application, we demonstrate how ETL can be used for planning tasks in robotic systems that use an FM for scene understanding and behavioral prediction (Section 4 ). In particular, we propose a planning method that generates actions towards the goal of satisfying a given ETL specification. Our preliminary evaluation shows that the proposed method can effectively steer the system towards behaviors that are desirable with respect to the given specification (Section 5 ). 2 Background We briefly describe the ideas of pretrained vision models and world models, which play an important role for embeddings and FM-based planning, respectively. Pretrained Vision Models. Pretrained vision models such as CLIP Radford et al. (2021b) , DinoV2 Oquab et al. (2024) have revolutionized the field of computer vision by providing robust, high-level representations that capture rich semantic information. These models are generally trained on large-scale datasets and use supervised or self-supervised learning methods. The resulting representations (embeddings or feature vectors) have demonstrated impressive transferability across a wide range of downstream tasks including classification, detection, segmentation, and scene understanding. These models are built with convolutional neural networks (CNNs) Krizhevsky et al. (2012) or more recently vision transformers (ViTs) Dosovitskiy et al. (2021) . ViT based models generally take as input a raw image and generate patch embeddings capturing granular information. World Models. In the context of sequential decision-making for robots—the process of generating a sequence of actions to enable a system to perform a desired task—a robot must be able to predict future outcomes given their decisions. Such predictive models are generally referred to as world models Ha and Schmidhuber (2018) , describing how the world evolves over time . Abstractly, the “world” includes the robot itself, the surrounding environment, and interactions between the two. However, in unstructured settings without accurate state estimation and scene understanding, developing a world model operating on observations (e.g., camera images) can be challenging. Many recent works look to develop a world model by leveraging large amounts of offline observation data (e.g., images) collected from the system moving in the real-world and learning the transition dynamics of the system implicitly through a lower-dimensional embedding space Ha and Schmidhuber (2018) ; Watter et al. (2015) . We follow a similar set up as described in Zhou et al. (2025) . The idea is to encode the high-dimensional observations during a time window H , (starting from time t-H to t , denoted o_{t-H:t} ),into corresponding embedded states z_{t-H:t} . The embedded states and control sequence a_{t-H:t} are inputs to a learned transition model p to predict the latent state in the next time step z_{t+1} . A decoder q can transform embedded states back into observation states \hat{o} —the decoder is not strictly needed in describing how the world evolves, but rather is more useful for visualizing what observation the latent state corresponds to. Mathematically, a world model consists of the following three components, \underbrace{z_{t}\sim\mathrm{enc}_{\theta}(z_{t}\mid o_{t})}_{\text{Observation model}},\quad\underbrace{z_{t+1}\sim p_{\theta}(z_{t+1}\mid z_{t-H:t},a_{t-H:t})}_{\text{Transition model}},\quad\underbrace{\hat{o}_{t}\sim q_{\theta}(o_{t}\mid z_{t})}_{\text{Decoder model}}, (1) where \theta denotes the parameters of the encoder (enc), decoder, and transition models. Essentially, at any time step t , we can compute the latent state z_{t} , and autoregressively roll out the transition model to simulate how the world evolves given a sequence of actions. 3 Embedding Temporal Logic 3.1 Syntax and Semantics In our approach, a system is assumed to make an observation about the real world through a sensor (e.g., camera) at each step in its execution. The system also contains an encoder that converts each observation into an embedding z\in\mathcal{Z} . Conceptually, z is an approximation of a latent variable ; i.e., the state of the world that is only indirectly observable by the system. The underlying representation of embeddings (typically as a vector of a fixed size) depends on the encoder and other models that subsequently consume this embedding for further tasks, such as object identification and prediction. In ETL, a possible execution of the system, or a trace , is represented as an infinite sequence \sigma of embeddings (i.e., \sigma=z_{0},z_{1},... ); we write z_{i} to denote the embedding at the index i . We also assume the existence of distance function dist:\mathcal{Z}{}\times\mathcal{Z}{}\rightarrow\mathbb{M} , which computes a distance between a pair of embeddings. The metric space depends on the embedding representation and the distance function used; a common option is \mathbb{R}^{\geq 0} . The syntax of ETL is as follows: \displaystyle\varphi:=u\;|\;\neg\varphi\;|\;\varphi_{1}\land\varphi_{2}\;|\;\varphi_{1}\textbf{U}{}\varphi_{2} where u is a predicate of the form f_{u}(z)>0 and f_{u}(z) is the function (associated with u ) that maps the current embedding z to a value in the metrics domain \mathbb{M}{} . As in LTL, the until operator U can be used to express the eventually ( F ) and always ( G ): \textbf{F}{}\varphi=\texttt{True}\textbf{U}{}\varphi and \textbf{G}{}\varphi=\neg\textbf{F}{}\neg\varphi . The semantics of ETL, defining the satisfaction of a formula by trace \sigma at index i , also closely mirrors that of LTL: \displaystyle\sigma,i\models u\iff f_{u}(z_{i})>0 \displaystyle\sigma,i\models\neg\varphi\iff\sigma,i\not\models\varphi \displaystyle\sigma,i\models\varphi_{1}\land\varphi_{2}\iff\sigma,i\models\varphi_{1}\text{ and }\sigma,i\models\varphi_{2} \displaystyle\sigma,i\models\varphi_{1}\textbf{U}{}\varphi_{2}\iff\exists j\geq i\text{ such that }\sigma,j\models\varphi_{2}\text{ and }\forall k\text{ with }i\leq k\epsilon_{a_{i}}) where the robot’s location embedding is z , \epsilon_{g} the minimum closeness required for reaching the goal, and ( \epsilon_{a_{1}},...\epsilon_{a_{m}} ) the minimum safe distances that must be maintained from the hazardous areas. Example 2: Sequential task. Another common type of tasks for robotic systems is to visit multiple goals in a sequence. This pattern is sometimes called sequenced visit Menghi et al. (2019) . Given two embeddings z_{g_{1}},z_{g_{2}}\in\mathcal{Z}{} that represents the two goal locations, the requirement can be specified as an ETL specification that requires the distance from the robot and the locations to fall below a given threshold \epsilon_{g} , one after another: \textbf{F}((dist(z,z_{g_{1}})\leq\epsilon_{g_{1}})\land\textbf{F}(dist(z,z_{g_{2}})\leq\epsilon_{g_{2}})) . Example 3: Stability. In visual servoing Hutchinson et al. (1996) , a robot adjusts its movements to align its camera view with a target reference image, using visual feedback rather than explicit position measurements. A key requirement in such systems is stability , ensuring that once the desired visual state is reached, the system constantly remains in the same region of the embedding space; e.g., “once a drone reaches a desired viewpoint, it should maintain the viewpoint.” Given an embedding z_{g}\in\mathcal{Z}{} representing the target visual state, stability can be specified in ETL as: \textbf{F}\textbf{G}(dist(z,z_{g})\leq\epsilon_{g}) where: \epsilon_{g} ensures that once the system achieves the desired visual embedding, it maintains that state indefinitely. 3.2 Quantitative Satisfaction Certain extensions of LTL, such as signal temporal logic (STL) Maler and Nickovic (2004) , allow for a quantitative notion of satisfaction (called robustness Fainekos and Pappas (2009) ) that represents the degree to which the system satisfies or violates a specification. Among its use cases, robustness can be leveraged in optimization-based tasks , such as trajectory planning Raman et al. (2014) , where the quality of candidate plans is evaluated based on how well the resulting system behavior satisfies a property (i.e., the robustness score). To enable ETL to be used for such tasks (later discussed in Section 4 ), we also introduce a notion of quantitative satisfaction for ETL. The satisfaction score of a trace with respect to ETL formula \varphi at index i , bounded by \textbf{b}{}\geq i , is denoted \rho(\varphi,\sigma,i,\textbf{b}) and defined as follows: \displaystyle\rho(u,\sigma,i,\textbf{b}{}) \displaystyle= \displaystyle f_{u}(z_{i}) \displaystyle\rho(\neg\varphi,\sigma,i,\textbf{b}{}) \displaystyle= \displaystyle-\rho(\varphi,\sigma,t,\textbf{b}) \displaystyle\rho(\varphi_{1}\land\varphi_{2},\sigma,i,\textbf{b}{}) \displaystyle= \displaystyle\textbf{min}(\rho(\varphi_{1},\sigma,i,\textbf{b}),\rho(\varphi_{2},\sigma,i,\textbf{b})) \displaystyle\rho(\textbf{G}{}\varphi,\sigma,i,\textbf{b}{}) \displaystyle= \displaystyle\textbf{inf}_{k\in[i,\textbf{b}{}]}\ \rho(\varphi,\sigma,k,\textbf{b}) \displaystyle\rho(\textbf{F}{}\varphi,\sigma,i,\textbf{b}) \displaystyle= \displaystyle\textbf{sup}_{k\in[i,\textbf{b}{}]}\ \rho(\varphi,\sigma,k,\textbf{b}) where inf and sup are the infimum and supremum operators, respectively. Note that the computation of the satisfaction score is restricted to a subsequence of \sigma between i to b (i.e., z_{i},z_{i+1},....,z_{\textbf{b}{}}) . The bound b may be determined by, for example, the planning horizon used by a planner (i.e., the length of action sequence used by the planner for behavioral prediction). For brevity, the definition for the until ( U ) operator is omitted, but similar to the one described in Fainekos and Pappas (2009) . Example. Consider an ETL specification that describes the task of reaching a desired visual state, \varphi\equiv\textbf{F}(dist(z,z_{g})\leq\epsilon_{g}) , which is equivalent to \textbf{F}(\epsilon_{g}-dist(z,z_{g})>0) ; i.e., f_{u}(z_{i})=\epsilon_{g}-dist(z_{i},z_{g}) . Suppose that the system generates a sequence of embeddings of length 4 ( \sigma{}=z_{0},z_{1},z_{2},z_{3} ), resulting in the following vector for f_{u} : [-0.0461393,-0.05276561,0.08344626,0.0541718] The satisfaction score of the trace, \rho(\varphi,\sigma,0,4) , is the maximum value of f_{u} between the index 0 and 4; i.e., 0.08344626. Intuitively, the satisfaction score of \sigma corresponds to the point at which the system satisfies the specification most well (i.e., it comes closest to the goal embedding). 3.3 Specifying Target Embeddings As mentioned above, ETL is specified using predicates over target embeddings that describe parts of the physical world to be reached or avoided. In practice, the specifier (e.g., a system engineer) would not directly specify the mathematical representations of embeddings. Instead, a tool that uses ETL (like the planner that we introduce in Section 4 ) would provide an interface through which the specifier can describe an intended ETL specification with images and/or textual descriptions for the target embeddings. The tool would then use an encoder to translate the user input into the corresponding embeddings, creating the final ETL specification. We envision that different types of interfaces and patterns can be developed to allow the specifier to build complex ETL specifications, possibly by building on prior works in computer vision and machine learning (ML) for visual and multi-modal task descriptions. For example, in robotics, it has been shown that categorical targets, sets of RGB images (with and without depth), and natural language descriptions can be effectively used as task descriptions Chang et al. (2023) . 3.4 Distance Functions Distance Function between Image Embeddings. Another decision to be made by the specifier is the choice of the distance function between a pair of embeddings. We have investigated four existing distance metrics used in computer vision as candidates for ETL: Cosine similiarity, L1, L2, and chamfer distances. Detailed descriptions of these metrics can be found in Appendix A . We provide an analysis of the suitability of the metrics for capturing distinct visual states. Figure (a) shows the distance heatmaps for the four metrics. For each heatmap, we compute pairwise distances between the embeddings of 8 images captured within a Habitat scene Savva et al. (2019) that are generated by a pretrained encoder (DinoV2), as shown in Figure (b). As expected, the diagonal for all embeddings shows zero distance while off-diagonal regions form distinct block-like structures. Frames 0-2 (focused on the fireplace and seating area) cluster together while Frames 6–7 (focused on the dining area) form another cluster. Images within each cluster remain lighter in the heatmap, whereas comparing across the two clusters yields darker blocks. 1 1 1 A longer version of this figure with more images is available in Appendix A . Additionally, the four metrics differ on their emphasis on inter‐frame distances. Cosine similarity focuses on embedding orientation, while L2, L1 and chamfer distances measure patch‐wise embedding differences. Overall, these heatmaps illustrate how even small viewpoint shifts (e.g. frames 2 vs. 3) can be captured by an increase in embedding distance and can be used to effectively guide behavior generation. Note that distances over raw patch embeddings measure perceptual similarity but lack temporal context as the pretrained vision models are trained on static images. World models transform these embeddings into a learned latent space that evolves based on past states and actions. These world models are trained with a reconstruction loss and hence preserve the structure of the embedding space, ensuring that temporal relationships between embeddings transfer to the latent space. Thus, when using ETL with a world model, it is crucial to select a distance metric that aligns with the training objective of the model. Image and Textual Embeddings. In addition to images, target embeddings can also be specified using textual descriptions. For brevity, we refer the reader to Appendix B for a discussion of text-to-image embedding comparisons and their role in ETL. 4 ETL-based Planning Figure 2 : Overview of Planning with ETL specifications We utilize Habitat for navigation and NVIDIA FLeX for granular manipulation. Pretrained encoders generate embeddings from goal and current observations, which are used to evaluate specification satisfaction. The planner integrates these embeddings with a world model to generate ETL satisfying actions. In this section, we propose a method for online robotic planning that generates actions toward satisfying a given ETL specification. The high-level overview of the planning method is highlighted in Figure 2 . A key idea is for the planner to leverage a pretrained world model when simulating and evaluating candidate actions, and then replan at each time step to perform receding horizon control. Our current prototype accepts image-based ETL specifications but a similar method can be applied for textual specifications as well. First, our system accepts a set of goal images , \{I_{G}\} , from the user and passes them through the pre-trained encoders (e.g., DinoV2 Oquab et al. (2024) /ViT Dosovitskiy et al. (2021) ) to generate patch features. Concretely, an input image is divided into fixed-size patches (e.g. 16×16 pixels) that are transformed into a feature vector. These patch features capture localized visual information and are then aggregated by the encoder model to form a global image representation that will serve as reach ( z_{g} ) and avoid ( Z_{avoid} ) embeddings. These embeddings are used to define an ETL specification \varphi_{g} (for examples, see Table 1 ). During the online planning stage, we take the past and current system observations, [I_{0},\ldots,I_{t}] , and pass them through the same pretrained encoders to compute a corresponding sequence of embeddings, [z_{0},\ldots,z_{t}] . Next, the planner generates a set of candidate action sequences, \hat{a}_{t},\ldots,\hat{a}_{t+K} (where K is the prediction horizon). Each action sequence is executed through the world model to generate a predictive trace ( \sigma ). Each predictive trace is then evaluated to compute the satisfaction score for the given specification \varphi_{g} , and the action sequence that results in the predictive trace with the highest is selected for the final plan. More formally, this planning process can be expressed as the following optimization problem: \displaystyle a_{t:t+K} \displaystyle=\argmin_{\hat{a}_{t:t+K}\in\mathcal{A}_{t:t+K}}J_{\varphi}(z_{0:{t+K}}) \displaystyle\text{where}\>\hat{z}_{k+1}=p_{\mathrm{\theta}}(\hat{z}_{k},\hat{a}_{k}),\quad k=t,\ldots,K-1, (2) where J_{\varphi} is a cost function based on the desired ETL specification. For example, J_{\varphi}(z_{0:{t+K}})=\max(0,-\rho(\varphi,z_{0:{t+K}})) . This cost function penalizes only negative satisfaction scores, i.e., traces that violate \varphi and ensures that traces satisfying \varphi (where \rho(\varphi,z_{0:{t+K}})>0 ) have zero cost. In practice, the number of candidate action sequences is too large to enumerate, so our planner randomly samples N action sequences 2 2 2 Future work can include learning a sampling distribution to increase the quality of action sequence samples. and then select the most satisfactory one—an easily parallelizable operation. With the chosen action sequence, the planner applies the first action a_{t} on the robot, and then repeats the planning process with an updated state (i.e., new sensor image). Note that the world model used here shares the same embedding space as the embeddings used in ETL; operating with a learned world model enables the direct evaluation of ETL quantitative semantics in the embedding space rather than expensively decoding back to the physical state space. 5 Preliminary Evaluation We describe a preliminary evaluation to demonstrate the potential utility of ETL. In particular, we present experiments involving two types of planning tasks: (1) indoor navigation and (2) robot arm manipulation, to (1) evaluate whether embedding-based specifications can be used to generate plans that result in desirable system behaviors and (2) analyze the impact of different distance metrics. Environment NL Description ETL Specification Navigation Visit room \varphi_{1}=\textbf{F}(dist(z,z_{g_{1}})-\epsilon_{g_{1}}<0) Navigation Visit either room \varphi_{2}=\varphi_{1}\lor\textbf{F}(dist(z,z_{g_{2}})-\epsilon_{g_{2}}<0) Navigation Visit rooms sequentially \varphi_{3}=\textbf{F}((dist(z,z_{g_{2}})-\epsilon_{g_{2}}<0)\land\varphi_{1}) Manipulation Reach configuration \psi_{1}=\textbf{F}(dist(z,z_{g})-\epsilon_{g}<0) Manipulation Avoid 8 configurations \psi_{2}=\land_{i=1}^{8}\textbf{G}(dist(z,z_{a_{i}})+\epsilon_{a_{i}}>0) Manipulation Reach and avoid \psi_{3}=\psi_{1}\land\psi_{2} Table 1 : ETL specifications for navigation and manipulation tasks. 5.1 Experimental Setup For indoor navigation, we pre-train a world model on 10,000 expert traces for the PointNav task in the Habitat Environment Savva et al. (2019) ; Habitat is a photorealistic simulator that creates indoor scenes using real-world assests. We utilize MP3D Chang et al. (2017) assets and build on the Perception Action Causal Transformer (PACT) from a ResNet to a ViT for it’s improved preresentational capacity of ViT Dosovitskiy et al. (2021) . We focus on a sampling based planner with multiple cost functions, and plan using sequential specifications, highlighted in Table 1 . For manipulation, we pre-train a DinoWM world model on 2,000 traces leveraging the setup proposed in Zhou et al. (2025) where granules on a flat plane are manipulated into a target goal. To plan the actions, we utilize the integrated Dino World Model planner and measure success by calculating chamfer distances between the final observed image and ground truth goal image, similar to the DinoWM work. We examine three cases of specifications, formalized in Table 1 . We baseline against \psi_{1} , with a single target specification to reach; for \psi_{2} , we provide a set of targets to avoid, and in \psi_{3} , we conjunct the requirements of \psi_{1} and \psi_{2} . Distance Metric Navigation Specifications Manipulation Specifications \varphi_{1} \varphi_{2} \varphi_{3} \psi_{1} \psi_{2} \psi_{3} L1 0.0031 0.0005 -0.0336 1.04 0.93 0.82 L2 0.0008 0.0035 0.0001 0.99 0.99 0.98 Cosine/CD 0.0021 -0.0046 -0.0274 1.32 1.32 1.32 Table 2 : Left : Satisfaction scores for PACT evaluations at a prediction horizon of 15 in navigation tasks. The scores are computed using L2 since PACT was trained using L2 loss defined over predicted and ground truth embedding space. Also, L2 loss had the most granular distance separations as highlighted in Section 4 . Right : Final chamfer distances (CD) for manipulation tasks, computed over ground truth with a horizon length of 10 in DinoWM. 5.2 Results and Discussion Navigation. , \varphi_{2} , and \varphi_{3} ) when used with different base distance metrics. As highlighted in Table 2 , for \varphi_{1} , the planner is able to achieve positive satisfaction scores with all distance metrics since it is a simple reach specification. For \varphi_{2} , we specified the target image embeddings of two different rooms disjuncted with each other, encoding the task of visiting either room. We observe that the planner performs well with L2 and L1 metrics and ends up visiting the physically closest room to its initial location. Additionally, we observed that planning with cosine similarity metric for \varphi_{2} achieves a negative satisfaction score ( -0.0046 ), possibly because it only measures high-level directionality between embedding vectors. As highlighted in Section 4 , this leads to scenes with slight perspective change being perceived as similar and hence serve as insufficient feedback for the planner. In order to evaluate our proposed system’s ability to plan for complex tasks, we used a complex sequential visit specification ( \varphi_{3} ) that involved exploring multiple rooms. Due to this task complexity, planning with L1 and cosine similarity distance-based specifications achieve negative satisfaction scores ( -0.0036 and -0.0274 , respectively). For these metrics, we observed that the planner was able to satisfy the first phase of the task but failed to achieve the second phase of visiting the other room. However, with the L2-based distance metric, the planner is able to generate actions that guide it to the second room. We provide qualitative image results in Appendix C . In summary, the results suggest that ETL can be used to specify desired system behaviors, and its quantitative semantics can be leveraged by a planner to steer the system towards behaviors that satisfy a given specification. Manipulation. We performed planning for the reach ( \psi_{1} ), avoid ( \psi_{2} ), and reach-avoid ( \psi_{3} ) specifications using distance metrics of the L1 norm, L2 norm, and chamfer distances (CD) of the embedded images. In Table 2 , we present the ground truth chamfer distances computed after planning with a horizon of length 10. We can observe that for L2 and CD, the ending distances are very similar; however, we can also note that the results for specification \psi_{2} shows a reduction in the final chamfer distance. Even without a goal to plan towards, DinoWM is able to infer from the avoid embeddings that the granules should not be in a scattered configuration, and arranges them into a grouping. From this, we hypothesize that the reach-avoid specification \psi_{3} shows strong similarity to the reach specification \psi_{1} due to optimization done during planning. From these results, we can conclude ETL specifications used during planning are able to successfully perform manipulation tasks. An additional discussion of the results is provided in Appendix D . 6 Related Work There is a long line of work on specifying and verifying complex behaviors in cyber-physical and robotic systems using temporal logics, such as LTL, STL, and Metric Temporal Logic (MTL) Koymans (1990) . These logics have been used for trajectory planning Kress-Gazit et al. (2009) ; Sun et al. (2022) ; Leung et al. (2023) , reinforcement learning Aksaray et al. (2016) ; Alur et al. (2023) ; Aloor et al. (2023) , runtime monitoring Bartocci et al. (2018) , and adaptive control Raman et al. (2014) ; Belta and Sadraddini (2019) ; Lindemann and Dimarogonas (2019) ; Kapoor et al. (2025) . The logics outlined above can struggle with systems that rely on ML for perception, where input data can have a variable number of objects in frames and evolving bounding boxes. This has led to spatial extensions of STL and MTL that allow one to specify properties with geometric interpretations Haghighi et al. (2015) ; Bortolussi and Nenzi (2014) . Specialized logics such as Timed Quality Temporal Logic (TQTL) Dokhanchi et al. (2018) and Spatio-Temporal Quality Logic (STQL) Hekmatnejad (2021) ; Balakrishnan et al. (2021) have been proposed for perception systems that permit reasoning about properties over bounding boxes used in object detection. Recently, Spatiotemporal Perception Logic (STPL) Hekmatnejad et al. (2024) was introduced that combined TQTL with spatial logic and allows quantification over objects, as well as 2D and 3D spatial reasoning. STPL allows expressing properties by specifying relations between objects over time. Most of these logics are grounded in the symbolic outputs of a perception module (object labels, confidences, track IDs). In comparison, ETL is used to specify properties directly about the embedding space, making it easier to specify tasks such as “go to an area like this image” without depending on object detection models or their object vocabulary. Additionally, ETL can potentially be specified using textual descriptions as well (using CLIP text embeddings Radford et al. (2021b) ), allowing for multimodality in specification, in line with recent advances in pre-trained models for robotics Firoozi et al. (2023) . 7 Open Challenges and Future Work Based on our preliminary investigation, we believe that ETL—and more generally, embeddings as a specification construct—presents a promising approach to specifying a wide range of properties about AI-enabled systems. Beside the planning use case presented in this paper, we envision that ETL could be applied to other assurance tasks, such as online monitoring, falsification, and verification. Here, we discuss some open challenges and paths forward for making embedding-based specifications more applicable and practical. The benefit of operating on explicit and fully observable states (e.g., position) is that the distance metrics are spatially grounded. For instance, if the euclidean distance between a position (x,y) and an obstacle is, say 1 , then that can be directly interpreted as the physical distance of one meter. However, interpreting distances in the embedding space is less spatially grounded. For instance, what does an embedding distance of 0.1 mean between two images? A low number suggests higher similarity, but how are they similar? Defining thresholds for embedding distances is an open challenge for ETL. As one potential direction, we envision that existing ML techniques could be leveraged for threshold definition. For example, we could potentially calibrate or perform additional fine-tuning to ensure that the embedding distances are spatially or semantically grounded. This would involve collecting labeled data with grounded quantitative information about how similar or different two embeddings are, such as from known physical distances, or human intuition. Another challenge is to explain the result of an ETL-based analysis (e.g., monitoring or falsification) in terms of concepts that are human understandable, rater than in the embedding space. One direction that we plan to explore is to decode embeddings of interest (e.g., a violating trace) into the observation space (e.g., images) using a world model, similar to how it is done in Zhou et al. (2025) ; Nakamura et al. (2025) . This would allow us to, for example, present the user with an explanation of a violation as a sequence of images, improving the interpretability of system behavior. Appendix A Distance Metrics over Image Embeddings We provide descriptions of the four distance metrics that we have investigated for ETL so far: • L1 norm. L1 norm or manhattan distance computes the absolute differences between the corresponding elements in two embedding vectors. It is defined as: d_{\text{L1}}(A,B)=\sum_{i}|a_{i}-b_{i}| , where A=\{a_{i}\} and B=\{b_{i}\} represent embedding vectors. The L1 norm is a robust metric that is particularly useful in scenarios where outliers need to be ignored. • L2 norm. L2 norm is one of the most commonly used distance metrics for embeddings. It computes the straight-line distance between two vectors and is defined as: d_{\text{L2}}(A,B)=\sqrt{\sum_{i}(a_{i}-b_{i})^{2}} . The L2 norm effectively captures granular differences between dense embeddings and is sensitive to large variations in feature values. • Chamfer Distance Chamfer Distance (CD) is a metric used to compare two sets of points by computing the sum of minimized distances between them. Given two sets of patch embeddings, A=\{a_{i}\}_{i=1}^{N} and B=\{b_{j}\}_{j=1}^{M} , the Chamfer Distance is defined as: d_{C}(A,B)=\sum_{a\in A}\min_{b\in B}\|a-b\|_{2}^{2}+\sum_{b\in B}\min_{a\in A}\|a-b\|_{2}^{2} . This metric ensures that every patch embedding in one set is matched to the closest embedding in the other set, capturing structural similarity between the two distributions. Unlike global feature-based similarity measures, it preserves local correspondences and is hence useful for comparing high-dimensional representations such as DINOv2 patch embeddings. Note that chamfer distance is a quasi-metric as it does not satisfy the triangle inequality. • Cosine Similarity Cosine similarity measures the cosine of the angle between two embedding vectors and captures high level directional similarity. It is defined as: \text{cosine similarity}(A,B)=\frac{A\cdot B}{\|A\|_{2}\|B\|_{2}} where A and B are embedding vectors, A\cdot B is their dot product, and \|A\|_{2} and \|B\|_{2} are the L2 norms of the vectors. Cosine similarity ranges from -1 (completely dissimilar) to 1 (completely aligned). A value of 0 indicates the orthogonality of the two vectors. It is particularly useful for comparing the orientation of embeddings and has been successfully used to compare image similarity when used for content-based image retrieval. The distance comparison between a larger set of images is provided in the Figure . Appendix B Textual and Image Embeddings Figure 4 : Text-image embedding distances We demonstrate how models like OpenCLIP can generate textual embeddings that can be compared with image embeddings. This enables the capture of arbitrary requirements through text while serving as a reliable specification mechanism for behavior. In this section, we talk about distance metrics between multimodal embeddings, specifically text embeddings and image embeddings. In order for a meaningful comparison between these embeddings, they both need to exist in the same latent space. Pre-trained models such as the CLIP model (Contrastive Language Image Pretraining) are trained jointly on images and texts for image captioning tasks Radford et al. (2021b) . Due to this joint pretraining, there have been multiple works that leverage CLIP’s pre-trained text and image encoders for other applications due to their rich feature representation. Inspired by CLIP’s original training objective that uses cosine similarities between text and image embeddings, we also define our distance metric between multimodal embeddings using cosine similarity scores. Note that cosine similarity does not satisfy the triangle inequality so it is not a metric over the embedding space in the conventional sense but we plan to investigate other metrics that satisfy this property in future work. We highlight our computed cosine similarity scores between different textual prompt embeddings and image embeddings in Figure 4 . The images processed by the pretrained model are shown in Figure . We compute the text and image embeddings using OpenCLIP Cherti et al. (2023) model which is a state of the art model for image captioning. We observe that the cosine similarity scores for the prompt with “fireplace and coffee table” is higher for images 0–7 and goes down progressively as these objects are not visible in the scene for images 8–15. Conversely, We observe increasing similarity scores for the prompt with “hardwoord floors and white walls” as these objects are visible in the images 8–15 and not in the previous frames. This shows that user provided textual prompts can be used directly to guide behavior generation via computing distances with image embeddings. By simply comparing prompts with scene images, an agent can prioritize actions or viewpoints that match the user’s goals the most. Appendix C Navigation with ETL Specifcations We provide some qualitative results of planning with a PACT world model to satisfy ETL specifications. with L2 as the base distance metric. We picked various scenes in the habitat environment and passed target images from those environments. The start, goal and final states are highlighted in Figure 5 . The planner is able to achieve complex behaviors like sequential visits and either-or for a variety of environments. Figure 5 : Ending states after planning with a pretrained PACT world model in Habitat environment using L2 distance as the base metric. We present the start state as well as the goal images used for \varphi_{1} , \varphi_{2} , and \varphi_{3} in different scenes. The planner is able to succesfully achieve positive satisfaction scores for all ETL specifications. Appendix D Manipulation with ETL Specifications Figure 6 : Ending configurations of granules after planning with a horizon length 10 with the Dino World Model. We present the initial configuration as well as the target specification for \psi_{1} and \psi_{3} , and images used for avoidance in \psi_{2} and \psi_{3} . Planning was done over embedded images with L1 norm, L2 norm, and chamfer distances, with the final chamfer distance for success evaluation shown was computed against the ground truth target. We present the images used for ETL specifications in Figure 6 . We can observe that computing chamfer distances over the embedded images does not greatly reduce the ending chamfer distance from the starting goal in the observed space, while using L1 norm and L2 norm for the distance metrics is more effective to manipulating the granules to the target specification. Additionally, we note that there are strong similarities between the ending configurations for L2 \psi_{1} and L2 \psi_{3} , as well as CD \psi_{1} and CD \psi_{3} , while L1 \psi_{2} and L1 \psi_{3} share stronger similarities. ETL specifications here have assisted with avoid and avoid-reach planning for manipulation. L1 \psi_{2} specifically shows that even without a target goal to reach, ETL specifications assist with planning towards an unknown target. With optimization of planning for ETL specific specifications, manipulation planning can be improved from only planning with a single reach target.