# Dolphin: A Programmable Framework for Scalable Neurosymbolic Learning

Dolphin: 확장 가능한 뉴로심볼릭 학습을 위한 프로그래머블 프레임워크

Aaditya Naik, Jason Liu, Claire Wang, Amish Sethi, Saikat Dutta, Mayur Naik 외 1명 · arXiv · 2024년 10월 4일

- **연구 문제** 신경기호 학습은 복잡한 기호 프로그램과 큰 데이터셋에서 계산이 불어나 확장성이 떨어지는 문제가 있습니다.
- **연구 방법** DOLPHIN은 기호 연산을 CPU에서, 확률 계산과 기울기 전파를 GPU에서 벡터화하는 Python 기반 프레임워크입니다.
- **주요 결과** 원문은 SumN-5에서 DOLPHIN의 총 학습 시간을 53.86초, Scallop을 923.78초로 보고하며 여러 벤치마크에서 기준선보다 빠르거나 기준선이 수렴하지 못한 설정에서 결과를 얻었다고 설명합니다.

## 신경기호 학습의 확장성 문제

신경기호 학습은 신경망의 패턴 인식과 기호 추론을 결합하지만, 기호 프로그램이 복잡해지거나 데이터셋이 커질수록 계산이 빠르게 불어납니다. 예를 들어 MNIST SumN에서 가능한 합의 수는 N이 커질수록 빠르게 늘어나며, 기존 프레임워크는 기호 연산과 확률 계산을 어디에서 수행하느냐에 따라 GPU 메모리 부족이나 CPU 병목을 겪습니다. 논문은 이 문제를 기호 연산의 표현력을 유지하면서 확률 계산을 GPU에서 배치 단위로 처리하는 방향으로 다룹니다.

## Distribution과 기호-태그 분리 구조

DOLPHIN은 신경망 출력 로짓을 Distribution 객체의 태그로 연결하고, 심볼은 임의의 Python 객체로 유지합니다. 이 구조에서 기호 조작은 CPU에서 실행되고, 태그에 대한 확률 계산은 PyTorch 텐서로 GPU에서 벡터화됩니다. 따라서 신경망 출력의 기울기가 기호 프로그램을 거쳐 역전파될 수 있습니다.

![Figure 1: Illustration of the execution of a neurosymbolic program for the kinship reasoning task CLUTRR. While existing neurosymbolic frameworks run the neura…](https://refivu.com/papers/45dd94f7-4a58-4799-bc56-64bca4cda2ed/figures/figure-a9a449caebcf686e1fd8de836b730361.png?thumb=512)

**Figure 1** : Illustration of the execution of a neurosymbolic program for the kinship reasoning task CLUTRR. While existing neurosymbolic frameworks run the neural models on the GPU, they run the symbolic program entirely on either the CPU (e.g. Scallop) or the GPU (e.g. Logic Tensor Networks), rendering them inefficient in terms of compute and memory, respectively. In DOLPHIN, both neural models and symbolic programs are specified as PyTorch modules, but only probabilistic computations (P) are vectorized on GPU whereas symbolic computations (L) execute on CPU.

[원문](https://arxiv.org/abs/2410.03348v6) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Aaditya Naik, Jason Liu, Claire Wang, Amish Sethi, Saikat Dutta, Mayur Naik, Eric Wong · Dolphin: A Programmable Framework for Scalable Neurosymbolic Learning · 원문 그림 인용 · 원본 PDF 1쪽에서 그림 영역을 추출했습니다.

## APPLY, FILTER, UNION, GETPROBS 연산

APPLY는 K개의 Distribution과 함수 f를 받아 가능한 심볼 조합에 f를 적용하고, 태그는 입력 태그의 결합 연산으로 묶은 뒤 같은 결과 심볼에 대해 선택 연산으로 합칩니다. FILTER는 조건을 만족하는 심볼만 남기며, UNION은 두 Distribution의 심볼을 합치고 공통 심볼의 태그를 선택 연산으로 결합합니다. GETPROBS는 최종 Distribution의 태그에서 확률을 추출하여 손실 계산에 사용합니다.

## DAMP와 DTKP-AM provenance

DOLPHIN은 provenance semiring의 결합과 선택 연산을 구현체로 바꿉니다. DAMP는 확률을 태그로 사용하며 결합은 곱, 선택은 합으로 정의하고 clamp로 1 이하로 제한합니다. 이 방식은 입력 분포가 상호 배타적이고 독립이라는 가정을 둡니다. DTKP-AM은 최대 k개의 증명을 추적하고, 증명 확률을 원소 곱으로 계산한 뒤 이를 합산하여 DTKP-WMC의 가중 모델 카운팅을 벡터화된 방식으로 근사합니다. 원문은 이 근사가 상한을 제공한다고 설명하지만 정확한 WMC 계산은 아닙니다.

![Table 1: DOLPHINprovenances implemented in PyTorch](https://refivu.com/papers/45dd94f7-4a58-4799-bc56-64bca4cda2ed/figures/figure-471d0379654ce0a142f1c8e0d5c541d1.png?thumb=512)

**Table 1** : DOLPHINprovenances implemented in PyTorch.

[원문](https://arxiv.org/abs/2410.03348v6) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Aaditya Naik, Jason Liu, Claire Wang, Amish Sethi, Saikat Dutta, Mayur Naik, Eric Wong · Dolphin: A Programmable Framework for Scalable Neurosymbolic Learning · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.

## 확장성 비교 결과

SumN-5에서 DOLPHIN의 총 학습 시간은 53.86초이고 Scallop은 923.78초로 보고되어 상대 비율 α는 17.15입니다. Path-256에서는 DOLPHIN이 1.97e4초, Scallop이 1.14e5초로 보고되어 α는 5.78입니다. 원문은 Scallop과 ISED 등 일부 기준선이 10시간 안에 수렴하지 못한 큰 설정에서 DOLPHIN이 결과를 얻었다고 설명합니다. 이 시간 비교는 특정 설정에서의 측정이며 모든 과제에 같은 배율이 적용된다는 뜻은 아닙니다.

![Table 2: Training times (in seconds) for DOLPHINand Scallop on all benchmarks. Training times more than 10 hours are highlighted in red. The scaling factor α i…](https://refivu.com/papers/45dd94f7-4a58-4799-bc56-64bca4cda2ed/figures/figure-119eb633458f4b708e58f180db55a1f6.png?thumb=512)

**Table 2** : Training times (in seconds) for DOLPHINand Scallop on all benchmarks. Training times more than 10 hours are highlighted in red. The scaling factor α is the ratio of the total training times of Scallop to DOLPHIN.

[원문](https://arxiv.org/abs/2410.03348v6) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Aaditya Naik, Jason Liu, Claire Wang, Amish Sethi, Saikat Dutta, Mayur Naik, Eric Wong · Dolphin: A Programmable Framework for Scalable Neurosymbolic Learning · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.

## 정확도와 provenance 비교

원문은 DOLPHIN이 여러 벤치마크에서 일반 목적 신경기호 프레임워크 가운데 최고 수준의 정확도를 보인다고 보고합니다. HWF와 PathFinder에서는 DTKP-AM이 최고 성능 provenance로 사용되었고, SumN에서는 DAMP가 DTKP-AM보다 평균 72% 포인트 더 효과적이라고 보고되었습니다. CLUTRR에서는 DOLPHIN의 정확도가 Scallop보다 약간 낮다고 명시되어 있습니다.

![Figure 7: Accuracy of DOLPHINand baselines across all benchmarks without any timeout](https://refivu.com/papers/45dd94f7-4a58-4799-bc56-64bca4cda2ed/figures/figure-251546634f5481a6b57923b7c7e54d0d.png?thumb=512)

**Figure 7** : Accuracy of DOLPHINand baselines across all benchmarks without any timeout.

[원문](https://arxiv.org/abs/2410.03348v6) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Aaditya Naik, Jason Liu, Claire Wang, Amish Sethi, Saikat Dutta, Mayur Naik, Eric Wong · Dolphin: A Programmable Framework for Scalable Neurosymbolic Learning · 원문 그림 인용 · 원본 PDF 16쪽에서 그림 영역을 추출했습니다.

![Figure 9: Accuracy and average training time per epoch for DAMP and DTKP-AM](https://refivu.com/papers/45dd94f7-4a58-4799-bc56-64bca4cda2ed/figures/figure-5bdfc42dfeca72a770fd4090351545cd.png?thumb=512)

**Figure 9** : Accuracy and average training time per epoch for DAMP and DTKP-AM.

[원문](https://arxiv.org/abs/2410.03348v6) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Aaditya Naik, Jason Liu, Claire Wang, Amish Sethi, Saikat Dutta, Mayur Naik, Eric Wong · Dolphin: A Programmable Framework for Scalable Neurosymbolic Learning · 원문 그림 인용 · 원본 PDF 18쪽에서 그림 영역을 추출했습니다.

## 적용 범위와 한계

원문은 DOLPHIN이 사용자에게 배치 방식의 프로그램 작성을 요구하며, 생성 모델이 요구하는 표현 방식은 연구되지 않았다고 밝힙니다. 또한 비결정적 기호 프로그램은 지원하지 않는다고 적고 있습니다. DAMP는 독립성 가정이 맞지 않을 때 적합하지 않을 수 있으며, DTKP-AM의 근사는 정확한 WMC를 대체한다는 점을 원문이 명시합니다.

## 논문 정보

- **저자**: Aaditya Naik, Jason Liu, Claire Wang, Amish Sethi, Saikat Dutta, Mayur Naik, Eric Wong
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2024년 10월 4일
- **등록일**: 2026년 10월 29일
- **수정일**: 2025년 12월 29일
- **버전**: v6
- **arXiv**: 2410.03348
- **분류**: cs.LG
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2410.03348v6) · [원문 PDF ↗](https://arxiv.org/pdf/2410.03348v6)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

Neurosymbolic learning enables the integration of symbolic reasoning with deep learning but faces significant challenges in scaling to complex symbolic programs, large datasets, or both. We introduce DOLPHIN, a framework that tackles these challenges by supporting neurosymbolic programs in Python, executing complex symbolic reasoning on the CPU while vectorizing probabilistic computations and gradient propagation on the GPU. Across 13 benchmarks spanning tasks over text, image, and video data, with symbolic reasoning features like recursion and black-box functions, DOLPHIN converges to state-of-the-art accuracies on the more complex benchmarks while existing frameworks such as Scallop, ISED, and IndeCateR+ fail to converge within the time limit. On simpler benchmarks, DOLPHIN matches their performance, while achieving these results 1.71x to 62x faster than the baselines. Overall, DOLPHIN advances the scalability of neurosymbolic frameworks, achieving state-of-the-art efficiency and convergence on difficult benchmarks where existing frameworks struggle. The code is published at https://github.com/Dolphin-NeSy/Dolphin.

## 원문 인용

Aaditya Naik, Jason Liu, Claire Wang, Amish Sethi, Saikat Dutta, Mayur Naik, Eric Wong (2024). Dolphin: A Programmable Framework for Scalable Neurosymbolic Learning. arXiv:2410.03348v6. https://arxiv.org/abs/2410.03348v6

**BibTeX**

```
@misc{naik2024dolphin,
  title = {{Dolphin: A Programmable Framework for Scalable Neurosymbolic Learning}},
  author = {Aaditya Naik and Jason Liu and Claire Wang and Amish Sethi and Saikat Dutta and Mayur Naik and Eric Wong},
  year = {2024},
  eprint = {2410.03348},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.03348v6}
}
```

## 이 논문의 용어

- [PathFinder](https://refivu.com/terms/b4692141fc82-pathfinder)
- [DAMP](https://refivu.com/terms/bc7ee3e31d57-damp)
- [Mugen](https://refivu.com/terms/f9e884a9ce7f-mugen)
- [Scallop](https://refivu.com/terms/c3c48e9449c7-scallop)
- [Union](https://refivu.com/terms/c3e54ffacbbd-union)

## 다른 논문 해설

- [CombiMOTS: Combinatorial Multi-Objective Tree Search for Dual-Target Molecule Generation](https://refivu.com/papers/15aded82-0e20-4088-ae0a-2e2839536d55-combimots-combinatorial-multi-objective-tree-search-for-dual.md)
- [Doubly Robust Distributionally Robust Offline Contextual Pricing](https://refivu.com/papers/6c0982ad-a8ad-4f7f-a1a4-2028edabf0db-doubly-robust-distributionally-robust-offline-contextual.md)
- [Teaching Molecular Dynamics to a Non-Autoregressive Ionic Transport Predictor](https://refivu.com/papers/7dd6838b-11d6-4086-a8de-d699bc49f891-teaching-molecular-dynamics-to-a-non-autoregressive-ionic.md)
- [Near-Optimal Regret for KL-Regularized Multi-Armed Bandits](https://refivu.com/papers/9a4d4e89-3a17-4de6-ba26-f2fbb0be829f-near-optimal-regret-for-kl-regularized-multi-armed.md)
- [Semi-Supervised Neural Super-Resolution for Mesh-Based Simulations](https://refivu.com/papers/6eee0df3-eec1-4c3c-a248-2c7e41778a35-semi-supervised-neural-super-resolution-for-mesh-based.md)
- [Can Muon Fine-tune Adam-Pretrained Models?](https://refivu.com/papers/dde89778-9f46-4950-b478-95dd92aa33d6-can-muon-fine-tune-adam-pretrained-models.md)
- [Sketch to Adapt: Fine-Tunable Sketches for Efficient LLM Adaptation](https://refivu.com/papers/d549f1f7-c8a5-40db-9f64-41c047d85b01-sketch-to-adapt-fine-tunable-sketches-for-efficient.md)
- [Your Policy Is Secretly a Harness: The Decision Geometry of Agent Interfaces](https://refivu.com/papers/335ccc31-27a9-48cb-97b0-140ea87383c8-your-policy-is-secretly-a-harness-the-decision.md)
- [SimpleGPT: Improving GPT via A Simple Normalization Strategy](https://refivu.com/papers/0f27c243-4d27-4bc3-b975-439e75d27983-simplegpt-improving-gpt-via-a-simple-normalization-strategy.md)
- [Efficient Inference for Noisy LLM-as-a-Judge Evaluation](https://refivu.com/papers/5d6e1d43-c326-4f49-81b8-7b47bc400bd3-efficient-inference-for-noisy-llm-as-a-judge.md)
- [Delving into Muon and Beyond: Deep Analysis and Extensions](https://refivu.com/papers/7b39abc5-e512-44f0-b7e4-73354b24981c-delving-into-muon-and-beyond-deep-analysis-and.md)
- [Approximation of Log-Partition Function in Policy Mirror Descent Induces Implicit Regularization for LLM Post-Training](https://refivu.com/papers/5aa12f72-edca-4678-b6f6-d98ab578bca4-approximation-of-log-partition-function-in-policy-mirror.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/45dd94f7-4a58-4799-bc56-64bca4cda2ed-dolphin-a-programmable-framework-for-scalable-neurosymbolic)
