Challenges and Opportunities for HLS Design Interpretability
Adrian Alupoaei
STAR Lab, Oregon State University
Hardware for Sparse Tensors & Need For Interpretability
The RTL-to-NL task
Translating RTL designs & related artifacts into natural language
Differs from traditional code-to-text tasks because:
Examples:
module or2(input a, b, output y);
assign y = a | b;
endmodule
RTL
This module performs the OR operation on 2 bits
NL
Impact of Interpreting Design
LLMs for the RTL-NL Task
Needed infrastructure
To train robust AI models, you need:
Challenges: Curating Datasets
Challenges: Evaluation Metrics
Challenges: Computation & Training
Research Opportunities
Evaluation: BLEURT-Verilog-QA
Image Source: Devlin, J., Chang, M.-W., Lee, K., & Toutanova, K. (2018). BERT: Pre-training of deep bidirectional transformers for language understanding. arXiv:1810.04805.
Evaluation: BLEURT-Verilog-QA - Dataset
Reference QA - Score: 1
Model
Generated Answer - Score: 0.7
Generated Answer - Score: 0.3
Generated Answer - Score: 0.2
Generated Answer - Score: 0.0
Evaluation: BLEURT-Verilog-QA
Fine-tuned LLaMa Model for Verilog tasks
Fine-tuned LLaMa Model for Verilog tasks
Future Steps