Transformer backbones get more expensive very quickly as image resolution grows. Attention, the step where every image patch compares itself with every other patch, costs time proportional to the square of the number of patches. Lane detection needs high resolution because a lane marking fifty meters ahead may be only a few pixels wide. Yet most of a driving image is sky, buildings, and car roofs, and lane detectors spend most of their compute there. We propose that the lane model's own output decide where the backbone keeps fine patches. Many recent detectors describe each lane as a Bézier curve, a smooth curve fixed by four "control points" that pull it into shape. A Bézier curve always lies inside the convex hull of its control points, meaning the smallest convex polygon that encloses them. That hull can be computed almost for free, and it can be tightened by repeatedly splitting the curve into halves. So the curves predicted on the previous frame give an outline, with a coverage guarantee, of where the lanes can be in the current frame. We would keep small, fine patches inside that outline and merge everything else into large, coarse patches.
In two sentences: a Bézier lane is guaranteed to lie inside a cheap polygon built from its control points, and that polygon can be refined into a nested set of tighter polygons. We use these nested polygons, taken from the last frame's predictions, to choose patch sizes for the current frame, so the backbone can run at the resolution that distant lanes need without paying quadratic cost on regions that cannot contain lanes.
Core Claim
Our claim is that geometry-driven token allocation beats three things at the same compute: content-agnostic allocation, fixed road-region crops, and simply lowering the resolution. The gain should show up specifically on far-range and thin lanes. The mechanism rests on two standard properties of Bézier curves. The first is the convex-hull property: the curve $C(t)=\sum_i B_{i,3}(t)\mathbf{P}_i$ satisfies $C(t)\in\mathrm{conv}(\mathbf{P}_0,\dots,\mathbf{P}_3)$ for all $t\in[0,1]$, where $\mathbf{P}_i$ are the control points and $B_{i,3}$ the cubic Bernstein weights. The second is de Casteljau subdivision. Splitting a curve at $t=1/2$ yields two Bézier curves whose control polygons hug the curve more closely, and the gap shrinks roughly fourfold with each halving.
A perspective camera maps convex sets in front of it to convex sets in the image. The hull of the projected 3D control points therefore contains the projected curve. This gives a hierarchy of image-plane regions with a coverage guarantee, and it lines up naturally with a hierarchy of patch sizes: coarse hulls get medium patches, deep-subdivision hulls get the finest patches, and everything outside gets large patches. Nothing is discarded. Background regions become coarse tokens rather than being removed, so lanes that appear for the first time are still visible to the network, just at lower resolution.
Where This Sits in Prior Work
Three lines of work supply the lane side.
- BezierLaneNet showed that cubic Bézier regression gives fast, compact 2D lane detectors.
- BezierFormer samples reference points along each predicted curve so that decoder cross-attention follows the lane instead of an isotropic blob.
- TopoMLP predicts 3D Bézier control points for multi-camera topology reasoning.
All three make the decoder sparse and curve-aware, but they leave the backbone dense. That is where we intervene. SparseLaneSTP motivates our temporal design: it shows that previous-frame lane queries carry useful priors, and it also warns that ego-pose drift misaligns them. Our hull margins must absorb exactly that drift. An Efficient Transformer for 3D lanes cuts image-to-BEV cross-attention cost using lane queries as a bottleneck, again downstream of the backbone.
Two lines of work supply the efficiency side and constrain the design.
- APT varies patch size by local image entropy, reducing tokens by roughly 30% on dense tasks without degradation. Its criterion ignores road geometry and perspective.
- SG-Former learns a saliency map to reallocate tokens.
We reuse APT's mixed-patch machinery and swap its allocation rule. FastV shows that deep-layer tokens can be pruned heavily, but it prunes after the early layers have already paid full cost. QT-ViT notes that simple linear attention loses expressivity. That is a caution against the obvious alternative of linearizing everything, since thin markings are exactly the sharp, local structure such kernels blur.
BeMapNet reports that piecewise Bézier curves round off sharp corners. For us this matters only mildly, because hull coverage holds regardless and margins absorb shape error.
Research Program
The system has three parts.
Hull construction. Take the previous frame's predicted 3D Bézier lanes and warp them into the current frame using ego-motion. Project the control points into each camera. Build the subdivision hull hierarchy to a depth of about three, and dilate each hull by a margin set from two quantities: the model's predicted per-lane uncertainty and the expected pose error.
Allocation. A deterministic rule assigns each image region the finest patch size of any hull that covers it, and assigns large patches outside all hulls. One global knob controls the total token budget. The first frame of a sequence, and any frame where tracking confidence drops, falls back to a uniform coarse pass that bootstraps the curves.
Backbone and head. A plain global-attention ViT with mixed patch sizes, following APT's patch-merging embedding, feeds a BezierFormer-style curve-attention decoder. We use global attention because that is where the savings are quadratic. With a windowed backbone such as Swin, the savings are only linear in token count, and we report both cases.
We will analyze three things:
- how often ground-truth lane pixels fall outside the dilated hulls (coverage recall), as a function of margin and vehicle speed;
- whether errors concentrate on newly appearing lanes;
- how accuracy trades against backbone FLOPs, broken down by lane distance.
Baselines
The naive reference point is the same detector with a uniform ViT backbone at standard resolution, together with the same backbone at the high resolution we target. These two anchor the cost curve from both ends. A second naive point is a fixed crop that drops the image above a calibrated horizon. It is cheap and removes sky, so any geometric method must beat it at equal token count.
The strongest external systems on OpenLane are the following. SparseLaneSTP reports 66.1% F1 at 11.0 FPS with six decoder layers, and it also uses temporal priors, which makes it the most direct competitor. BezierFormer reports 58.6% F1 on OpenLane and 91.31% F1 on CurveLanes with Swin-Tiny. It is the closest architectural relative, since our decoder is essentially its curve attention. We will cite both numbers as reported. We will also retrain a BezierFormer-style model inside our codebase with identical data, schedule, and hyperparameter search budget, so that differences come only from the backbone token allocation.
Two alternative allocation rules get the same budget, the same mixed-patch backbone, and the same tuning trials: APT's entropy criterion and an SG-Former-style learned saliency map.
The key ablations isolate the geometric ingredient:
- the full subdivision hierarchy versus a single hull per lane;
- versus tubes of fixed width around discretely sampled curve points, which asks whether the Bézier hull adds anything beyond a polyline envelope;
- versus hulls built from ground-truth lanes, which gives an oracle upper bound;
- versus hulls without ego-motion warping.
Beating the baselines means one of two things. Either we match the uniform high-resolution model's F1 and far-range error at no more than half its backbone FLOPs, or we exceed APT and the horizon crop in far-range F1 by a margin larger than the seed-to-seed spread at equal FLOPs.
Why not just…?
Why not just crop the image below the horizon? A crop removes sky but keeps every car roof, sidewalk, and oncoming lane at full resolution. It cannot concentrate resolution on the narrow, distant region where lanes converge. It is still a genuine threat on straight highways. We will report results by scenario, curves and up-and-down slopes versus straight roads. If the crop matches us on flat, straight scenes but loses on curves and hills, as the hull's shape-adaptiveness predicts, the claim narrows accordingly.
Why not just use APT's entropy-based patch sizes? Entropy favors textured regions such as foliage, signage, and vehicles, not lanes. A faded marking on smooth asphalt can have low local entropy and be merged away. The matched-budget comparison, broken down by distance and by marking quality, settles this directly. If APT ties us, the geometric prior adds nothing and we would report that.
Why not just use a CNN or a windowed backbone, which is already linear in pixels? Linear cost still grows with every added pixel, so reducing the token count still pays, just not quadratically. Global-attention backbones also bring long-range context, which far lanes may need. We run both backbone families. If a ResNet at high resolution reaches the same far-range accuracy at lower cost, that is a real negative result for this proposal's premise, and we will state it.
Why not just sample more points along the curve in the decoder, as BezierFormer does? Decoder sampling reads features that the backbone has already computed at uniform cost. It cannot make those features finer where lanes are, or cheaper where they are not. Our ablation that holds the decoder fixed and varies only backbone allocation isolates this.
Proposed Experiments
The primary benchmark is OpenLane, whose Waymo-derived sequences provide consecutive frames with ego poses. The metric is F1, plus lateral and height errors that we bin by longitudinal distance, since far-range error is where the claim lives. We report backbone FLOPs, token counts, and end-to-end FPS on one GPU type for every method. CurveLanes tests whether hulls stay tight on sharp bends and forks, and it runs single-frame with a coarse bootstrap pass. OpenLane-V2 Subset_A, with seven cameras, tests the multi-view regime, where backbone cost multiplies. There the reference is TopoMLP at 41.2% OLS with ResNet-50, and we would swap its backbone for our allocated ViT.
The decisive checks are these:
- Coverage recall of ground-truth lanes stays above about 99% at the chosen margin, including during sharp turns and at high speed. If not, the mechanism is unsafe regardless of average F1.
- At a matched budget, the gap to the uniform high-resolution model falls mainly in the near-range bins and not the far ones.
- The subdivision-hull variant beats the sampled-tube ablation. Otherwise the Bézier structure is incidental and the contribution reduces to "use last frame's lanes," which is still useful but a smaller claim.
- Accuracy on newly entering lanes, identified by track birth, drops by no more than a few points relative to uniform. If it drops more, the coarse background tokens are insufficient.
References
- Rethinking Efficient Lane Detection via Curve Modeling
- BezierFormer: A Unified Architecture for 2D and 3D Lane Detection
- TopoMLP: A Simple yet Strong Pipeline for Driving Topology Reasoning
- SparseLaneSTP: Leveraging Spatio-Temporal Priors with Sparse Transformers for 3D Lane Detection
- An Efficient Transformer for Simultaneous Learning of BEV and Lane Representations in 3D Lane Detection
- Accelerating Vision Transformers with Adaptive Patch Sizes
- SG-Former: Self-guided Transformer with Evolving Token Reallocation
- An Image is Worth 1/2 Tokens After Layer 2: Plug-and-Play Inference Acceleration for Large Vision-Language Models
- QT-ViT: Improving Linear Attention in ViT with Quadratic Taylor Expansion
- End-to-End Vectorized HD-map Construction with Piecewise Bézier Curve