| { |
| "File Number": "1017", |
| "Title": "Grounding Spatio-Temporal Language with Transformers", |
| "Limitation": "Limitations and further work. There are several limitations of our setup which open important opportunities for further work. First, we have used a synthetic language that could be extended: for instance with more spatial relations and relations that are more than binary. Another axis for further research is using low-level observations. In our setting, we wanted to disentangle the effect of structural biases on learning spatio-temporal language from the problem of extracting objects from low level observations [6, 21, 17, 30, 8] in a consistent manner over time (object permanence [15, 48]). Further steps in this direction are needed, and it could allow us to define richer attributes (related to material or texture) and richer temporal predicates (such as breaking, floating, etc). Finally, we use a synthetic language which is far from the richness of the natural language used by humans, but previous work has shown that natural language can be projected onto the subspace defined by synthetic language using the semantic embeddings learned by large language models [33]: this opens up be a fruitful avenue for further investigation. A further interesting avenue for future work would be to use the grounding provided by this reward function to allow autonomous language-conditioned agents to target their own goals [14]. In this sense, the truth function can be seen as a goal-achievement function or reward function. While generalization performance of our method is not perfect, the good overall f1 scores of our architectures imply that they can be directly transferred to a more complete RL setup to provide signal for policies conditioned on spatio-temporal language. Broader Impact. This work provides a step in the direction of building agents that better understand how language relates to the physical world; this can lead to personal robots that can better suit the needs of their owners because they can be interacted with using language. If successfully implemented, this technology can raise issues concerning automation of certain tasks resulting in loss of jobs for less-qualified workers. Links. The source code as well as the generated datasets can be found at https://github.com/ flowersteam/spatio-temporal-language-transformers\nAcknowledgments and Disclosure of Funding\nTristan Karch is partly funded by the French Ministère des Armées - Direction Générale de l’Armement. Laetitia Teodorescu is supported by Microsoft Research through its PhD Scholarship Programme. This work was performed using HPC resources from GENCI-IDRIS (Grant 2020-A0091011996)", |
| "Reviewer Comment": "Reviewer_1: Strength\nThe general research direction of learning grounded language specifically in tasks that are temporally extended is interesting and worthwhile.\nThe paper does give a good overview of more generally related literature such language learning in RL etc.\nAuthors do a good job at pointing out limitations of the work\nThe paper is written very clearly and is easy to follow.\nWeaknesses\nIt's not clear to me that the main results merit publication. I think it's somewhat obvious that object identity plays a role in spatio-temporal tasks. Not sure what other explanation would be possible.\nThe paper learns on a synthetic language that is very structured. The language imo doesn't have exceptions and the free usage that characterises Natural language. Also the grammatical complexity of the synthetic language is quite reduced. It's not clear how important those choices are for the performance of the system and it's performance in more natural settings.\nThe setting is quite a toy environment. While it's illuminating as an example of the different aspects of the system, I am not sure that the result is already very interesting or surprising in the sense of solving the task.\nQuestions/Comments\nThere is a huge are of AI that deals with models of spatio temporal and dynamic preposition reasoning and learning. Work by Tenbrink comes to mind. I think it's worthwhile to relate this paper to some of this work.\nSimilarly related work on compositional grounded language learning is missing in my view.\nTruth functions for language represent a specific class of semantics. There are other forms of language use that are probably more important in real life. Such as the discrimination etc. I wonder how this system would deal with that.\nI am sort of surprised that the representation for sentences and words is one hot. Since most models these days train or use embeddings, I am not sure why this choice is important here. Embeddings may also remove the constraint that the dictionary is fixed.\nLimitations And Societal Impact:\nYES\nNeeds Ethics Review: No\nTime Spent Reviewing: 2\n\nReviewer_2: Originality and Significance: - This paper is the first step towards learning spatio-temporal concepts for embodied language grounding. They learn a truth function that predicts if a given sentence is correct for time-extended observations of an agent interacting with a collection of objects. They set up a task for this problem and provide the first baselines for it.\nThey define three transformer architectures: Unstructured Transformer, Spatial-First Transformer, and Temporal-First Transformer, and used these different architectures to aggregate observations and language. They demonstrate that it helps to process temporally-extended observations and language tokens side-by-side, shown by the scores of unstructured transformer.\nQuality and Clarity: - The paper is clearly written, well-organized, and easy to follow.\nLimitations And Societal Impact:\nSome limitations are described in the Conclusions sections.\nNeeds Ethics Review: No\nTime Spent Reviewing: 6\n\nReviewer_3: The paper introduces a novel way of studying Embodied Language Grounding through the means of a newly introduced environment, data generating procedure and an evaluation pipeline. The authors perform evaluation with the aim assessing generalization capabilities of a set of architectures. It presents a novel angle and a new approach to Embodied Language Grounding.\nMy main problem with the submission is clarity. The wording of the paper is very complicated and it took multiple passes to understand what the authors meant. Due to this, I am not entirely sure what the final conclusions on the generalization capabilities are, as well as what the novelty of the approach is, compared to the grounding strategies detailed in the introduction.\nThe way operations (reduce in particular) were explain was unclear to me until I went through code/math. So I would suggest formalizing the transformations using mathematical notation/pseudocode instead of explaining by words.\nDue to this it is also difficult to assess significance of this work in a wider scope. Highlighting the main results in the conclusion and making parallels with related work mentioned in the introduction could help.\nSome minor comments:\nIt is not clear whether multiple linguistic observations (\nW\n) are generated for a single trace (\nS\n) in the dataset,\nanimal objects can move independently, but I was not able to find in the paper how that behavior is implemented,\nNegative sentences are part of the dataset, but it is not clear how those are generated. The paper references Supplementary Section 2.1 for more information, but I wasn't able to find information on that part of the logic.\nLimitations And Societal Impact:\nNeeds Ethics Review: No\nTime Spent Reviewing: 6\n\nReviewer_4: Significance and Originality: Spatio-temporal language has been less studied in language grounding. However, as argued by authors, it is an important aspect of human language, and has an significant value to embodied robotics research. The benchmark, though simple and basic, fills an important position and can inspire future attention in this direction.\nQuality: The benchmark and baseline models are not complicated, yet the main findings (i.e. SFT is bad at generalization due to object mixing, several linguistic generalizations are hard) make sense as general findings about the problem.\nClarity: The writing is neat, and the figures are clear.\nLimitations And Societal Impact:\nThe language may be too synthetic. Is the English paraphrase in Figure 1 anyway used? Also, for the task of binary classification, random negatives might be too easy to figure out. Maybe some evaluation should be done with hard negatives, e.g. containing same basic concepts and objects, but organized in a different structure. This tests if the model is just pattern recognizing simple concept units, or is really understanding the compositional language.\nWhy is binary classification an ideal task? Why not generating descriptions conditional on trajectories, which is harder and potentially more valuable?\nNeeds Ethics Review: No\nTime Spent Reviewing: 3", |
| "Limitations_refined": "Limitations and further work. There are several limitations of our setup which open important opportunities for further work. First, we have used a synthetic language that could be extended: for instance with more spatial relations and relations that are more than binary. Another axis for further research is using low-level observations. In our setting, we wanted to disentangle the effect of structural biases on learning spatio-temporal language from the problem of extracting objects from low level observations [6, 21, 17, 30, 8] in a consistent manner over time (object permanence [15, 48]). Further steps in this direction are needed, and it could allow us to define richer attributes (related to material or texture) and richer temporal predicates (such as breaking, floating, etc). Finally, we use a synthetic language which is far from the richness of the natural language used by humans, but previous work has shown that natural language can be projected onto the subspace defined by synthetic language using the semantic embeddings learned by large language models [33]: this opens up be a fruitful avenue for further investigation. A further interesting avenue for future work would be to use the grounding provided by this reward function to allow autonomous language-conditioned agents to target their own goals [14]. In this sense, the truth function can be seen as a goal-achievement function or reward function. While generalization performance of our method is not perfect, the good overall f1 scores of our architectures imply that they can be directly transferred to a more complete RL setup to provide signal for policies conditioned on spatio-temporal language.", |
| "abstractText": "Language is an interface to the outside world. In order for embodied agents to use it, language must be grounded in other, sensorimotor modalities. While there is an extended literature studying how machines can learn grounded language, the topic of how to learn spatio-temporal linguistic concepts is still largely uncharted. To make progress in this direction, we here introduce a novel spatio-temporal language grounding task where the goal is to learn the meaning of spatio-temporal descriptions of behavioral traces of an embodied agent. This is achieved by training a truth function that predicts if a description matches a given history of observations. The descriptions involve time-extended predicates in past and present tense as well as spatio-temporal references to objects in the scene. To study the role of architectural biases in this task, we train several models including multimodal Transformer architectures; the latter implement different attention computations between words and objects across space and time. We test models on two classes of generalization: 1) generalization to randomly held-out sentences; 2) generalization to grammar primitives. We observe that maintaining object identity in the attention computation of our Transformers is instrumental to achieving good performance on generalization overall, and that summarizing object traces in a single token has little influence on performance. We then discuss how this opens new perspectives for language-guided autonomous embodied agents. We also release our code under open-source license as well as pretrained models and datasets to encourage the wider community to build upon and extend our work in the future.", |
| "1 Introduction": "Building autonomous agents that learn to represent and use language is a long standing-goal in Artificial Intelligence [20, 39]. In developmental robotics [7], language is considered a cornerstone of development that enables embodied cognitive agents to learn more efficiently through social interactions with humans or through cooperation with other autonomous agents. It is also considered essential to develop complex sensorimotor skills, facilitating the representation of behaviors and actions.\nEmbodied Language Grounding [50] is the field that studies how agents can align language with their behaviors in order to extract the meaning of linguistic constructions. Early approaches in\n⇤Equal Contribution\n35th Conference on Neural Information Processing Systems (NeurIPS 2021).\ndevelopmental robotics studied how various machine learning techniques, ranging from neural networks [40, 45, 24] to non-negative matrix factorization [32], could enable the acquisition of grounded compositional language [42, 41]. This line of work was recently extended using techniques for Language conditioned Deep Reinforcement Learning [31]. Among these works we can distinguish mainly three language grounding strategies. The first one consists of directly grounding language in the behavior of agents by training goal-conditioned policies satisfying linguistic instructions [40, 45, 23, 22, 9]. The second aims at extracting the meaning of sentences from mental simulations (i.e. generative models) of possible sensorimotor configurations matching linguistic descriptions [32, 1, 12, 34]. The third strategy searches to learn the meaning of linguistic constructs in terms of outcomes that agents can observe in the environment. This is achieved by training a truth function that detects if descriptions provided by an expert match certain world configurations. This truth function can be obtained via Inverse Reinforcement Learning [49, 3] or by training a multi-modal binary classifier [14]. Previous work [14, 3] has shown that access to this reward is enough for sucessfully grounding language in instruction-following agents.\nWhile all the above-mentioned approaches consider language that describes immediate and instantaneous actions, we argue that it is also important for agents to grasp language expressing concepts that are relational and that span multiple time steps. We thus propose to study the grounding of new spatio-temporal concepts enabling agents to ground time extended predicates (Fig. 1a) with complex spatio-temporal references to objects (Fig. 1b) and understand both present and past tenses (Fig. 1c). To do so we choose the third strategy mentioned above, i.e. to train a truth function that predicts when descriptions match traces of experience. This choice is motivated by two important considerations. First, prior work showed that learning truth functions was key to foster generalization [3], enabling agents to efficiently self-train policies via goal imagination [14] and goal relabeling [12]. Hence the truth function is an important and self-contained component of larger learning systems. Second, this strategy allows to carefully control the distribution of experiences and descriptions perceived by the agent.\nThe Embodied Language Grounding problem has a relational structure. We understand the meaning of words by analyzing the relations they state in the world [18]. The relationality of spatial and temporal concepts has long been identified in the field of pragmatics [43, 44] (see Supplementary Section C for additional discussion). Furthermore actions themselves are relations between subjects and objects, and can be defined in terms of affordances of the agent [19]. We acknowledge this and provide the right relational inductive bias [5] to our architectures through the use of Transformers [46]. We propose a formalism unifying three variants of a multi-modal transformer inspired by Ding et al. [16] that implement different relational operations through the use of hierarchical attention. We measure the generalization capabilities of these architectures along three axes 1) generalization to new traces of experience; 2) generalization to randomly held out sentences; 3) generalization to grammar primitives, systematically held out from the training set as in Ruis et al. [37]. We observe that maintaining object identity in the attention computation of our Transformers is instrumental to achieving good performance on generalization overall. We also identify specific relational operations that are key to generalize on certain grammar primitives.\nContributions. This paper introduces:\n1. A new Embodied Language Grounding task focusing on spatio-temporal language; 2. A formalism unifying different relational architectures based on Transformers expressed as\na function of mapping and aggregation operations; 3. A systematic study of the generalization capabilities of these architectures and the identifica-\ntion of key components for their success on this task.", |
| "2.1 Problem Definition": "We consider the setting of an embodied agent behaving in an environment. This agent interacts with the surrounding objects over time, during an episode of fixed length (T ). Once this episode is over, an oracle provides exhaustive feedback in a synthetic language about everything that has happened. This language describes actions of the agent over the objects and includes spatial and temporal concepts. The spatial concepts are reference to an object through its spatial relation with others (Fig. 1a), and the temporal concepts are the past modality for the actions of the agent (Fig. 1c), past modality for spatial relations (Fig. 1b), and actions that unfold over time intervals. The histories of states of the agent’s body and of the objects over the episode as well as the associated sentences are recorded in a buffer B. From this setting, and echoing previous work on training agents from descriptions, we frame the Embodied Language Grounding problem as learning a parametrized truth function R✓ over couples of observations traces and sentences, tasked with predicting whether a given sentence W is true of a given episode history S or not. Formally, we aim to minimize:\nE(S,W )⇠B ⇥ L(R✓(S,W ), r(S,W )) ⇤\nwhere L denotes the cross-entropy loss and r denotes the ground truth boolean value for sentence W about trace S.", |
| "2.2 Temporal Playground": "In the absence of any dedicated dataset providing spatio-temporal descriptions from behavioral traces of an agent, we introduce Temporal Playground (Fig. 1) an environment coupled with a templated grammar designed to study spatio-temporal language grounding. The environment is a 2D world, with procedurally-generated scene containing N = 3 objects sampled from 32 different object types belonging to 5 categories. Each object has a continuous 2D position, a size, a continuous color code specified by a 3D vector in RGB space, a type specified by a one-hot vector, and a boolean unit specifying whether it is grasped. The size of the object feature vector (o) is |o| = 39. The agent’s body has its 2D position in the environment and its gripper state (grasping or non-grasping) as features (body feature vector (b) of size |b| = 3). In this environment, the agent can perform various actions over the length (T ) of an episode. Some of the objects (the animals) can move independently. Objects can also interact: if the agent brings food or water to an animal, it will grow in size; similarly, if water is brought to a plant, it will grow. At the end of an episode, a generative grammar generates\nsentences describing all the interactions that occurred. A complete specification of the environment as well as the BNF of the grammar can be found in Supplementary Section A.2.\nSynthetic language. To enable a controlled and systematic study of how different types of spatiotemporal linguistic meanings can be learned, we argue it is necessary to first conduct a systematic study with a controlled synthetic grammar. We thus consider a synthetic language with a vocabulary of size 53 and sentences with a maximum length of 8. This synthetic language facilitates the generation of descriptions matching behavioral traces of the agent. Moreover, it allows us to express four categories of concepts associated with specific words. Thus, the generated sentences consist in four conceptual types based on the words they involve:\n• Sentences involving basic concepts. This category of sentences talk about present-time events by referring to objects and their attributes. Sentences begin with the ’grasp’ token combined with any object. Objects can be named after their category (eg. ’animal’, ’thing’) or directly by their type (’dog’, ’door’, ’algae’, etc.). Finally, the color (’red’,’blue’,’green’) of objects can also be specified. • Sentences involving spatial concepts. This category of sentences additionally involve one-to-one spatial relations and one-to-all spatial relations to refer to objects. An object can be ’left of’ another object (reference is made in relation to a single other object), or can be the ’top most’ object (reference is made in relation with all other objects). Example sentences include ’grasp thing bottom of cat’ or ’grasp thing right most’. • Sentences involving temporal concepts. This category of sentences involves talking about temporally-extended predicates and the past tense, without any spatial relations. The two temporal predicates are denoted with the words ’grow’ and ’shake’. The truth value of these predicates can only be decided by looking at the temporal evolution of the object’s size and position respectively. A predicate is transposed at the past tense if the action it describes was true at some point in the past and is no longer true in the present, this is indicated by adding the modifier ’was’ before the predicate. Example sentences include ’was grasp red chameleon’ (indicating that the agent grasped the red chameleon and then released it) and\n’shake bush’; • Sentences involving spatio-temporal concepts. Finally, we consider the broad class of\nspatio-temporal sentences that combine spatial reference and temporal or past-tense predicates. These are sentences that involve both the spatial and temporal concepts defined above. Additionally, there is a case of where the spatial and the temporal aspects are entangled: past spatial reference. This happens when an object is referred to by its previous spatial relationship with another object. Consider the case of an animal that was at first on the bottom of a table, then moved on top, and then is grasped. In this case we could refer to this animal as something that was previously on the bottom of the table. We use the same ’was’ modifier as for the past tense predicates; and thus we would describe the action as ’Grasp thing was bottom of table’.", |
| "2.3 Architectures": "In this section we describe the architectures used as well as their inputs. Let one input sample to our model be I = (S,W ), where (Si,t)i,t represents the objects’ and body’s evolution, and (Wl)l represents the linguistic observations. S has a spatial (or entity) dimension indexed by i 2 [0..N ] and a temporal dimension indexed by t 2 [1..T ]; for any i, t, Si,t is a vector of observational features. Note that by convention, the trace (S0,t)t represents the body’s features, and the traces (Si,t)t,i>0 represents the other objects’ features. W is a 2-dimensional tensor indexed by the sequence l 2 [1..L]; for any l, Wl 2 RdW is a one-hot vector defining the word in the dictionary. The output to our models is a single scalar between 0 and 1 representing the probability that the sentence encoded by W is true in the observation trace S.\nTransformer Architectures. To systematically study the influence of architectural choices on language performance and generalization in our spatio-temporal grounded language context, we define a set of mapping and aggregation operations that allows us to succinctly describe different models in a unified framework. We define:\n• An aggregation operation based on a Transformer model, called reduce. reduce is a parametrized function that takes 3 inputs: a tensor, a dimension tuple D over which to reduce and a query tensor (that has to have the size of the reduced tensor). R layers of a Transformer are applied to the input-query concatenation and are then queried at the position corresponding to the query tokens. This produces an output reduced over the dimensions D. • A casting operation called cast. cast takes as input 2 tensors A and B and a dimension d. A is flattened, expanded so as to fit the tensor B in all dimensions except d, and concatenated along the d dimension. • A helper expand operation called expand that takes as arguments a tensor and an integer n and repeats the tensor n times.\nUsing those operations, we define three architectures: one with no particular bias (Unstructured Transformer, inspired by Ding et al. [16], or UT); one with a spatial-first structural bias – objects and words are aggregated along the spatial dimension first (Spatial-First Transformer or SFT); and one with a temporal-first structural bias – objects and words are aggregated along the temporal dimension first (Temporal-First Transformer, or TFT).\nBefore inputting the observations of bodies and objects S and the language W into any of the Transformer architectures, they are projected to a common dimension (see Supplementary Section B.2 for more details). A positional encoding [46] is then added along the time dimension for observations and along the sequence dimension for language; and finally a one-hot vector indicating whether the vector is observational or linguistic is appended at the end. This produces the modified observation-language tuple (Ŝ, Ŵ ). We let:\nUT(Ŝ, Ŵ ) := reduce(cast(Ŝ, Ŵ , 0), 0, q)\nSFT(Ŝ, Ŵ , q) := reduce(reduce(cast(Ŵ , Ŝ, 0), 0, expand(q, T )), 0, q)\nTFT(Ŝ, Ŵ , q) := reduce(reduce(cast(Ŵ , Ŝ, 1), 1, expand(q,N + 1)), 0, q)\nwhere T is the number of time steps, N is the number of objects and q is a learned query token. See Fig. 2 for an illustration of these architectures.\nNote that SFT and TFT are transpose versions of each other: SFT is performing aggregation over space first and then time, and the reverse is true for TFT. Additionally, we define a variant of each of these architectures where the words are aggregated before being related with the observations. We name these variants by appendding -WA (word-aggregation) to the name of the model (see Fig. 2 (b)).\nŴ reduce(Ŵ , 0, q)\nWe examine these variants to study the effect of letting word-tokens directly interact with object-token through the self-attention layers vs simply aggregating all language tokens in a single embedding and letting this vector condition the processing of observations. The latter is commonly done in the language-conditioned RL and language grounding literature [11, 3, 25, 37], using the language embedding in FiLM layers [36] for instance. Finding a significant effect here would encourage using architectures which allow direct interactions between the word tokens and the objects they refer to.\nLSTM Baselines. We also compare some LSTM-based baselines on this task; their architecture is described in more detail in Supplementary Section B.3.", |
| "2.4 Data Generation, Training and Testing Procedures": "We use a bot to generate the episodes we train on. The data collected consists of 56837 trajectories of T = 30 time steps. Among the traces some descriptions are less frequent than others but we make sure to have at least 50 traces representing each of the 2672 descriptions we consider. We record the observed episodes and sentences in a buffer, and when training a model we sample (S,W, r) tuples with one observation coupled with either a true sentence from the buffer or another false sentence generated from the grammar. More details about the data generation can be found in Supplementary Section B.1.\nFor each of the Transformer variants (6 models) and the LSTM baselines (2 models) we perform an hyper parameter search using 3 seeds in order to extract the best configuration. We extract the best condition for each model by measuring the mean F1 on a testing set made of uniformly sampled descriptions from each of the categories define in section 2.2. We use the F1 score because testing sets are imbalanced (the number of traces fulfilling each description is low). We then retrain best configurations over 10 seeds and report the mean and standard deviation (reported as solid black lines in Fig. 3 and Fig. 4) of the averaged F1 score computed on each set of sentences. When statistical significance is reported in the text, it is systematically computed using a two-tail Welch’s t-test with null hypothesis µ1 = µ2, at level ↵ = 0.05 [13]. Details about the training procedure and the hyper parameter search are provided in Supplementary Section B.4.", |
| "3.1 Generalization abilities of models on non-systematic split by categories of meaning": "In this experiment, we perform a study of generalization to new sentences from known observations. We divide our set of test sentences in four categories based on the categories of meanings listed in Section 2.2: Basic, Spatial, Spatio-Temporal and Temporal. We remove 15% of all possible sentences in each category from the train set and evaluate the F1 score on those sentences. The results are provided in Fig. 3.\nFirst, we notice that over all categories of meanings, all UT and TFT models, with or without wordaggregation, perform extremely well compared to the LSTM baselines, with all these four models achieving near-perfect test performance on the Basic sentences, with very little variability across the 10 seeds. We then notice that all SFT variants perform poorly on all test categories, in line or worse than the baselines. This is particularly visible on the spatio-temporal category, where the SFT models perform at 0.75± 0.020 whereas the baselines perform at 0.80± 0.019 . This suggests that across tasks, it is harmful to aggregate each scene plus the language information into a single vector. This may be due to the fact that objects lose their identity in this process, since information about all the objects becomes encoded in the same vector. This may make it difficult for the network to perform computations about the truth value of predicate on a single object.\nSecondly, we notice that the word-aggregation condition seems to have little effect on the performance on all three Transformer models. We only observe a significant effect for UT models on spatiotemporal concepts (p-value = 2.38e-10). This suggests that the meaning of sentences can be adequately summarised by a single vector; while maintaining separated representations for each object is important for achieving good performance it seems unnecessary to do the same for linguistic input. However we notice during our hyperparameter search that our -WA models are not very robust to hyperparameter choice, with bigger variants more sensitive to the learning rate.\nThirdly, we observe that for our best-performing models, the basic categories of meanings are the easiest, with a mean score of 1.0 ± 0.003 across all UT and TFT models, then the spatial ones at 0.96 ± 0.020, then the temporal ones at 0.96 ± 0.009, and finally the spatio-temporal ones at 0.89±0.027. This effectively suggests, as we hypothesised, that sentences containing spatial relations or temporal concepts are harder to ground than those who do not.\nKnown sentences with novel observations. We also examine the mean performance of our models for sentences in the training set but evaluated on a set of new observations: we generate a new set of rollouts on the environment, and only evaluate the model on sentences seen at train time (plots are reported in Supplementary Section D). We see the performance is slightly better in this case, especially for the LSTM baselines (0.82± 0.031 versus 0.79± 0.032), but the results are comparable in both cases, suggesting that the main difficulty for models lies in grounding spatio-temporal meanings and not in linguistic generalization for the type of generalization considered in this section.", |
| "3.2 Systematic generalization on withheld combinations of words": "In addition to the previous generalization studies, we perform an experiment in a harder linguistic generalization setting where we systematically remove binary combinations in our train set. This is in line with previous work on systematic generalization on deep learning models [29, 37, 26]. We create five test sets to examine the abilities of our models to generalize on binary combinations of words that have been systematically removed from the set of training sentences, but whose components have been seen before in other contexts. Our splits can be described by the set of forbidden combinations of words as:\n1. Forbidden object-attribute combinations. remove from the train set all sentences containing ’red cat’, ’blue door’ and ’green cactus’. This tests the ability of models to recombine known objects with known attributes; 2. Forbidden predicate-object combination. remove all sentences containing ’grow’ and all objects from the ’plant’ category. This tests the model’s ability to apply a known predicate to a known object in a new combination; 3. Forbidden one-to-one relation. remove all sentences containing ’right of’. Since the ’right’ token is already seen as-is in the context of one-to-all relations (’right most’), and other one-to-one relations are observed during training, this tests the abilities of models to recombine known directions with in a known template; 4. Forbidden past spatial relation. remove all sentences containing the contiguous tokens ’was left of’. This tests the abilities of models to transfer a known relation to the past modality, knowing other spatial relations in the past; 5. Forbidden past predicate. remove all sentences containing the contiguous tokens ’was grasp’. This tests the ability of the model to transfer a known predicate to the past modality, knowing that it has already been trained on other past-tense predicates.\nTo avoid retraining all models for each split, we create one single train set with all forbidden sentences removed and we test separately on all splits. We use the same hyperparameters for all models than in the previous experiments. The results are reported in Fig. 4.\nFirst we can notice that the good test scores obtained by the UT and TFT models on the previous sections are confirmed in on this experiment: they are the best performing models overall. We then notice that the first two splits, corresponding to new attribute-object and predicate-object combinations, are solved by the UT and TFT models, while the SFT models and the LSTM baselines struggle to achieve high scores. For the next 3 splits, which imply new spatial and temporal combinations, the scores overall drop significantly; we also observe much wider variability between seeds for each model, perhaps suggesting the various strategies adopted by the models to fit the train set have very different implications in terms of systematic generalization on spatial and temporal concepts. This very high variability between seeds on systematic generalization scores are reminiscent of the results obtained on the gSCAN benchmark [37].\nAdditionally, for split 3, which implies combining known tokens to form a new spatial relation, we observe a significant drop in generalization for the word-aggregation (WA) conditions, consistent across models (on average across seeds, 0.14 ± 0.093, 0.15 ± 0.234 and 0.20 ± 0.061 for UT, SFT and TFT resp. with p-values < 1e-04 for UT and SFT). This may be due to the fact that recombining any one-to-one relation with the known token right seen in the context of one-to-all relations requires a separate representation for each of the linguistic tokens. The same significant drop in performance for the WA condition can be observed for UT and TFT in split 4, which implies transferring a known spatial relation to the past.\nHowever, very surprisingly, for split 5 – which implies transposing the known predicate grasp to the past tense – we observe a very strong effect in the opposite direction: the WA condition seems to help generalizing to this unknown past predicate (from close-to-zero scores for all transformer models, the WA adds on average 0.71 ± 0.186, 0.45 ± 0.178 and 0.52 ± 0.183 points for UT, ST and TT resp. and p-values< 1e-05). This may be due to the fact that models without WA learn a direct and systematic relationship between the grasp token and grasped objects, as indicated in their features; this relation is not modulated by the addition of the was modifier as a prefix to the sentence. Models do not exhibit the same behavior on split 4, which has similar structure (transfer the relation left of to the past). This may be due to the lack of variability in instantaneous predicates (only the grasp predicate); whereas there are several spatial relations (4 one-to-one, 4 one-to-all).\nControl experiment. We evaluate previously trained models on a test set containing hard negative examples. The aim of this experiment is to ensure that models truly identify the compositional structure of our spatio-temporal concepts and do not simply perform unit concept recognition. We select negative pairs (trajectory, description) so that the trajectories contain either the object or the action described in the positive example. Results are provided in Fig. 5. We observe a slight decrease of performances on all 5 categories (drop is less than 5%), demonstrating that the models do in fact represent the meaning of the sentence and not simply the presence or absence of a particular object or predicate.", |
| "4 Related Work": "The idea that agents should learn to represent and ground language in their experience of the world has a long history in developmental robotics [50, 39, 40, 7] and was recently extended in the context of Language Conditioned Deep Reinforcement Learning [11, 22, 31, 3]. These recent approaches often consider navigation [10, 9] or object manipulation [1, 22] tasks and are always using instructive language. Meanings typically refer to instantaneous actions and rarely consider spatial reference to objects [35]. Although our environment includes object manipulations, we here tackle novel categories of meanings involving the grounding of spatio-temporal concepts such as the past modality or complex spatio-temporal reference to objects.\nWe evaluate our learning architectures on their ability to generalise to sets of descriptions that contain systematic differences with the training data so as to assess whether they correctly model grammar primitives. This procedure is similar to the gSCAN benchmark [37]. This kind of compositional generalisation is referred as ’systematicity’ by Hupkes et al. [26]. Environmental drivers that facilitate systematic generalization are also studied by Hill et al. [23]. Although Hupkes et al. [26] consider relational models in their work, they do not evaluate their performance on a Language Grounding task. Ruis et al. [37] consider an Embodied Language Grounding setup involving one form of timeextended meanings (adverbs), but do not consider the past modality and spatio-temporal reference to objects, and do not consider learning truth functions. Also, they do not consider learning architectures that process sequences of sensorimotor observations. To our knowledge, no previous work has conducted systematic generalization studies on an Embodied Language Grounding task involving spatio-temporal language with Transformers.\nThe idea that relational architectures are relevant models for Language Grounding has been previously explored in the context of Visual Reasoning. They were indeed successfully applied for spatial reasoning in the visual question answering task CLEVR [38]. With the recent publication of the video reasoning dataset CLEVRER [47], those models were extended and demonstrated abilities to reason over spatio-temporal concepts, correctly answering causal, predictive and counterfactual questions [16]. In contrast to our study, these works around CLEVRER do not aim to analyze spatio-temporal language and therefore do not consider time-extended predicates or spatio-temporal reference to objects in their language, and do not study properties of systematic generalization over sets of new sentences.", |
| "5 Discussion and Conclusion": "In this work, we have presented a first step towards learning Embodied Language Grounding of spatio-temporal concepts, framed as the problem of learning a truth function that can predict if a given sentence is true of temporally-extended observations of an agent interacting with a collection of objects. We have studied the impact of architectural choices on successful grounding of our artificial spatio-temporal language. We have modelled different possible choices for aggregation of\nobservations and language as hierarchical Transformer architectures. We have demonstrated that in our setting, it is beneficial to process temporally-extended observations and language tokens side-byside, as evidenced by the good score of our Unstructured Transformer variant. However, there seems to be only minimal effect on performance in aggregating temporal observations along the temporal dimension first – compared to processing all traces and the language in an unstructured manner – as long as object identity is preserved. This can inform architectural design in cases where longer episode lengths make it impossible to store all individual timesteps for each object; our experiments provide evidence that a temporal summary can be used in these cases. Our experiments with systematic dimensions of generalization provide mixed evidence for the influence of summarizing individual words into a single vector, showing it can be detrimental to generalize to novel word combinations but also can help prevent overgeneralization of a relation between a single word and a single object without considering the surrounding linguistic context.\nLimitations and further work. There are several limitations of our setup which open important opportunities for further work. First, we have used a synthetic language that could be extended: for instance with more spatial relations and relations that are more than binary. Another axis for further research is using low-level observations. In our setting, we wanted to disentangle the effect of structural biases on learning spatio-temporal language from the problem of extracting objects from low level observations [6, 21, 17, 30, 8] in a consistent manner over time (object permanence [15, 48]). Further steps in this direction are needed, and it could allow us to define richer attributes (related to material or texture) and richer temporal predicates (such as breaking, floating, etc). Finally, we use a synthetic language which is far from the richness of the natural language used by humans, but previous work has shown that natural language can be projected onto the subspace defined by synthetic language using the semantic embeddings learned by large language models [33]: this opens up be a fruitful avenue for further investigation.\nA further interesting avenue for future work would be to use the grounding provided by this reward function to allow autonomous language-conditioned agents to target their own goals [14]. In this sense, the truth function can be seen as a goal-achievement function or reward function. While generalization performance of our method is not perfect, the good overall f1 scores of our architectures imply that they can be directly transferred to a more complete RL setup to provide signal for policies conditioned on spatio-temporal language.\nBroader Impact. This work provides a step in the direction of building agents that better understand how language relates to the physical world; this can lead to personal robots that can better suit the needs of their owners because they can be interacted with using language. If successfully implemented, this technology can raise issues concerning automation of certain tasks resulting in loss of jobs for less-qualified workers.\nLinks. The source code as well as the generated datasets can be found at https://github.com/ flowersteam/spatio-temporal-language-transformers\nAcknowledgments and Disclosure of Funding\nTristan Karch is partly funded by the French Ministère des Armées - Direction Générale de l’Armement. Laetitia Teodorescu is supported by Microsoft Research through its PhD Scholarship Programme. This work was performed using HPC resources from GENCI-IDRIS (Grant 2020-A0091011996)", |
| "Reviewer Summary": "Reviewer_1: The paper presents a system for grounded, spatio-temporal, synthetic language learning. Spatio-temporal, here, means descriptions of observations that describe spatial layout (e.g. front) and temporal descriptions (e.g. past). The main results are 1) object identity is important for performance; 2) collabpsing object traces into a single token does not impact performance. The paper studies different transformer architectures for solving the task with a specific eye on generalization 1) to hold out sentences, 2) to grammatical primitives. The system is trained to learn a truth function that represents whether a given spatio-temporal statement is true.\n\nReviewer_2: This paper proposes a new spatio-temporal language grounding task where the goal is to learn the meaning of spatio-temporal descriptions of behavioral traces of an embodied agent. They do this by training a truth function that predicts whether the description matches the given history of observations or not. They study the impact of architectural choices for multimodal transformer and implement different attention computations between words and objects across space and time. They tested these models on generalization to held-out sentences and generalization to grammar primitives.\n\nReviewer_3: This paper introduces a new 2D environment that produces synthetic language describing spatio-temporal relations between objects within the environment. In the paper, the environment was used to generate interaction data using a bot. A synthetic language annotations describing the (spatio-temporal) interactions were generated.\nGiven the data, the authors proceed by formulating the Embodied Language Grounding problem as learning a parametrized truth function of the spatio-temporal interactions. The parameterized truth function takes in the history of observations as well as a sentence describing the interactions and produces a boolean value signaling whether the sentence is true or false. Ground truth values are obtained by the data generation procedure.\nThe authors introduce a number of Transformer models and baseline LSTM models and perform two types of evaluation:\nTesting the generalization capability of the models when the data is within the same distribution - by using % of the overall data as test data,\nTesting the out-of-distribution generalization - by removing certain interactions from the training set, but adding them to the test set.\nThe authors show that Unstructured Transformer variant, which processes temporally-extended observations and language tokes side-by-side achieves a reasonable performance on almost all of the tasks. This in turn demonstrates it's ability to generalize.\n\nReviewer_4: The work introduces a new embodied benchmark for grounding spatio-temporal language. The task is binary classification of whether a language description fits a temporal trajectory with multiple objects spanned spatially. Three transformer models are proposed: no aggregation (Unstructured Transformer, UT), spatial-first Transformer (SFT), and temporal-first Transformer (TFT). The models are evaluated on the benchmark with several generalization studies. The main finding is that maintaining object identity is instrumental to generalization, and aggregating an object trace in a single token has little influence." |
| } |