Researchers propose a self-evolving LLM-agent workflow that learns hardware-specific optimization experience from initial solutions, targeting emerging platforms like SpacemiT K1 and K3.
Why this matters for K1 and K3
SpacemiT K1 and K3 are still young platforms. While their specs are impressive, K1 with 8 X60 cores at 1.6 GHz and K3 with 8 X100 cores at 2.4 GHz plus A100 AI cores, the body of hand-tuned kernel wisdom is small compared to x86 or Arm. That gap makes it hard to squeeze the advertised TOPS or DMIPS out of frameworks such as ONNX Runtime or llama.cpp.Core idea in plain language
The proposed pipeline works in two stages:This is a practical response to the cold-start problem: instead of hoping a giant model knows everything about SpacemiT ISA extensions or memory hierarchy, the agent learns by doing.
Experience graph memoryThe key data structure is an experience graph that links optimization decisions to hardware contexts. A node might capture a loop tiling choice for a MatMulNBits kernel on K1; an edge might connect it to a similar decision on K3 under a different vector length. When a new operator arrives, the agent retrieves the closest prior experiences and mutates them, rather than generating a kernel from a blank prompt.
Implications for RISC-V edge AIFor developers working on K1 or K3, this kind of self-improving optimizer could lower the barrier to writing fast kernels for:
The paper notes that code will be open-sourced after the peer-review process completes.
If you are building on K1 or K3, keep an eye on this direction. A tool that turns hardware-specific trial and error into reusable experience could be a force multiplier, especially for teams that do not have a dedicated compiler engineer. Source: 全自动算子优化框架和实现 on SpacemiT Forum Related hardware: SpacemiT K1 (8-core X60 @ 1.6 GHz, 50K DMIPS), SpacemiT K3 (8 X100 @ 2.4 GHz + 8 A100 AI cores, 60 TOPS, RVA23 compliant).