Abstract
Molecular representations fundamentally shape how machine learning systems reason about molecular structure and physical properties. Most existing approaches adopt a discrete pipeline: molecules are encoded as sequences, graphs, or point clouds, mapped to fixed-dimensional embeddings, and then used for task-specific prediction. This paradigm treats molecules as discrete objects, despite their intrinsically continuous and field-like physical nature. We argue that molecular learning can instead be formulated as learning in function space. Specifically, we model each molecule as a continuous function over three-dimensional (3D) space and treat this molecular field as the primary object of representation. From this perspective, conventional molecular representations arise as particular sampling schemes of an underlying continuous object. We instantiate this formulation with MolField, a hyper-network-based framework that learns distributions over molecular fields. To ensure physical consistency, these functions are defined over canonicalized coordinates, yielding invariance to global SE(3) transformations. To enable learning directly over functions, we introduce a structured weight tokenization and train a sequence-based hyper-network to model a shared prior over molecular fields. We evaluate MolField on molecular dynamics and property prediction. Our results show that treating molecules as continuous functions fundamentally changes how molecular representations generalize across tasks and yields downstream behavior that is stable to how molecules are discretized or queried.
Introduction: The Discrete vs. Continuous Paradigm
In the current landscape of molecular machine learning, molecules are typically treated as discrete entities—represented as 1D sequences (SMILES), 2D graphs, or 3D point clouds. While these abstractions have enabled significant progress, they fundamentally ignore the continuous, field-like nature of physical molecules, such as electron density and potential fields. This discretization forces models to rely on specific sampling schemes, making them sensitive to resolution and tying learned representations to specific tasks.
We propose that discrete structures should be viewed as mere queries of an underlying continuous object. By shifting the representation into function space, we can capture the full physical context of a molecule in a way that is robust to how it is sampled or observed.
Methodology: The MolField Framework
To operationalize learning in function space, we introduce MolField. The framework represents each molecule as a continuous function over 3D space, instantiated through three primary components:
- Canonical Implicit Neural Representations (C-INR): Instead of a fixed graph, a molecule is modeled by a coordinate-based neural network. This network maps any 3D spatial coordinate to a physical quantity. To maintain SE(3) invariance, coordinates are transformed into a molecule-specific "canonical" reference frame before evaluation.
- Structured Weight Tokenization (SWT): To leverage the power of sequence models like Transformers, the weights of the C-INR are partitioned into structured tokens. This allows the model to treat the neural network's parameters as a sequence while preserving its architectural hierarchy.
- Function Space Hyper-Network (FSHN): Rather than optimizing a new representation for every molecule, MolField employs a hyper-network that directly generates the weights of the C-INR in a single forward pass. This allows the model to learn a shared prior over the distribution of molecular fields.
Key Insights and Advantages
- Unification via Queries: Treating the continuous field as the primary object unifies various data types. Whether the input is a graph or a point cloud, it is simply a different set of queries to the same underlying function.
- Structural Priors and Extrapolation: The hyper-network's ability to learn a shared distribution over functions allows for impressive extrapolation. In molecular dynamics, the model learns the underlying dynamical structure rather than just memorizing frames, enabling accurate long-term predictions.
- Robustness to Sparse and Corrupted Data: MolField demonstrates remarkable stability. In discrete models, removing nodes fundamentally alters the representation. In MolField, sparse data simply results in fewer queries, leaving the underlying functional representation intact.
Experimental Evaluation
We evaluated MolField across several challenging tasks:
- Molecular Dynamics: MolField achieved state-of-the-art results in dynamic surface reconstruction across diverse protein trajectories, reaching a Volumetric IoU of 0.9113, significantly outperforming previous baselines (0.8460).
- Property Prediction: On the QM9 dataset, the model excelled in predicting spatial distribution-related properties, such as dipole moment (9 mD) and electronic spatial extent (62 $m\alpha_0^2$), while remaining competitive on energy metrics.
- Data Efficiency: The framework maintained high accuracy even when trained on only 20-25% of the available data, highlighting the efficiency of learning in function space.
Conclusion
MolField represents a fundamental shift in molecular machine learning, moving from discrete abstractions to continuous functional representations. By modeling molecules as fields, we achieve a representation that is more physically grounded, data-efficient, and robust to noise. Future research will explore scaling this approach to larger biomolecular systems and integrating it with differentiable physical solvers.
Summary updated