Panini- Feasible Grammar For Robot Designs
Organizations: Robotics and Autonomous Systems (AI), Arizona State University, Tempe, USA · Department of Artificial Intelligence, Arizona State University, Tempe, USA
Abstract
Symbolic methods make robot designs interpretable but often overlook continuous geometry; learned methods handle geometry but offer less transparent structure. We introduce a typed production grammar that uses case-role relations, parameter inheritance, and specificity-based rule arbitration to generate both manipulation skills and robot morphologies. A geometric realization map translates grammar composition into transformations in SE(3), behaving as a monoid homomorphism when inheritance is inactive and exhibiting a measurable defect when inheritance is enabled. The grammar provides a compact representation, and its arbitration decisions can be recovered from geometric containment (agreement 0.905 +/- 0.062 across 10 seeds, versus 0.611 +/- 0.090 for a Euclidean control). We also introduce PANINI, a cross-entropy search method over grammar-based morphology representations. Across 30 methods and 24 seeds, PANINI achieves the best mean rank but is not statistically distinguishable from strong generic optimizers. Its main demonstrated advantage is therefore structural rather than optimization performance: grammar-generated designs are legal by construction, and coordinated limb placement produces 95% jointly feasible edits, compared with 55% for range-constrained resampling and none for flat parameterization in 6,000 draws. These results show how typed grammars can make robot generation more interpretable and geometrically coordinated, without implying that every feasible design will locomote or that grammar-based search universally outperforms generic optimizers.
Figures & tables
| Symbol | Meaning |
|---|---|
| case-role set Agent, Patient, Instrument, Location, Source, Goal | |
| case frame: partial map Entities | |
| production rule (condition, transformation, parameters) | |
| specificity index of rule | |
| derivation: ordered sequence of applied rules | |
| transform (or kinematic tree) realizing derivation |
| Domain | Split | Error | Rule-ID accuracy |
|---|---|---|---|
| Manip. | In-dist. | 0.044 (twist MSE) | 100% |
| Manip. | Held-out | 0.012 (twist MSE) | 100% |
| Morph. | In-dist. | 0.0002 (placement MSE) | 100% |
| Morph. | Held-out | 0.043 (placement MSE) | 100% |
| Method | Mean std. | Mean rank (of 30) | Nemenyi |
|---|---|---|---|
| PĀṇini | 9.33 | — | |
| IPOP-CMA-ES ( Hansen, 2016 ) | 10.04 | 1.000 | |
| Cross-entropy method ( Rubinstein, 1999 ) | 10.88 | 1.000 | |
| PSO ( Kennedy and Eberhart, 1995 ) | 11.19 | 1.000 | |
| Coarse-to-fine (RoboMoRe analogue) | 12.04 | 1.000 | |
| TuRBO ( Eriksson et al., 2019 ) | 12.17 | 1.000 |
| Method | RL mean rank | RL fitness | Proxy mean rank | Nemenyi |
| Coordinate descent (1 distinct design) | 5.17 | 19.88 | 0.0004 | |
| IPOP-CMA-ES | 10.08 | 11.46 | 0.505 | |
| Novelty search | 11.08 | 10.96 | 0.825 | |
| Random search | 12.62 | 17.94 | 0.996 | |
| (19 further methods: RL ranks 12.75–16.29, all ) | ||||
| Grammar-guided evolution (GGE) | 16.75 | 16.92 | — | |
| Best fitness | Wins vs. no gate | ||
|---|---|---|---|
| No gate | — | — | |
| Geometric gate | 15/24 | ||
| Geometric gait pre-check | 9/24 |
| Curriculum / plain PĀṇini fitness | ||||
|---|---|---|---|---|
| Friedman | ||||
| vs. IPOP-CMA-ES | 0.486 | 0.134 | 0.027 | 0.051 |
| vs. PSO | 0.486 | 0.579 | 0.004 | 0.046 |
| vs. Cross-entropy method | 0.346 | 0.194 | 0.358 | 0.034 |
Appendix figures & tables29 assets
Supplementary material from the paper’s appendix.
Appendix
| Valid | Bodies, all limbs match | Non-first limbs: radius / length | |
|---|---|---|---|
| Inheritance active | / | ||
| Inheritance disabled | / |
| Method | Mean std. | Mean rank | Nemenyi vs. PĀṇini | vs. GGE |
|---|---|---|---|---|
| PĀṇini | 9.33 | — | 1.000 | |
| IPOP-CMA-ES | 10.04 | 1.000 | 1.000 | |
| Cross-entropy method | 10.88 | 1.000 | 1.000 | |
| PSO | 11.19 | 1.000 | 1.000 | |
| Coarse-to-fine (RoboMoRe an.) | 12.04 | 1.000 | 1.000 | |
| TuRBO | 12.17 | 1.000 | 1.000 |
| Target feasibility | ||||
|---|---|---|---|---|
| Required reach | ||||
| Measured | ||||
| Predicted | ||||
| Gate-off mean tries (std) | ||||
| Gate-on cost (by construction) |
| Target feasibility (measured) | ( ) | ( ) | ( ) | ( ) |
|---|---|---|---|---|
| Grammar-guided evolution | ||||
| + random restarts | ||||
| + feasible seeding | ||||
| Blind random search | ||||
| , evolution | ||||
| , + restarts |
| Condition | Loads+steps | Loads+steps and locomotes cm |
|---|---|---|
| Range-constrained resampling | 400 | 377 |
| Mild-only rescale | 400 | 373 |
| Grammar-guided (ours) | 400 | 370 |
| Pure re-initialization (sanity floor) | 400 | 368 |
| Adversarial mixture | 326 | 293 |
| Uniform resampling (structure-blind) | 307 | 262 |
| Edit type | Careful (fix-up applied) | Naive (Table 27 ) |
|---|---|---|
| Duplication | (falls short of grammar) | |
| Deletion | (falls short of grammar) |
| Method | RL mean rank | RL mean fitness | RL std |
|---|---|---|---|
| PSO | 3.12 | 1.384 | 0.517 |
| PĀṇini (proposed) | 3.29 | 1.476 | 0.697 |
| Grammar-guided evolution (GGE) | 3.33 | 1.390 | 0.704 |
| Cross-entropy method | 3.62 | 1.249 | 0.564 |
| IPOP-CMA-ES | 3.75 | 1.179 | 0.449 |
| CMA-ES (simplified) | 3.88 | 1.273 | 0.751 |
| Intervention | Setting | Result | Test |
|---|---|---|---|
| Larger, heterogeneous design space | hetero, =10, =80 | 3rd of 4: vs. PSO , IPOP | Friedman |
| Fitness noise (30% std) | =24, =60 | vs. CEM ; =6 screening signal not reproduced | Friedman |
| Subtree crossover/mutation | hetero, =24, =60/120 | 2nd of 5 at both budgets ( , ); IPOP , ; structurally new offspring 94% of the time | Friedman / ; Nemenyi |
| Transfer to held-out limb counts | hetero, =24, =80 | Last of 5: vs. IPOP , PSO , cold PĀṇini (17/24 seeds worse than cold control) | Nemenyi , (worse) |
| Niche regimes ( =10–35; stricter specs) | 8 screens, =8/24 | Best screen ( =35, vs. CEM ) does not survive correction | Friedman ; Holm 0/8 |
| Task (fixed horizon) | Planner | Success | Grasp rate | Mean place error |
|---|---|---|---|---|
| Reach (120 steps) | Grammar | 86.0% | — | — |
| Reach (120 steps) | Baseline (uninformed) | 86.0% | — | — |
| Reach (120 steps) | Informed | 100.0% | — | — |
| Grasp+Lift (360 steps) | Grammar | 100.0% | 100.0% | — |
| Grasp+Lift (360 steps) | Baseline (uninformed) | 0.0% | 0.0% | — |
| Grasp+Lift (360 steps) | Informed | 100.0% | 100.0% | — |
| Legal | Feasible | ||||
|---|---|---|---|---|---|
| Condition | |||||
| Naive numeric-average crossover ‡ | 300 | 300 | 300 | 300 | 300 |
| Mild-only rescale † | 300 | 296 | 294 | 294 | 282 |
| Grammar-guided (ours) | 300 | 285 | 266 | 225 | 169 |
| Adversarial mixture | 250 | 212 | 199 | 193 | 184 |
| Adversarial mixture, 5 compounded | 234 | 194 | 186 | 177 | 162 |
| Pooled target pass rate | ||||
|---|---|---|---|---|
| Sampling, flat | ||||
| Sampling, grammar | ||||
| CMA-ES, flat: seeds with any feasible design | ||||
| CMA-ES, grammar: seeds with any feasible design | ||||
| CMA-ES, grammar: feasible evaluations |
| New and feasible | Tip displacement | ||||
|---|---|---|---|---|---|
| Condition | ( level) | ||||
| Grammar-guided (ours) | mm | ||||
| Range-constrained resampling | mm | ||||
| Mild-only rescale † | mm | ||||
| Adversarial mixture | mm | ||||
| Naive numeric-average crossover ‡ | mm | ||||
| Method | ||||
|---|---|---|---|---|
| Range-constrained resampling: seeds feasible | ||||
| Per-field clip (flat): seeds feasible | ||||
| Grammar (5-parameter genome): seeds feasible | ||||
| Grammar: feasible evaluations |
| Objection | Measure (baseline vs. grammar) | ||
|---|---|---|---|
| (1) | Feasible after 10 mutations | vs. | vs. |
| (1) | Best material in search (lower better) | vs. | vs. |
| (2) | Box feasible (flat 64-D vs. 5-D) | vs. | vs. |
| (2) | Seeds feasible (flat vs. 12-D grammar) | vs. | vs. |
| (3) | Add a limb (hand-coded vs. grammar) | vs. | vs. |
| (4) | Physics calls per feasible (gate off vs. on) | vs. | vs. |
| Condition | (area ) | ( ) | ( ) |
|---|---|---|---|
| Grammar-guided (ours) | 94 | 48 | 24 |
| Pure re-initialization | 78 | 37 | 35 |
| Independent random mount angle | 49 [ ] | 21 [ ] | 10 [ ] |
| Range-constrained resampling | 103 | 52 | 41 [ ] |
| Hand-coded, coordinated (no grammar) | 87 | 38 | 32 |
| Hand-coded, random angle (no grammar) | 42 [ ] | 18 [ ] | 13 |
| Mutation | |||||
|---|---|---|---|---|---|
| Per-field clip | 1 | ||||
| 5 | |||||
| 10 | |||||
| 20 | |||||
| 50 | |||||
| Per-field resample | 1 |
| Method | Best | Feas. | Best | Feas. | Best | Feas. | Best | Feas. |
|---|---|---|---|---|---|---|---|---|
| Flat, per-field clip ES ( ) | ||||||||
| Flat, per-field clip ES ( ) | ||||||||
| Flat, per-field resample ES | ||||||||
| Flat, CMA-ES ( ) | ||||||||
| Flat, CMA-ES ( ) | ||||||||
| Test | ||||
| Flat 64-D, uniform | ||||
| Flat 64-D, box | ||||
| Flat 64-D, rotation-augmented box | ||||
| 5-D genome, uniform | ||||
| 5-D genome, box | ||||
| 12-D grammar, uniform |
| Edit | Editor | ||||
|---|---|---|---|---|---|
| Add limb | Hand-coded | ||||
| Hand-coded + re-space | |||||
| Grammar | |||||
| Remove limb | Hand-coded | ||||
| Hand-coded + re-space | |||||
| Grammar |
| Generator, gate | ||||
|---|---|---|---|---|
| Flat, gate off | – (0) | – (0) | – (0) | – (0) |
| Flat, gate on | – (0) | – (0) | – (0) | – (0) |
| Grammar, gate off | (126) | (57) | (19) | (7) |
| Grammar, gate on | (126) | (57) | (19) | (7) |
| Condition | Valid / 400 |
|---|---|
| Grammar-guided (ours) | 400 (100%) |
| Pure re-initialization (sanity floor, not a real competitor) | 400 (100%) |
| Mild-only rescale | 400 (100%) |
| Range-constrained resampling | 400 (100%) |
| Adversarial mixture | 326 (82%) |
| Uniform resampling (structure-blind) | 307 (77%) |
| Seed | None | Geo. | +Gait | Seed | None | Geo. | +Gait |
|---|---|---|---|---|---|---|---|
| 0 | 12 | ||||||
| 1 | 13 | ||||||
| 2 | 14 | ||||||
| 3 | 15 | ||||||
| 4 | 16 | ||||||
| 5 | 17 |
Robot Morphology-Control Co-Design
Robot morphology-control co-design studies how to jointly shape a robot’s body and controller to improve task performance.
See all 69 papers