Position-Based Flocking for Persistent Alignment without Velocity Sensing Hossein B. Jond, Veli Bakırcıoğlu, Logan E. Beaver, Nejat Tükenmez, Adel Akbarimajd, Martin Saska Abstract Coordinated collective motion in bird flocks and fish schools inspires algorithms for cohesive swarm robotics. This paper presents a position-based flocking model that achieves persistent velocity alignment without velocity sensing. By approximating relative velocity differences from changes between current and initial relative positions and incorporating a time- and density-dependent alignment gain with a non-zero minimum threshold to maintain persistent alignment, the model sustains coherent collective motion over extended periods. Simulations with a collective of 50 agents demonstrate that the position-based flocking model attains faster and more sustained directional alignment and results in more compact formations than a velocity-alignment-based baseline. This position-based flocking model is particularly well-suited for real-world robotic swarms, where velocity measurements are unreliable, noisy, or unavailable. Experimental results using a team of nine real wheeled mobile robots are also presented. Keywords: Position-based flocking, Persistent alignment, Collective motion, Swarm robotics, Velocity-free alignment, Bio-inspired coordination 1 Introduction Collective behaviors, such as flocking behavior, observed in natural systems such as bird flocks, fish schools, and insect swarms, represent a fascinating example of emergent collective dynamics [ 10 ] . These systems exhibit coordinated motion, driven by local interactions among individuals. Understanding and replicating such bio-inspired behaviors in artificial systems has significant implications for robotics, autonomous vehicle coordination, and swarm intelligence [ 14 ] . Coordinated movements in bird flocks and fish schools emerge from local social interactions, yet their developmental origins, neurobiological basis, and the emergence of group-level dynamics remain a core challenge in collective behavior research. Traditional models assume animals follow simple behavioral rules. Reynolds’ Boids [ 10 ] , introduced three core behavioral rules: cohesion (staying close to neighbors), separation (avoiding collisions), and alignment (matching velocities). These principles have inspired numerous mathematical and computational models to capture the dynamics of collective motion [ 13 , 2 , 9 ] . The Vicsek model, for instance, focuses on alignment through local velocity averaging, demonstrating phase transitions from disordered to ordered motion. However, such models often rely on velocity information, which is difficult to measure directly in robotic systems or requires error-prone estimation due to sensor noise [ 12 , 15 ] . Thus, collective motion models based solely on position data are both practical and significant for robust coordination. Recent empirical studies challenge the necessity of explicit velocity alignment in collective biological motion. [ 7 ] demonstrate that swarms achieve high polarity through mutual anticipation, where individuals adjust directions based on anticipated neighbor moves without direct velocity matching. [ 17 ] show that birds regulate heading and acceleration through perceived motion salience of neighbors, rather than explicit alignment. [ 11 ] proposes that collective motion spontaneously emerges from neurobiological navigational circuits when individuals use allocentric bearings to neighbors, without requiring dedicated alignment rules. Similarly, [ 19 ] find that micro glassfish develop visual postural alignment and positional aggregation solely through recognition of conspecific shape and posture. These bio-inspired mechanisms highlight that coherent motion arises from alternative interactions beyond traditional alignment rules, such as persistent spatial relationships. These findings collectively suggest that spatial relationships and anticipatory positional cues may be more fundamental than explicit velocity matching in biological collectives. Velocity estimation is biologically implausible, whereas relative displacement over time is naturally available through vision. Position-based flocking models circumvent the need for explicit velocity measurements by using relative positions to define interaction rules [ 20 ] . These models are particularly well-suited to systems with readily available position data (e.g., GPS-equipped drones or sensor networks) [ 14 ] , and are widely adopted in robotic multi-agent systems due to their simplicity, robustness, computational efficiency, scalability, and fault tolerance. Alignment—essential for achieving velocity consensus and collective motion coherence—can also be effectively achieved from position. By approximating velocity differences from sampled or relative position data, these rules maintain robustness in noisy environments and significantly reduce communication requirements. For second-order (inertial) agents, position-based protocols have been proven capable of achieving consensus even without direct velocity sensing or communication [ 6 , 18 ] , and they remain effective under time-varying topologies as long as the network remains strongly connected [ 3 ] . This paper builds on the velocity-alignment-based flocking scheme of [ 4 ] and elaborates on the position-based flocking model introduced in [ 5 ] . By approximating relative velocity differences using initial and current positions and incorporating a non-vanishing threshold on the decaying alignment gain, the model achieves persistent emergent alignment and induces self-organized rigidity, leading to compact and stable formations. This weak memory effect—realized solely through the initial relative position history—provides a practical and biologically plausible alternative to instantaneous velocity sensing. To assess performance, we define a cosine-based alignment metric and track it alongside inter-agent separation, providing interpretable indicators of flocking quality. An ablation study (with vs. without the threshold) qualitatively demonstrates the critical role of the proposed threshold in sustaining coherent alignment. The resulting approach is particularly valuable for communication- and sensing-constrained swarm robotics that rely on relative position measurements (e.g., via UWB or LiDAR) and require bandwidth-efficient coordination. We demonstrate its effectiveness through simulations and experiments with real wheeled mobile robots. An earlier version of this research was presented in [ 5 ] . The present paper extends that version by (1) making the bio-inspiration underlying the position-based alignment more explicit, (2) providing a deeper biological interpretation of the results, (3) strengthening the relevance to robotics applications, and (4) including experimental validation using a team of real wheeled mobile robots. This paper is organized as follows. Section 2 presents the baseline velocity-alignment model. Section 3 introduces the position-based formulation. Section 4 provides simulation and comparative analysis. Section 5 reports experimental results with real robots. Section 6 concludes the paper. 2 Flocking from Position and Velocity States The baseline velocity-alignment-based flocking model, adapted from [ 4 ] , governs agent interactions from position and velocity states. The model is described as follows. Consider n\geq 2 agents, indexed by \mathcal{N}=\{1,\dots,n\} in \mathbb{R}^{d},d=\{2,3\} . Each agent i\in\mathcal{N} has position \mathbf{p}_{i} , velocity \mathbf{v}_{i} , and acceleration/control \mathbf{u}_{i} in \mathbb{R}^{d} . The agents move freely, with dynamics given by \displaystyle\dot{\mathbf{p}}_{i}=\mathbf{v}_{i},\quad\dot{\mathbf{v}}_{i}=\mathbf{u}_{i}, (1) for i\in\mathcal{N} . The control input for agent i\in\mathcal{N} is \mathbf{u}_{i}=\sum_{j\in\mathcal{N}_{i}}\psi(\|\mathbf{p}_{j}-\mathbf{p}_{i}\|)(\mathbf{p}_{j}-\mathbf{p}_{i})+\sum_{j\in\mathcal{N}_{i}}(\mathbf{v}_{j}-\mathbf{v}_{i}), (2) where the first term is an attractive-repulsive term to ensure cohesion-separation, and the second term enforces velocity alignment. The cohesion-separation gain is given by \displaystyle\psi(\|\mathbf{p}_{j}-\mathbf{p}_{i}\|)=1-\frac{\delta_{i}|\mathcal{N}_{i}|}{\|\mathbf{p}_{j}-\mathbf{p}_{i}\|},\quad\|\mathbf{p}_{j}-\mathbf{p}_{i}\|>0, where \delta_{i}\geq 0 is the (desired/equilibrium) distance scale and |\mathcal{N}_{i}| denotes the neighborhood size. The model achieves balanced cohesion–separation through the distance-dependent gain \psi and velocity consensus through the implicit gain (equal to one). Specifically, \psi<0 (repulsive) when \|\mathbf{p}_{j}-\mathbf{p}_{i}\|<\delta_{i}|\mathcal{N}_{i}| ensures short-range repulsion; \psi>0 (attractive) when \|\mathbf{p}_{j}-\mathbf{p}_{i}\|>\delta_{i}|\mathcal{N}_{i}| promotes long-range attraction/cohesion; and \psi=0 at \|\mathbf{p}_{j}-\mathbf{p}_{i}\|=\delta_{i}|\mathcal{N}_{i}| marks equilibrium spacing. The distance scale \delta_{i} directly tunes formation density: smaller \delta_{i} yields compact flocks via shorter equilibrium spacing, while larger \delta_{i} produces looser flocks. Short-range repulsion inherently prevents collisions for any finite \delta_{i}>0 . The neighborhood size |\mathcal{N}_{i}| scales the equilibrium spacing, pushing neighbors outward as connectivity increases and preventing cohesion forces from collapsing densely connected agents. Together, r_{i} and |\mathcal{N}_{i}| jointly regulate the spatial structure of agent interactions, allowing the equilibrium configuration to adapt to the local topology of the interaction graph. Velocity and control inputs are obtained via smooth saturation as \mathbf{x}_{i}=x_{i}^{\max}\tanh\left(\frac{\|\mathbf{x}_{i}^{\text{cmd}}\|}{x_{i}^{\max}}\right)\frac{\mathbf{x}_{i}^{\text{cmd}}}{\|\mathbf{x}_{i}^{\text{cmd}}\|}, (3) where \mathbf{x}_{i}^{\text{cmd}}\in\{\mathbf{v}_{i}^{\text{cmd}},\mathbf{u}_{i}^{\text{cmd}}\} is the commanded (unsaturated) input, \mathbf{x}_{i}\in\{\mathbf{v}_{i},\mathbf{u}_{i}\} is the applied (saturated) input and x_{i}^{\max}\in\{v_{i}^{\max},u_{i}^{\max}\} is the corresponding maximum magnitude (with the convention \mathbf{0}/\|\mathbf{0}\|=\mathbf{0} ). 3 Position-Based Flocking At t\to\infty , \sum_{j\in\mathcal{N}_{i}}(\mathbf{v}_{j}-\mathbf{v}_{i})\to 0 , implying velocity alignment and stable relative positions, since \frac{d}{dt}\sum_{j\in\mathcal{N}_{i}}(\mathbf{p}_{j}-\mathbf{p}_{i})\to 0 . Using the definition of the derivative, the velocity alignment term can be rewritten as \sum_{j\in\mathcal{N}_{i}}(\mathbf{v}_{j}-\mathbf{v}_{i})=\frac{d}{dt}\left(\sum_{j\in\mathcal{N}_{i}}(\mathbf{p}_{j}-\mathbf{p}_{i})\right). For a purely position-based rule, we approximate the relative velocity by the long-term change in relative position \mathbf{v}_{j}-\mathbf{v}_{i}\approx\frac{(\mathbf{p}_{j}-\mathbf{p}_{i})-(\mathbf{p}_{j}(0)-\mathbf{p}_{i}(0))}{t},\quad t>0. Substituting yields the position-based approximation of the velocity alignment term \displaystyle\sum_{j\in\mathcal{N}_{i}}(\mathbf{v}_{j}-\mathbf{v}_{i})\approx\frac{1}{t}\sum_{j\in\mathcal{N}_{i}}\left[(\mathbf{p}_{j}-\mathbf{p}_{i})-(\mathbf{p}_{j}(0)-\mathbf{p}_{i}(0))\right]. (4) Here, ( 4 ) suggests that alignment may be promoted using only positional information, by reconstructing relative motion from the accumulated change in relative positions over time. The mechanism mirrors how biological swarms coordinate without direct access to metric velocities, inferring motion instead through local perceptual cues (see Fig. 1 ). Figure 1 : Conceptual analogy between motion inference in robotic and biological swarms. Robots reconstruct relative motion from time-integrated position differences, while biological agents infer motion directly from local sensory imprints. Fig. 2 contrasts classical velocity alignment with the position-based mechanism. In the classical case, agents directly sense or exchange instantaneous relative velocities \mathbf{v}_{j}-\mathbf{v}_{i} to reach directional consensus. In the position-based approach, relative velocity is instead inferred from the temporal change in relative positions, using the initial configuration \mathbf{p}_{j}(0)-\mathbf{p}_{i}(0) as a weak imprinting . This reference affects alignment strength mainly during early transients and gradually fades as t increases. (a) (b) Figure 2 : (a) Velocity alignment: direct use of instantaneous \mathbf{v}_{j}-\mathbf{v}_{i} and (b) Position-based alignment: inference via [(\mathbf{p}_{j}-\mathbf{p}_{i})-(\mathbf{p}_{j}(0)-\mathbf{p}_{i}(0))]/t . 3.1 Threshold-based persistence of alignment The gain \frac{1}{t} in ( 4 ) drives strong alignment early on but decays to zero as t\to\infty , preventing sustained coordination. At small t , limited accumulated displacement causes the term to underestimate relative velocity; as velocities converge, the fraction increasingly misrepresents the true alignment signal. We therefore introduce a threshold mechanism that replaces the decaying \frac{1}{t} gain with a constant value once t>\frac{1}{k} , ensuring persistent velocity alignment while preserving biologically plausible transient dynamics. The modified position-based alignment term takes the form \phi\sum_{j\in\mathcal{N}_{i}}\Bigl[(\mathbf{p}_{j}-\mathbf{p}_{i})-(\mathbf{p}_{j}(0)-\mathbf{p}_{i}(0))\Bigr], with the time-dependent gain \phi=\begin{cases}\dfrac{|\mathcal{N}_{i}|}{t}&\text{if }0\dfrac{1}{k},\end{cases} where k>0 is a positive constant (e.g., k=0.1 ). Furthermore, it moderates the initial amplification by |\mathcal{N}_{i}| in the transient phase. As illustrated in Fig. 3 , this piecewise definition produces two distinct behavioral regimes. For small t ( 01/k) This position-based alignment term initially drives current relative positions toward the initial relative configuration of neighbors, inducing a short-lived shape memory effect. The collective briefly preserves the initial spacing pattern, resembling displacement-based formation behavior. However, this tendency interacts with the cohesion–separation mechanism, which attracts agents toward equilibrium distances, preventing sustained initial rigid formation. Although this initial anchoring resembles classical displacement-based formation control [ 8 , 1 ] , the objective here is not to enforce a prescribed rigid formation. Instead, the initial configuration acts as a weak, transient memory imprint that gradually loses its influence, after which the alignment term becomes proportional to the current relative positions, promoting cohesion and a velocity-consensus-like flocking behavior. Thus, the mechanism is better interpreted as a bio-inspired, position-only approximation of Reynolds-style alignment rather than an instance of rigid formation control. For robotic MAS without direct velocity sensing or communication, the proposed position-based flocking model ( 5 ) substantially simplifies perception requirements (e.g., relying solely on LIDAR or range-only sensors), reduces computational load, and enhances robustness to noise. By inferring alignment from relative position changes over time, the approach exhibits coordination persistence even when velocity estimates are unavailable, noisy, or inconsistent. This enables fault-tolerant alignment under sensing or communication failures and scales favorably to larger teams, as only positional data is exchanged. In communication-enabled systems, the bandwidth demand is effectively reduced compared to position–velocity exchange, contributing to robustness, scalability, and a reduced infrastructure burden. 4 Simulation To evaluate the position-based flocking model ( 5 ), we simulate n=50 agents in a 2D space ( d=2 ) over t\in[0,100]\,\text{s} . Initial positions \mathbf{p}_{i}(0) are randomly distributed in a 25\times 25\,\text{m} square, with initial velocities \mathbf{v}_{i}(0) randomly oriented, satisfying \|\mathbf{v}_{i}(0)\|\leq 1\,\text{m/s} . The interaction radius is r_{i}=7.5\,\text{m} , k=0.1 , v_{i}^{\max}=2.5\,\text{m/s} , and u_{i}^{\max}=5\;\mathrm{m/s^{2}} . We measure directional alignment using the metric \gamma=\frac{1}{n}\sum_{i=1}^{n}\frac{1}{|\mathcal{N}_{i}|}\sum_{j\in\mathcal{N}_{i}}\frac{\mathbf{v}_{i}^{\top}\mathbf{v}_{j}}{\|\mathbf{v}_{i}\|\|\mathbf{v}_{j}\|}, where the inner term computes the average cosine similarity between agent i ’s velocity and its neighbors’ velocities, and the outer term averages across all agents. The metric \gamma\in[-1,1] , with \gamma\approx 1 indicating near-parallel velocities (strong alignment) and values near or below 0 indicating misalignment. By normalizing direction, this metric isolates directional consensus from speed differences. Fig. 4 shows the collective trajectory under the velocity-alignment-based model ( 2 ) (V-based), the position-based model ( 5 ) with the threshold alignment gain (P-based (thr.)) and no threshold alignment gain (P-based (no thr.)) over [0,100]\,\text{s} . For the velocity-alignment-based (V-based) model, the trajectories show that, starting from random initial conditions, the flock achieves cohesive and coherent motion with relatively strong alignment. However, the collective direction continues to vary over time, resulting in a spatially flexible flocking pattern without persistent heading. In contrast, the position-based model with threshold (P-based (thr.)) produces trajectories that are both cohesive and coherent and exhibit a clearly persistent collective direction throughout the simulation, forming a more compact and directionally stable flocking configuration. To illustrate the critical role of the threshold gain \phi=k\,|\mathcal{N}_{i}| , we also simulate the position-based model without the threshold (P-based (no thr.)). These trajectories initially display strong alignment and persistent collective direction similar to the threshold case; however, over an extended time, the alignment gradually weakens as the gain decays, leading to a noticeable loss of directional coherence while spatial cohesion is largely maintained. Fig. 5 tracks (a) the alignment metric \gamma , (b) inter-agent distances, (c) average flock speeds, and (d) the cohesive radius of the flock (defined as the maximum distance from any agent to the flock centroid). For the velocity-alignment-based (V-based) model, the alignment metric \gamma reaches a peak around t\approx 30\,\text{s} and subsequently exhibits slight oscillations. This is consistent with the spatially flexible collective motion and varying direction observed in the trajectory plots. In contrast, the position-based model with threshold (P-based (thr.)) exhibits rapid convergence to near-maximal alignment ( \gamma\approx 1 ) within the transient phase, with this strong alignment sustained throughout the simulation. It also maintains smaller and more stable inter-agent separations (typically 1.5-2\,\text{m} ) compared to the V-based model ( 2-3\,\text{m} ), resulting in a visibly more compact formation with minimal variation in distances over time. For the position-based model without threshold (P-based (no thr.)), \gamma shows rapid initial convergence to strong alignment but gradually declines as time progresses due to the decaying gain. This leads to a progressive loss of directional coherence over extended periods, confirming that the non-vanishing threshold is essential for maintaining persistent collective alignment and flock identity. Figure 4 : Trajectories of the collective over [0,100]\,\text{s} under (a) the velocity-alignment-based model ( 2 ) (V-based), (b) the position-based model ( 5 ) with threshold alignment gain (P-based (thr.)), and (c) the position-based model without threshold (P-based (no thr.)), all starting from identical random initial conditions. The V-based trajectories achieve cohesive and coherent motion with relatively strong alignment, yet exhibit a spatially flexible pattern with varying collective direction over time. The P-based (thr.) trajectories rapidly converge to strong, persistent alignment and form a compact, directionally stable flocking configuration throughout the simulation. The P-based (no thr.) trajectories initially display strong alignment and persistent direction similar to the threshold case but show gradual weakening of alignment over extended time due to the decaying gain, resulting in progressive loss of directional coherence. (a) (b) (c) (d) Figure 5 : Time histories for the collective trajectory under the velocity-alignment-based model ( 2 ) (V-based), the position-based model ( 5 ) with the threshold alignment gain (P-based (thr.)) and no threshold alignment gain (P-based (no thr.)): (a) alignment metric \gamma , (b) inter-agent distances, (c) average speeds, and (d) collective radii. Table 2 provides a qualitative comparison between the velocity-alignment-based model (V-based) and the proposed position-based model with threshold gain (P-based (thr.)). The position-based approach achieves markedly stronger and more persistent alignment, along with narrower and more stable inter-agent separations, resulting in superior cohesion and directional consensus. However, this comes at the cost of a more compact formation structure with limited spatial flexibility. In contrast, the V-based model produces a spatially adaptable, flexible configuration with wider separations and slightly oscillating but still relatively strong alignment. Biologically, the compact, directionally stable formations produced by the position-based model closely resemble the highly ordered, persistent V- or J-shaped structures observed in migratory bird flocks during long-distance travel. Conversely, the more flexible and spatially adaptive configurations of the V-based model are consistent with the dynamic, loosely coordinated patterns seen in foraging groups or during predator-avoidance maneuvers in fish schools and bird flocks. Table 2 : Qualitative comparison of key flocking characteristics between the velocity-alignment-based model (V-based) and the proposed position-based model with threshold (P-based (thr.)). Characteristic V-based P-based (thr.) Alignment strength & persistence Strong, with minor variation Very strong & persistent Formation structure Flexible, spatially adaptive Less flexible, directionally stable Inter-agent separation Wider Narrower Cohesion & directional consensus Moderate Superior To assess whether the flock preserves a rigid initial formation, we compute the variance of pairwise distances \mathrm{Var}(\|\mathbf{p}_{j}-\mathbf{p}_{i}\|) , which serves as a direct quantitative measure of formation rigidity. As shown in Fig. 6 , this variance increases during the transient phase, indicating that exact preservation of initial inter-agent distances is not enforced. Nevertheless, the cohesion radius remains nearly constant, confirming sustained group cohesion without rigid adherence to the initial formation. This behavior suggests that the initial relative positions function as a short-term memory imprint that drives rapid early alignment and cohesion but gradually fades once the alignment gain stabilizes. The position-based model thereby exploits this transient memory mechanism to achieve fast convergence to strong and persistent collective alignment. Figure 6 : Assessment of formation rigidity. Pairwise distance variance increases during the transient phase, showing that the initial formation is not preserved. 5 Experiment The position-based flocking model was evaluated using nine GRITSBot wheeled robots (dimensions: 11\times 10\times 7\,\text{cm} ) in the Robotarium testbed [ 16 ] . Robots were initialized at random positions and headings within a 1.0\times 1.0\,\text{m} region inside the 3.2\times 2.0\,\text{m} arena. Each robot interacted within a radius r_{i}=0.75\,\text{m} according to ( 5 ), with \delta_{i}=0.12 , k=0.15 , v_{i}^{\max}=0.15\,\text{m/s} , u_{i}^{\max}=0.5\,\text{m/s}^{2} . Robot positions were tracked using the overhead Vicon motion capture system, and control inputs were computed every 0.033\,\text{s} over a 120\,\text{s} experiment. Double-integrator dynamics from ( 5 ) were mapped to unicycle commands, with target linear and angular velocities conservatively saturated at 0.15\,\text{m/s} and 0.55\,\text{rad/s} , respectively, to accommodate the compact arena. Snapshot sequences in Fig. 7 illustrate the emergence of cohesive and coherent flocking. The alignment metric in Fig. 8 confirms the establishment and maintenance of collective motion direction. Actuation inaccuracies of the Robotarium platform introduced minor fluctuations; however, coherent flocking behavior was consistently observed. Figure 7 : Snapshots from the real-robot experiment demonstrating cohesive and coherent flocking under the position-based model. A supplementary video showing the full experiment, including real-time data visualization and trajectory evolution, is available at https://youtu.be/g8ClSYKpmQY . Figure 8 : Alignment metric in the experiment. 6 Conclusion This paper presents a position-based flocking model that achieves persistent velocity alignment using only relative positions. By approximating velocity differences from position changes and applying a non-vanishing threshold gain, the model prevents alignment decay. Simulations and real-robot experiments show stronger, more persistent alignment and more compact formations with directionally stable structures emerging from local interactions alone. Biologically, these stable formations with persistent collective direction resemble migratory bird flocks. The approach offers a robust, position-only solution for sensing- and communication-constrained robotic swarms. Future work will address mechanisms for introducing spatial flexibility in confined and heterogeneous settings, better matching biological foraging and evasive flocking behaviors.