Yolo Tầm nhìn Thâm Quyến
Thâm Quyến
Tham gia ngay
Bảng chú giải thuật ngữ

Tìm kiếm kiến trúc mạng nơ-ron (Neural Architecture Search - NAS)

Learn how Neural Architecture Search (NAS) automates the design of high-performance neural networks. Explore search strategies and optimized models like YOLO26.

Neural Architecture Search (NAS) is a sophisticated technique within the realm of Automated Machine Learning (AutoML) that automates the design of artificial neural networks. Traditionally, engineering high-performance deep learning (DL) architectures required extensive human expertise, intuition, and time-consuming trial-and-error. NAS replaces this manual process with algorithmic strategies that systematically explore a vast range of network topologies to discover the optimal structure for a specific task. By testing various combinations of layers and operations, NAS can identify architectures that significantly outperform human-designed models in terms of accuracy, computational efficiency, or inference speed.

Core Mechanisms of NAS

The process of discovering a superior architecture generally involves three fundamental dimensions that interact to find the best neural network (NN):

  1. Search Space: This defines the set of all possible architectures the algorithm can explore. It acts like a library of building blocks, such as convolution filters, pooling layers, and various activation functions. A well-defined search space constrains complexity to ensure the search remains computationally feasible while allowing enough flexibility for innovation.
  2. Search Strategy: Instead of testing every possibility (brute force), NAS employs intelligent algorithms to navigate the search space efficiently. Common approaches include reinforcement learning, where an agent learns to generate better architectures over time, and evolutionary algorithms, which mutate and combine top-performing models to breed superior candidates.
  3. Performance Estimation Strategy: Training every candidate network from scratch is prohibitively slow. To accelerate this, NAS uses estimation techniques—such as training on fewer epochs, using lower-resolution proxy datasets, or employing weight sharing—to quickly rank the potential of a candidate architecture.

Các Ứng dụng Thực tế

NAS has become critical in industries where hardware constraints or performance requirements are strict, pushing the boundaries of computer vision (CV) and other AI domains.

  • Efficient Edge Computing: Deploying AI on mobile devices requires models that are both lightweight and fast. NAS is extensively used to discover architectures like MobileNetV3 and EfficientNet that minimize inference latency while maintaining high precision. This is vital for edge AI applications, such as real-time video analytics on smart cameras or autonomous drones.
  • Medical Imaging: In medical image analysis, accuracy is paramount. NAS can tailor networks to detect subtle anomalies in X-rays or MRI scans, often finding novel feature extraction pathways that human engineers might overlook. This leads to more reliable tools for identifying conditions like brain tumors or fractures with higher sensitivity.

NAS so với các khái niệm liên quan

Để hiểu rõ vai trò cụ thể của NAS, cần phân biệt nó với các kỹ thuật tối ưu hóa tương tự:

  • NAS so với điều chỉnh siêu tham số : Mặc dù cả hai đều liên quan đến tối ưu hóa, nhưng điều chỉnh siêu tham số tập trung vào việc điều chỉnh các thiết lập cấu hình (như tốc độ học hoặc kích thước lô ) cho một kiến trúc cố định . Ngược lại, NAS thay đổi cấu trúc cơ bản của chính mô hình, chẳng hạn như số lớp hoặc cách các nơ-ron được kết nối.
  • NAS so với Học chuyển giao : Học chuyển giao sử dụng một mô hình đã được huấn luyện trước đó và điều chỉnh trọng số của nó cho một nhiệm vụ mới. NAS tạo ra kiến trúc mô hình từ đầu (hoặc tìm kiếm một kiến trúc xương sống tốt hơn) trước khi bắt đầu huấn luyện.

Sử dụng các mô hình có nguồn gốc từ NAS

Mặc dù việc chạy tìm kiếm NAS đầy đủ đòi hỏi tài nguyên tính toán GPU đáng kể, các nhà phát triển có thể dễ dàng sử dụng các mô hình được tạo ra thông qua NAS. Ví dụ, kiến trúc YOLO -NAS được phát hiện bằng cách sử dụng các nguyên tắc tìm kiếm này để tối ưu hóa cho các tác vụ phát hiện đối tượng .

Sau đây Python Ví dụ này minh họa cách tải và sử dụng mô hình NAS đã được tìm kiếm trước đó bằng cách sử dụng... ultralytics bưu kiện:

from ultralytics import NAS

# Load a pre-trained YOLO-NAS model (architecture found via NAS)
# 'yolo_nas_s.pt' refers to the small version of the model
model = NAS("yolo_nas_s.pt")

# Run inference on an image to detect objects
# This utilizes the optimized architecture for fast detection
results = model("https://ultralytics.com/images/bus.jpg")

# Print the top detected class
print(f"Detected: {results[0].names[int(results[0].boxes.cls[0])]}")

For those looking to train state-of-the-art models without the complexity of NAS, the Ultralytics YOLO26 offers a highly optimized architecture out of the box, incorporating the latest advancements in research. You can easily manage datasets, training, and deployment for these models using the Ultralytics Platform, which simplifies the entire MLOps lifecycle.

Tham gia Ultralytics cộng đồng

Tham gia vào tương lai của AI. Kết nối, hợp tác và phát triển cùng với những nhà đổi mới toàn cầu

Tham gia ngay