AREALS geometry prior
A masked surface autoencoder pretrained on geometry alone, with no simulation or field data. It encodes a 3D surface into 256 areal tokens and predicts, at any point around the shape, the unsigned distance to the surface and the surface normal line, including over parts of the surface it was not shown. It is the geometry prior of AREALS (Large Geometry Models Are Priors For Fast Physics Pretraining). Fine-tuned on car surface pressure, it gives leochl/areals-drivaerml.
- Developed by: Hassana Labs
- Model type: transformer autoencoder over surface samples; 3,214,927 parameters
- Licence: Apache-2.0 for these weights. The training meshes come from Objaverse-XL. The code is MIT.
- Code: github.com/leochlon/areals_model_experiments (package
areal_tokens0.6.0 insrc/, model presetconfigs/symmetry.json) - Paper: arXiv:2611.02066
- Questions and issues: GitHub issues
Model description
Encoder. The input is a surface given as area-weighted samples: position, unit normal and area. Each pass works in the frame set by the input's area-weighted centroid and RMS radius, and draws 4,096 samples in proportion to area. Farthest-point sampling picks 256 anchors, and each anchor starts a token of width 192 from its own position and normal. One cross-attention block reads all samples into the tokens, and four self-attention blocks mix the tokens. Attention has 4 heads, encodes 3D positions with rotary embeddings and weights each key by its area. Each token keeps its anchor's position, normal and cell area, so the token set is also a quadrature rule over the surface.
Decoder. A query point is embedded by Fourier features of its position in the shape's frame and attends to the tokens through two blocks; queries never attend to each other. One head gives the distance (softplus). The other gives the normal as a symmetric 3×3 matrix n nᵀ, read out as its top eigenvector, so the normal is a line with no sign. Learned per-query gates blend these heads with two readouts of the token set:
- a surfel readout, which treats 2,048 input samples (8 per token) as small disks and is near exact wherever the surface was seen;
- a symmetry readout, which carries the surfel readout through up to 16 rigid symmetries found in the visible input (reflections, rotations and translations between repeated parts).
A per-shape flag tells the decoder whether its input is the whole surface.
Size. 3,214,927 trainable parameters. The state dict also holds 352 fixed buffer elements (Fourier and rotary frequencies, rotary axis indices), 3,215,279 elements in all.
Inputs and outputs
- Surface: points
[N, 3], unit normals[N, 3]and area weights[N].areal_tokens.prepare.prepare_meshmakes them from a triangle mesh: 16,384 samples, uniform by area, as in training. Units, position and scale are free, because the model works in the input's own frame. Orientation is free too: every training shape was turned by a uniformly random 3D rotation. - Normal signs: training flipped the sign of each input normal with probability 0.5, and the model expects the same at inference; the snippet below does this. On the 1,785 validation meshes in their stored orientation with 60% of each surface hidden, flipped signs give distance nRMSE 0.0834 and normal error 19.02°. The stored signs give 0.1208 and 21.39°.
- Queries: points
[Q, 3]in the input's coordinates, anywhere around the shape. Training queries were 70% near the surface (offset along the normal with standard deviation 0.04 RMS radii) and 30% uniform in the bounding box enlarged by 0.2 RMS radii. - Outputs:
udf[Q]: unsigned distance to the whole surface, in the input's units;normals[Q, 3]: unit normal line, with arbitrary sign;normalized_udf[Q]: the distance in RMS radii of the input;normal_tensor[Q, 3, 3]: the projector n nᵀ.
- Partial surfaces: when part of the surface is hidden, the outputs still describe the whole shape. Training hid 19 of 32 farthest-point patches of each surface (the 60% setting) and showed 10% of examples whole.
- Tokens:
model.encoder(batch)returns the token set: 256 tokens of width 192 with their anchor positions, normals and area weights, and the shape's centre, scale and area.
Intended uses
- Initialising surface-field models by fine-tuning:
areal_tokens.fieldadds field-value input columns and a field head. leochl/areals-drivaerml is this model fine-tuned on car surface pressure. - Encoding surfaces into areal tokens for downstream models.
- Predicting distance and normal around whole or partly hidden surfaces.
The model was trained on geometry alone: Objaverse-XL meshes of any category, in arbitrary units and orientations.
Training data
- Source: Objaverse-XL (Deitke et al., 2023, arXiv:2307.05663), Sketchfab subset: the first 76,000 objects in order of their sha256 identifiers. Each object keeps its own licence, listed in the Objaverse-XL metadata.
- Preparation:
areal_tokens.prepare.prepare_mesh_manifest, seed 17. Each mesh gives 16,384 surface samples, uniform by area (position, face normal, area weight). It also gives 32,768 query points with their exact point-to-triangle unsigned distance and nearest-face normal. 75,211 meshes converted and 789 failed. - Split: 90/5/5 train/validation/test by a hash of the identifier.
- Cleaning, in order:
| Step | Train | Validation | Test |
|---|---|---|---|
| Converted meshes | 67,577 | 3,814 | 3,820 |
| Remove meshes with zero-normal surface samples (10 in train). No train mesh exactly copied validation or test geometry. Keep the first 1,844 validation and 1,825 test meshes by identifier, the sizes of the paper's sets | 67,567 | 1,844 | 1,825 |
| Remove 8 train outliers whose distance targets exceeded 25 RMS radii of the visible part under training masks. Remove near-duplicates: candidates are each mesh's 10 nearest neighbours in an encoder embedding from an earlier run, confirmed when their Chamfer distance is at most twice the larger self-Chamfer of the two (two samplings of the same mesh). This removed 2,169 train near-duplicates of other train meshes (one kept per cluster), 2,286 train near-duplicates of validation or test meshes, and 59 validation near-duplicates of test meshes | 63,104 | 1,785 | 1,825 |
| Remove 1 train mesh whose random masks, in 8 of 15 epochs, left a visible patch of about 2×10⁻⁸ of the shape, giving distance targets of about 5×10⁸ RMS radii | 63,103 | 1,785 | 1,825 |
Training procedure
Every example is turned by a uniformly random 3D rotation, and each input normal's sign is flipped with probability 0.5. Then 60% of the surface is hidden (19 of 32 farthest-point patches; 10% of examples stay whole). The encoder sees 4,096 samples, and 1,024 of the stored queries are targets. The loss is a Huber loss (δ = 0.05) on the distance in RMS radii of the visible input. It adds the squared Frobenius distance between the predicted projector and n nᵀ, at queries within 0.1 RMS radii of the surface. Optimisation used AdamW (weight decay 0.05), gradient clipping at 1.0 and bf16 autocast. Data-parallel training ran on 6 GPUs at a global batch of 64, giving 986 updates per epoch over the 63,103 training meshes.
| Stage 1 | Stage 2 (continuation) | |
|---|---|---|
| Start | random weights, seed 17 | stage-1 epoch-15 weights, fresh AdamW |
| Learning rate | 200-update warm-up to 3×10⁻⁴, cosine to 1.5×10⁻⁵ | 300-update warm-up to 1×10⁻⁴, cosine toward 1.5×10⁻⁵ over a planned 10 epochs |
| Epochs, updates | 15, 14,790 | 9, 8,874 (new masks, rotations and batch order) |
| Stop | planned length | plateau rule on 4-rotation validation (below) |
| Hardware | 6 × H100 80GB, Nebius | 6 × H100 80GB, Nebius |
| Wall time | 2 h 27 min (22:05–00:32 UTC, 2–3 Dec 2026) | 1 h 25 min (01:52–03:17 UTC, 3 Dec 2026) |
Stop rule: each stage-2 epoch was scored on 4 random rotations of the validation set. An epoch counted as a gain when it scored at least 0.5% below the last gain. Two epochs without a gain stopped training at the next epoch boundary. That happened after epoch 8, so training ended after epoch 9. The released weights are stage-2 epoch 9, the lowest 4-rotation score. The learning rate at that point was 1.72×10⁻⁵.
Software: PyTorch 2.15.0 (CUDA 13.2), Python 3.12.3, NumPy 2.5.5, areal_tokens 0.6.0.
Evaluation
Validation: 1,785 held-out Objaverse-XL meshes, 60% of each surface hidden
The validation split chose the checkpoint and gives these scores. Masks, encoder samples and the 1,024 queries per mesh are fixed per mesh. Each mesh is scored in the orientations below, with the training-time sign flips on its input normals.
- Distance nRMSE: per mesh, the RMS of (predicted − true distance) / RMS radius of the visible input; pooled over meshes, then over orientations, as root mean squares.
- Normal error: the angle between the predicted and true normal lines (0–90°) at queries within 0.1 RMS radii of the surface, averaged over all such queries, then over orientations.
| Orientations | Distance nRMSE | Normal error |
|---|---|---|
| 4 uniformly random | 0.0837 | 19.62° |
| all 24 axis-aligned | 0.0832 | 19.02° |
| stored orientation | 0.0834 | 19.02° |
| Stage-1 epoch 15, 4 uniformly random | 0.0866 | 19.88° |
Across poses, the nRMSE ranges from 0.0829 to 0.0844 over the 4 random rotations and from 0.0824 to 0.0838 over the 24 axis-aligned ones. By stage-2 epoch, the 4-rotation nRMSE was 0.0886, 0.0873, 0.0871, 0.0857, 0.0866, 0.0842, 0.0853, 0.0843 and 0.0837. validation_metrics.json has every epoch of both stages.
Fine-tuning on DrivAerML surface pressure
Experiment 02 of the code repository (experiments/02_simulation_efficiency/drivaerml) fine-tunes this model on nested subsets of DrivAerML's official training split, with 3 seeds per subset. The same architecture from random initialisation runs as the control. Each fit runs 8,000 updates. The table gives test nRMSE on the 50 official test cars with no sensors, as 3-seed means.
| Training cars | From this model | From scratch |
|---|---|---|
| 25 | 0.3704 | 0.4919 |
| 50 | 0.3182 | 0.4247 |
| 100 | 0.2637 | 0.3481 |
| 200 | 0.2189 | 0.2715 |
| 400 | 0.1911 | 0.2273 |
Fine-tuned from this model, the fits reach nRMSE 0.25 with 200 training cars. From scratch they need 400: 50% fewer training simulations, or 46.1% fewer counting the 34 validation cars. The 400-car fits are released as leochl/areals-drivaerml.
Environmental impact
- Hardware: NVIDIA H100 80GB HBM3
- Cloud provider: Nebius
- Training: 23.2 GPU-hours: 14.7 for stage 1 and 8.5 for stage 2, each on 6 GPUs
- Validation scoring during stage 2: about 1.4 further GPU-hours
How to get started
git clone https://github.com/leochlon/areals_model_experiments
pip install -e areals_model_experiments safetensors huggingface_hub
hf download leochl/areals-geometry --local-dir areals-geometry
cd areals-geometry
Run this from the downloaded folder. shape.npz is a prepared shape as written by areal_tokens.prepare.prepare_mesh("mesh.glb", "shape.npz"), which needs pip install -e "areals_model_experiments[mesh]".
from dataclasses import replace
import torch
from safetensors.torch import load_file
from areal_tokens.config import ExperimentConfig
from areal_tokens.data import GeometryDataset, collate_clouds
from areal_tokens.model import GeometryAutoencoder
config = ExperimentConfig.load("config.json")
model = GeometryAutoencoder(config.model)
model.load_state_dict(load_file("model.safetensors"))
model.eval()
# A prepared shape: surface samples (points, normals, weights) and query points with exact
# distances and normals (queries, udf, query_normals).
shape = dict(id="shape", family="shape", split="val", path="shape.npz")
# The whole surface is the input. With rotation and whole-input draws off, training=True keeps one
# training-time input step: each normal's sign flipped with probability 0.5, which the model expects.
inputs = replace(config.data, augment_rotation="none", full_input_probability=0.0)
data = GeometryDataset([shape], config.model, inputs, config.train.seed, mask_fraction=0.0, training=True)
batch = collate_clouds([data[0]]) # 4,096 encoder samples and 1,024 of the stored queries
with torch.inference_mode():
tokens = model.encoder(batch) # 256 areal tokens with positions, normals, areas
out = model.decode(tokens, batch["queries"]) # any [1, Q, 3] points in the shape's coordinates
distance = out["udf"][0] # unsigned distance to the surface, in the shape's units
normal = out["normals"][0] # unit normal line; its sign is arbitrary
error = (distance - batch["udf"][0]) / batch["scale"][0] # in RMS radii of the input
near = batch["normal_valid"][0] # queries within 0.1 RMS radii
angle = torch.rad2deg(torch.acos((normal * batch["query_normals"][0]).sum(-1).abs().clamp(max=1)))
print(f"distance nRMSE {error.square().mean().sqrt():.4f}, normal error {angle[near].mean():.2f} deg")
On the first validation mesh of the training manifest, this prints distance nRMSE 0.0069, normal error 8.02 deg on CPU. With mask_fraction=0.6, 60% of the surface is hidden, as in validation; the same mesh then gives 0.0507 and 8.89 deg. geometry.pt gives identical outputs through areal_tokens.io.load_model("geometry.pt").
Files
| File | Contents |
|---|---|
model.safetensors |
Weights: the GeometryAutoencoder state dict, 157 tensors (float32, plus int64 rotary axis indices) |
config.json |
Model, data and training configuration from the checkpoint; load with ExperimentConfig.load |
geometry.pt |
The original stage-2 epoch-9 checkpoint: weights, optimizer state, configuration and history. It loads with areal_tokens.io.load_model, and the repository's fine-tuning scripts read this format. Its training_recipe entry is the repository's recipe file for the paper's original run, copied in unchanged by the run setup |
validation_metrics.json |
Validation by epoch for both stages: rotation scores, the stored orientation, and the protocol |
SHA256SUMS |
SHA-256 of every file |
Citation
@misc{chlon2026areals,
title = {Large Geometry Models Are Priors For Fast Physics Pretraining},
author = {Chlon, Maggie and Chlon, Leon},
year = {2026},
eprint = {2611.02066},
archivePrefix = {arXiv},
primaryClass = {cs.LG},
url = {https://arxiv.org/abs/2611.02066}
}
Released by Hassana Labs.
- Downloads last month
- -