paper-with-me

Papers

SymRTLO: Enhancing RTL Code Optimization with LLMs and Neuron-Inspired Symbolic Reasoning

2025-04-14 · Yiting Wang, Wanghao Ye, Ping Guo, Ziyao Wang, Yexiao He, Bowei Tian, Shwai He, Guoheng Sun, Zheyu Shen, Sihan Chen, Ankur Srivastava, Qingfu Zhang, Gang Qu, Ang Li

Optimizing Register Transfer Level (RTL) code is crucial for improving the power, performance, and area (PPA) of digital circuits in the early stages of synthesis. Manual rewriting, guided by synthesis feedback, can yield high-quality results but is time-consuming and error-prone. Most existing compiler-based approaches have difficulty handling complex design constraints. Large Language Model (LLM)-based methods have emerged as a promising alternative to address these challenges. However, LLM-based approaches often face difficulties in ensuring alignment between the generated code and the provided prompts. This paper presents SymRTLO, a novel neuron-symbolic RTL optimization framework that seamlessly integrates LLM-based code rewriting with symbolic reasoning techniques. Our method incorporates a retrieval-augmented generation (RAG) system of optimization rules and Abstract Syntax Tree (AST)-based templates, enabling LLM-based rewriting that maintains syntactic correctness while minimizing undesired circuit behaviors. A symbolic module is proposed for analyzing and optimizing finite state machine (FSM) logic, allowing fine-grained state merging and partial specification handling beyond the scope of pattern-based compilers. Furthermore, a fast verification pipeline, combining formal equivalence checks with test-driven validation, further reduces the complexity of verification. Experiments on the RTL-Rewriter benchmark with Synopsys Design Compiler and Yosys show that SymRTLO improves power, performance, and area (PPA) by up to 43.9%, 62.5%, and 51.1%, respectively, compared to the state-of-the-art methods.

📄 PDF Abstract BibTeX arXiv:2504.10369

Code (0)

등록된 구현이 없습니다.

Tasks

Large Language ModelRAGRetrieval-augmented Generation

Similar Papers 제목 키워드 기반

AutoPPA: Automated Circuit PPA Optimization via Contrastive Code-based Rule Library Learning

2026-04-20 · Chongxiao Li, Pengwei Jin, Di Huang, Guangrun Sun 외 arxiv

Performance, power, and area (PPA) optimization is a fundamental task in RTL design, requiring a precise understanding of circuit functionality and the relationship between circuit structures and PPA metrics. Recent stud…

Are Emotion and Rhetoric Neurons in LLM? Neuron Recognition and Adaptive Masking for Emotion-Rhetoric Prediction Steering

2026-04-19 · Li Zheng, Xin Zhang, Shuyi He, Fei Li 외 arxiv

Accurate comprehension and controllable generation of emotion and rhetoric are pivotal for enhancing the reasoning capabilities of large language models (LLMs). Existing studies mostly rely on external optimizations, lac…

A Semantic-based Optimization Approach for Repairing LLMs: Case Study on Code Generation

2025-03-17 · Jian Gu, Aldeida Aleti, Chunyang Chen, Hongyu Zhang

Language Models (LMs) are widely used in software engineering for code generation, but they may produce code with errors. Rather than repairing the generated code, an alternative way is to address the underlying failures…

Code GenerationSpecificity

Who Transfers Safety? Identifying and Targeting Cross-Lingual Shared Safety Neurons

2026-02-01 · Xianhui Zhang, Chengyu Xie, Linxia Zhu, Yonghui Yang 외 arxiv

Multilingual safety remains significantly imbalanced, leaving non-high-resource (NHR) languages vulnerable compared to robust high-resource (HR) ones. Moreover, the neural mechanisms driving safety alignment remain uncle…

Unveiling Factual Recall Behaviors of Large Language Models through Knowledge Neurons

2024-08-06 · Yifei Wang, YuHeng Chen, Wanting Wen, Yu Sheng 외

In this paper, we investigate whether Large Language Models (LLMs) actively recall or retrieve their internal repositories of factual knowledge when faced with reasoning tasks. Through an analysis of LLMs' internal factu…