Plants Don't Walk on the Street: Common-Sense Reasoning for Reliable Semantic Segmentation

Linara Adilova, Elena Schulz, Maram Akila, Sebastian Houben, Jan David Schneider, Fabian Hueger, Tim Wirtz

TL;DR

This paper proposes a hybrid approach to semantic segmentation for autonomous driving by combining deep neural networks with Probabilistic Soft Logic (PSL). By encoding human common-sense rules—such as "pedestrians are usually near sidewalks"—the authors significantly improve the robustness of environment perception against image distortions like fog, snow, and glare.

What Problem Does This Paper Address?

Deep neural networks (DNNs) are the industry standard for semantic segmentation, but they are notoriously brittle. A few pixels of noise or a change in weather can cause a DNN to make "hallucinations" that a human would find absurd—like identifying a tree as a walking pedestrian.

The core challenge is that DNNs learn primarily from low-level pixel correlations and often fail to capture high-level relational knowledge (e.g., the spatial relationship between a traffic light and a car). While humans use "common sense" to filter out implausible interpretations of a scene, teaching this to a purely data-driven model is difficult. The authors aim to bridge this gap by injecting symbolic, human-readable reasoning into the deep learning pipeline.

Methods

The researchers developed a framework that integrates a standard segmentation network with a reasoning layer based on Probabilistic Soft Logic (PSL).

  1. Low-Level Perception: They use ERFNet, a lightweight encoder-decoder network, to generate initial semantic segmentation masks. Simultaneously, MonoDepth2 is used to estimate depth information from the RGB input.
  2. Knowledge Representation: Instead of hard Boolean logic (True/False), PSL uses "soft" truth values in the interval [0, 1]. This allows the system to handle uncertainty. Rules are defined using first-order logic, such as:
  3. If an object is on a sidewalk and near a traffic signal, it is likely a pedestrian.
  4. Rule Weighting: Not all rules are equally important. The authors use a training set to learn weights for these rules, effectively "distilling" common sense from data. If a human-designed rule doesn't hold up in the data, its weight is minimized.
  5. Inference: During testing, the network's predictions serve as "priors" for the PSL framework. The system then performs optimization to find the most probable object classes that satisfy both the neural network's observations and the common-sense rules.
Figure 2: PSL rules have a conjuncted body and a single literal head. Atoms (e.g. IntersectionUnder(O1, ’r’) are the basic elements that are used for reasoning. An atom is a combination of predicates (here: IntersectionUnder\2) and a sequence of variables and constants equal to the predicate’s arity. A constant indicates a concrete element (e.g. “ped” is the concrete object class pedestrian) and a variable denotes a placeholder later to be substituted by concrete elements. Here, the predicate IntersectionUnder has an arity of two, thus, the atom consists of the variables O1 indicating an object plus the constant “r” indicating the underground type is the road. The identifier O1 will be substituted for all available objects during inference while the constant “r” will stay the same. The O1 identifier is used in three atoms indicating that during inference, each object-1-variable will be substituted by the same constant (same holds for object-2-variable O2, respectively). The exponent ˆ2 at the end of the rule indicates that the quadratic loss is chosen. This example rule can be interpreted as “if an object 1 is placed on a sidewalk and in close distance to another object 2, which is a traffic signal, there is a probability that this object 1 is a pedestrian”.

Datasets

The study utilizes the A2D2 (Audi Autonomous Driving Dataset), which contains high-resolution images of urban traffic scenes. For evaluation, the authors simplified the original labels into 13 functional classes.

To test robustness, they applied a suite of image corruptions (brightness, fog, frost, and snow) at five levels of severity, simulating the adverse conditions an autonomous vehicle might face in the real world.

Key Insights and Ideas

  • Relational Reasoning is Robust: While a neural network's performance plummets when pixels are obscured by fog or frost, the relationships between objects (e.g., a pedestrian standing on a sidewalk) remain logically consistent.
  • Interpretable Safety: Unlike "black-box" DNNs, the PSL rules are human-readable. This allows engineers to audit the system's reasoning and manually adjust weights for safety-critical scenarios, such as protecting vulnerable road users.
  • The "Oracle" Shortcut: To focus strictly on the reasoning aspect, the authors used an "oracle" (ground truth data) to identify object entities. This allowed them to prove that if we can identify objects, common-sense reasoning significantly stabilizes the final classification.
Figure 1: Most humans approach the task of understanding and reasoning about traffic scenes using relations between objects. Given that all of them have been identified, com- mon knowledge — describing both behaviour and features, e.g. relative position — can straightforwardly be delineated in terms of simple rules. Some of the rules that we utilize in this paper are exemplified in the above figure.

Key Results

The experiments demonstrated that the PSL reasoning layer acts as a powerful stabilizer:

  • Stability Under Corruption: In tests with "frost" corruption, the neural network's average score for identifying traffic signals dropped significantly as severity increased. However, the combined "Network + Rules" approach remained remarkably stable, maintaining high accuracy even when the visual input was heavily degraded.
  • Histogram Shifts: The authors observed that for the "Pedestrian" class, the neural network alone often produced very low confidence scores under corruption. The PSL rules successfully pushed these scores back toward the correct classification by leveraging spatial context.
Figure 6: The development of average scores for traffic signals under increasing frost corruption. The combined approach (green) is far more stable than the network alone (blue).

Limitations and Future Work

  • Entity Extraction: The current study relies on an "oracle" to extract object entities from the scene. In a real-world deployment, this would need to be replaced by a potentially unreliable automated object detector or LIDAR system.
  • Temporal Consistency: The current model reasons on a frame-by-frame basis. The authors suggest that adding temporal rules (e.g., "a pedestrian shouldn't suddenly vanish between two frames") would further enhance reliability.
  • Scalability: The initial rule set is relatively small. Expanding this to cover more complex interactions and a wider variety of objects is a necessary next step for full-scale autonomous driving.

Summary updated

BibTeX
@inproceedings{adilova2021plants,
  author = {Linara Adilova and Elena Schulz and Maram Akila and Sebastian Houben and Jan David Schneider and Fabian Hueger and Tim Wirtz},
  title = {{Plants Don't Walk on the Street: Common-Sense Reasoning for Reliable Semantic Segmentation}},
  booktitle = {Workshops @ CVPR},
  year = {2021},
  url = {https://openreview.net/forum?id=uQbDSn9o6v},
}
Figure