arXiv:2610.27512cs.AIOct 2026

Manuscript Offprint

arXiv:2610.27512

Structured-Token Attention for Fine-Grained mmWave Liquid Identification

Junseo Min, Joongheon Kim

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Junseo Min

Department of Defense Convergence Technology

Korea University

Seoul, Republic of Korea

junseo_min@korea.ac.kr

Joongheon Kim

Department of Electrical & Computer Engineering

Korea University

Seoul, Republic of Korea

joongheon@korea.ac.kr

Abstract—Fine-grained liquid identification requires a classifier to distinguish similar substances from compact millimeter-wave measurements. We investigate structured-token attention, which represents a radar feature tensor through complementary antenna, feature, branch, and global views. The proposed StructAttn model embeds these views into eleven tokens and combines them with a three-layer transformer. Experiments on the public FG-LiquID data cover 30 liquids and 3,000 samples. Over five seeds on the released split, StructAttn achieves 96.70% mean best-epoch accuracy, matching the original-recipe MMNet baseline and exceeding a scalar-token attention model by 1.50 percentage points. A five-seed probability ensemble reaches 97%, corresponding to 18 errors among 600 test samples. Final-epoch and five-fold results complement the checkpoint-selected comparison, with StructAttn obtaining 95.30% out-of-fold accuracy. Token and feature analyses show that structured views are useful for prediction, while residual confusions concentrate in water, soft-drink, and edible-oil classes. These results support structured tokenization as a practical design choice for attention-based liquid recognition.

Index Terms—Millimeter-wave sensing, liquid identification, structured tokens, self-attention, sensor classification.

I. INTRODUCTION

Contactless liquid identification is relevant to automated inspection and everyday sensing. Similar-looking liquids can belong to different categories, and different containers can hold the same substance. Millimeter-wave (mmWave) measurements provide an alternative source of information through the interaction between electromagnetic signals and the observed liquid. FG-LiquID demonstrates fine-grained recognition using a learned representation of radar-derived features [1].

A compact sensing tensor contains several kinds of structure. Measurements from one receiving antenna describe a common sensing channel, whereas values of the same feature across antennas describe a common observable. Location-related features and reflected signal strength also offer different views of a sample. Flattening this tensor into independent scalars leaves these relationships implicit and requires the classifier to recover them from limited training data.

Self-attention provides a mechanism for combining measurements according to the current sample [2]. Its usefulness depends on token construction. Unlike a scalar token, a complete antenna or feature slice encodes local relationships before interacting with other tokens. This motivates structured input views.

This paper develops StructAttn, a structured-token attention model for fine-grained mmWave liquid identification. The model constructs overlapping antenna, feature, location, reflection, and global views without adding measurements. A small token sequence is processed by a transformer, and the output combines a learned classification token with the mean of the measurement tokens. The design retains the semantics of the input dimensions while allowing interactions across views.

The evaluation examines structured tokenization against attention-based alternatives, compares MMNet under different checkpoint and aggregation settings, and identifies informative measurements and confusable liquids. It uses repeated seeds, token variants, feature masking, and out-of-fold predictions.

The main contribution is a measurement-aware token construction and its empirical characterization on FG-LiquID. A single StructAttn-S3 model reaches the same mean best-epoch accuracy as original-recipe MMNet, while a five-seed ensemble attains the highest ensemble accuracy among the compared configurations. Best-epoch, final-epoch, and cross-validation results are interpreted separately.

References (20)