Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

QiMeng-LibBench: Benchmarking LLM Agents for Library-Scale Cross-Architecture Migration

QM-LibBench tests whether AI agents can port whole libraries to new chip architectures

  • Problem Existing benchmarks test only scalar bug fixes or isolated SIMD intrinsics, so no benchmark covered an agent porting a whole library's SIMD kernels.
  • Method QM-LibBench gives an agent a source library and a target architecture, then checks each ported SIMD kernel with compilation, the library's own tests and speed benchmarks.
  • Results The strongest combination, OpenHands with GPT-5, reached 37.65% SR@1, while agent-LLM pairs averaged 20.88%.

Why whole-library SIMD migration stalls

Porting a library to another ISA means more than recompiling it, because the code spans codebases of millions of lines with many dependencies. The performance-critical kernels also rely on architecture-specific SIMD intrinsics, which have to be rewritten for each target. Intrinsics give fine control over vector operations, but they tie the code to one vector width and one set of semantics, so direct translation between architectures often fails.

The targets differ in kind: AVX and NEON are fixed-width, RVV picks its vector length at run time, and LASX has few reference implementations. Libraries also choose implementations at run time, so an agent has to dispatch each operator to the target-specific code rather than keep the legacy behaviour.

Rule-based tools such as neon2rvv map intrinsics one to one and lack a global view of the code, so their output can be inefficient or wrong. LLM agents look like a better fit, but the benchmarks available for them each cover only part of the job. So there was no benchmark for an agent porting a whole library's SIMD kernels, and that gap is what the authors set out to fill.

What one migration task contains

QM-LibBench turns each migration into a task described as a tuple \( T = (I, R_{src}, E) \), covering the request, the source library and the agent's execution environment. The agent has to synthesize a target library R_tgt whose new implementation is dependency-compliant. The output is judged on compilability, functional correctness and performance, so a migration counts only if it passes all three dimensions.

The kernels come from OpenCV, ncnn and libjpeg, libraries with real deployment and continuing hand-tuned SIMD work. The authors didn't pick operator files by hand: they ran each library's official test suites and kept only the operators that were invoked and verified. Operators were then filtered by how often real workloads call them, such as Resize in OpenCV, and by how much SIMD helps them.

The final set has 85 kernels: 21 from OpenCV for ARM to RISC-V, 17 each from ncnn for x86 to ARM, ARM to RISC-V and ARM to LoongArch, and 13 from libjpeg for ARM to RISC-V.

For OpenCV and ncnn the correctness tests come from their existing suites, while libjpeg got a Google Test suite built for it. Performance comparisons reuse OpenCV's official benchmarks, and custom Google Benchmark suites cover ncnn and libjpeg across a range of input sizes. Speedup ratio is \( SR = T_{original}/T_{migrate} \), with both times measured on the same target hardware, and the baseline is the existing target-architecture code in the library.

fastp then counts the share of tasks that compile, pass correctness and reach a speedup of at least p, written as \[ \text{fastp} = \frac{1}{N}\sum_{i=1}^{N} I(\text{Success}_i \wedge (SR_i \ge p)) \]. Correctness is scored as SR@k, the success rate when an agent may make up to k independent attempts per task.

Agents, models and run limits

The authors picked four code agents from the SWE-Bench leaderboard: TRAE IDE, SWE-Agent, JoyCode and OpenHands. SWE-Agent and JoyCode were paired with GPT-5, Gemini-3-Pro-Preview and Claude-Sonnet-4.5. OpenHands used Qwen3-Coder-480b-a35b-Instruct in place of Claude, because preliminary runs stalled between planning and code generation. TRAE IDE was paired with Doubao-seed-Code, GLM-4.7 and MiniMax-M2.1, and each run had a timeout of over 40 minutes.

The runs took place on Cortex-A76, SpacemiT-X60 and LoongSon 3A6000 platforms, which cover ARM, RISC-V and LoongArch. The authors didn't use neon2rvv as a baseline, because applying it to a library build takes heavy manual engineering. They also observed that neon2rvv fails on QM-LibBench, since fixed-width NEON and vector-length-agnostic RVV don't match.

How often migrations come out correct

The strongest single combination was OpenHands with GPT-5, at 37.65% overall SR@1. The abstract and conclusion present 20.88% as the level of correctness, and the conclusion calls it the peak, which doesn't match the 37.65% that the correctness analysis reports for the best combination.

SWE-Agent collapses on nearly every metric, which the authors tie to its issue-level workflow inherited from SWE-Bench. OpenHands leads, and the authors credit CodeAct, which mixes LLM reasoning with command-line tools for iterative debugging.

Model choice matters more than the agent: GPT-5 gives the highest performance across all agents, with an average improvement of 10.39 in SR@1 over the second-best model. The open-weights Qwen3-coder-480b-a35b-Instruct reaches only 17.65% overall SR@1 even inside OpenHands. Gemini-3-pro-preview performs well in some settings but drops sharply when paired with SWE-Agent.

Migration from x86 to ARM averages 31.37%, compared to 18.14% for ARM to RISC-V and 20.59% for ARM to LoongArch. The authors link the weaker results on emerging targets to scarce data for those ISAs.

Speed of the migrated code

fastp depends on the threshold p, and the authors sweep p from 0 to 3.0 to see how the score falls. As p rises from 0 to 1.0, fastp drops sharply for every combination, and at p of 1.0 most agents are already close to zero. Above 1.2 almost no agent produces faster code, and the authors read this as agents putting correctness ahead of speed.

At p equal to 0, the best OpenCV and libjpeg combinations barely exceed 0.25 and 0.30, and both fall toward zero as p grows. ncnn does better at low thresholds, which the authors link to its unified structure matching the issue-level workflow of SWE-Agent. ARM to RISC-V degrades faster than the other two settings, which the authors attribute to the fixed-width to variable-width mismatch and RVV's immature ecosystem.

JoyCode with GPT-5 reaches fastp 0.55 on x86 to ARM. OpenHands with GPT-5 reaches fastp 0.60 on ARM to RISC-V and 0.55 on ARM to LoongArch, and the passage doesn't restate the threshold p for these values. The abstract cites a 0.83 speedup for libjpeg, but the body doesn't tie that number to a named agent-LLM combination.

What a migration attempt costs

Table 4 compares JoyCode, OpenHands and SWE-Agent on successful migrations, measuring wall-clock time in seconds, which gives 593, 1764 and 585. OpenHands took 1764 seconds and 81 API calls, compared to 593 seconds and 20 calls for JoyCode. The authors put the gap at up to 3 times the completion time and 4 times the API calls.

Failed runs cost more money than successful ones for all three agents, with OpenHands at 2.19 compared to 2.04 on successful runs. OpenHands' failed runs were shorter in time, at 1358 seconds compared to 1764 seconds for its successful runs. The authors argue that agents lack a way to spot low-probability trajectories and stop early, which leads to heavy spending on failures.

Across the appendix, cost is not strictly tied to correctness, and some agents gain marginal accuracy at 2 to 4 times the resource use.

Where the failed migrations break

Across 966 failure samples, undefined identifiers make up 21.74% of errors, data type errors 11.80% and parameter mismatches 8.90%. Together these three account for over 42% of invalid cases. The authors attribute the undefined identifiers to hallucinated APIs that copy legitimate naming patterns but don't exist in the target SDK. Functional correctness errors follow at 15.01%, which the authors tie to porting data alignment and masking logic.

Artifact integrity and configuration defects (12.94%), process execution exceptions (10.14%) and dependency and build errors (10.04%) point to weak multi-file delivery and long-horizon planning. In the case study the agent keeps the source parameter const Size2D &size without checking it against the target library. It also writes riscv vle16 for 8-bit input data, a 16-bit load, which the authors read as the agent copying the numeric token 16 from the source loop.

Per agent, the appendix reports 78.5% functional correctness errors for OpenHands, and 77.2% compilation errors for JoyCode.

FSCM: dependencies first, then code

Instead of translating file by file, FSCM first maps the repository into a dependency graph and generates core functions before their dependents. The first phase parses the repository statically and mines core functions, rebuilding it as a Global Functional Dependency Graph (GFDG) whose nodes are functions. Each node stores the module's semantics together with architecture-independent optimization strategies.

The second phase writes the core functions first, then expands to dependent functions, producing scalar migration code that doesn't yet target a specific architecture.

A third phase adds two layers of optimization: architecture-independent changes such as algorithmic refinement and data layout, and target-specific choices such as register grouping and vector extension. A multi-stage testing phase runs compilation, functional and performance checks, and failures feed back into correction and re-optimization.

In preliminary experiments, FSCM with GPT-5 reaches a 71% success rate on OpenCV migration tasks.

Limits and open questions

TRAE and JoyCode are commercial IDE agents whose internal implementations aren't public, so their results can't be fully reproduced or analysed at a fine grain. The benchmark covers x86 to ARM, ARM to RISC-V and ARM to LoongArch, and leaves out GPU-oriented migration.

ClaudeCode and OpenCode were run only on OpenCV, and FSCM's evidence is a single preliminary OpenCV experiment. Because neon2rvv wasn't used as a baseline, the benchmark has no rule-based reference point in the reported results.

Paper info

Authors
Weijia Li, Ke Gao, Jiajie Li, Han Sun, Yuhe Ding, Yongdong Mai, Yiran Le, Yongjie Qian, Zhibin Zhang, Xinyu Wang, Limin Cheng, Shouxu Kuang, Pengfei Chen, Ling Li
Venue
International Conference on Machine Learning · Published
First published
2026-9-29
Added
2026-11-27
Original paper terms
Check in the original ↗
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Weijia Li, Ke Gao, Jiajie Li, Han Sun, Yuhe Ding, Yongdong Mai, Yiran Le, Yongjie Qian, Zhibin Zhang, Xinyu Wang, Limin Cheng, Shouxu Kuang, Pengfei Chen, Ling Li (2026). QiMeng-LibBench: Benchmarking LLM Agents for Library-Scale Cross-Architecture Migration. International Conference on Machine Learning. https://proceedings.mlr.press/v306/li26ar.html

BibTeX
@article{li2026qimeng,
  title = {{QiMeng-LibBench: Benchmarking LLM Agents for Library-Scale Cross-Architecture Migration}},
  author = {Weijia Li and Ke Gao and Jiajie Li and Han Sun and Yuhe Ding and Yongdong Mai and Yiran Le and Yongjie Qian and Zhibin Zhang and Xinyu Wang and Limin Cheng and Shouxu Kuang and Pengfei Chen and Ling Li},
  year = {2026},
  journal = {International Conference on Machine Learning},
  url = {https://proceedings.mlr.press/v306/li26ar.html}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up