Manuscript Offprint

arXiv:2609.11708

Language-Augmented Semantic Priors for B-Spline Surface Fitting

Yunzhong Lou, Yusheng Luo, Jiahao Li, Yu Song, Xiangdong Zhou

Yunzhong Lou Yusheng Luo Jiahao Li Yu Song Xiangdong Zhou*

College of Computer Science and Artificial Intelligence, Fudan University, Shanghai, China

{yzlou20, xdzhou}@fudan.edu.cn {lijh23, ycluo24, songy23}@m.fudan.edu.cn

Why semantics matter?

Geometry-only fitting

Correct geometry, but design intent is ambiguous; multiple valid surface interpretations may exist.

Semantic-aware prior

Semantic cues restrict the solution space and favor surfaces aligned with design intent.

Figure

Figure

Figure

Figure

What semantics can control?

Procedural Modeling History

Symbolic operation chain:

Sketch → Solid Generation

→ Feature Modification

→ Boolean Composition

Geometry-only

Heuristic B-spline fitting

without semantic cues.

Semantic Prior A

Smooth-transition Intent

Semantic cues suggest

smooth blending regions,

favoring uniform curvature

and low-variation surfaces.

Semantic Prior B

Functional-detail Intent

Semantic cues emphasize

localized functional

features, leading to richer

curvature variation.

Figure

Figure

Figure

Figure 1. Semantic information meaningfully constrains the geometric interpretation of B-spline surfaces. When relying solely on geometric cues, a solver may produce multiple equally valid but intent-agnostic surface configurations. Incorporating semantic cues—such as smooth-transition intent or functional-detail emphasis—reduces this ambiguity and steers the fitted surface toward characteristics aligned with design intent.

Abstract

The use of B-splines and Non-Uniform Rational B-Splines (NURBS) surfaces constitutes the mathematical foundation of contemporary three-dimensional computer-aided design (CAD) systems. Despite long-term progress, geometric kernels in traditional CAD still rely heavily on predetermined heuristic initialization for surface fitting and parameterization. Meanwhile, the rich procedural semantics and design intent encoded in modeling histories (i.e., sequences of design operations) are largely ignored during geometry generation. This disconnect creates a critical gap between high-level design intent and solver-executable geometric configuration, often leading to suboptimal and semantically inconsistent fitting results. To bridge this gap, we introduce LASP, a Language-Augmented Semantic Priors framework that leverages large language models (LLMs) to infer structured, solver-usable B-spline priors from procedural modeling histories. Rather than modifying the geometric kernel itself, LASP operates as a semantic reasoning layer above existing solvers. It first translates modeling histories into rich textual descriptions that capture design intent, geometric context, and functional relationships, and then uses a fine-tuned LLM to predict structured B-spline prior parameters. LASP is trained through a two-stage scheme that combines local geometric regularities with long-range contextual dependencies, producing priors that are both interpretable and semantically coherent. This approach furnishes enhanced inductive signals that direct the conventional B-spline fitting process toward solutions that more accurately encapsulate the intended design objectives and demonstrate heightened semantic coherence. Compared to traditional machine learning schemes, the experiments demonstrate that language-driven reasoning can serve as a powerful inductive bias for geometric solving, establishing a new paradigm of language-guided geometric optimization in modern CAD systems.

1. Introduction

B-spline and Non-Uniform Rational B-Splines (NURBS) surfaces provide the mathematical backbone of modern CAD systems [7, 14, 27], supporting smooth, editable, and topologically consistent geometric representations. Commercial kernels such as Parasolid and ACIS, as well as open-source systems like OpenCascade [31], implement decades of carefully engineered numerical routines to ensure robustness and validity in geometric computation. Despite their maturity, these solvers depend on fixed heuristic initialization—predefined degrees, uniform knot vectors, and static control-point layouts—before executing deterministic fitting procedures. While effective for stability, such initialization limits the solver to a narrow region of its feasible parameter space and prevents it from adapting to the semantics of the modeling operation. Procedural commands such as Fillet, Shell, or Loft encode rich information about curvature transitions, functional intent, and local geometry [15, 42, 43], yet this knowledge is rarely translated into solver-usable geometric configurations for downstream surface generation.

Closing this gap requires connecting two fundamentally different representations. Modeling histories are symbolic, rule-based, and hierarchical, as captured in recent analyzes of parametric workflows [18]; geometric solvers, by contrast, operate over continuous numeric manifolds. This structural mismatch makes it difficult for solvers to exploit procedural context, even though such context often determines the intended geometric behavior. Prior learning-based approaches typically regress geometric parameters or reconstruct surfaces directly [38, 46, 49], leaving the solver unchanged and isolated from semantic guidance. Existing AI4CAD studies have predominantly focused on modeling-history reconstruction, or generating modeling histories and geometric outputs from design intent [24, 26], while the problem of translating designer-side semantics, or practical semantic proxies of them, into geometry-governing and solver-usable configurations remains largely underexplored. A more principled direction is therefore to endow solvers with context-conditioned priors that guide their initialization and restrict their search space toward semantically meaningful solutions—while retaining their deterministic optimization pipelines.

To address this challenge, we introduce LASP (Language-Augmented Semantic Priors), a framework that leverages large language models (LLMs) [5, 10] to infer semantically coherent B-spline priors from procedural modeling histories. LASP translates symbolic operations into rich-text semantic descriptions that capture multi-level cues about operation intent, geometric context, and functional relationships, aligning with recent language-driven CAD reasoning systems [39, 44, 45]. A fine-tuned LLM then predicts structured surface priors—degrees, control-point grids, rationality, closure, trimming patterns, continuity class, and surface roles—forming a language-conditioned parameterization of B-spline surfaces. Importantly, LASP does not modify the solver itself or introduce a new geometric optimization method; instead, it operates as a semantic reasoning layer above existing geometric kernels, configuring the fitting process through solver-usable priors and biasing the numerical optimization toward geometrically valid and semantically consistent regions of the parameter space.

LASP is trained in two complementary stages. Stage I focuses on local geometric regularities by learning operation-specific parameter structures grounded in physically valid B-spline distributions [18]. Stage II extends this reasoning to full modeling histories, capturing long-range dependencies such as continuity propagation, curvature transitions, and semantic role consistency across operations. This aligns with recent advances showing that LLMs can model long-range symbolic dependencies [9, 28, 53]. Together, these stages enable the model to learn both geometric grounding and high-level design semantics.

Extensive experiments demonstrate that LASP substantially improves parameter prediction accuracy and semantic consistency over strong LLM baselines and Transformer-only architectures. We further conduct an engine-level study by mapping discrete semantic priors into solver-accessible configuration choices, showing that semantically guided parameterization significantly improves RMS, Hausdorff, and median fitting errors—highlighting the practical influence of symbolic semantics on geometric fitting behavior and complementing recent language-conditioned optimization pipelines [32, 48]. Our key contributions are summarized as follows:

• We show that semantic priors learned from procedural modeling histories serve as transferable inductive biases for geometric solvers, guiding numerical optimization toward semantically meaningful solutions without modifying solver internals.

• We present LASP, the first language-driven framework that predicts structured B-spline priors from symbolic modeling histories via rich-text semantic reasoning and a two-stage LLM-based learning pipeline.

• We demonstrate that semantic priors significantly improve both parameter-level prediction and solver-level reconstruction quality, providing quantitative and qualitative evidence that linguistic reasoning provides a strong inductive bias for intent-aware geometric configuration.

References (47)