Reflect After Failure: Brain-Inspired Self-Evolving Agents for Embodied Spatial Intelligence
Organizations: City University of Hong Kong · East China Normal University · University of Electronic Science and Technology of China · The Chinese University of Hong Kong, Shenzhen ·
Abstract
Vision-Language Models (VLMs) have made substantial progress in spatial reasoning, and self-evolving agents further extend these capabilities to embodied environments by learning from interactions. However, current self-evolution remains particularly challenging in embodied spatial tasks, complex and multi-step decisions from partial visual evidence making it difficult to determine why an execution fails. The failure may stem from misperception, insufficient exploration, or incorrect planning, yet execution feedback alone rarely reveals which component is responsible. As a result, simply accumulating interaction experience can reinforce ineffective strategies. To address this, we propose HiMeco, a brain-inspired self-evolving agent for embodied spatial intelligence, inspired by metacognitive monitoring and hippocampal memory consolidation. Through Hippocampal-Metacognitive Reflection, HiMeco diagnoses failures in perception-exploration-planning (PEP), then compares execution attempts to derive reusable strategies and guidance for avoiding recurring errors. It also abstracts interaction programs into parameterized skills, using evidence contracts and execution-based validation to determine their retention and reuse. These strategies and skills guide subsequent interactions, with memory updated only between rounds and model parameters kept frozen. HiMeco achieves state-of-the-art performance on ESI-Bench, and it also improves accuracy on EmbSpatial-Bench by 3.94 percentage points without evolution.
Figures & tables
| Backbone / Method | Metric Comparison | Cognitive Mapping | Perceptual Grounding | Action Sequencing | Spatial Relations | Specular Reflection | Enumerative Perception | Temporal Understanding | Physical Dynamics | Avg. | |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Our evaluation | |||||||||||
| Selected subtask | Spatial Distance | Connectivity | Partial Occlusion | Action Order Inference | Physical Contact | Correspondence | Counting w/ Occlusion | Unobserved Change | Inclined Plane | - | |
| 20 | 27 | 20 | 20 | 25 | 20 | 20 | 29 | 27 | - | ||
| GPT-5.6 | Passive | 45.0 | 59.3 | 45.0 | 35.0 | 68.0 | 65.0 | 10.0 | 34.5 | 37.0 | 44.31 |
| Active | 60.0 | 70.4 | 50.0 | 40.0 | 64.0 | 75.0 | 10.0 | 75.9 | 66.7 | 56.89 | |
| HiMeco | 85.0 | 74.1 | 65.0 | 55.0 | 88.0 | 80.0 | 15.0 | 82.8 | 77.8 | 69.19 | |
| Evol. | Spatial Distance | Action Order Inference | Physical Contact | Inclined Plane | |||
| 60 | 40 | 64 | 66.7 | ||||
| ✓ | ✓ | ✓ | 65 | 55 | 80 | 74.1 | |
| ✓ | ✓ | ✓ | 70 | 45 | 76 | 70.4 | |
| ✓ | ✓ | ✓ | 65 | 45 | 80 | 74.1 | |
| ✓ | ✓ | ✓ | ✓ | 85 | 55 | 88 | 77.8 |
| Relation | Gemini-3-Flash | HiMeco w/o Evolution |
|---|---|---|
| Left | 95.33 | 92.33 |
| Right | 84.67 | 82.67 |
| Above | 75.33 | 88.00 |
| Under | 73.67 | 85.00 |
| Far | 57.33 | 65.00 |
| Close | 67.33 | 64.33 |
Appendix figures & tables6 assets
Supplementary material from the paper’s appendix.
Appendix
| Round | Candidates per episode | Update afterward | Purpose |
|---|---|---|---|
| 0 | 1 | Yes | Initial active baseline and first consolidation |
| 1 | 3 | Yes | Candidate comparison and skill trials |
| 2 | 3 | Yes | Candidate comparison and skill validation |
| 3 | 1 | No | Final execution with frozen memory |
| Task | Episode IDs | |
|---|---|---|
| Spatial Distance | 20 | 0781, 0787, 0788, 0822, 0835, 0838, 0841, 0844, 0851, 0856, 0857, 0866, 0867, 0869, 0871, 0874, 0877, 0894, 0907, 0910 |
| Connectivity | 27 | 0078, 0081, 0086, 0087, 0089, 0090, 0092, 0096, 0098, 0100, 0101, 0102, 0103, 0107, 0108, 0109, 0115, 0120, 0122, 0123, 0125, 0126, 0128, 0131, 0132, 0133, 0134 |
| Partial Occlusion | 20 | 1146, 1155, 1160, 1164, 1171, 1175, 1178, 1186, 1194, 1196, 1197, 1204, 1205, 1206, 1207, 1212, 1215, 1218, 1221, 1233 |
| Action Order Inference | 20 | 0004, 0005, 0008, 0009, 0012, 0013, 0015, 0029, 0033, 0034, 0035, 0037, 0041, 0044, 0045, 0048, 0056, 0061, 0062, 0068 |
| Physical Contact | 25 | 2804, 2810, 2812, 2819, 2824, 2829, 2833, 2835, 2837, 2841, 2850, 2854, 2855, 2862, 2868, 2873, 2877, 2881, 2890, 2895, 2896, 2898, 2899, 2916, 2921 |
| Correspondence | 20 | 2923, 2937, 2941, 2948, 2952, 2955, 2958, 2959, 2964, 2967, 2968, 2974, 2978, 2981, 2982, 2985, 2988, 2989, 2990, 2998 |
| Task | Evidence checked by the visual module |
|---|---|
| Spatial Distance | A canonical candidate answer, visibility of the reference and both candidates, at least two cited views with per-view geometry, geometric viewpoint diversity, and no recorded contradictions. |
| Connectivity | Identified regions and supporting cues; either evidence of a direct shared passage or explicit negative boundary/separation evidence. An intermediate region must not be mistaken for direct adjacency. |
| Partial Occlusion | At least two cited views, tracking of the same target region, distinction between target and foreground blocker, an observed reduction in occlusion, identity cues from a revealing view, and geometric diversity. |
| Action Order Inference | An ordered direction pair, a cited reference view, explicit selection of the correctly sized A/C candidates, and direction evidence consistent with the returned pair. |
| Physical Contact | Evidence bound to the two named objects, a visible boundary or gap across views, rejection of ambiguous occlusion and misleading shadow/floor cues, and geometric diversity. |
| Correspondence | A canonical answer among the allowed positions and structured evidence associating the reflected target with a real candidate while rejecting alternatives and contradictions. |
| Condition | |
|---|---|
| A successful visual call reports an invalid output contract | 1.00 |
| Visual evidence is explicitly invalid and a symbolic count was returned | 0.95 |
| The last symbolic count disagrees with an available simulator-spawned target count | 1.00 |
| , a visual call executed, and the answer is not unknown | 0.95 |
| , a visual call executed, and the answer is unknown | 0.80 |
| A visual call executed, but the preceding rules do not apply | 0.55 |
| Setting | Value |
|---|---|
| Round-0 planner temperature / top- | 0 / 1 |
| Intermediate planner temperature / top- | 0.7 / 0.9 |
| Final-generation temperature / top- | 0.7 / 0.9 in the reference runner |
| Planner output limit | 1,800 tokens |
| Program repair attempts after initial generation | 1 |
| Program statement limit / branch depth | 48 / 4 |