AntennaFlow: A Generative Flow Model for Offset Correction in Phaseless Antenna Testing

arXiv cs.AI Papers

Summary

AntennaFlow is a three-stage generative flow model framework that jointly addresses phase acquisition and offset correction challenges in antenna testing, enabling fast, phaseless, and offset-vector-free near-field to far-field reconstruction from sparse amplitude-only measurements.

arXiv:2609.16948v1 Announce Type: new Abstract: Near-field to far-field transformation is central to large-aperture antenna testing, yet two coupled challenges remain: costly phase acquisition at millimeter-wave bands and violations of the centering assumption under offset mounting. Existing methods address these issues separately, requiring either dense full-field data or offset vectors. We tackle both jointly by exploiting a key observation: amplitude fields under different offsets are coordinate-transformed views of the same near field. The challenge is to recover the center-aligned field from offset amplitudes without a phase or offset vector. We propose AntennaFlow, a three-stage framework: a contrastively learned encoder that maps offset views to an offset-invariant embedding, a deterministic flow-matching transport that maps offset amplitudes to center-aligned ones, and the Simplified Extrapolation Technique, whose Green-function Taylor expansion is valid only for centered fields. Experiments show that AntennaFlow enables fast, phaseless, offset-vector-free NF--FF reconstruction from sparse amplitude-only measurements, consistently outperforming existing baselines while preserving physical consistency.
Original Article
View Cached Full Text

Cached at: 09/16/26, 09:05 AM

# AntennaFlow: A Generative Flow Model for Offset Correction in Phaseless Antenna Testing
Source: [https://arxiv.org/html/2609.16948](https://arxiv.org/html/2609.16948)
1stYongzhi LiAffiliation:College of Computing and Data Science Nanyang Technological University Singapore YONGZHI001@e\.ntu\.edu\.sg2ndChongting ShenAffiliation:Beihang Sino\-French Engineer School Beihang University Beijing, China schongting@buaa\.edu\.cn3rdMenglin ChenAffiliation:Beihang Sino\-French Engineer School Beihang University Beijing, China elvin\_chen@buaa\.edu\.cnAffiliation:4thXun JiangAffiliation:School of Computer Science and Engineering University of Electronic Science and Technology of China Chengdu, China xun\_jiang@std\.uestc\.edu\.cn5thZhengpeng WangAffiliation:Electronic Information Engineering Beihang University Beijing, China wangzp@buaa\.edu\.cn

###### Abstract

Near\-field to far\-field transformation is central to large\-aperture antenna testing, yet two coupled challenges remain: costly phase acquisition at millimeter\-wave bands and violations of the centering assumption under offset mounting\. Existing methods address these issues separately, requiring either dense full\-field data or offset vectors\. We tackle both jointly by exploiting a key observation: amplitude fields under different offsets are coordinate\-transformed views of the same near field\. The challenge is to recover the center\-aligned field from offset amplitudes without a phase or offset vector\. We propose AntennaFlow, a three\-stage framework: a contrastively learned encoder that maps offset views to an offset\-invariant embedding, a deterministic flow\-matching transport that maps offset amplitudes to center\-aligned ones, and the Simplified Extrapolation Technique, whose Green\-function Taylor expansion is valid only for centered fields\. Experiments show that AntennaFlow enables fast, phaseless, offset\-vector\-free NF–FF reconstruction from sparse amplitude\-only measurements, consistently outperforming existing baselines while preserving physical consistency\.

###### Index Terms:

Phaseless antenna testing, Offset Correction, Generative AI, Contrastive Learning, Conditional Flow Matching

## IIntroduction

With the rise of 6G\[[1](https://arxiv.org/html/2609.16948#bib.bib7)\], large\-aperture arrays such as massive MIMO and phased arrays\[[2](https://arxiv.org/html/2609.16948#bib.bib9)\]are widely used in satellites and radar\. Large electrical size leads to prohibitively long Rayleigh distances, making direct far\-field testing impractical\. Near\-field to far\-field \(NF–FF\) transformation\[[3](https://arxiv.org/html/2609.16948#bib.bib10)\]thus serves as the primary Over\-The\-Air \(OTA\) testing approach, enabling accurate measurements via near\-field\.

Despite its maturity, near\-field measurement still faces two key challenges in practice: phase acquisition and offset placements\[[4](https://arxiv.org/html/2609.16948#bib.bib11)\]\. At millimeter\-wave frequencies, accurate phase measurement requires stable RF cables and precise synchronization, leading to high cost and long acquisition time\. To address this, phaseless methods such as the Extrapolation Technique \(ET\)\[[5](https://arxiv.org/html/2609.16948#bib.bib16)\]and Simplified Extrapolation Technique \(SET\)\[[6](https://arxiv.org/html/2609.16948#bib.bib12)\]reconstruct the far field from amplitude\-only data, avoiding the burden of phase measurements\.

However, array antennas are often mounted as subsystems on complex platforms, including satellites, vehicles, and radar domes, making precise alignment with the measurement coordinate center difficult and degrading the measured amplitude and phase\. TSWE\[[7](https://arxiv.org/html/2609.16948#bib.bib14)\]compensates for offset mounting, while SRM\[[8](https://arxiv.org/html/2609.16948#bib.bib15)\]recovers phase and can also mitigate offset\. However, both suffer from low sampling efficiency and reliance on offset vectors, limiting practical applicability\. Consequently, few methods can efficiently handle offset correction under phaseless settings, motivating offset\-vector\-free offset correction, as illustrated in Fig\.[1](https://arxiv.org/html/2609.16948#S1.F1)\.

![Refer to caption](https://arxiv.org/html/2609.16948v1/antennafig1.png)Fig\. 1:Comparison of far\-field reconstruction under offset mounting: prior methods suffer from offset sensitivity or reliance on offset vectors, while AntennaFlow achieves superior reconstruction quality\.We resolve this by noting that different offset placements yield only coordinate\-transformed views of the same near field\. The challenge is to recover the centered field from offset amplitudes without phase and offset vector\. Based on this, AntennaFlow uses contrastive learning to obtain an offset\-invariant embedding, a deterministic flow to map offset amplitudes to centered ones, and SET to extract the far field from the centered output\. The three stages thus remove offset\-induced errors in the NF\-FF pipeline without ever observing the offset vector or any phase information\. The main contributions of this work are summarized as follows:

- •We unify phaseless NF\-FF transformation and offset correction into an end\-to\-end amplitude calibration without phase or offset vectors\.
- •We realize this as AntennaFlow: offset\-invariant amplitude embedding, deterministic flow\-matching transport, and center\-aligned SET extraction for efficient NF\-FF reconstruction without phase or offset vectors\.
- •To our knowledge, this is the first application of generative AI to NF–FF transformation, achieving consistent gains in reconstruction quality, efficiency, and robustness under realistic measurement perturbations\.

## IIBackground

### II\-AAntenna Testing

#### II\-A1Phaseless Testing

Spherical near\-field measurement, based on Hansen’s spherical wave expansion \(SWE\)\[[9](https://arxiv.org/html/2609.16948#bib.bib8)\], is the benchmark for high\-accuracy antenna testing\. However, costly and unstable phase measurements have driven phaseless approaches that reconstruct the far field from amplitude\-only data\. SRM\[[8](https://arxiv.org/html/2609.16948#bib.bib15)\]estimates equivalent sources via iterative optimization, while ET\[[5](https://arxiv.org/html/2609.16948#bib.bib16)\]applies polynomial fitting for gain calibration\. In our work, we adopt the Simplified Extrapolation Technique \(SET\)\[[6](https://arxiv.org/html/2609.16948#bib.bib12)\]as our core solver, which directly fits amplitude\-decay curves to avoid iterative local minima and slow inference, and naturally aligns with our calibration through its dependence on array centering\.

#### II\-A2Offset Correction

Offset mounting enlarges the enclosing sphere, increasing Nyquist sampling demands, cost, and measurement degradation\. TSWE\[[7](https://arxiv.org/html/2609.16948#bib.bib14)\]requires full\-field data, SRM relies on costly phase retrieval, and SET, derived from Green’s formula with a local Taylor expansion, cannot handle offsets\. Existing methods thus require either an offset vector and complete data or heavy computation\. In contrast, we exploit shared structures across offset\-induced distortions and learn a calibration map for correction under sparse, phaseless measurements without offset vector inputs\. Table I summarizes the comparison\.

TABLE I:Comparison of the previous methods and the proposed method

### II\-BGenerative AI

#### II\-B1Image Generation with Diffusion and Flow Models

Recent diffusion\-based generative models\[[10](https://arxiv.org/html/2609.16948#bib.bib2),[11](https://arxiv.org/html/2609.16948#bib.bib1)\]have achieved strong performance in image generation\[[12](https://arxiv.org/html/2609.16948#bib.bib3)\]\. Our task, however, maps offset near\-field amplitudes to physically meaningful center\-aligned counterparts, rather than generating diverse images\. SDE\-based models introduce stochasticity that benefits natural image generation but leads to undesirable fluctuations for precise near\-field calibration\. In contrast, ODE\-based flow\-matching models provide deterministic mapping, making it better aligned with the requirements of this task\.

#### II\-B2Contrastive Learning

Contrastive learning organizes representations by pulling positive pairs together and pushing negative pairs apart\. In our setting, we use antenna identity as the supervision signal in a supervised contrastive framework\[[13](https://arxiv.org/html/2609.16948#bib.bib5)\], treating different offset views of the same antenna as positives, while views from different antennas are treated as negatives\. This encourages the encoder to capture features that are invariant to spatial offsets, resulting in robust near\-field representations that support offset\-vector\-free reconstruction\.

![Refer to caption](https://arxiv.org/html/2609.16948v1/fmpipeline.png)Fig\. 2:The AntennaFlow pipeline for NF\-FF transformation\. \(1\) Data Collection: Near\-field data are sampled from different antenna configurations\. \(2\) A feature encoder is trained using a supervised contrastive learning framework to learn discriminative representations\. \(3\) Flow Matching Transport: A U\-Net\-based architecture is used to learn the flow\-matching velocity field for center near\-field generation\. \(4\) Far\-Field Reconstruction via SET\. Note that SET requires measurements from multiple distinct surfaces; for simplicity, only one surface is illustrated in the figure\.

## IIIMethod

### III\-ADesign Overview

AntennaFlow is motivated by a simple measurement observation: offset placements do not alter the underlying physical near field, but only its coordinate representation\. The core challenge is therefore to recover a canonical, center\-aligned field from amplitude\-only measurements without access to phase or offset vectors\. To address this, we decompose the problem into three components\. First, we learn an offset\-invariant representation𝐟\\mathbf\{f\}that captures antenna\-specific characteristics shared across different offset measurements\. Second, we model a deterministic conditional transport that maps an input amplitude field to its center\-aligned counterpart, with𝐟\\mathbf\{f\}providing invariant structural guidance\. Third, we ensure that the reconstructed field satisfies the assumptions required by the downstream phaseless solver \(SET\), whose formulation is valid only under center alignment\. Together, these components enable an end\-to\-end pipeline for offset correction and phaseless NF–FF transformation, as illustrated in Fig\.[2](https://arxiv.org/html/2609.16948#S2.F2)\.

### III\-BAntennaFlow for Near\-Field Calibration

AntennaFlow uses a contrastively pretrained ResNet encoder\[[14](https://arxiv.org/html/2609.16948#bib.bib4)\]and a U\-Net flow\-matching backbone\[[15](https://arxiv.org/html/2609.16948#bib.bib6)\]conditioned on its embedding to learn deterministic transport from offset amplitudes to center\-aligned amplitudes\.

#### III\-B1Offset\-Invariant Antenna Embedding

For a batch of labeled*pretraining*samples\{\(Xi,Yi\)\}i=1B\\\{\(X\_\{i\},Y\_\{i\}\)\\\}\_\{i=1\}^\{B\},XiX\_\{i\}denotes a near\-field amplitude andYiY\_\{i\}denotes the antenna identity label, which is available only during the training stage; the encoded representation ishi=E⁡\(Xi\)h\_\{i\}=E\(X\_\{i\}\), whereE⁡\(⋅\)E\(\\cdot\)is the feature encoder\. With this label assignment, the supervised contrastive paradigm\[[13](https://arxiv.org/html/2609.16948#bib.bib5)\]becomes a direct mechanism for compressing the set of offset views of each antenna into a tight cluster: for each anchorii, its positive setP⁡\(i\)=\{j≠i∣Yj=Yi\}P\(i\)=\\\{\\,j\\neq i\\mid Y\_\{j\}=Y\_\{i\}\\,\\\}collects offset views of the same antenna, while the remainingYj≠YiY\_\{j\}\\neq Y\_\{i\}are negatives\. The cosine similarity scaled by temperatureτ\\tauis computed as:

si​j=hi⊤​hjτ\.s\_\{ij\}=\\frac\{h\_\{i\}^\{\\top\}h\_\{j\}\}\{\\tau\}\.\(1\)
The supervised InfoNCE loss is defined as:

ℒSupCon=−1B∑i=1B1\|P⁡\(i\)\|∑p∈P⁡\(i\)logexp⁡\(si​p\)∑j=1,j≠iBexp⁡\(si​j\)\.\\mathcal\{L\}\_\{\\text\{SupCon\}\}=\-\\frac\{1\}\{B\}\\sum\_\{i=1\}^\{B\}\\frac\{1\}\{\|P\(i\)\|\}\\sum\_\{p\\in P\(i\)\}\\log\\frac\{\\exp\(s\_\{ip\}\)\}\{\\sum\\limits\_\{\\begin\{subarray\}\{c\}j=1,j\\neq i\\end\{subarray\}\}^\{B\}\\exp\(s\_\{ij\}\)\}\.\(2\)
MinimizingℒSupCon\\mathcal\{L\}\_\{\\text\{SupCon\}\}encourages approximate invariance of the embedding across different offset near\-fields\. A learnable MLPM⁡\(⋅\)M\(\\cdot\)then produces the final conditional embedding:

𝐟=M⁡\(E⁡\(Xi\)\),\\mathbf\{f\}=M\\big\(E\(X\_\{i\}\)\\big\),\(3\)which supports the next deterministic transport\.

#### III\-B2Deterministic Transport via Conditional Flow Matching

Given an offset amplitudexxand its centered counterpartx1x\_\{1\}, we learn a conditional transport rather than an unconditional generation\. Specifically, we construct a displacement interpolation between a noise priorx0∼𝒩⁡\(0,I\)x\_\{0\}\\sim\\mathcal\{N\}\(0,I\)andx1x\_\{1\}asxt=\(1−t\)​x0\+t​x1x\_\{t\}=\(1\-t\)x\_\{0\}\+tx\_\{1\}, whose time derivative yields a constant ground\-truth velocityv∗​\(xt\)=d​xtd​t=x1−x0v^\{\\ast\}\(x\_\{t\}\)=\\frac\{dx\_\{t\}\}\{dt\}=x\_\{1\}\-x\_\{0\}\. The velocity fieldvθ​\(⋅,⋅,𝐟\)v\_\{\\theta\}\(\\cdot,\\cdot,\\mathbf\{f\}\)is parameterized by a U\-Net that takes the interpolated statextx\_\{t\}, the timesteptt, and the conditional embedding𝐟\\mathbf\{f\}as inputs, and outputs a velocity vector of the same dimensionality asxtx\_\{t\}\. The model is trained via:

ℒFM=𝔼x0,x1,t​‖vθ​\(xt,t,𝐟\)−v∗​\(xt\)‖22\.\\mathcal\{L\}\_\{\\text\{FM\}\}=\\mathbb\{E\}\_\{x\_\{0\},x\_\{1\},t\}\\left\\\|v\_\{\\theta\}\(x\_\{t\},t,\\mathbf\{f\}\)\-v^\{\\ast\}\(x\_\{t\}\)\\right\\\|\_\{2\}^\{2\}\.\(4\)
Crucially, the conditioning𝐟=M⁡\(E⁡\(x\)\)\\mathbf\{f\}=M\(E\(x\)\)is extracted from the input amplitudexx, serving as an offset\-invariant anchor of the antenna identity\. As a result, the transport is conditioned onxxthrough𝐟\\mathbf\{f\}, rather than discarding input information\.

At inference, we integrate fromx0∼𝒩⁡\(0,I\)x\_\{0\}\\sim\\mathcal\{N\}\(0,I\)under𝐟\\mathbf\{f\}using the U\-Net velocity field:

xtk\+1=xtk\+Δ​t​vθ​\(xtk,tk,𝐟\),x\_\{t\_\{k\+1\}\}=x\_\{t\_\{k\}\}\+\\Delta t\\,v\_\{\\theta\}\(x\_\{t\_\{k\}\},t\_\{k\},\\mathbf\{f\}\),\(5\)and the final statex^1\\hat\{x\}\_\{1\}is taken as the generated sample\.

### III\-CFar\-Field Transformation via SET

After offset removal, we apply SET\[[6](https://arxiv.org/html/2609.16948#bib.bib12)\]as the NF\-FF transformation module\. Specifically, AntennaFlow generates calibrated near\-field amplitudes conditioned on the offset near\-field amplitudes of multiple measurement radii\. In this work, we generate 3 calibrated near\-field maps at distinct distancesr1r\_\{1\},r2r\_\{2\}, andr3r\_\{3\}, which serve as the required inputs for SET\.

Letx^1​\(r,θ,ϕ\)\\hat\{x\}\_\{1\}\(r,\\theta,\\phi\)denote the calibrated near\-field amplitude at radiusrr\. Under the center\-alignment property guaranteed by AntennaFlow, the spatial variation of the near\-field is parameterized by angular coordinates\(θ,ϕ\)\(\\theta,\\phi\)\. Following the SET formulation, we model the distance\-dependent power decay by approximating the product of the power densityP⁡\(r,θ,ϕ\)=\|x^1​\(r,θ,ϕ\)\|2P\(r,\\theta,\\phi\)=\|\\hat\{x\}\_\{1\}\(r,\\theta,\\phi\)\|^\{2\}andr2r^\{2\}using a truncated polynomial expansion inr−2​kr^\{\-2k\}, derived from the Taylor expansion of the Green’s function:

P⁡\(r,θ,ϕ\)⋅r2≈∑k=0KA2​k′​\(θ,ϕ\)⋅r−2​k\.P\(r,\\theta,\\phi\)\\cdot r^\{2\}\\approx\\sum\_\{k=0\}^\{K\}A^\{\\prime\}\_\{2k\}\(\\theta,\\phi\)\\cdot r^\{\-2k\}\.\(6\)
whereA00′A^\{\\prime\}\_\{00\}is the zero\-order intercept coefficient representing the far\-field radiation characteristic, while higher\-order terms account for the reactive and radiative near\-field decay components\. In practice, for sufficiently large measurement distances, higher\-order terms decay rapidly with increasing powers ofr−2r^\{\-2\}, and prior work has shown that accurate approximation can be achieved using only the first three terms:

P⁡\(r,θ,ϕ\)⋅r2≈A00′​\(θ,ϕ\)\+A02′​\(θ,ϕ\)r2\+A04′​\(θ,ϕ\)r4\.P\(r,\\theta,\\phi\)\\cdot r^\{2\}\\approx A^\{\\prime\}\_\{00\}\(\\theta,\\phi\)\+\\frac\{A^\{\\prime\}\_\{02\}\(\\theta,\\phi\)\}\{r^\{2\}\}\+\\frac\{A^\{\\prime\}\_\{04\}\(\\theta,\\phi\)\}\{r^\{4\}\}\.
To estimate the far\-field coefficientA00′A^\{\\prime\}\_\{00\}, AntennaFlow generates calibrated amplitude maps at three distinct mid\-field distances,r1r\_\{1\},r2r\_\{2\}, andr3r\_\{3\}\. For each distancermr\_\{m\}, we define the processed observation as:

ym​\(θ,ϕ\)=\|x^1​\(rm,θ,ϕ\)\|2​rm2=P⁡\(rm,θ,ϕ\)⋅rm2\.y\_\{m\}\(\\theta,\\phi\)=\|\\hat\{x\}\_\{1\}\(r\_\{m\},\\theta,\\phi\)\|^\{2\}r\_\{m\}^\{2\}=P\(r\_\{m\},\\theta,\\phi\)\\cdot r\_\{m\}^\{2\}\.\(7\)The resulting observations provide a linear system for solving the polynomial coefficients:

\[y1​\(θ,ϕ\)y2​\(θ,ϕ\)y3​\(θ,ϕ\)\]=\[1r1−2r1−41r2−2r2−41r3−2r3−4\]​\[A00′​\(θ,ϕ\)A02′​\(θ,ϕ\)A04′​\(θ,ϕ\)\]\.\\begin\{bmatrix\}y\_\{1\}\(\\theta,\\phi\)\\\\ y\_\{2\}\(\\theta,\\phi\)\\\\ y\_\{3\}\(\\theta,\\phi\)\\end\{bmatrix\}=\\begin\{bmatrix\}1&r\_\{1\}^\{\-2\}&r\_\{1\}^\{\-4\}\\\\ 1&r\_\{2\}^\{\-2\}&r\_\{2\}^\{\-4\}\\\\ 1&r\_\{3\}^\{\-2\}&r\_\{3\}^\{\-4\}\\end\{bmatrix\}\\begin\{bmatrix\}A^\{\\prime\}\_\{00\}\(\\theta,\\phi\)\\\\ A^\{\\prime\}\_\{02\}\(\\theta,\\phi\)\\\\ A^\{\\prime\}\_\{04\}\(\\theta,\\phi\)\\end\{bmatrix\}\.\(8\)
Solving this system independently for each angular pixel\(θ,ϕ\)\(\\theta,\\phi\)yields the far\-field coefficientA00′A^\{\\prime\}\_\{00\}\. The far\-field patternF⁡\(θ,ϕ\)F\(\\theta,\\phi\)is then obtained from this extracted intercept term:

F⁡\(θ,ϕ\)∝A00′​\(θ,ϕ\)\.F\(\\theta,\\phi\)\\propto\\sqrt\{A^\{\\prime\}\_\{00\}\(\\theta,\\phi\)\}\.\(9\)
This pipeline enables phaseless, offset\-free NF–FF transformation via learned center alignment consistent with SET\.

### III\-DTraining Data Collection

We construct a synthetic dataset to model near\-field amplitude responses of antenna arrays under spatial misalignment\. For each antenna, the near field is uniquely determined by its array structure and element parameters, and is computed as

E⁡\(𝐫\)=∑n=1NIn​fn​\(θn,ϕn\)​e−j​k​\|𝐫−\(𝐫n\+𝐝\)\|\|𝐫−\(𝐫n\+𝐝\)\|,E\(\\mathbf\{r\}\)=\\sum\_\{n=1\}^\{N\}I\_\{n\}f\_\{n\}\(\\theta\_\{n\},\\phi\_\{n\}\)\\frac\{e^\{\-jk\|\\mathbf\{r\}\-\(\\mathbf\{r\}\_\{n\}\+\\mathbf\{d\}\)\|\}\}\{\|\\mathbf\{r\}\-\(\\mathbf\{r\}\_\{n\}\+\\mathbf\{d\}\)\|\},\(10\)whereNNdenotes the number of elements,InI\_\{n\}the fixed element excitation,fn​\(θ,ϕ\)f\_\{n\}\(\\theta,\\phi\)the normalized element pattern,𝐫n\\mathbf\{r\}\_\{n\}the element position with respect to the measurement center, and𝐝\\mathbf\{d\}the offset vector representing array misalignment\.

According to prior work on near\-field synthesis of nonuniformly spaced arrays\[[16](https://arxiv.org/html/2609.16948#bib.bib17)\], the near\-field pattern is governed by the element locations, spacings, and element parameters; consequently, any change in array position or spacing leads to a different near\-field distribution\. Therefore, under the sampling conditions and parameter space defined in this work, each amplitude map sampled over the spherical domain is generated from a unique antenna configuration and can be treated as a single\-solution supervision target for both the generative model and subsequent measurement validation\.

![Refer to caption](https://arxiv.org/html/2609.16948v1/linechart.png)Fig\. 3:Comparison of antenna far\-field reconstruction using different phaseless reconstruction methods\. The red solid curves denote the reconstructed far\-field patterns, while the black dashed curves represent the theoretical far\-field reference\. The cyan curves indicate the corresponding ESS\.![Refer to caption](https://arxiv.org/html/2609.16948v1/ff-r.png)Fig\. 4:Visual comparison of reconstructed far\-field amplitude patterns under offset conditions\. From left to right: SET, TSWE, SRM, AntennaFlow, and the ground truth\. AntennaFlow demonstrates the highest fidelity in restoring detailed pattern textures compared to the ground truth\.![Refer to caption](https://arxiv.org/html/2609.16948v1/nf-amb.png)Fig\. 5:Reconstruction from offset near\-field measurements\. Different offset inputs \(top\) are mapped to consistent center\-aligned fields \(bottom\)\.

## IVExperiments and Results

### IV\-AExperiments setup

#### IV\-A1Test Dataset

To evaluate generalization to unseen antennas, we construct an independent test set of 1200 MATLAB\-derived and 300 full\-wave FEKO near\-fields\. The training and test antennas are strictly disjoint and differ in element type, spacing, and aperture size, with additional unseen offset configurations\. The FEKO datasets introduce richer electromagnetic effects and a solver shift to assess cross\-solver robustness\. Together, these settings enable a comprehensive evaluation of reconstruction quality, physical fidelity, and robustness on antennas entirely unseen by the model\.

#### IV\-A2Evaluation Metrics

To quantitatively evaluate the reconstructed amplitude patterns in both the far field and the calibrated near\-field produced by AntennaFlow, we adopt the Equivalent Stray Signal \(ESS\)\[[17](https://arxiv.org/html/2609.16948#bib.bib13)\], a standard metric in antenna measurements, which interprets reconstruction error as an equivalent stray radiation field superimposed on the target pattern\. LetEr​e​c​\(θ\)E\_\{rec\}\(\\theta\)andEr​e​f​\(θ\)E\_\{ref\}\(\\theta\)denote the normalized amplitudes of the reconstructed and reference patterns, defined either at a fixed measurement radius in the near field or in the far field\. Following\[[6](https://arxiv.org/html/2609.16948#bib.bib12)\], the ESS at angleθ\\thetais defined as:

ESS​\(θ\)=20​log10⁡\(Er​e​f​\(θ\)\)\+20​log10​\[1−10−ΔdB\(θ\)/202\]\.\\begin\{split\}\\text\{ESS\}\(\\theta\)&=20\\log\_\{10\}\(E\_\{ref\}\(\\theta\)\)\\\\ &\\quad\+20\\log\_\{10\}\\left\[\\frac\{1\-10^\{\-\\Delta\_\{\\text\{dB\}\}\(\\theta\)/20\}\}\{2\}\\right\]\.\\end\{split\}\(11\)
whereΔdB​\(θ\)=20​log10⁡\(Er​e​c​\(θ\)\)−20​log10⁡\(Er​e​f​\(θ\)\)\\Delta\_\{\\text\{dB\}\}\(\\theta\)=20\\log\_\{10\}\(E\_\{rec\}\(\\theta\)\)\-20\\log\_\{10\}\(E\_\{ref\}\(\\theta\)\)denotes the pattern difference in decibels\. The ESS is evaluated using its Root Mean Square \(RMS\) and Peak values: a lowerRMS ESSindicates better overall reconstruction fidelity, whilePeak ESSreflects the maximum local deviation\. By design, ESS is more sensitive to errors in high\-energy regions and less sensitive to discrepancies in low\-energy areas with limited physical relevance, thereby emphasizing deviations that impact radiation characteristics and better reflecting physical field behavior rather than local numerical artifacts\. Consequently, it effectively characterizes the influence of reconstruction errors on sidelobe levels and other key features\.

#### IV\-A3Compared Methods

To rigorously validate the proposed framework, we compare it with SET, TSWE, and SRM, evaluating near\-field and far\-field reconstruction quality\.

### IV\-BResults

#### IV\-B1Quantitative Analysis

As shown in Fig\.[3](https://arxiv.org/html/2609.16948#S3.F3), existing methods degrade under offset conditions: SET produces pattern shifts, TSWE fails to recover the main lobe, and SRM shows sidelobe distortions\. In contrast, AntennaFlow achieves precise alignment with the ground truth across the full angular spectrum with low ESS, demonstrating robustness to offsets in phaseless settings and preserving physically consistent radiation characteristics, including main lobes and sidelobes\.

Table[II](https://arxiv.org/html/2609.16948#S4.T2)further shows that AntennaFlow achieves the lowest RMS and Peak ESS on both datasets, indicating superior reconstruction quality with errors concentrated in less significant regions, while offering efficient inference much faster than TSWE and SRM and comparable to SET, demonstrating advantages in both fidelity and efficiency\.

TABLE II:Quantitative Comparison of Far\-Field Reconstruction Accuracy \(RMS ESS and Peak ESS in dB\)
#### IV\-B2Visualization Results

To evaluate the reconstruction fidelity, we perform a comparative analysis of far\-field \(Fig\.[4](https://arxiv.org/html/2609.16948#S3.F4)\) and near\-field \(Fig\.[5](https://arxiv.org/html/2609.16948#S3.F5)\) results\. In the far field, our method demonstrates superior quality compared to SET, TSWE, and SRM\. It corrects severe misalignment and reconstructs high\-fidelity patterns from amplitude\-only data while preserving main lobes and sidelobes\. In the near field, Fig\.[5](https://arxiv.org/html/2609.16948#S3.F5)groups multiple offset placements of the same antenna with their reconstructions and the ground truth\. Despite diverse offsets, the reconstructions converge to nearly identical center\-aligned fields and closely match the ground truth\. This consistency under heterogeneous offset inputs is direct visual evidence that AntennaFlow extracts the offset\-invariant embedding of the antenna and reconstructs its near\-field amplitude, which is the property the downstream SET extraction relies on\.

TABLE III:Ablation Study on the Effect of Contrastive Pre\-training

### IV\-CValidation of the Learned Embedding and Reconstruction

The two points of AntennaFlow, an offset\-invariant embedding and a deterministic flow\-matching transport conditioned on it, together carry the burden of converting an offset amplitude into a center\-aligned amplitude\. We verify that each part behaves as intended through three complementary checks\.

First, we verify that the encoder captures offset\-invariant features by visualizing embeddings of offset samples from 24 antennas using t\-SNE \(Fig\.[6](https://arxiv.org/html/2609.16948#S4.F6)\)\. Embeddings from different antennas are well separated, while those from the same antenna under varying offsets form tight clusters, confirming that the encoder captures antenna\-specific features invariant to offsets\.

![Refer to caption](https://arxiv.org/html/2609.16948v1/tsne_contrastive_24c.png)Fig\. 6:t\-SNE projection of the encoder embeddings of768768amplitude samples drawn from2424distinct antenna configurations under random offsets\. Colors denote antenna identity\. Samples of the same antenna fall into tight clusters, while clusters of distinct antennas are clearly separated\.Second, we check whether this embedding suffices to drive the deterministic flow\-matching transport back to the center\-aligned field\. As shown in Fig\.[5](https://arxiv.org/html/2609.16948#S3.F5), reconstructions from different offsets of the same antenna are nearly identical and closely match the ground truth\. NF ESS and FF ESS evaluation further shows that the reconstructed fields preserve the key information while remaining physically consistent\.

Third, we conduct an ablation study by removing contrastive pretraining and retraining the pipeline end\-to\-end\. As shown in Table[III](https://arxiv.org/html/2609.16948#S4.T3), all metrics degrade, confirming its key role in extracting the offset\-invariant features for the framework\.

### IV\-DSim\-to\-Real Robustness Evaluation

To facilitate deployment in OTA antenna testing, we explicitly evaluate the sim\-to\-real gap arising from probe\-dependent measurement responses and environmental noise\. To approximate real measurement conditions, we introduce two representative perturbations: \(1\) Probe mismatch, using horn and dipole probes to simulate real\-world sampling conditions and typically encountered in laboratory setups, and \(2\) introduced to model coupling effects and multipath interference arising from hardware imperfections and environmental uncertainty\. These factors constitute the dominant sources of discrepancy between simulation and real OTA measurements\. As shown in Table[IV](https://arxiv.org/html/2609.16948#S4.T4), AntennaFlow remains stable under these perturbations, with only minor degradation in reconstruction accuracy, indicating strong robustness to realistic measurement conditions and effective generalization beyond idealized simulations\.

TABLE IV:Sim\-to\-Real Robustness Evaluation\.\(RMS ESS AND PEAK ESS IN DB\)

## VConclusion

In this paper, we present AntennaFlow, which uses the basic measurement\-frame fact that offset\-mounted antenna measurements of the same antenna are merely different coordinate views of the same physical near field\. A feature encoder turns this fact into an offset\-invariant embedding directly extractable from offset\-mounted amplitude measurements; a deterministic flow\-matching transport conditioned on this embedding reconstructs the center\-aligned near field; and the recovered center alignment is precisely the precondition required by SET to complete a phaseless, offset\-vector\-free NF–FF reconstruction\. AntennaFlow outperforms SRM, the strongest baseline in our comparison, offering an accurate, efficient, and low\-complexity solution for modern OTA antenna testing\.

## References

- \[1\]\(2021\)The road towards 6g: a comprehensive survey\.IEEE Open Journal of the Communications Society2,pp\. 334–366\.Cited by:[§I](https://arxiv.org/html/2609.16948#S1.p1.1)\.
- \[2\]E\. Björnson, L\. Sanguinetti, H\. Wymeersch, J\. Hoydis, and T\. L\. Marzetta\(2019\)Massive mimo is a reality–what is next?: five promising research directions for antenna arrays\.Digital Signal Processing94,pp\. 3–20\.Cited by:[§I](https://arxiv.org/html/2609.16948#S1.p1.1)\.
- \[3\]O\. M\. Bucci, F\. D’Agostino, C\. Gennarelli, G\. Riccio, and C\. Savarese\(2005\)Near\-field\-far\-field transformation with spherical spiral scanning\.IEEE Antennas and Wireless Propagation Letters2,pp\. 263–266\.Cited by:[§I](https://arxiv.org/html/2609.16948#S1.p1.1)\.
- \[4\]M\. Sørensen, O\. Franek, G\. F\. Pedersen, A\. Radchenko, K\. Kam, and D\. Pommerenke\(2012\)Estimate on the uncertainty of predicting radiated emission from near\-field scan caused by insufficient or inaccurate near\-field data: evaluation of the needed step size, phase accuracy and the need for all surfaces in the huygens’ box\.InInternational Symposium on Electromagnetic Compatibility\-EMC EUROPE,pp\. 1–6\.Cited by:[§I](https://arxiv.org/html/2609.16948#S1.p2.1)\.
- \[5\]A\. Newell, R\. Baird, and P\. Wacker\(1973\)Accurate measurement of antenna gain and polarization at reduced distances by an extrapolation technique\.IEEE Transactions on Antennas and Propagation21\(4\),pp\. 418–431\.Cited by:[§I](https://arxiv.org/html/2609.16948#S1.p2.1),[§II\-A1](https://arxiv.org/html/2609.16948#S2.SS1.SSS1.p1.1)\.
- \[6\]L\. Yu, F\. Zhang, Y\. Zhang, X\. Zhang, Z\. Wang, Y\. Jing, and W\. Fan\(2025\)Antenna pattern reconstruction based on mid\-field phaseless measured data using simplified extrapolation technique\.IEEE Transactions on Antennas and Propagation\.Cited by:[§I](https://arxiv.org/html/2609.16948#S1.p2.1),[§II\-A1](https://arxiv.org/html/2609.16948#S2.SS1.SSS1.p1.1),[§III\-C](https://arxiv.org/html/2609.16948#S3.SS3.p1.1),[§IV\-A2](https://arxiv.org/html/2609.16948#S4.SS1.SSS2.p1.1)\.
- \[7\]R\. Cornelius and D\. Heberling\(2017\)Spherical wave expansion with arbitrary origin for near\-field antenna measurements\.IEEE Transactions on Antennas and Propagation65\(8\),pp\. 4385–4388\.Cited by:[§I](https://arxiv.org/html/2609.16948#S1.p3.1),[§II\-A2](https://arxiv.org/html/2609.16948#S2.SS1.SSS2.p1.1)\.
- \[8\]A\. Paulus, J\. Knapp, and T\. F\. Eibert\(2017\)Phaseless near\-field far\-field transformation utilizing combinations of probe signals\.IEEE Transactions on Antennas and Propagation65\(10\),pp\. 5492–5502\.Cited by:[§I](https://arxiv.org/html/2609.16948#S1.p3.1),[§II\-A1](https://arxiv.org/html/2609.16948#S2.SS1.SSS1.p1.1)\.
- \[9\]J\. E\. Hansen\(1988\)Spherical near\-field antenna measurements\.Vol\.26,IET\.Cited by:[§II\-A1](https://arxiv.org/html/2609.16948#S2.SS1.SSS1.p1.1)\.
- \[10\]J\. Ho, A\. Jain, and P\. Abbeel\(2020\)Denoising diffusion probabilistic models\.Advances in Neural Information Processing Systems33,pp\. 6840–6851\.Cited by:[§II\-B1](https://arxiv.org/html/2609.16948#S2.SS2.SSS1.p1.1)\.
- \[11\]Y\. Lipman, R\. T\. Chen, H\. Ben\-Hamu, M\. Nickel, and M\. Le\(2022\)Flow matching for generative modeling\.arXiv preprint arXiv:2210\.02747\.Cited by:[§II\-B1](https://arxiv.org/html/2609.16948#S2.SS2.SSS1.p1.1)\.
- \[12\]Y\. Li, S\. Zhang, Y\. Chen, B\. Li, Y\. Zhang, and X\. Du\(2025\)SpotDiff: spotting and disentangling interference in feature space for subject\-preserving image generation\.arXiv preprint arXiv:2510\.07340\.Cited by:[§II\-B1](https://arxiv.org/html/2609.16948#S2.SS2.SSS1.p1.1)\.
- \[13\]P\. Khosla, P\. Teterwak, C\. Wang, A\. Sarna, Y\. Tian, P\. Isola, A\. Maschinot, C\. Liu, and D\. Krishnan\(2020\)Supervised contrastive learning\.Advances in Neural Information Processing Systems33,pp\. 18661–18673\.Cited by:[§II\-B2](https://arxiv.org/html/2609.16948#S2.SS2.SSS2.p1.1),[§III\-B1](https://arxiv.org/html/2609.16948#S3.SS2.SSS1.p1.1)\.
- \[14\]K\. He, X\. Zhang, S\. Ren, and J\. Sun\(2016\)Deep residual learning for image recognition\.InProceedings of the IEEE Conference on Computer Vision and Pattern Recognition,pp\. 770–778\.Cited by:[§III\-B](https://arxiv.org/html/2609.16948#S3.SS2.p1.1)\.
- \[15\]O\. Ronneberger, P\. Fischer, and T\. Brox\(2015\)U\-net: convolutional networks for biomedical image segmentation\.InInternational Conference on Medical Image Computing and Computer\-Assisted Intervention,pp\. 234–241\.Cited by:[§III\-B](https://arxiv.org/html/2609.16948#S3.SS2.p1.1)\.
- \[16\]M\. Narasimhan and B\. Philips\(1987\)Synthesis of near\-field patterns of a nonuniformly spaced array\.IEEE Transactions on Antennas and Propagation35\(11\),pp\. 1189–1198\.External Links:[Document](https://dx.doi.org/10.1109/TAP.1987.1144001)Cited by:[§III\-D](https://arxiv.org/html/2609.16948#S3.SS4.p2.1)\.
- \[17\]D\. W\. Hess\(2011\)Historical background on the use of equivalent stray signal in comparison of antenna patterns\.InProceedings of the 5th European Conference on Antennas and Propagation \(EUCAP\),pp\. 2522–2526\.Cited by:[§IV\-A2](https://arxiv.org/html/2609.16948#S4.SS1.SSS2.p1.1)\.

Similar Articles

Asymmetric Flow Models

Hugging Face Daily Papers

Asymmetric Flow Modeling (AsymFlow) restricts noise prediction to low-rank subspaces for efficient high-dimensional flow-based generation, achieving state-of-the-art results on ImageNet and text-to-image tasks by fine-tuning from latent flow models.

MeshFlow: Mesh Generation with Equivariant Flow Matching

Hugging Face Daily Papers

MeshFlow introduces an equivariant optimal-transport flow matching model for direct triangle mesh generation, achieving state-of-the-art quality while providing approximately 18x inference speedup over autoregressive methods.

ChangeFlow -- Latent Rectified Flow for Change Detection in Remote Sensing

Hugging Face Daily Papers

ChangeFlow presents a generative framework for remote sensing change detection that synthesizes change masks in latent space using rectified flow, achieving improved accuracy and robustness through sampling-based prediction ensembling, with an average F1 of 80.4% across four benchmarks.