Proceedings

Efficient Optimization of Fixed-Length Paths

Download BibTeX Cite

Proceedings of the Thirty-Fifth International Joint Conference on Artificial Intelligence. Main Track. Pages 2199-2207.

https://doi.org/10.24963/ijcai.2026/245

Abstract

Optimization problems such as Viterbi decoding and V-optimal histogram construction seek a path of exact length L through a state space that minimizes a cost function. These problems are traditionally solved using dynamic programming (DP). A best-first-search (BFS) solution is also applicable, yet requires maintaining a priority queue. In all cases, memory usage grows linearly with both state space size and path length. In this paper, we propose CompactBFS, a framework that limits the growth of the BFS priority queue to space-efficiently determine the exact optimal cost for a fixed-length path and then constructs such a path by a divide-and-conquer strategy that eliminates the memory overhead. We apply CompactBFS to Viterbi decoding, which remains relevant to speech recognition, and V-optimal histogram construction. Our experimental results demonstrate significant gains over state-of-the-art solutions in runtime and memory consumption.

  1. [Backurs and Tzamos, 2017] Arturs Backurs and Christos Tzamos. Improving Viterbi is hard: Better runtimes imply faster clique algorithms. In ICML, pages 311-321, 2017.
  2. [Bellman, 1966] Richard Bellman. Dynamic programming. Science, 153(3731):34-37, 1966.
  3. [Bemten et al., 2019] Amaury Van Bemten, Jochen W. Guck, Carmen Mas Machuca, and Wolfgang Kellerer. Bounded Dijkstra (BD): Search space reduction for expediting short- est path subroutines. CoRR, abs/1903.00436, 2019.
  4. [Binder et al., 1997] John Binder, Kevin P. Murphy, and Stu- art Russell. Space-efficient inference in dynamic proba- bilistic networks. In IJCAI, pages 1292-1296, 1997. IJCAI
  5. [Braun et al., 2020] Hugo Braun, Justin Luitjens, Ryan Leary, Tim Kaldewey, and Daniel Povey. Gpu-accelerated viterbi exact lattice decoder for batched online and offline speech recognition. In ICASSP, pages 7874-7878, 2020.
  6. [Ciaperoni et al., 2022] Martino Ciaperoni, Aristides Gionis, Athanasios Katsamanis, and Panagiotis Karras. SIEVE: A space-efficient algorithm for Viterbi decoding. In ACM SIGMOD, pages 1136-1145, 2022.
  7. [Ciaperoni et al., 2024] Martino Ciaperoni, Athanasios Kat- samanis, Aristides Gionis, and Panagiotis Karras. Beam- search SIEVE for low-memory speech recognition. In Interspeech 2024, pages 272-276, 2024.
  8. [Ciaperoni et al., 2026] Martino Ciaperoni, Nikolaos Tzi- avelis, and Panagiotis Karras. Efficient optimization of fixed-length paths (full version). https://github.com/maciap/ CompactBestFirst/blob/main/full_version.pdf, 2026. Link
  9. [Dijkstra, 1959] Edsger W. Dijkstra. A note on two problems in connexion with graphs. Numerische Mathematik, 1:269- 271, 1959.
  10. [Felzenszwalb et al., 2003] Pedro F. Felzenszwalb, Daniel P. Huttenlocher, and Jon M. Kleinberg. Fast algorithms for large-state-space HMMs with applications to web usage analysis. In NeurIPS, pages 409-416, 2003.
  11. [Flajolet et al., 2007] Philippe Flajolet, Éric Fusy, Olivier Gandouet, and Frédéric Meunier. HyperLogLog: the analy- sis of a near-optimal cardinality estimation algorithm. In Conference on Analysis of Algorithms (AofA), pages 137- 156, 2007.
  12. [Foead et al., 2021] Daniel Foead, Alifio Ghifari, Marchel Budi Kusuma, Novita Hanafiah, and Eric Gunawan. A systematic literature review of A* pathfinding. Procedia Computer Science, 179:507-514, 2021.
  13. [Fredman and Tarjan, 1987] Michael L. Fredman and Robert Endre Tarjan. Fibonacci heaps and their uses in improved network optimization algorithms. J. ACM, 34(3):596-615, 1987.
  14. [Gales and Young, 2007] Mark J. F. Gales and Steve J. Young. The application of hidden markov models in speech recog- nition. Foundations and Trends in Signal Processing, 1(3):195-304, 2007.
  15. [Gondran and Minoux, 2008] Michel Gondran and Michel Minoux. Graphs, Dioids and Semirings: New Models and Algorithms (Operations Research/Computer Science Interfaces Series). Springer, 2008.
  16. [Guha et al., 2006] Sudipto Guha, Nick Koudas, and Kyuseok Shim. Approximation and streaming algo- rithms for histogram construction problems. ACM Trans. Database Syst., 31(1):396-438, 2006.
  17. [Guha, 2005] Sudipto Guha. Space efficiency in synopsis construction algorithms. In VLDB, pages 409-420, 2005.
  18. [Halim et al., 2009] Felix Halim, Panagiotis Karras, and Roland HC Yap. Fast and effective histogram construc- tion. In CIKM, pages 1167-1176, 2009.
  19. [Hirschberg, 1975] Daniel S. Hirschberg. A linear space al- gorithm for computing maximal common subsequences. Commun. ACM, 18(6):341-343, 1975.
  20. [Hirschberg, 1977] Daniel S. Hirschberg. Algorithms for the longest common subsequence problem. J. ACM, 24(4):664- 675, 1977.
  21. [Huang et al., 2012] Zhiheng Huang, Yi Chang, Bo Long, Jean-François Crespo, Anlei Dong, S. Sathiya Keerthi, and Su-Lin Wu. Iterative Viterbi A* algorithm for k-best se- quential decoding. In ACL, pages 611-619, 2012.
  22. [Huang, 2008] Liang Huang. Advanced dynamic program- ming in semiring and hypergraph frameworks. In Coling 2008: Advanced Dynamic Programming in Computational Linguistics: Theory, Algorithms and Applications -Tutorial notes, pages 1-18, 2008.
  23. [Jagadish et al., 1998] Hosagrahar Visvesvaraya Jagadish, Nick Koudas, Shanmugavelayutham Muthukrishnan, Viswanath Poosala, Kenneth Clem Sevcik, and Torsten Suel. Optimal histograms with quality guarantees. In VLDB, pages 275-286, 1998.
  24. [Jo et al., 2019] Jihyuk Jo, Han-Gyu Kim, In-Cheol Park, Bang Chul Jung, and Hoyoung Yoo. Modified viterbi scoring for hmm-based speech recognition. Intelligent Automation & Soft Computing, 25(2):351-358, 2019.
  25. [Karras and Mamoulis, 2008] Panagiotis Karras and Nikos Mamoulis. Hierarchical synopses with optimal error guarantees. ACM Transacation on Database Systems, 33(3):18:1-18:53, 2008.
  26. [Klein and Manning, 2003] Dan Klein and Christopher D. Manning. A* parsing: Fast exact Viterbi parse selection. In HLT-NAACL, pages 119-126, 2003.
  27. [Korf and Zhang, 2000] Richard E. Korf and Weixiong Zhang. Divide-and-conquer frontier search applied to opti- mal sequence alignment. In AAAI, pages 910-916, 2000.
  28. [Korf, 1999] Richard E. Korf. A divide and conquer bidirec- tional search: First results. In IJCAI, pages 1184-1191, 1999. IJCAI
  29. [Mohri, 2002] Mehryar Mohri. Semiring frameworks and algorithms for shortest-distance problems. J. Autom. Lang. Comb., 7(3):321-350, 2002.
  30. [Papadopoulos et al., 2011] Stavros Papadopoulos, Lixing Wang, Yin Yang, Dimitris Papadias, and Panagiotis Karras. Authenticated multistep nearest neighbor search. IEEE Trans. Knowl. Data Eng., 23(5):641-654, 2011.
  31. [Pearl, 1984] Judea Pearl. Heuristics: intelligent search strategies for computer problem solving. Addison-Wesley Longman Publishing Co., Inc., 1984.
  32. [Pohl, 1969] Ira Pohl. Bi-directional and heuristic search in path problems. Technical report, Stanford Linear Accelera- tor Center, Calif., 1969.
  33. [Pratap et al., 2024] Vineel Pratap, Andros Tjandra, Bowen Shi, Paden Tomasello, Arun Babu, Sayani Kundu, Ali Elkahky, Zhaoheng Ni, Apoorv Vyas, Maryam Fazel- Zarandi, Alexei Baevski, Yossi Adi, Xiaohui Zhang, Wei- Ning Hsu, Alexis Conneau, and Michael Auli. Scaling speech technology to 1, 000+ languages. J. Mach. Learn. Res., 25:97:1-97:52, 2024.
  34. [Russell and Norvig, 2010] Stuart Russell and Peter Norvig. Artificial Intelligence: A Modern Approach. Prentice Hall, 3 edition, 2010.
  35. [Siddiqi and Moore, 2005] Sajid M. Siddiqi and Andrew W. Moore. Fast inference and learning in large-state-space HMMs. In Proceedings of the 22nd International Confer- ence on Machine learning (ICML), pages 800-807, 2005.
  36. [Sniedovich, 2006] Moshe Sniedovich. Dijkstra's algorithm revisited: the dynamic programming connexion. Control and cybernetics, 35(3):599-620, 2006.
  37. [Spouge, 1989] John L. Spouge. Speeding up dynamic pro- gramming algorithms for finding optimal lattice paths. SIAM Journal on Applied Mathematics, 49(5):1552-1566, 1989.
  38. [Spouge, 1991] John L. Spouge. Fast optimal alignment. Comput. Appl. Biosci., 7(1):1-7, 1991.
  39. [Tarnas and Hughey, 1998] Christopher Tarnas and Richard Hughey. Reduced space hidden Markov model training. Bioinformatics, 14(5):401-406, 1998.
  40. [Tziavelis et al., 2025] Nikolaos Tziavelis, Wolfgang Gatter- bauer, and Mirek Riedewald. Any-k algorithms for enumer- ating ranked answers to conjunctive queries. ACM Trans. Database Syst., 51(1), September 2025.
  41. [Viterbi, 1967] Andrew J. Viterbi. Error bounds for convo- lutional codes and an asymptotically optimum decoding algorithm. IEEE Transactions on Information Theory, 13(2):260-269, 1967.
  42. Viterbi, 2006
  43. Andrew J. Viterbi. A personal history of the viterbi algorithm. IEEE Signal Processing Magazine, 23(4):120-142, 2006.
  44. [Young et al., 1989] Steve J. Young, N.H. Russell, and J.H.S. Thornton. Token passing: a simple conceptual model for connected speech recognition systems. University of Cam- bridge, Department of Engineering, 1989.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards