arXiv:2611.01147cs.SDOct 2026

Manuscript Offprint

arXiv:2611.01147

Rel2Traj: Inter-Source Relation-Aware Trajectory Generation for Text-To-Spatial-Audio

Yihang Bao, Lingfeng Yao, Shengyao Wang, Junpei Xun, Miao Pan, Jiang Liu

ABSTRACT

"A car drives from front left to front right while a dog follows it." Such a description specifies no particular trajectory, yet imposes a constraint on the joint motion of both sources that must hold at every frame. Existing text-to-spatial-audio methods can position and move each sound source according to its description, but none of them ensures or verifies that such inter-source relations hold. We therefore propose Rel2Traj, which parses the description into sources, relations, and anchors, jointly generates the trajectories of all sources using a relation-conditioned diffusion model, and finally renders sounds from a pretrained text-to-audio model along these trajectories to produce binaural audio. For training and evaluation, we construct a synthetic dataset from a controlled language of source motions and inter-source relations. A single frame-wise relational geometry defines both our evaluation metric, the Relation Satisfaction Rate (RSR), and an auxiliary training loss. On motion-relation combinations held out from training, Rel2Traj maintains all relation types, whereas every baseline fails on at least one. A listening test further confirms that listeners recognize the described relations. To our knowledge, this is the first text-to-spatial-audio work to model relations among moving sources as explicit geometric constraints.

Index Terms— spatial audio generation, inter-source relations, text-to-trajectory generation, diffusion model, binaural audio

1. INTRODUCTION

In recent years, rapid advances in generative audio models and multimodal learning have led to the development of spatial audio generation methods conditioned on different modalities. Visually guided methods generate or spatialize spatial audio from 360° videos or images [1, 2, 3]. Existing text-driven methods instead extract spatial information from descriptions of a single source's static position or motion [4, 5], or the absolute directions of individual sources in a multi-source scene [6]. However, a sound scene often contains several interrelated sources moving simultaneously. Descriptions

of such scenes mainly specify how each source moves relative to the listener and the spatial relations among the sources. Such a relation constrains the joint motion of multiple sources at each frame while allowing many valid combinations of trajectories. A generator must therefore produce valid sets of trajectories rather than a single trajectory. It must also be possible to verify at each frame whether the generated trajectories satisfy the relation.

Existing text-to-spatial-audio methods fall into two families, and both give the spatial information as the absolute direction of each source. The first is end-to-end generation, which uses a diffusion model to directly produce spatial audio with a static source [4, 7] or with a source moving in a straight line between two points [6, 5]. In these methods, spatial properties are encoded only in the generated audio and can only be assessed after generation. Such assessment is unreliable for multiple or moving sources [6]. The second is the cascaded approach, which parses the text into an explicit spatial representation for each source, then generates and renders each sound separately. TTMBA [8] and STASE [9] parse static coordinates, while Text2Move [10] generates a trajectory, although only for a single source. Positions are thus explicit in cascaded methods, but the relations that sources should maintain with one another are reflected neither in the text nor in the pipeline. Such relations have so far appeared only in auditory understanding [11] and in monaural spatialization [12], and only for static sources. None of these methods therefore models the relations among moving sources.

We propose Rel2Traj, a framework for multi-source spatial audio generation conditioned on inter-source relations. Our contributions are threefold. (i) Relation-aware joint trajectory generation. We fine-tune a large language model to parse the description into sources, relations, and per-source anchors. A diffusion model conditioned on the resulting relation graph and anchors generates all trajectories at once, with cross-source attention coordinating them. (ii) Differentiable and verifiable relation geometry. We express each relation as a per-frame signed margin that defines our evaluation metric, the Relation Satisfaction Rate (RSR), and doubles as an auxiliary training loss. (iii) A controlled dataset with a compositional split and dual validation. We synthesize a binaural

Figure

Fig. 1. Rel2Traj: (1) text parsing into a relation graph and per-source anchors, (2) joint trajectory generation by a relation-conditioned keyframe diffusion model, and (3) binaural rendering and evaluation. The frame-wise relational margins (bottom) define the RSR metric and also serve as an auxiliary loss and optional guidance.

dataset from a controlled language of source motions and relations, hold out motion-relation combinations from training, and validate the results both geometrically and perceptually. To the best of our knowledge, this is the first work in text-to-spatial-audio generation that models inter-source relations as explicit geometric constraints.