MDMengjia Dai

Mengjia Dai

*This is an algorithmically generated author record based on publicly available information.

Current Organizations / Institutes

The organizations/institutes from the scholar's latest article


Mengjia Dai has a total of 13 co-authors. Here are the top co-authors by number of shared publications:


Latest Publications

  • Open Access

    CB-EVO: Contextual Bandit Tuning with Evolutionary Search for Logic Synthesis

    by Fangzhou Liu, Wuqian Tang, Zehua Pei, Ziyang Yu, Haisheng Zheng, Zhuolun He, Mengjia Dai, Tinghuan Chen, Bei Yu

    In logic synthesis, pre-optimization involves applying a sequence of transformations, referred to as a synthesis flow, to reduce the complexity of a circuit’s Boolean logic graph, such as the And-Inverter Graph (AIG). The primary challenge lies in selecting and ordering these transformations, a task complicated by the exponentially large solution space. In this work, we propose CB-EVO, a novel online learning framework that combines contextual bandit tuning with an evolutionary algorithm to efficiently explore the solution space and generate high-quality synthesis flows. The Syn-LinUCB algorithm functions as the pivotal agent in our bandit tuning process, incorporating circuit-specific characteristics and leveraging long-term payoffs to guide decision-making effectively, thereby circumventing the pitfalls of local optima. To complement the bandit algorithm, we design an evolutionary algorithm that accelerates the decision-making process and enables the efficient expansion of the sequence. Moreover, we explore practical heuristics, such as the “return-back” mechanism and the utilization of a choice network, to further enhance optimization outcomes. Experimental results demonstrate that our framework identifies the optimal synthesis flow with reduced computational time, significantly decreasing the number of AIG nodes and LUT count compared to state-of-the-art (SOTA) methods.

  • Top Cited Papers
    Open Access

    Allo: A Programming Model for Composable Accelerator Design

    by Hongzheng Chen, Niansong Zhang, Shaojie Xiang, Zhichen Zeng, Mengjia Dai, Zhiru Zhang

    Special-purpose hardware accelerators are increasingly pivotal for sustaining performance improvements in emerging applications, especially as the benefits of technology scaling continue to diminish. However, designers currently lack effective tools and methodologies to construct complex, high-performance accelerator architectures in a productive manner. Existing high-level synthesis (HLS) tools often require intrusive sourcelevel changes to attain satisfactory quality of results. Despite the introduction of several new accelerator design languages (ADLs) aiming to enhance or replace HLS, their advantages are more evident in relatively simple applications with a single kernel. Existing ADLs prove less effective for realistic hierarchical designs with multiple kernels, even if the design hierarchy is flattened. In this paper, we introduce Allo, a composable programming model for efficient spatial accelerator design. Allo decouples hardware customizations, including compute, memory, communication, and data type from algorithm specification, and encapsulates them as a set of customization primitives. Allo preserves the hierarchical structure of an input program by combining customizations from different functions in a bottomup, type-safe manner. This approach facilitates holistic optimizations that span across function boundaries. We conduct comprehensive experiments on commonly-used HLS benchmarks and several realistic deep learning models. Our evaluation shows that Allo can outperform state-of-the-art HLS tools and ADLs on all test cases in the PolyBench. For the GPT2 model, the inference latency of the Allo generated accelerator is 1.7× faster than the NVIDIA A100 GPU with 5.4× higher energy efficiency, demonstrating the capability of Allo to handle large-scale designs.