Manuscript Offprint
arXiv:2610.05768Relational Synthesis: Structure-Mediated Concatenative Synthesis for Foley and Retrieval-Augmented Audio Generation
ABSTRACT
We ask: given a retrieved source audio S and a separate reference audio R, can we synthesize novel audio Y out of this pair such that Y remains acoustically consistent with S, while not persistently copying segments of S or R? The first clause is a well-known goal in Foley audio production, and the second is a well-known issue in neural RAG when S and R are naively injected into neural generators. We show that both clauses can be addressed simultaneously using a method we coin relational synthesis, a variation of concatenative synthesis where target cost is replaced by a relational Gromov-like structural cost. Rather than imitating the content of R, relational synthesis exploits it from the “other side of the hill”: it transfers the temporal structure and directed amplitude motion of R to reorganize and concatenate the grains of S in a novel manner that protects S’s acoustic information. Our experiments show that relational synthesis integrates naturally with neural RAG and produces Foley audio that performs well on metrics measuring temporal agreement, acoustic fidelity, and leakage persistence, while maintaining distribution-level quality and text alignment.
Index Terms— relational synthesis, concatenative synthesis, Foley sound synthesis, retrieval-augmented generation, temporal control
1. INTRODUCTION
Foley synthesis must satisfy two coupled demands: what the sound is, for example event class, material, timbre, acoustic identity, and when and how it happens, for example onset/offset, rhythm, intensity, temporal structure. Temporal-event and vocal-imitation control make this split explicit [1, 2]. Retrieval-augmented audio generation (RAG) supplies complementary acoustic evidence that may be difficult to specify in text [3, 4, 5], but direct audio conditioning introduces a different risk: useful retrieved/reference material may persist as copied audio rather than merely guide generation [6].
Let S be the retrieved source, R an independent temporal reference, and Y the output. We seek
Here A denotes event-class acoustic identity, T temporal organization, and persistent local replication. Thus S should supply what the event sounds like, R should supply how it unfolds, and neither waveform should simply survive inside Y.
Concatenative synthesis is attractive because it recombines source material rather than parametrically injecting S or R directly [7], making the constraints comparatively easier to satisfy. The obvious candidate is pointwise target matching, but this creates a granularity dilemma. Fine grains retain enough degrees of freedom to follow , yet force local slices from potentially different acoustic spaces, for example environmental sound and vocal imitation, to match directly; differences in local dynamics and variance can make onset/offset and joins awkward, while larger reference structure is ignored. Longer segments preserve more source-native continuity and therefore favor , but remain local matches, sacrifice framewise temporal freedom as segments lengthen, and let longer contiguous spans of S survive, working against .
We therefore change how grains are matched. Relational synthesis keeps framewise source selection, but replaces reference-to-source pointwise matching with constraints on within-domain relations. Crucially, this makes the trade-off less rigid: recurrence structure from specifies non-local similarity and dissimilarity patterns, while relational amplitude structure of transfers the relative strength and direction of rises and falls without requiring source and reference envelopes to match in absolute value, leaving room for the solver to retain acoustic fidelity when selecting grains of . The same framewise search can therefore pursue and together while recombination continues to limit persistent copy-through, and . To solidly realize this synthesis principle, we formulate weighted recurrence structures with three models: contextual recurrence graph (CRG), factor oracle (FO), and variable-Markov oracle (VMO). We then specify the relational amplitude structure with directed amplitude motion (DAM), and solve the resulting grain-selection optimization with an annealed discrete solver.
with pooled MFCC/delta trajectories, a coarse normalized envelope, and log RMS, followed by standardization and normalization. This embedding consists of handcrafted acoustic features commonly used in acoustic modeling and can be readily replaced by, e.g., modern self-supervised acoustic embeddings. We leave this exploration to future work. Let denote the cosine similarity between the embeddings and . Each reference structure produces positive and negative edges , and weights , .
Audio examples are available at https://smoothken.github.io/relational_synth_demo/.

Fig. 1. Relational synthesis pipeline. Reference R specifies temporal relations while source S supplies selectable acoustic material. Method M reorganizes source grains into carrier , which conditions pretrained generator together with prompt P to produce neural output Y. In our experiments, R is a vocal imitation paired with target T of the same class as S.
All three recurrence structure specifiers, CRG, FO, and VMO, share
(1)
Here weights negative relations and is their similarity margin. We use and . Thus determines which times should relate, while the solver uses source self-similarity to realize those relations without a reference-source pointwise acoustic distance. This construction is Gromov-like in that incomparable observations are coupled through intra-domain relations rather than a pointwise ground metric [8]. To keep the present scope focused, we restrict the formulation to reference-side relational structure rather than jointly modeling and matching relational structures in both and , as in full-fledged Gromov-Wasserstein.
2.1. Contextual Recurrence Graph
The most direct relational structure is a contextual recurrence graph (CRG): repeated trajectories appear as off-diagonal paths in audio self-similarity matrices, motivating recurrence scores based on local diagonal context rather than isolated frame pairs [9, 10]. Let be cosine similarities among the reference embeddings. With contextual radius r and diagonal decay scale , the contextual recurrence significance is computed as a weighted average of similarities along the local diagonal.
After excluding , and , with and , where controls concentration on stronger edges. We set in experiments. Diagonal averaging asks not merely whether and are similar, but whether their surrounding contexts evolve similarly.
2.2. Factor-Oracle Graph
Factor oracles provide a sparse variable-length view of recurrence: the suffix link of timestep t points to a timestep recognizing the longest repeated suffix (LRS) ending at t [11, 12]. Intuitively, the length of such repeated context provides a natural measure of relational evidence.
Because FOs operate on symbolic sequences while our audio embeddings are continuous-valued, we quantize the reference embeddings using greedy exemplar clustering,

Fig. 2. Out-of-dataset example with shakuhachi source S and humpback-whale reference R. Raw source conditioning exhibits persistent source copying; pointwise concatenation reduces copying but poorly follows R's temporal envelope. FO relational synthesis instead transfers the reference pattern while reorganizing source grains. Red boxes mark corresponding envelope structure.
where denotes the current exemplar time of cluster . We use .
Once the clusters are formed, we construct the factor oracle on the symbolic sequence. Let denote the suffix-linked timestep and the LRS length at . When , FO specifies the sparse positive relation with
where is the 90th percentile of valid LRS lengths and robustly saturates very long repeats. Negative relations retain the contextual-recurrence construction of CRG. FO therefore concentrates positive relational pressure where the symbolic sequence provides evidence of non-trivial repeated context.
2.3. Variable-Markov-Oracle Graph
FO separates acoustic quantization from oracle construction. VMO instead determines acoustic clusters during oracle construction, jointly coupling symbolization with repeated-context discovery [13, 14]. Its clustering threshold , rather than being fixed beforehand as in FO, is selected via information rate optimization , where is information rate and is the resulting VMO symbol sequence at threshold . In practice, this is usually done via grid search with 0.05 increments and selecting the run with the best , rather than in a continuously differentiable manner with respect to .
To compare FO and VMO consistently, and in particular to isolate the effect of separate greedy clustering versus oracle-integrated clustering, we use the same definitions of , , , and as in FO. In other words, CRG establishes relations through fixed-length context; FO introduces variable-length context through the longest repeated suffix; and VMO further enriches variable-order context with clusters optimized during oracle construction, at the cost of greater algorithmic complexity. These are parallel relational models rather than successive refinements: VMO is not assumed to dominate FO or CRG.
2.4. Directed Amplitude Motion
A similarity graph can have a hard time distinguishing opposite amplitude motions, such as natural onset- and offset-like trajectories,
across time-scales. To complement these recurrence relations, we therefore exploit another prominent relational structure of the waveform: directed amplitude motion. Let the log-RMS coordinates be
In the experiments, . For each lag , define the log-amplitude change
and let denote the empirical CDF of such changes. Its quantile coordinate is
Intuitively, indicates an unusually strong rise in the reference at time , an unusually strong fall, and a typical motion.
Consequently, for the synthesis to inherit the relative amplitude motion of , we want the motion between and , evaluated in the source as
to closely follow the relative extremeness for all and . In other words, we want
Here is an insensitivity tolerance in percentile space. No reference/source amplitude is matched directly.
2.5. Annealed Discrete Solver
Eqs. (1) and (4) induce a nonlocal, loopy interaction graph rather than a fixed-order Markov chain, so standard Viterbi recursion does not apply. We optimize
where denotes the usual concatenative-synthesis transition regularization, including MFCC/delta-MFCC boundary compatibility and simple continuation, repetition, and reuse preferences. We use . The , , and ablations in the experiments section set .
We use eight parallel restarts and twelve random-order coordinate sweeps, adding Gumbel perturbations whose temperature decreases linearly from 0.08 to zero, and retain the lowest-cost solution. This nonlocal discrete search does not guarantee a global optimum.
3. EXPERIMENTS
3.1. Setup
We use ESC-50 [15] and ESC-50-Voice [2]. ESC-50-Voice contains vocal imitations, which we use as references , for 31 classes of environmental sounds in ESC-50, which we use as targets . The targets are used only for evaluation; for each , we pair it with one corresponding vocal imitation .
ESC-50 divides each class into five folds. Two Fold-1 targets per class are used to tune conditioning strength. All eight Fold-2 examples per class are then used as evaluation targets, while the source is sampled independently, without replacement, from the same class in Folds 3-5. Same-class source sampling serves as oracle retrieval, isolating synthesis from retrieval quality. The final evaluation therefore contains distinct triplets. All inputs are 5-s mono audio at 22.05 kHz. Let denote the prompt A realistic <class> environmental sound. TrackType: SFX, where <class> is replaced at runtime by the class label of .
We instantiate as the pretrained Stable Audio 3 Small-SFX [16], using eight generation steps and three generation seeds per triplet. On Fold-1, we sweep init-noise levels and select 0.50 for the final Fold-2 evaluation. No task-specific training or additional conditioning network is introduced. The RAG conditions are: None, using text prompt only; Ref, directly using ; Mix, using equal-RMS ; Raw, directly using ; Shuffle, using block-shuffled ; Pointwise-SR, using MFCC-nearest-grain-based pointwise concatenative synthesis; and CRG/FO/VMO, using relational synthesis. Unless marked with the nodam subscript, DAM is enabled for all relational-synthesis conditions.
3.2. Metrics
Let denote the final neural output of the pipeline. Recall that we started with , the temporal constraints; , the acoustic constraints; and , the leakage/copying constraints. For the acoustic constraint, we evaluate against rather than : by setup, has the same class as , while chasing may reward persistent copying. Since the final stage is also a text-to-audio generator, we additionally report standard prompt-alignment and distributional-quality checks.
| Metric | Computation |
|---|---|
| Smoothed RMS-envelope L1 [1] | |
| Onset F1 (50 ms) | |
| Log-mel cosine [6] | |
| CLAP audio cosine [17] | |
| PANN KL [18] | |
| Best-match 2-s log-mel cosine | |
| CLAP audio cosine | |
| Prompt: | CLAP audio-text cosine |
| Distribution: | PANN Inception Score [18] |
| Distribution: | VGGish/CLAP/PANN Fréchet distance [19] |
Leakage similarities are diagnostic rather than monotone objectives: high similarity is undesirable, but minimizing similarity itself is not the goal. Pair-level metrics first average the three neural seeds for each triplet before aggregation.
Table 1. Stable Audio 3 results on 248 evaluation triplets. Pair-level metrics first average the three neural seeds of each triplet; , IS, and are set-level. Bold marks the best non-shortcut source-carrier result. Underlining marks a numerical winner that is principally a shortcut or control bound. marks persistence of a directly exposed waveform. Arrows indicate the favorable direction for each evaluation role; Leakage metrics are diagnostic rather than minimization objectives, so numerical winners are not highlighted.
| Condition | Temporal | Acoustic | Leakage | Prompt | Distribution | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| None | .086 | .094 | .354 | .305 | .913 | .540 | 1.806 | .542 | .167 | .177 | .118 | .246 | 8.83 | 8.82/.413/52.04 | ||
| Direct reference-audio controls | ||||||||||||||||
| Ref R | .083 | .059 | .402 | .421 | .939 | .524 | 2.196 | .511 | .170 | .243 | .365 | .227 | 7.97 | 11.24/.405/56.74 | ||
| Mix S + R | .080 | .084 | .395 | .347 | .927 | .562 | 1.727 | .590 | .303 | .198 | .196 | .240 | 9.21 | 7.49/.354/47.31 | ||
| Source-carrier conditions – central comparison | ||||||||||||||||
| Raw S | .088 | .095 | .380 | .322 | .923 | .552 | 1.865 | .596 | .353 | .190 | .137 | .234 | 9.34 | 7.53/.354/47.34 | ||
| Shuffle | .091 | .098 | .378 | .319 | .921 | .547 | 1.733 | .588 | .299 | .196 | .137 | .224 | 8.49 | 6.70/.371/46.65 | ||
| Pointwise-SR | .095 | .101 | .389 | .335 | .921 | .523 | 2.011 | .552 | .286 | .191 | .177 | .214 | 8.47 | 6.79/.372/47.22 | ||
| CRG (ours) | .096 | .097 | .394 | .343 | .921 | .515 | 2.110 | .545 | .307 | .187 | .151 | .225 | 8.63 | 6.40/.389/47.35 | ||
| FO (ours) | .087 | .086 | .379 | .343 | .925 | .551 | 1.737 | .592 | .299 | .195 | .144 | .237 | 8.70 | 7.29/.365/45.66 | ||
| VMO (ours) | .087 | .087 | .389 | .341 | .926 | .543 | 1.764 | .584 | .300 | .194 | .145 | .233 | 8.80 | 7.10/.368/46.54 | ||
Table 2. DAM ablation on the same 248 triplets. Each nodam condition removes Eq. (4). All other recurrence structure is unchanged. Bold marks the favorable value within each matched pair. denotes VGGish/CLAP/PANN Fréchet distance.
| Condition | Temporal | Acoustic | Leakage | Prompt | Distribution | |||||
|---|---|---|---|---|---|---|---|---|---|---|
| .110 | .328 | .491 | .310 | .141 | .216 | 2.197 | 8.23 | 6.62/.410/50.14 | ||
| CRG | .097 | .343 | .515 | .307 | .151 | .225 | 2.110 | 8.63 | 6.40/.389/47.35 | |
| .096 | .320 | .548 | .306 | .142 | .233 | 1.821 | 8.82 | 7.18/.362/46.59 | ||
| FO | .086 | .343 | .551 | .299 | .144 | .237 | 1.737 | 8.70 | 7.29/.365/45.66 | |
| .096 | .324 | .546 | .294 | .139 | .230 | 1.770 | 9.08 | 6.79/.359/46.49 | ||
| VMO | .087 | .341 | .543 | .300 | .145 | .233 | 1.764 | 8.80 | 7.10/.368/46.54 | |
3.3. Results and Discussion
We will read the results in the same order as the evaluation logic.
-
Temporal transfer : The central question is whether use of relational information from can improve temporal organization when the generator still receives acoustic material only from . Relative to the source-carrier controls, all three relational constructions increase reference-onset agreement: for Raw/Shuffle/Pointwise-SR, compared with .343/.343/.341 for CRG/FO/VMO. FO gives the clearest complementary Event-L1 result: relative to Raw, decreases from .095 to .086 while rises from .322 to .343. Both changes are significant (paired 95% CIs, FO-Raw: , ). The direct-reference controls confirm that still stronger timing can be obtained when itself is exposed to the generator (, ), but those conditions have access to different acoustic information and serve as reference-access controls rather than the central source-carrier comparison.
-
Acoustic-fidelity : The useful temporal gain should preserve target-class acoustic fidelity carried by and requested by . FO is the most stable relational realization on this axis: Raw FO essentially preserves target CLAP (.552 .551), slightly raises target log-mel similarity (.923 .925), preserves prompt CLAP (.234 .237), and improves PANN KL (1.865 1.737). Thus the timing gain does not require moving the generated event identity toward the vocal reference.
-
Persistent Leakage , : The strongest evidence for the structural bottleneck appears when timing and persistence are read together. FO reduces local source persistence relative to Raw, (paired CI ), while its ref- erence persistence remains near source-carrier controls: and for FO, compared with .190/.137 for Raw and .196/.137 for Shuffle. Direct Ref, by contrast, undesirably reaches . Hence improved reference timing does not require passing the reference waveform through the generator, while the source is also not simply replayed locally.
-
Prompt and distributional bounds. FO preserves the pretrained generator's semantic operating point within the source-carrier comparison: prompt CLAP is essentially unchanged from Raw (.234 → .237). Its VGGish FAD improves from 7.53 to 7.29, PANN Fréchet distance from 47.34 to 45.66, and PANN KL from 1.865 to 1.737; CLAP FAD changes moderately from .354 to .365, and IS from 9.34 to 8.70. These set-level quantities are therefore treated as bounds rather than the primary optimization target: the desired temporal, acoustic, and leakage behavior is not purchased by a large collapse in semantic or distributional behavior.
-
Directed-amplitude-motion mechanism ablation. The DAM ablation is deliberately internal to each relational structure. Enabling DAM changes from .110 → .097, .096 → .086, and .096 → .087 for CRG, FO, and VMO, while changes from .328 → .343, .320 → .343, and .324 → .341. All six temporal deltas have paired 95% CIs excluding zero. Acoustic and prompt alignment are generally preserved or improved across the matched pairs, whereas leakage changes are comparatively small and the set-level effects are mixed. This is consistent with the intended reduction of the acoustic-temporal trade-off: DAM strengthens temporal transfer without forcing cross-domain envelope values to coincide, while the acoustic fidelity measures improve rather than being traded away. Its benefit is therefore complementary to recurrence structure.
4. REFERENCES
[1] Y. Chung, J. Lee, and J. Nam, “T-FOLEY: A Controllable Waveform-Domain Diffusion Model for Temporal-Event-Guided Foley Sound Synthesis,” in Proc. IEEE ICASSP, pp. 6820–6824, 2024, doi: 10.1109/ICASSP48485.2024.10447380.
[2] Y. Okamoto, K. Imoto, S. Takamichi, R. Nagase, T. Fukumori, and Y. Yamashita, “Environmental Sound Synthesis from Vocal Imitations and Sound Event Labels,” in Proc. IEEE ICASSP, pp. 411–415, 2024, doi: 10.1109/ICASSP48485.2024.10446906.
[3] Y. Yuan, H. Liu, X. Liu, Q. Huang, M. D. Plumbley, and W. Wang, “Retrieval-Augmented Text-to-Audio Generation,” in Proc. IEEE ICASSP, pp. 581–585, 2024, doi: 10.1109/ICASSP48485.2024.10447898.
[4] M. Yang, B. Shi, M. Le, W.-N. Hsu, and A. Tjandra, “Audiobox TTA-RAG: Improving Zero-Shot and Few-Shot Text-To-Audio with Retrieval-Augmented Generation,” in Proc. Interspeech, pp. 1243–1247, 2025, doi: 10.21437/Interspeech.2025-1032.
[5] P. Fang, Y. He, Y. Xing, Q. Chen, S.-N. Lim, and H. Yang, "AC-Foley: Reference-Audio-Guided Video-to-Audio Synthesis with Acoustic Transfer," in Proc. ICLR, 2026.
[6] D. Bralios, G. Wichern, F. G. Germain, Z. Pan, S. Khurana, C. Hori, and J. Le Roux, “Generation or Replication: Auscultating Audio Latent Diffusion Models,” in Proc. IEEE ICASSP, pp. 1156–1160, 2024, doi: 10.1109/ICASSP48485.2024.10447705.
[7] D. Schwarz, “Corpus-Based Concatenative Synthesis,” IEEE Signal Process. Mag., vol. 24, no. 2, pp. 92–104, 2007, doi: 10.1109/MSP.2007.323274.
[8] S. Cohen, G. Luise, A. Terenin, B. Amos, and M. P. Deisenroth, “Aligning Time Series on Incomparable Spaces,” in Proc. AISTATS, PMLR 130, pp. 1036–1044, 2021.
[9] M. Müller and F. Kurth, “Enhancing Similarity Matrices for Music Audio Analysis,” in Proc. IEEE ICASSP, pp. 437–440, 2006, doi: 10.1109/ICASSP.2006.1661199.
[10] J. Foote and M. Cooper, “Visualizing Musical Structure and Rhythm via Self-Similarity,” in Proc. ICMC, pp. 419–422, 2001.
[11] S. Dubnov, G. Assayag, and A. Cont, “Audio Oracle: A New Algorithm for Fast Learning of Audio Structures,” in Proc. ICMC, pp. 224–227, 2007.
[12] A. Cont, S. Dubnov, and G. Assayag, “Guidage: A Fast Audio Query Guided Assemblage,” in Proc. ICMC, 2007.
[13] C.-i. Wang and S. Dubnov, “Guided Music Synthesis with Variable Markov Oracle,” in Proc. 3rd Int. Workshop on Musical Metacreation (MUME), AAAI AIIDE, pp. 55–62, 2014, doi: 10.1609/aiide.v10i5.12767.
[14] C.-i. Wang and S. Dubnov, “Pattern Discovery from Audio Recordings by Variable Markov Oracle: A Music Information Dynamics Approach,” in Proc. IEEE ICASSP, pp. 683–687, 2015, doi: 10.1109/ICASSP.2015.7178056.
[15] K. J. Piczak, “ESC: Dataset for Environmental Sound Classification,” in Proc. ACM Multimedia, pp. 1015–1018, 2015, doi: 10.1145/2733373.2806390.
[16] Z. Evans, J. D. Parker, M. Rice, C. J. Carr, Z. Zukowski, J. Taylor, and J. Pons, “Stable Audio 3,” arXiv:2605.17991, 2026.
[17] Y. Wu, K. Chen, T. Zhang, Y. Hui, T. Berg-Kirkpatrick, and S. Dubnov, “Large-Scale Contrastive Language-Audio Pretraining with Feature Fusion and Keyword-to-Caption Augmentation,” in Proc. IEEE ICASSP, pp. 1–5, 2023, doi: 10.1109/ICASSP49357.2023.10095969.
[18] Q. Kong, Y. Cao, T. Iqbal, Y. Wang, W. Wang, and M. D. Plumbley, “PANNs: Large-Scale Pretrained Audio Neural Networks for Audio Pattern Recognition,” IEEE/ACM Trans. Audio, Speech, Lang. Process., vol. 28, pp. 2880–2894, 2020, doi: 10.1109/TASLP.2020.3030497.
[19] K. Kilgour, M. Zuluaga, D. Roblek, and M. Sharifi, “Fréchet Audio Distance: A Reference-Free Metric for Evaluating Music Enhancement Algorithms,” in Proc. Interspeech, pp. 2350–2354, 2019, doi: 10.21437/Interspeech.2019-2219.