Abstract
Embodied AI agents rely on internal "states"—numerical data such as position, health, and velocity—to navigate and interact with their environments. However, traditional representation learning often struggles with the precision and semantic alignment of these scalar values. We introduce CLSP (High-Fidelity Contrastive Language-State Pre-training), a framework that combines classification-based pre-training with CLIP-style contrastive learning. By utilizing Random Fourier Features (RFF) to mitigate spectral bias, CLSP achieves high-fidelity state representations. Our results demonstrate significant performance gains in Reinforcement Learning (RL) navigation and Multimodal Large Language Model (MLLM) tasks, reducing error rates and accelerating convergence.
Introduction
In the field of Embodied AI, representing visual and textual data has seen significant progress, yet scalar-based state representation remains a challenge. Scalar states, which encompass raw numerical coordinates, health points (HP), and velocities, are dense and complex. Two primary issues hinder effective representation: the "Precision Gap," where standard neural networks fail to capture high-frequency numerical details due to spectral bias, and the "Semantic Gap," where aligning raw numbers with natural language descriptions often leads to a loss of exact precision. CLSP addresses these by bridging numerical fidelity with semantic understanding.
Methodology
The CLSP framework follows a three-step pipeline designed to create robust state embeddings.
- Classification-based Pre-training: The model first learns a coarse-grained task, classifying state properties (e.g., agent status, proximity to enemies). This establishes a semantic foundation for the encoder.
- Contrastive-based Representation Learning: Drawing inspiration from CLIP, the model aligns state embeddings with natural language descriptions using a dual-encoder architecture and contrastive loss.
- High-Fidelity Encoding with RFF: To overcome spectral bias, Random Fourier Features (RFF) are employed. Raw scalars are projected into a higher-dimensional space via sine and cosine functions, enabling the model to capture fine-grained numerical details that standard MLPs often smooth over.
The resulting encoder can be integrated into RL policies for goal-state representation or linked to MLLMs via an "Expansion Connector," allowing models like Vicuna to interpret agent states with high accuracy.
Experimental Setup
The framework was evaluated using a multiplayer First-Person Shooter (FPS) game benchmark. The researchers collected approximately 17 hours of gameplay data, resulting in a dataset of 0.55 million state-text pairs. These states include complex variables such as 3D positions, health, and directional data for players, teammates, and enemies, paired with generated natural language descriptions.
Results and Discussion
CLSP demonstrates superior performance across multiple evaluation domains. In text-to-state retrieval tasks, the full CLSP-RFFM model achieved a Recall@1 of 0.83, significantly outperforming standard CLIP-style baselines which scored near zero.
In RL navigation tasks, CLSP reached a 60% Goal Completion Ratio (GCR) using only 12% of the training data required by baseline models to reach a similar level. Furthermore, when integrated with MLLMs, CLSP reduced the Mean Absolute Error (MAE) for predicting health and position by approximately 62% compared to non-pre-trained encoders.
These results highlight the importance of classification as a "warm-up" task and the efficacy of RFF in handling scalar data. By addressing spectral bias, CLSP provides the mathematical "lens" necessary for high-fidelity numerical representation, proving that architectures optimized for vision or language are not always ideal for raw numbers.
Conclusion
CLSP offers a powerful method for representing scalar agent states, bridging the gap between raw numbers and semantic language. While the current implementation relies on manual labeling for initial pre-training and is focused on FPS environments, future work will explore automated labeling strategies and broader applications in robotics and diverse game genres to test the universality of these representations.
Summary updated