---
title: 'SGNN_LLM_SH: Unified ISAC Optimization'
url: https://www.emergentmind.com/topics/sgnn_llm_sh-model
type: topic
---

# SGNN_LLM_SH: Unified ISAC Optimization

The SGNN_LLM_SH model is a unified learning framework designed for joint antenna deployment, segment partitioning, and beamforming in segmented pinching antenna-assisted integrated sensing and communication (ISAC) systems. By leveraging channel state information (CSI)-induced graph neural networks (GNNs) and a large language model (LLM) backbone augmented with LoRA adapters, SGNN_LLM_SH achieves permutation- and size-invariant representations while delivering high adaptability to varying user and sensing target configurations. It supports end-to-end trainability under stringent communication-sensing constraints and enables efficient policy transfer across heterogeneous user and target scenarios [2604.10372].

## 1. CSI-Induced Self-Graph Construction

SGNN_LLM_SH formulates each communication user and sensing target as a node in a CSI-induced self-graph $G=(V, E, A)$, where the node set $V=\{v_1, \ldots, v_{K_c+K_s}\}$ comprises $K_c$ users and $K_s$ targets. Each node $i$ is characterized by a feature vector,
\[
x_i = [\|h_i\|_2,\, \angle(\sum_{n=1}^N [h_i]_n),\, \tau_i]^\top,
\]
with $h_i \in \mathbb{C}^{N \times 1}$ as the near-field antenna-to-node channel, and $\tau_i\in\{0,1\}$ denoting user (1) or target (0) status.

Edge weights are defined by the normalized CSI similarity,
\[
A_{ij} = \frac{|\langle h_i, h_j \rangle|}{\|h_i\|_2\,\|h_j\|_2 + \epsilon},
\]
where $\epsilon > 0$ provides numerical stability, and each row of $A$ is normalized to sum to one. GNN propagation proceeds as:
\[
h_i^{(0)} = W_{in} x_i, \qquad
h_i^{(\ell+1)} = \sigma(W_1^{(\ell)} h_i^{(\ell)} + W_2^{(\ell)} \sum_{j} A_{ij} h_j^{(\ell)})
\]
for $\ell = 0, \ldots, L_g-1$. Final node embeddings are pooled to produce a global, permutation-invariant graph embedding,
\[
z_g = \frac{1}{K_c + K_s} \sum_{i=1}^{K_c+K_s} h_i^{(L_g)} \in \mathbb{R}^{d_g}.
\]

This construction guarantees that the downstream pipeline remains agnostic to user and target ordering, and is functionally robust to variable-sized interaction sets.

## 2. LLM Backbone with LoRA Adaptation

The model reshapes the $N$-antenna CSI tensor into a length-$N$ token sequence $X = [x^{tok}_1, \ldots, x^{tok}_N] \in \mathbb{R}^{N \times 2(K_c+K_s)}$ by stacking real and imaginary parts across all channels for each antenna. Token embeddings are projected via LayerNorm and an affine map, then conditioned on the pooled graph embedding:
\[
\tilde{v}_n = \text{LayerNorm}(W_{tok} x^{tok}_n), \qquad
\bar{v}_n = \tilde{v}_n + W_g z_g, \qquad n=1,\dots,N.
\]
The sequence $\{\bar{v}_n\}$ is fed into a pretrained GPT-style transformer backbone. LoRA (Low-Rank Adaptation) modules are integrated into every projection layer to enable efficient, parameter-light fine-tuning. The final hidden matrix,
\[
H_{LLM} = \text{LLM}_{\text{LoRA}}([\bar{v}_1; \ldots; \bar{v}_N]) \in \mathbb{R}^{N \times d},
\]
serves as the feature substrate for task-specific heads.

LoRA facilitates rapid adaptation to new tasks or data domains while minimizing update overhead compared to full transformer retraining.

## 3. Task-Specific Heads: Deployment, Partitioning, and Beamforming

Following LLM backbone processing, the output sequence is aggregated via mean pooling and fed into two separate heads:

- **Deployment & Partition Head**: Produces raw antenna positions $ \hat{y}^{raw} \in \mathbb{R}^N $ and segment logits $ \pi_\chi \in \mathbb{R}^M $ ($M$ is the number of possible antenna segments). After activation and projection,
  \[
  \hat{y} = L \cdot \sigma(\hat{y}^{raw}),
  \]
  with a differentiable non-overlap projection layer enforcing deployment geometry constraints ($0 \leq \hat{y}_n \leq L$, $|\hat{y}_n - \hat{y}_{n'}| \geq d_{\min}$). The $K_{tx} = K_c+K_s$ highest logit segments in $ \pi_\chi $ are designated for transmission; the remainder for reception.

- **Beamforming Head**: Provides complex-valued beamformer matrices for communication ($\hat{W}$) and sensing ($\hat{F}$) functions. Outputs $[\hat{W}_{Re},\, \hat{W}_{Im},\, \hat{F}_{Re},\, \hat{F}_{Im}]$ are combined, with only antennas in transmit segments being active.

| Head                     | Outputs                        | Role                                      |
|--------------------------|--------------------------------|-------------------------------------------|
| Deployment & Partition   | $ \hat{y}^{raw}, \pi_\chi $    | Antenna positions, segment assignment     |
| Beamforming              | $ \hat{W}, \hat{F} $           | Communication/sensing beamformers         |

This architectural separation enables hierarchical optimization over spatial layout and signal processing weights.

## 4. Optimization Objectives and Loss Formulation

SGNN_LLM_SH targets joint maximization of communication sum rate ($R_{sum}$) under sensing accuracy, power, and deployment constraints. The transmitted field,
\[
x = \sqrt{\rho_c} \sum_{k=1}^{K_c} w_k s_k + \sqrt{\rho_s} \sum_{\ell=1}^{K_s} f_\ell q_\ell,
\]
allocates total power $P_{max}$ between communications ($\rho_c$) and sensing ($\rho_s$).

Key metrics:
- **SINR** at user $k_c$:
\[
\text{SINR}_{k_c} = \frac{ \rho_c | h_{k_c}^T w_{k_c} |^2 }{ \rho_c \sum_{i \ne k_c} | h_{k_c}^T w_i |^2 + \rho_s \sum_j | h_{k_c}^T f_j |^2 + \sigma_c^2 }
\]
- **Sum rate**:
\[
R_{sum} = \sum_{k_c=1}^{K_c} \log_2(1 + \text{SINR}_{k_c})
\]
- **Sensing error** for target $\ell$: CRLB$ _\ell = \mathrm{tr}( J_{\ell}^{-1} )$, where $J_\ell$ is the FIM from the near-field echo model.

The model loss is a composite,
\[
L = w_{dep} L_{dep} + L_{perf} + L_{geom},
\]
where deployment, geometric, and performance (rate, CRLB compliance) losses are included.

The optimization is formally posed as:
\[
\max_{y, \chi, \{w\}, \{f\}} R_{sum}
\]
\[
\text{subject to: } \text{CRLB}_\ell \leq \epsilon_\ell\ \forall \ell;\ 0\leq y_n \leq L;\ |y_n - y_{n'}|\geq d_{min};
\]
\[
\chi_m \in \{0,1\},\ K_c + K_s \leq \sum_m \chi_m \leq M-1;\  \rho_c \sum_k \| w_k \|_2^2 + \rho_s \sum_\ell \| f_\ell \|_2^2 \leq P_{max}
\]
This multi-objective differentiable approach supports constraint-satisfying, end-to-end, policy learning.

## 5. Training Regime and User-Count Transfer

The training regime comprises two stages:

1. **Source Task Learning**: All modules (self-graph encoder, LLM LoRA adapters, task-specific heads) are trained jointly via backpropagation through a differentiable simulation environment that can on-the-fly compute $R_{sum}$ and CRLB metrics for the current configuration.

2. **Beamforming Head Adaptation ("Beam-Head-Only" Transfer)**: For a deployment with new user/target counts $(K_c, K_s)$, the self-graph encoder, LLM backbone (including LoRA modules), and deployment & partition head are all frozen; only the beamforming head is reset and trained for the new output dimensionality:
    - This adaptation involves $\ll 1\%$ of total parameters and typically converges within approximately eight epochs.
    - The learned deployment $ \hat{y} $—including spatial antenna arrangement and transmit/receive segmentation—remains stable across reconfigurations.

This scheme yields low training cost for policy transfer and robust cross-scenario reuse.

## 6. End-to-End Pipeline Implementation

A concise end-to-end pipeline includes CSI processing, graph construction, LLM+LoRA forward pass, head projections, metric computation, and loss-based parameter updates.

The training and transfer processes are codified in detailed pseudocode, replicating the following high-level procedure:

```python
# Source‐Task Training
initialize(self_graph_encoder, LLM_LoRA, dep_head, bf_head)
for epoch in 1…E_src:
  for (H, y*, {p_u}, {p_s}) in source_dataset:
    # Self-graph construction and graph embedding
    x_i ← CSI→node‐features(H)
    A ← CSI_similarity(H)
    z_g ← self_graph_encoder(x_i, A)

    # LLM forward pass
    X_tok ← flatten_CSI_to_tokens(H)
    ṽ_n ← LayerNorm(W_tok X_tok[n])
    \bar v_n ← ṽ_n + W_g z_g
    H_LLM ← LLM_LoRA([ \bar v_1…\bar v_N ])

    # Task-specific heads
    g_dep ← f_dep(mean(H_LLM))
    ŷ^raw, π_χ ← dep_head(g_dep)
    ŷ ← L·sigmoid(ŷ^raw)
    ŷ ← non_overlap_proj(ŷ)
    χ̂ ← topK_mask(π_χ, K_c+K_s)

    g_bf ← f_bf(mean(H_LLM))
    Ŵ,F̂ ← assemble_complex(bf_head(g_bf))

    # Metric computation
    R_sum ← evaluate_rate(ŷ, χ̂, Ŵ, F̂, {p_u})
    CRLB ← evaluate_CRLB(ŷ, χ̂, F̂, {p_s})

    # Loss and parameter update
    L_dep ← (1/N)‖sort(ŷ)−sort(y*)‖²/L²
    L_perf ← −w_rate R_sum + w_crlb·hinge_log(CRLB, ε_crlb)
    L_geom ← geometry_penalty(ŷ, χ̂)
    L_tot ← w_dep L_dep + L_perf + L_geom
    backprop_and_update(L_tot)

# Beam‐Head‐Only Transfer
load(source_model)
freeze(self_graph_encoder, LLM_LoRA, dep_head)
reset(bf_head, new_dims=(K_c_tgt, K_s_tgt))
for epoch in 1…E_tgt:
  for Hbatch in target_dataset:
    z_g ← self_graph_encoder(CSI→features(Hbatch))
    ...  # LLM forward, deployment as above
    Ŵ,F̂ ← bf_head(...)
    R_sum, CRLB ← eval_metrics(...)
    L_perf ← −w_rate R_sum + w_crlb·hinge_log(CRLB, ε_crlb)
    backprop_and_update_bf_head_only(L_perf)
```

This pipeline upholds unified, end-to-end differentiable optimization for deployment, segmentation, and beamforming operations, with supporting mechanisms for rapid environment adaptation.

## 7. Significance and Practical Implications

SGNN_LLM_SH establishes a new design paradigm for flexible, high-dimensional ISAC architectures, providing the following distinguishing properties:

- **Unified end-to-end optimization under coupled communication–sensing constraints**: All deployment, segmentation, and beamforming variables are differentiably co-optimized within a single computational graph.
- **Permutation and size invariance through CSI-induced self-graph encoding**: The model accommodates arbitrary permutations and cardinalities of users/targets, supporting broad ISAC deployment scenarios.
- **Highly lightweight and efficient transfer learning**: Beamforming adaptation under varying user/target configurations is achieved with negligible retraining overhead and rapid convergence, retaining deployment optimality.

Simulation results indicate elevated communication throughput and stable sensing performance across user/target reconfigurations, with transfer reducing the retraining cost to <1% of original parameters and typically converging in eight epochs. This suggests the deployment and partitioning policies are robust and reusable, while environment-specific adaptation of beamforming suffices for continued optimality [2604.10372].

Source: https://www.emergentmind.com/topics/sgnn_llm_sh-model