<?xml version='1.0' encoding='UTF-8'?>
<rfc version="3" ipr="trust200902" category="std" submissionType="IETF" consensus="true" docName="draft-huang-visual-token-semantic-transport-00" tocInclude="true" tocDepth="3" symRefs="true" sortRefs="true">
  <front>
    <title abbrev="Token-Native Semantic Transport">Token-Native Semantic Transport for Real-Time Video Agent Systems</title>
    <seriesInfo name="Internet-Draft" value="draft-huang-visual-token-semantic-transport-00"/>
    <author fullname="Shiyang Huang" initials="S." surname="Huang">
      <organization>Chinese Academy of Sciences</organization>
      <address>
        <postal>
          <city>Beijing</city>
          <country>China</country>
        </postal>
        <email>huangshiyang23s@ict.ac.cn</email>
      </address>
    </author>
    <author fullname="Gerui Lv" initials="G." surname="Lv">
      <organization>Chinese Academy of Sciences</organization>
      <address>
        <postal>
          <city>Beijing</city>
          <country>China</country>
        </postal>
        <email>lvgerui@ict.ac.cn</email>
      </address>
    </author>
    <author fullname="Qinghua Wu" initials="Q." surname="Wu">
      <organization>Chinese Academy of Sciences</organization>
      <address>
        <postal>
          <city>Beijing</city>
          <country>China</country>
        </postal>
        <email>wuqinghua@ict.ac.cn</email>
      </address>
    </author>
    <author fullname="Zhenyu Li" initials="Z." surname="Li">
      <organization>Chinese Academy of Sciences</organization>
      <address>
        <postal>
          <city>Beijing</city>
          <country>China</country>
        </postal>
        <email>zyli@ict.ac.cn</email>
      </address>
    </author>
    <date year="2026" month="November" day="26"/>
    <abstract>
      <t>This document describes a token-native semantic transport framework for real-time video agent systems. A client device extracts visual tokens from captured video and transmits their compressed representations to a server for inference. The framework adopts an autoencoder to reduce the dimensionality of visual tokens and organizes the compressed tokens into independently entropy-coded groups to support packet-level adaptation. The client device adjusts the number of visual tokens to transmit, both before and during each frame's transmission, to adapt to changes in available network bandwidth. This document specifies the functional architecture and requirements for token compression, packet-aware grouping, rate adaptation, and server-side token reconstruction.</t>
    </abstract>
  </front>
  <middle>
    <section anchor="introduction">
      <name>Introduction</name>
      <t>Real-time video agents use a live camera view to answer questions and guide user actions. They require visual information that supports accurate inference and arrives promptly. Conventional deployments encode and transmit video frames, reconstruct the images at a server, and then extract visual tokens for inference.</t>
      <t>This pipeline introduces two mismatches. First, video compression can distort the fine visual details needed for an agent to answer correctly. Second, frame-level encoding and rate adaptation operate at a coarser granularity than packet transmission. When bandwidth drops during a frame's transmission, changing the encoder's target rate affects later frames while the remaining data of the current frame can continue to accumulate in the sending queue.</t>
      <t>Token-native semantic transport addresses these mismatches by moving the vision encoder to the client device and conveying the resulting semantics directly to server-side inference. Compression reduces token data volume, token-count adaptation follows available bandwidth, and independently decodable groups support adjustment of the current frame's remaining data. Together, these functions preserve visual semantics and improve the timeliness of video input.</t>
      <section>
        <name>Terminology</name>
        <t>Visual token: A feature vector generated by a vision encoder that represents visual information for inference by a multimodal large language model (MLLM).</t>
        <t>Token group: A collection of compressed token representations that share a group header and can be decoded independently of other groups.</t>
      </section>
      <section>
        <name>Requirements Language</name>
        <t>The key words "<bcp14>MUST</bcp14>", "<bcp14>MUST NOT</bcp14>", "<bcp14>REQUIRED</bcp14>", "<bcp14>SHALL</bcp14>", "<bcp14>SHALL NOT</bcp14>", "<bcp14>SHOULD</bcp14>", "<bcp14>SHOULD NOT</bcp14>", "<bcp14>RECOMMENDED</bcp14>", "<bcp14>NOT RECOMMENDED</bcp14>", "<bcp14>MAY</bcp14>", and "<bcp14>OPTIONAL</bcp14>" in this document are to be interpreted as described in BCP 14 <xref target="RFC2119"/>
          <xref target="RFC8174"/> when, and only when, they appear in all capitals, as shown here.</t>
      </section>
    </section>
    <section anchor="architecture">
      <name>System Architecture</name>
      <t>The system comprises a client device and an inference server connected through the network. The client device generates visual tokens, compresses their feature representations, estimates encoded sizes, selects tokens, and independently encodes token groups. The server decodes received groups, reconstructs visual tokens, and organizes them by their original temporal and spatial positions for subsequent inference. The client device adjusts the number of visual tokens it transmits based on network measurements and transport feedback to adapt to changing network conditions.</t>
      <artwork type="ascii-art" align="left">+--------------------------+           +--------------------------+
| Client Device            |           | Inference Server         |
|                          |           |                          |
| Visual token generation  |           | Model inference          |
|            |             |           |            ^             |
| Autoencoder compression  |           | Position-based assembly  |
|            |             |           |            ^             |
| Size and token budget    |           | Token reconstruction     |
|            |             |           |            ^             |
| Independent group coding |           | Independent group decode |
|            |             |           |            ^             |
| Group sender ------------+-&gt; Network +---&gt; Group receiver       |
+--------------------------+           +--------------------------+</artwork>
      <section>
        <name>Semantic Encoding on the Client Device</name>
        <t>The client device applies the vision encoder to captured video before network transmission. An autoencoder maps the visual tokens to compact latent representations, which are quantized for entropy coding. A probability model estimates their encoded sizes so that the client device can plan token selection and grouping before producing the final encoded data.</t>
      </section>
      <section>
        <name>Token-Count Adaptation and Group Transmission</name>
        <t>The client device translates current bandwidth and a frame transmission interval into a byte budget. It selects a token subset within this budget and forms independently encoded groups according to packet payload capacity. During transmission, it adjusts the remaining groups using updated network state. Group independence allows already received semantics to remain available when later groups are omitted.</t>
      </section>
      <section>
        <name>Server-Side Token Reconstruction and Inference</name>
        <t>The server assembles complete groups, applies entropy decoding and autoencoder reconstruction, and forms a variable-length token sequence using the original position identifiers. It supplies this sequence to the remaining inference model, together with the relevant text and conversational context.</t>
      </section>
    </section>
    <section anchor="requirements">
      <name>Requirements for Token-Native Semantic Transport</name>
      <section>
        <name>Semantic Representation and Compression</name>
        <t>R3.1.1. Direct semantic input. The client device <bcp14>MUST</bcp14> generate visual tokens for server-side inference and preserve their frame and position associations. The server <bcp14>MUST</bcp14> support consumption of the selected token sequence using those associations.</t>
        <t>R3.1.2. Compact representation. The client device <bcp14>SHOULD</bcp14> use an autoencoder and entropy coding to reduce token data volume. The endpoints <bcp14>MUST</bcp14> use matching reconstruction and coding configurations so that received tokens have the feature dimensions and interpretation required by the inference model.</t>
        <t>R3.1.3. Independent recovery. Each complete group <bcp14>MUST</bcp14> be decodable using its own encoded data and the shared coding configuration. The compression and coding dependencies <bcp14>MUST</bcp14> remain within that group, allowing other groups to be omitted independently.</t>
      </section>
      <section>
        <name>Size Estimation and Packet-Aware Grouping</name>
        <t>R3.2.1. Encoded-size estimation. The client device <bcp14>SHOULD</bcp14> estimate token lengths from the coding probability model. These estimates <bcp14>SHOULD</bcp14> include token position information and <bcp14>SHOULD</bcp14> be used in both token selection and group formation.</t>
        <t>R3.2.2. Multi-token grouping. The client device <bcp14>MUST</bcp14> account for available packet payload capacity and group-header overhead when forming a group. It <bcp14>SHOULD</bcp14> place multiple tokens in a group while keeping the group within one packet's payload capacity, thereby sharing header costs and aligning decoding with transmission granularity.</t>
        <t>R3.2.3. Encoded groups. Each group <bcp14>MUST</bcp14> have a separate entropy-coding state and termination boundary. The client device <bcp14>MUST</bcp14> check the resulting group size. An oversized group <bcp14>MAY</bcp14> be fragmented; the receiver <bcp14>MUST</bcp14> collect all fragments of that group before decoding it.</t>
      </section>
      <section>
        <name>Two-Level Token-Count Adaptation</name>
        <t>R3.3.1. Frame-level budget. The client device <bcp14>SHOULD</bcp14> determine a frame's initial token count from current bandwidth, the transmission interval, and estimated token sizes. The budget <bcp14>MUST</bcp14> include the applicable token, group, and transport overhead. Token selection <bcp14>MAY</bcp14> follow a fixed order or a semantic-priority policy.</t>
        <t>R3.3.2. Current-frame adjustment. The client device <bcp14>MUST</bcp14> support reducing the current frame's remaining token count at group transmission opportunities. When bandwidth falls, it <bcp14>SHOULD</bcp14> remove selected unsent groups to reduce queuing and allow subsequent frames to proceed promptly.</t>
        <t>R3.3.3. Group submission. The client device <bcp14>MUST</bcp14> submit one group at a time and decide on the next group after all fragments of the current group have completed their initial transmission. This progression proceeds without waiting for reception acknowledgments. Network feedback <bcp14>SHOULD</bcp14> update the client device's subsequent selection and transmission decisions.</t>
      </section>
      <section>
        <name>Receiver Assembly and Completion</name>
        <t>R3.4.1. Group recovery. The receiver <bcp14>MUST</bcp14> associate complete groups with their frames, decode them independently, and preserve the original token positions when forming the inference input.</t>
        <t>R3.4.2. Frame closure. The client device <bcp14>SHOULD</bcp14> indicate when it finishes or terminates a frame's transmission. The inference server <bcp14>SHOULD</bcp14> determine when to submit the recovered visual tokens for inference based on the expected token groups, an end indication, or a receiving deadline. When an end indication is used, it <bcp14>SHOULD</bcp14> enable the inference server to distinguish groups still in transit from groups that will no longer be sent.</t>
      </section>
    </section>
    <section anchor="security">
      <name>Security Considerations</name>
      <t>The client device and inference server <bcp14>SHOULD</bcp14> use confidentiality and integrity protection for visual tokens, position information, and end indications.</t>
    </section>
    <section anchor="iana">
      <name>IANA Considerations</name>
      <t>This document requests no IANA actions.</t>
    </section>
  </middle>
  <back>
    <references>
      <name>Normative References</name>
      <reference anchor="RFC2119" target="https://www.rfc-editor.org/info/rfc2119">
        <front>
          <title>Key words for use in RFCs to Indicate Requirement Levels</title>
          <author fullname="Scott Bradner" initials="S." surname="Bradner"/>
          <date year="1997" month="March"/>
        </front>
        <seriesInfo name="BCP" value="14"/>
        <seriesInfo name="RFC" value="2119"/>
        <seriesInfo name="DOI" value="10.17487/RFC2119"/>
      </reference>
      <reference anchor="RFC8174" target="https://www.rfc-editor.org/info/rfc8174">
        <front>
          <title>Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words</title>
          <author fullname="Barry Leiba" initials="B." surname="Leiba"/>
          <date year="2017" month="May"/>
        </front>
        <seriesInfo name="BCP" value="14"/>
        <seriesInfo name="RFC" value="8174"/>
        <seriesInfo name="DOI" value="10.17487/RFC8174"/>
      </reference>
    </references>
  </back>
</rfc>
