It’s late, your eyes are tired, and ironically, that’s exactly what we’re going to talk about: where those eyes are looking.
Gaze estimation—the "where are they looking?" problem—is a cornerstone of human-computer interaction. But for years, it’s been stuck in the lab. To get good data, you usually need expensive eye-trackers, perfect lighting, and cooperative subjects staring at dots on a screen. This creates a "generalization gap": a model trained on lab data often falls apart when it sees a grainy, poorly lit photo of someone looking at a pizza in the real world.
The authors of FlexGaze decided to skip the lab entirely and let the internet do the teaching.
TL;DR
FlexGaze is a family of gaze estimators that learns from 3.24 million "in-the-wild" images by automatically "hallucinating" 3D gaze labels using existing AI tools. The result is a lean, robust model that can predict where someone is looking even if they are facing away from the camera or their eyes are barely visible.
What Problem Does This Paper Address?
The "bottleneck" in gaze estimation is high-quality 3D data. Collecting it is a nightmare. You need to know exactly where the person’s head is in 3D space and exactly where their target is.
Because of this, most datasets are small and lack diversity. If a model only sees people looking at computer monitors, it won't know what to do with someone looking at a bird in the sky. Furthermore, most models rely on finding the face first. If the person turns their head (a "profile view") or looks away ("rear view"), the face detector fails, and the gaze model goes blind.
Methods
The core "aha!" of FlexGaze is weakly supervised pretraining at scale. Instead of manual labels, they built an automated pipeline to generate "pseudo-labels" from millions of random internet images.
As shown in Figure 1, the process works like this:
- Detect Heads: Use a standard detector (YOLO) to find every head in an image.
- Find the Target: Use an off-the-shelf "gaze-following" model to predict the 2D coordinates of what that person is looking at.
- Estimate Depth: Use a monocular depth estimation model to guess how far away the head and the target are.
- Lift to 3D: Combine the 2D positions and the depth to "lift" the gaze into a 3D vector.
- Filter the Noise: Throw away the obviously wrong stuff (e.g., gaze targets that are physically impossible).
They then train a Vision Transformer (ViT) on these 3.24 million noisy-but-plentiful labels. To make the model "flexible," they use crop jitter—randomly shifting and scaling the head box during training. This ensures the model doesn't care if your head detector is a little bit off-center.
Datasets
- Pretraining: They aggregated 17 public image sets (like Open Images and IMDB-WIKI) to create a massive corpus of 3.24 million head instances.
- Evaluation: They tested on eight major benchmarks, including Gaze360 (great for all-around views), ETH-XGaze (high res, extreme poses), and GazeCapture (mobile phone data).
Key Insights and Ideas
- Quantity has a quality of its own: Even though the "pseudo-labels" are noisy, having 3 million of them allows the model to learn a much broader "vocabulary" of gaze than a small, perfect lab dataset.
- The "Head-Only" Advantage: By training on the entire head crop rather than just the eyes or face, FlexGaze can infer gaze from head orientation alone when the eyes are occluded or the person is facing away.
- Detector Agnostic: Because of the heavy "crop jitter" during training, FlexGaze is remarkably robust to how the head is cropped. You can see this in Figure 6, where FlexGaze (the orange line) maintains low error even as the crop scale and center shift significantly compared to other models.
Key Results
- Efficiency: FlexGaze-B (86M parameters) outperformed the much larger UniGaze-H (630M parameters) on 6 out of 8 benchmarks, despite being 7x smaller.
- Generalization: Even without seeing any ground-truth labels (the "pretrained only" version), the model generalized to new datasets better than many previous models that were specifically trained on them.
- Handling the Invisible: On subsets of data where faces couldn't be detected (rear/side views), FlexGaze achieved errors close to specialized models, proving it doesn't need to "see" eyes to know where they are looking.
Limitations and Future Work
The authors are upfront about a few things:
- The "Teacher" Limit: The pseudo-labels are only as good as the models used to generate them. If the depth estimator or the 2D gaze-follower makes a systematic error, FlexGaze might inherit that bias.
- Single Frame: Currently, FlexGaze looks at one image at a time. In the real world, gaze is temporal—we move our eyes and heads in sequences. Adding a "memory" component (like a temporal transformer) is a logical next step.
- Directional Bias: In-the-wild images often have people looking at things near the center of the frame. The authors used filtering to mitigate this, but some bias likely remains.
In short, FlexGaze proves that if you want to understand how humans look at the world, you should probably start by looking at the world through the lens of the internet.
Summary updated