Abstract
We introduce MOD-CL, a multi-label object detection framework that utilizes constrained loss in the training process to produce outputs that better satisfy the given requirements. In this paper, we use $\mathrm{MOD_{YOLO}}$, a multi-label object detection model built upon the state-of-the-art object detection model YOLOv8. In Task 1, we introduce the Corrector Model and Blender Model, two new models that follow after the object detection process, aiming to generate a more constrained output. For Task 2, constrained losses have been incorporated into the $\mathrm{MOD_{YOLO}}$ architecture using Product T-Norm. The results show that these implementations are instrumental to improving the scores for both Task 1 and Task 2.
Introduction
In the domain of autonomous driving, identifying an agent (e.g., a "car") is insufficient without understanding its concurrent actions (e.g., "braking," "turning left," or "parked"). This is a multi-label object detection problem. Standard models like YOLO are highly effective at localization but often struggle with logical consistency—such as predicting an action without an agent—and data scarcity, as labeling every action in every frame of a video is prohibitively expensive.
MOD-CL (Multi-label Object Detection with Constrained Loss) addresses these gaps by ensuring that model outputs satisfy pre-defined logical requirements, even when training data is limited. By treating logic as a differentiable "force" during training, the framework pulls the model toward more sensible and consistent predictions.
Methodology
The framework is built upon MOD-YOLO, a modified version of YOLOv8 designed to support multiple labels per bounding box using one-hot vector encodings. The researchers addressed the problem through two distinct tasks.
Task 1: Semi-Supervised Learning with Corrector-Blender
To handle limited labeled data, a two-stage pipeline was introduced:
- Corrector Model: Trained on unlabeled data using a "constrained loss," it learns the logical relationships between labels (e.g., "if there is an action, there must be an agent").
- Blender Model: Works alongside the corrector to blend these logical insights with supervised signals from the labeled portion of the dataset.
Task 2: Full Supervision with Logical Solvers
For scenarios with full data, logical constraints were integrated directly into the training process:
- Product T-Norm: This fuzzy logic relaxation converts hard boolean rules into differentiable loss functions that the neural network can optimize.
- MaxHS Solver: During inference, a Partial Weighted MaxSAT solver acts as a final "sanity check," adjusting raw confidence scores to ensure the final output 100% satisfies the environmental logical requirements.
- Computational Optimization: To manage resource consumption, constrained loss is only calculated for anchor points where the model already has a baseline confidence (>0.5).
- Agent-First Filtering: The team implemented "Agent-wise NMS" (Non-Maximum Suppression) to prioritize keeping boxes with clear agent labels, ensuring the model doesn't output "ghost actions" without a subject.
Results
The results demonstrate that adding logical constraints acts as a powerful regularizer, significantly improving performance across both tasks.
Task 1 Performance
The MOD-YOLO with the Corrector-Blender model achieved a [email protected] of 0.2662, a significant improvement over the baseline model's 0.18.
Task 2 Performance
The impact of constrained loss was even more pronounced in the fully supervised setting. As shown in the table below, the constrained loss version achieved an F1-Score of 0.6122, compared to the baseline's 0.40.
Precision rose from 0.49 to 0.7057, and Recall increased from 0.34 to 0.5405. These gains prove that the model became both more accurate and more thorough by "learning the rules" of the environment.
Conclusion
MOD-CL successfully demonstrates that integrating logical constraints into deep learning architectures enhances both accuracy and consistency in multi-label tasks. While the use of MaxSAT solvers at inference time adds complexity, the resulting improvements in rule compliance are critical for safety-oriented applications like autonomous driving. Future work will focus on further optimizing the computational overhead and disentangling the specific contributions of various heuristic filters.
Summary updated