Papers
Topics
Authors
Recent
Search
2000 character limit reached

Neuro-Symbolic Concept Learner

Updated 10 April 2026
  • Neuro-Symbolic Concept Learner (NS-CL) is a unified model that combines object-level visual concept learning, natural language parsing, and symbolic program execution.
  • It uses an object-centric scene representation with Mask R-CNN and ResNet-34 to derive deep features and attribute quantizations for differentiable reasoning.
  • NS-CL achieves state-of-the-art performance on visual question answering benchmarks and exhibits robust generalization with minimal supervision.

The Neuro-Symbolic Concept Learner (NS-CL) is a unified model for jointly inducing object-level visual concepts, word representations, and a semantic parser that maps natural language to symbolic reasoning programs—using only natural supervision from paired images, questions, and answers. NS-CL constructs an explicit object-centric scene representation, composes a symbolic program in a restricted domain-specific language (DSL) for each input question, and executes that program in a differentiable neuro-symbolic reasoning module to produce answers. The entire system is trained end-to-end; all supervision is derived from final answers, with no annotation for concept labels or programs and no entailed explicit mapping between objects and words (Mao et al., 2019).

1. System Architecture

NS-CL consists of three interconnected modules:

  1. Perception module (fimgf_\mathrm{img}): Maps an input image II to object-centric deep features {o1,…,on}\{o_1, \ldots, o_n\} and attribute-specific features {z1,…,zn}\{z_1, \ldots, z_n\}. Mask R-CNN proposes bounding boxes, and each crop is RoI-aligned and processed by ResNet-34, concatenated with a global image feature, giving oi∈Rdo_i \in \mathbb{R}^d.
  2. Semantic parsing module (Ï€lang\pi_\mathrm{lang}): Converts a question QQ into a distribution over symbolic programs PP in a compact DSL. Architecture includes a bi-directional GRU encoder and a recursive, sequence-to-tree decoder emitting program operators and concept parameters, producing compositional trees with nodes such as Filter, Relate, Count, Query.
  3. Neuro-symbolic reasoning module (EXEC): Executes programs pp on sets of object representations {oi,zi}\{o_i, z_i\} to return an answer II0. Execution is implemented as a deterministic interpreter using differentiable functional operations, enabling joint training of upstream modules via answer-level loss gradients and reinforcement or off-policy updates for the parser.

All modules are optimized end-to-end, with answer cross-entropy gradients flowing into the perception stack and REINFORCE or off-policy search driving the parser (Mao et al., 2019).

2. Perception and Concept Quantization

NS-CL forms an explicit object-based scene structure, supporting composable concept learning:

  • Object proposals: Mask R-CNN generates candidate bounding boxes. Each is RoI-aligned, processed by ResNet-34, and concatenated with a global image feature for the object vector II1.
  • Attribute operators: For each attribute II2, a dedicated MLP II3 maps to attribute subspace. Each category concept II4 (e.g., "Red," "Cube," "LeftOf") is represented by a learned vector II5 in the attribute space.
  • Concept quantization: For object II6 and concept II7 of attribute II8, the probability is computed:

II9

where {o1,…,on}\{o_1, \ldots, o_n\}0 is the sigmoid, {o1,…,on}\{o_1, \ldots, o_n\}1 is cosine similarity. For relations (e.g., LeftOf), concatenated object pairs {o1,…,on}\{o_1, \ldots, o_n\}2 are similarly scored.

  • Supervision: No attribute labels are available; all supervision comes via the cross-entropy loss on generated answers, implicitly sculpting the concept embeddings during curriculum-based training.

This structure allows learning both attribute and relation concepts and grounding language directly in perception without explicit annotation (Mao et al., 2019).

3. Semantic Parsing and Program Induction

The semantic parsing module grounds questions into symbolic programs using weak supervision:

  • Encoding: A 2-layer bi-GRU encodes {o1,…,on}\{o_1, \ldots, o_n\}3 to final state {o1,…,on}\{o_1, \ldots, o_n\}4.
  • Decoding: A recursive, sequence-to-tree decoder (composed of an operator decoder, a concept decoder, and small per-node RNNs) emits operator–concept pairs forming the parse tree {o1,…,on}\{o_1, \ldots, o_n\}5.
  • Domain-specific language (DSL): Programs are constructed from operators over sets and objects:
    • Scene() {o1,…,on}\{o_1, \ldots, o_n\}6 ObjectSet
    • Filter(ObjectSet, ObjConcept) {o1,…,on}\{o_1, \ldots, o_n\}7 ObjectSet
    • Relate(Object, RelConcept) {o1,…,on}\{o_1, \ldots, o_n\}8 ObjectSet
    • Intersection, Union, Query, Exist, Count, and various attribute and relational queries
  • Learning: Programs are not directly supervised. Instead, REINFORCE or off-policy search optimize the expected reward:

{o1,…,on}\{o_1, \ldots, o_n\}9

with {z1,…,zn}\{z_1, \ldots, z_n\}0 if EXEC{z1,…,zn}\{z_1, \ldots, z_n\}1 Perception{z1,…,zn}\{z_1, \ldots, z_n\}2, else 0. Variance is reduced by enumerating all correct-answer-producing small programs and maximizing their aggregate probability.

This approach entangles semantic parsing with perceptual grounding and compositional reasoning, all from answer-level signals (Mao et al., 2019).

4. Neuro-Symbolic Reasoning and Execution

The reasoning module interprets induced programs over the soft, object-centric scene graph:

  • Data structures: Sets and objects are represented as "soft masks" {z1,…,zn}\{z_1, \ldots, z_n\}3, with {z1,…,zn}\{z_1, \ldots, z_n\}4 the probability that object {z1,…,zn}\{z_1, \ldots, z_n\}5 is present. Singletons are masked via softmax for sharpness.
  • Operators: The DSL is executed via differentiable operators, e.g.,
    • Filter{z1,…,zn}\{z_1, \ldots, z_n\}6
    • Relate{z1,…,zn}\{z_1, \ldots, z_n\}7
    • Count{z1,…,zn}\{z_1, \ldots, z_n\}8
    • Query{z1,…,zn}\{z_1, \ldots, z_n\}9 For each concept oi∈Rdo_i \in \mathbb{R}^d0 of attribute oi∈Rdo_i \in \mathbb{R}^d1,

    oi∈Rdo_i \in \mathbb{R}^d2

  • Differentiability: All operations (min, sum, sigmoid, softmax) are differentiable in oi∈Rdo_i \in \mathbb{R}^d3. Thus, answer losses backpropagate through execution to perceptual and concept parameters.

This hybrid interpreter guarantees deterministic, fully differentiable neuro-symbolic reasoning with transparent execution traces (Mao et al., 2019).

5. Staged Learning and Optimization

NS-CL uses curriculum learning and end-to-end optimization:

  • Curriculum phases:

    • Stage 1 ("Object concepts"): Few (oi∈Rdo_i \in \mathbb{R}^d43) objects per scene, only basic attribute or counting questions; builds initial concept space.
    • Stage 2 ("Relational concepts"): Adds relational and compositional queries (e.g., "cube to the left of the sphere"); perception module frozen.
    • Stage 3 ("Full complexity"): All CLEVR questions, up to 10-object scenes, arbitrary program depth; after a period of fixed parser and executor, joint fine-tuning is performed.
  • Optimization objective: The joint loss is

oi∈Rdo_i \in \mathbb{R}^d5

This obviates the need for separated concept or parse losses, relying solely on end-to-end QA supervision.

The curriculum strategy aligns with human-like concept acquisition, facilitating efficient and stable training (Mao et al., 2019).

6. Empirical Performance and Generalization

NS-CL achieves state-of-the-art results on visual question answering, compositional generalization, and transfer:

Task / Domain NS-CL Performance Comparative Baselines
CLEVR val (Color/Shape/Mat./Size) ≈99% classification –
CLEVR VQA, 10% training data 98.9% accuracy FiLM, MAC, TbD: 55–68%
CLEVR VQA, full training (no programs) 98.9% accuracy TbD (w/ 700k programs): 99.1%
CLEVR Compositional splits ≈99% in all 4 splits Implicit models degrade 4–8%
CLEVR-CoGenT (novel combos) 98.8/98.9% (A/B) –
Incremental concept: "Purple" 93.9% (vs IEP: 89.3%) TbD: 87.8%
Cross-DSL image–caption retrieval 97% CNN-LSTM: 68.9%
Minecraft domain (no program labels) 93.3% NS-VQA: 87.7%
Real-image VQA (VQS) 44.3% MLP: 43.9%, MAC: 46.2%

NS-CL demonstrates robust generalization to novel attribute compositions (CoGenT), compositional scene splits (scene size, program depth), new domains (image–caption retrieval, Minecraft), and rapid incremental learning of new concepts ("Purple") from minimal supervision. The model yields transparent execution traces via the neuro-symbolic interpreter, aiding interpretability—a property not generally available in purely neural baselines (Mao et al., 2019).

7. Implementation and System Parameters

  • Framework: PyTorch, publicly available.
  • Optimization: Adam optimizer; learning rate annealed from oi∈Rdo_i \in \mathbb{R}^d6 to oi∈Rdo_i \in \mathbb{R}^d7, batch size ≈32.
  • Perceptual backbone: Mask R-CNN (pretrained on 4k CLEVR bounding boxes), ResNet-34 (ImageNet-pretrained).
  • Parser architecture: 2-layer bi-GRU (hidden 512), word embedding (256 + DPOS 128), decoding via 2-layer MLPs (OpDecoder and ConceptDecoder).
  • Curriculum control: Data loader switches and task replay between stages.
  • Semantic parsing: Beam/off-policy search, beam size ≈5; all small programs yielding correct answer are aggregated for parser updates.

NS-CL is engineered for modularity and compositionality, leveraging established vision and LLMs with novel neuro-symbolic integration and supervision exclusively via QA signals (Mao et al., 2019).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Neuro-Symbolic Concept Learner (NS-CL).