Coder Social home page Coder Social logo

rohanasthana / dinas Goto Github PK

View Code? Open in Web Editor NEW
9.0 1.0 1.0 154.82 MB

Code for the paper- Multi-conditioned Graph Diffusion for Neural Architecture Search (https://openreview.net/forum?id=5VotySkajV)

License: MIT License

Python 91.17% C++ 5.69% Shell 0.09% Jupyter Notebook 3.05%

dinas's Introduction

Multi-conditioned Graph Diffusion for Neural Architecture Search

Rohan Asthana, Joschua Conrad, Youssef Dawoud, Maurits Ortmanns, Vasileios Belagiannis

This repository contains the code for the paper titled "Multi-conditioned Graph Diffusion for Neural Architecture Search" [link].

PWC PWC PWC PWC

alt text

Abstract

Neural architecture search automates the design of neural network architectures usually by exploring a large and thus complex architecture search space. To advance the architecture search, we present a graph diffusion-based NAS approach that uses discrete conditional graph diffusion processes to generate high-performing neural network architectures. We then propose a multi-conditioned classifier-free guidance approach applied to graph diffusion networks to jointly impose constraints such as high accuracy and low hardware latency. Unlike the related work, our method is completely differentiable and requires only a single model training. In our evaluations, we show promising results on six standard benchmarks, yielding novel and unique architectures at a fast speed, i.e. less than 0.2 seconds per architecture. Furthermore, we demonstrate the generalisability and efficiency of our method through experiments on ImageNet dataset.

Getting Started

To get started with the DiNAS project, follow these steps:

  1. Clone the repository: git clone https://github.com/rohanasthana/DiNAS.git
  2. Load the conda environment 'environment.yml' using the command conda env create -f environment.yml
  3. Run the training process: python main_reg_free.py --dataset nasbench101
  • nasbench101: for the NAS-Bench-101 benchmark
  • nasbench201: for the NAS-Bench-201 benchmark
  • nasbench301: for the NAS-Bench-301 benchmark
  • nasbenchNLP: for the NAS-Bench-NLP benchmark
  • nasbenchHW: for the NAS-Bench-HW benchmark

Pre-trained models

The pre-trained models for the NAS-Bench-101, NAS-Bench-201, NAS-Bench-301 and NAS-Bench-NLP benchmarks can be found in Google Drive: https://drive.google.com/drive/folders/1a9CpJDWAe5MMe1hU-JvKf9njhWyUT3yw?usp=sharing

Cite this paper

@article{
asthana2024multiconditioned,
title={Multi-conditioned Graph Diffusion for Neural Architecture Search},
author={Rohan Asthana and Joschua Conrad and Youssef Dawoud and Maurits Ortmanns and Vasileios Belagiannis},
journal={Transactions on Machine Learning Research},
issn={2835-8856},
year={2024},
url={https://openreview.net/forum?id=5VotySkajV},
note={}
}

License

This project is licensed under the MIT License.

dinas's People

Contributors

rohanasthana avatar

Stargazers

Amir avatar  avatar John avatar noringname avatar  avatar Natuki avatar Mufei Li avatar Harshit Juneja avatar Vasilis Belagiannis avatar

Watchers

 avatar

Forkers

blyucs

dinas's Issues

ImportError: cannot import name 'get_cell_based_tiny_net' from 'models' (unknown location)

Hi, I tried to deploy the DiNAS but I got this error message:

Traceback (most recent call last):                                                                                    
 File "/home/DiNAS/main_reg_free.py", line 25, in <module>
    from src.datasets.nasbench301dataset_reg_free import NASBench301Dataset,NASBench301DatasetInfos, NASBench301DataModule
  File "/home/DiNAS/src/datasets/nasbench301dataset_reg_free.py", line 15, in <module>
    from src.NASBench301_self import Dataset                                                                          
 File "/home/DiNAS/src/NASBench301_self.py", line 114, in <module>
    from src.procedures_darts import TENAS                                                                             
File "/home/src/procedures_darts.py", line 25, in <module>
    from models import get_cell_based_tiny_net, get_search_spaces
ImportError: cannot import name 'get_cell_based_tiny_net' from 'models' (unknown location)

It found that the src/models/__init__.py file in github repository is an empty file. Maybe you forgot to upload the code there?

btw, the Google Drive link is in the readme.md is invalid as well. Could you please update the link?

Thanks for your help in advance: )

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.