Datasets:
File size: 319,539 Bytes
76d4cf5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 | [
{
"type": "text",
"text": "GLM-130B: AN OPEN BILINGUAL PRE-TRAINED MODEL ",
"text_level": 1,
"bbox": [
174,
103,
823,
152
],
"page_idx": 0
},
{
"type": "text",
"text": "Aohan $\\mathbf { Z e n g } ^ { \\scriptscriptstyle \\circ \\dag \\ast }$ , Xiao $\\mathbf { L i u } ^ { \\diamond \\dagger * }$ , Zhengxiao $\\mathbf { D } \\mathbf { u } ^ { \\circ \\dagger }$ , Zihan Wang⋄, Hanyu Lai⋄, Ming $\\mathbf { D i n g } ^ { \\circ }$ , Zhuoyi $\\mathbf { Y a n g } ^ { \\diamond }$ , Yifan $\\mathbf { X } \\mathbf { u } ^ { \\circ }$ , Wendi Zheng⋄, Xiao $\\mathbf { X i a } ^ { \\diamond }$ , Weng Lam $\\mathbf { T a m } ^ { \\circ \\ S }$ , Zixuan $\\mathbf { M a } ^ { \\diamond }$ , Yufei $\\mathbf { X u e ^ { \\ S } }$ , Jidong Zhai⋄, Wenguang $\\mathbf { C h e n } ^ { \\circ }$ , Zhiyuan $\\mathbf { L i u } ^ { \\diamond }$ , Peng Zhang§, Yuxiao $\\mathbf { D o n g } ^ { \\circ \\dagger }$ , Jie Tang⋄‡ ",
"bbox": [
184,
190,
787,
251
],
"page_idx": 0
},
{
"type": "text",
"text": "Tsinghua University⋄ Zhipu.AI§ ",
"bbox": [
370,
265,
612,
279
],
"page_idx": 0
},
{
"type": "text",
"text": "ABSTRACT ",
"text_level": 1,
"bbox": [
452,
315,
544,
332
],
"page_idx": 0
},
{
"type": "text",
"text": "We introduce GLM-130B, a bilingual (English and Chinese) pre-trained language model with 130 billion parameters. It is an attempt to open-source a 100B-scale model at least as good as GPT-3 (davinci) and unveil how models of such a scale can be successfully pre-trained. Over the course of this effort, we face numerous unexpected technical and engineering challenges, particularly on loss spikes and divergence. In this paper, we introduce the training process of GLM-130B including its design choices, training strategies for both efficiency and stability, and engineering efforts. The resultant GLM-130B model offers significant outperformance over GPT-3 175B (davinci) on a wide range of popular English benchmarks while the performance advantage is not observed in OPT-175B and BLOOM-176B. It also consistently and significantly outperforms ERNIE TITAN 3.0 260B—the largest Chinese language model—across related benchmarks. Finally, we leverage a unique scaling property of GLM-130B to reach INT4 quantization without post training, with almost no performance loss, making it the first among 100B-scale models and more importantly, allowing its effective inference on $4 \\times \\mathrm { R T X }$ 3090 (24G) or $8 \\times \\mathrm { R T X }$ 2080 Ti (11G) GPUs, the most affordable GPUs required for using 100B-scale models. The GLM-130B model weights are publicly accessible and its code, training logs, related toolkit, and lessons learned are open-sourced at https://github.com/THUDM/GLM-130B/. ",
"bbox": [
232,
348,
764,
611
],
"page_idx": 0
},
{
"type": "text",
"text": "1 INTRODUCTION ",
"text_level": 1,
"bbox": [
176,
640,
336,
656
],
"page_idx": 0
},
{
"type": "text",
"text": "Large language models (LLMs), particularly those with over 100 billion (100B) parameters (Brown et al., 2020; Thoppilan et al., 2022; Rae et al., 2021; Chowdhery et al., 2022; Wang et al., 2021), have presented attractive scaling laws (Wei et al., 2022b), where emergent zero-shot and few-shot capabilities suddenly arose. Among them, GPT-3 (Brown et al., 2020) with 175B parameters pioneers the study of 100B-scale LLMs by strikingly generating better performance with 32 labeled examples than the fully-supervised BERT-Large model on a variety of benchmarks. However, both GPT-3 (and many other closed-sourced 100B-scale ones)—the model itself—and how it can be trained, have been thus far intransparent to the public. It is of critical value to train a high-quality LLM of such scale with both the model and training process shared with everyone. ",
"bbox": [
173,
671,
825,
796
],
"page_idx": 0
},
{
"type": "text",
"text": "We thus aim to pre-train an open and highly-accurate 100B-scale model with ethical concerns in mind. Over the course of our attempt, we have come to realize that pre-training a dense LLM at such a scale raises numerous unexpected technical and engineering challenges compared to training 10B-scale models, in terms of pre-training efficiency, stability, and convergence. Similar difficulties have also been concurrently observed in training OPT-175B (Zhang et al., 2022) and BLOOM176B (Scao et al., 2022), further demonstrating the significance of GPT-3 as a pioneer study. ",
"bbox": [
176,
804,
823,
859
],
"page_idx": 0
},
{
"type": "image",
"img_path": "images/cb9db52609c42d68ed3c8418c864580221d2a7b02a8c1d573aea0fb5c46b1b9b.jpg",
"image_caption": [
"Figure 1: A summary of the performance evaluation and ethical studies. "
],
"image_footnote": [],
"bbox": [
181,
89,
816,
205
],
"page_idx": 1
},
{
"type": "table",
"img_path": "images/4a14c8deb3aff229bfb3de0f864df79d4f48b07e5292f8f4840fc3d37b83fa6d.jpg",
"table_caption": [
"Table 1: A comparison between GLM-130B and other 100B-scale LLMs and PaLM 540B. (LN: layer norm.; FPF: floating-point format; MIP: multi-task instruction pre-training; CN : Chinese) "
],
"table_footnote": [],
"table_body": "<table><tr><td rowspan=\"2\">Model</td><td rowspan=\"2\">Open- source</td><td colspan=\"3\">Architecture &Data</td><td colspan=\"2\">Training</td><td colspan=\"2\">Inference</td></tr><tr><td>Objective</td><td>LN</td><td>Major Lang.</td><td>FPF</td><td>Stabilization</td><td>Quantization</td><td>GPUNeeded</td></tr><tr><td>GPT-3 175B</td><td>×</td><td></td><td></td><td>English</td><td>FP16</td><td>undisclosed</td><td>undisclosed</td><td>undisclosed</td></tr><tr><td>OPT-175B</td><td></td><td>GPT</td><td>Pre-LN</td><td>English</td><td>FP16</td><td>Manual Adjusting</td><td>INT8</td><td>8×3090</td></tr><tr><td>BLOOM-176B</td><td>√</td><td></td><td></td><td>Multi-lingual</td><td>BF161</td><td>Embedding Norm</td><td>INT8</td><td>8×3090</td></tr><tr><td>PaLM540B</td><td>×</td><td>GPT</td><td>Pre-LN</td><td>English</td><td></td><td>BF16 Manual Adjusting</td><td>undisclosed</td><td>undisclosed</td></tr><tr><td>GLM-130B</td><td>√</td><td>GLM (Blank Infilling & MIP)</td><td>Deep- Norm</td><td>Bilingual (EN&CN)</td><td>FP16</td><td>Embedding Gradient Shrink</td><td>INT4</td><td>4 × 3090 or 8 × 1080 Ti</td></tr></table>",
"bbox": [
178,
250,
820,
362
],
"page_idx": 1
},
{
"type": "text",
"text": "",
"bbox": [
176,
367,
821,
396
],
"page_idx": 1
},
{
"type": "text",
"text": "In this work, we introduce the pre-training of a 100B-scale model—GLM-130B, in terms of engineering efforts, model design choices, training strategies for efficiency and stability, and quantization for affordable inference. As it has been widely realized that it is computationally unaffordable to empirically enumerate all possible designs for training 100B-scale LLMs, we present not only the successful part for training GLM-130B but also many of the failed options and lessons learned. Particularly, the training stability is the decisive factor in the success of training models of such a scale. Different from practices such as manually adjusting learning rates in OPT-175B and using embedding norm in the sacrifice of performance in BLOOM-176B, we experiment with various options and find the strategy of embedding gradient shrink can significantly stabilize the training of GLM-130B. ",
"bbox": [
173,
401,
825,
541
],
"page_idx": 1
},
{
"type": "text",
"text": "Specifically, GLM-130B is a bilingual (English and Chinese) bidirectional dense model with 130 billion parameters, pre-trained over 400 billion tokens on a cluster of 96 NVIDIA DGX-A100 $( 8 \\times 4 0 \\mathrm { G } )$ GPU nodes between May 6 and July 3, 2022. Instead of using the GPT-style architecture, we adopt the General Language Model (GLM) algorithm (Du et al., 2022) to leverage its bidirectional attention advantage and autoregressive blank infilling objective. Table 1 summarizes the comparison between GLM-130B, GPT-3 and another two open-source efforts—OPT-175B and BLOOM-176B, as well as PaLM 540B (Chowdhery et al., 2022)—a $4 \\times$ larger model—as a reference. ",
"bbox": [
173,
547,
825,
646
],
"page_idx": 1
},
{
"type": "text",
"text": "Altogether, the conceptual uniqueness and engineering efforts enable GLM-130B to exhibit performance that surpasses the level of GPT-3 on a wide range of benchmarks (in total 112 tasks) and also outperforms PaLM 540B in many cases, while outperformance over GPT-3 has not been observed in OPT-175B and BLOOM-176B (Cf. Figure 1 left). For zero-shot performance, GLM-130B is better than GPT-3 175B $( + 5 . 0 \\% )$ , OPT-175B $( + 6 . 5 \\% )$ , and BLOOM-176B $( + 1 3 . 0 \\% )$ on LAMBADA (Paperno et al., 2016), and achieves $3 \\times$ better performance than GPT-3 on Big-bench-lite (Srivastava et al., 2022). For the 5-shot MMLU (Hendrycks et al., 2021) tasks, it is better than GPT-3 175B $( + 0 . 9 \\% )$ and BLOOM-176B $( + 1 2 . 7 \\% )$ . As a bilingual LLM also in Chinese, it offers significantly better results than ERNIE TITAN 3.0 260B (Wang et al., 2021)—the largest Chinese LLM—on 7 zero-shot CLUE (Xu et al., 2020) datasets $( + 2 4 . 2 6 \\% )$ and 5 zero-shot FewCLUE (Xu et al., 2021) ones $( + 1 2 . 7 5 \\% )$ . Importantly, as summarized in Figure 1 right, GLM-130B as an open model is associated with significantly less bias and generation toxicity than its 100B-scale counterparts. ",
"bbox": [
173,
652,
825,
819
],
"page_idx": 1
},
{
"type": "text",
"text": "Finally, we design GLM-130B to empower as many people as possible to conduct 100B-scale LLM studies. First, instead of using $1 7 5 \\mathrm { B } +$ parameters as OPT and BLOOM, the 130B size is decided because such a size supports inference on a single A100 $( 8 \\times 4 0 \\mathrm { G } )$ server. Second, to further lower the GPU requirements, we quantize GLM-130B into INT4 precision without post training while OPT and BLOOM can only reach INT8. Due to a unique property of the GLM architecture, GLM-130B’s INT4 quantization introduces negligible performance degradation, e.g., $- 0 . 7 4 \\%$ on LAMBADA and even $+ 0 . 0 5 \\%$ on MMLU, making it still better than the uncompressed GPT-3. This enables GLM",
"bbox": [
174,
827,
825,
924
],
"page_idx": 1
},
{
"type": "image",
"img_path": "images/92a8e0bf109fb0deab682c32d3f0cff5ce4759650bc24ac9640318fbae75ccba.jpg",
"image_caption": [
"Figure 3: Trials on different LayerNorms for GLM-130B training. It turns out that DeepNorm is the most stable one, as it has small gradient norm and does not spike in the early stage training. "
],
"image_footnote": [],
"bbox": [
183,
101,
799,
243
],
"page_idx": 2
},
{
"type": "text",
"text": "130B’s fast inference with performance guarantee on a server of $4 { \\times } \\mathrm { R T X } ~ 3 0 9 0$ (24G) or $8 \\times \\mathrm { R T X }$ \n2080 Ti (11G), the most affordable GPU required for using 100B-scale LLMs to date. ",
"bbox": [
174,
280,
821,
309
],
"page_idx": 2
},
{
"type": "text",
"text": "We open-source the model checkpoints, code, training logs, related toolkits, and lessons learned. ",
"bbox": [
176,
315,
805,
330
],
"page_idx": 2
},
{
"type": "text",
"text": "2 THE DESIGN CHOICES OF GLM-130B ",
"text_level": 1,
"bbox": [
174,
338,
526,
356
],
"page_idx": 2
},
{
"type": "text",
"text": "The architecture of a machine learning model defines its inductive bias. However, it has been realized that it is computationally unaffordable to explore various architectural designs for LLMs. We introduce and explain the unique design choices of GLM-130B. ",
"bbox": [
174,
363,
825,
405
],
"page_idx": 2
},
{
"type": "text",
"text": "2.1 GLM-130B’S ARCHITECTURE ",
"text_level": 1,
"bbox": [
176,
414,
429,
428
],
"page_idx": 2
},
{
"type": "text",
"text": "GLM as Backbone. Most recent 100B-scale LLMs, such as GPT-3, PaLM, OPT, and BLOOM, follow the traditional GPT-style (Radford et al., 2019) architecture of decoder-only autoregressive language modeling. In GLM-130B, we instead make an attempt to explore the potential of a bidirectional GLM—General Language Model (Du et al., 2022)—as its backbone. ",
"bbox": [
174,
433,
825,
488
],
"page_idx": 2
},
{
"type": "text",
"text": "GLM is a transformer-based language model that leverages autoregressive blank infilling as its training objective. Briefly, for a text sequence $\\pmb { x } = [ x _ { 1 } , \\cdots , x _ { n } ]$ , text spans $\\{ \\pmb { s } _ { 1 } , \\cdots , \\pmb { s } _ { m } \\}$ are sampled from it, each of which $s _ { i }$ denotes a span of consecutive tokens $[ s _ { i , 1 } , \\cdots , s _ { i , l _ { i } } ]$ and is replaced (i.e., corrupted) with a single mask token to form $\\pmb { x } _ { \\mathrm { c o r r u p t } }$ . The model is asked to recover them autoregressively. To allow interactions between corrupted spans, their visibility to each other is decided by a randomly sampled permutation on their order. ",
"bbox": [
174,
496,
825,
579
],
"page_idx": 2
},
{
"type": "text",
"text": "GLM’s bidirectional attention over unmasked (i.e., uncorrupted) contexts distinguishes GLM-130B from GPT-style LLMs in which the unidirectional attention is used. To support both understanding and generation, it mixes two corruption objectives, each indicated by a special mask token: ",
"bbox": [
174,
585,
825,
628
],
"page_idx": 2
},
{
"type": "text",
"text": "• [MASK]: short blanks in sentences whose lengths add up to a certain portion of the input. \n• [gMASK]: random-length long blanks at the end of sentences with prefix contexts provided. ",
"bbox": [
174,
635,
787,
666
],
"page_idx": 2
},
{
"type": "text",
"text": "Conceptually, the blank infilling objective with bidirectional attention enables a more effective comprehension of contexts than GPT-style models: when using [MASK], GLM-130B behaves as BERT (Devlin et al., 2019) and T5 (Raffel et al., 2020); when using [gMASK], GLM-130B behaves similarly to PrefixLM (Liu et al., 2018; Dong et al., 2019). ",
"bbox": [
173,
672,
529,
770
],
"page_idx": 2
},
{
"type": "text",
"text": "Empirically, GLM-130B offers a record-high accuracy of $8 0 . 2 \\%$ on zero-shot LAMBADA by outperforming both GPT-3 and PaLM 540B in Figure 2. By setting the attention mask, GLM-130B’s unidirectional variant is comparable to GPT-3 and OPT-175B. Our observations are in line with existing findings (Liu et al., 2018; Dong et al., 2019). ",
"bbox": [
174,
777,
529,
875
],
"page_idx": 2
},
{
"type": "image",
"img_path": "images/7eb937e7444a2dd34a6d4bbc01d4c86e84868280929c015f75e20936f987488c.jpg",
"image_caption": [
"Figure 2: GLM-130B and LLMs of similar scale on zero-shot LAMBADA language modeling. Details on GLM’s bidirectional attention are provided in Du et al. (2022). "
],
"image_footnote": [],
"bbox": [
545,
670,
818,
815
],
"page_idx": 2
},
{
"type": "text",
"text": "Layer Normalization (LN, Ba et al. (2016)). Training instability is one major challenge for training LLMs (Zhang et al., 2022; Scao et al., 2022; Chowdhery et al., 2022) (Cf. Figure 10 in Appendix for collapses in training several 100B-scale models). A proper choice of LNs can help stabilize the training of LLMs. We experiment with existing practices, e.g., Pre-LN (Xiong et al., 2020), Post-LN (Ba et al., 2016), Sandwich-LN (Ding et al., 2021), which are unfortunately incapable of stabilizing our GLM-130B test runs (Cf. Figure 3 (a) and Appendix B.2 for details). ",
"bbox": [
174,
882,
823,
924
],
"page_idx": 2
},
{
"type": "text",
"text": "",
"bbox": [
176,
103,
823,
146
],
"page_idx": 3
},
{
"type": "text",
"text": "Our search is later focused on Post-LN due to its favorable downstream results in preliminary experiments though it does not stabilize GLM-130B. Fortunately, one of the attempts on Post-LN initialized with the newly-proposed DeepNorm (Wang et al., 2022b) generates promising training stability. Specifically, given the number of GLM-130B’s layers $N$ , we adopt $\\mathrm { D e e p N o r m } ( { \\pmb x } ) \\ =$ LayerNorm $1 ( { \\boldsymbol { \\alpha } } \\cdot { \\boldsymbol { \\mathbf { \\mathit { x } } } } + \\operatorname { N e t w o r k } ( { \\boldsymbol { \\mathbf { \\mathit { x } } } } ) )$ , where $\\alpha = ( 2 N ) ^ { \\frac { 1 } { 2 } }$ , and apply the Xavier normal initialization with the scaling factor of $( 2 N ) ^ { - { \\frac { 1 } { 2 } } }$ to ffn, $\\mathtt { v \\_ p r o j }$ and out_proj. Additionally, all bias terms are initialized to zero. Figure 3 shows it significantly benefits the training stability of GLM-130B. ",
"bbox": [
173,
152,
825,
256
],
"page_idx": 3
},
{
"type": "text",
"text": "Positional Encoding and FFNs. We empirically test different options for positional encoding (PE) and FFN improvements in terms of both training stability and downstream performance (Cf. Appendix B.3 for details). For PEs in GLM-130B, we adopt Rotary Positional Encoding (RoPE, Su et al. (2021)) rather than ALiBi (Press et al., 2021). To improve FFNs in Transformer, we pick GLU with the GeLU (Hendrycks & Gimpel, 2016) activation as the replacement. ",
"bbox": [
174,
262,
825,
332
],
"page_idx": 3
},
{
"type": "text",
"text": "2.2 GLM-130B’S PRE-TRAINING SETUP ",
"text_level": 1,
"bbox": [
176,
343,
472,
357
],
"page_idx": 3
},
{
"type": "text",
"text": "Inspired by recent works (Aribandi et al., 2022; Wei et al., 2022a; Sanh et al., 2022), the GLM-130B pre-training objective includes not only the self-supervised GLM autoregressive blank infilling) but also multi-task learning for a small portion of tokens. This is expected to help boost its downstream zero-shot performance. ",
"bbox": [
176,
362,
825,
417
],
"page_idx": 3
},
{
"type": "text",
"text": "Self-Supervised Blank Infilling $9 5 \\%$ tokens). Recall that GLM-130B uses both [MASK] and [gMASK] for this task. Each training sequence is applied with one of them independently at a time. Specifically, [MASK] is used to mask consecutive spans in $30 \\%$ of training sequences for blank infilling. The lengths of spans follow a Poisson distribution $\\lambda = 3$ ) and add up to $15 \\%$ of the input. For the other $70 \\%$ sequences, the prefix of each sequence is kept as context and [gMASK] is used to mask the rest of it. The masked length is sampled from the Uniform distribution. ",
"bbox": [
174,
424,
825,
508
],
"page_idx": 3
},
{
"type": "text",
"text": "The pre-training data includes 1.2T Pile (train split) (Gao et al., 2020) English, 1.0T Chinese WudaoCorpora (Yuan et al., 2021), and 250G Chinese corpora (including online forums, encyclopedia, and QA) we crawl from the web, which form a balanced composition of English and Chinese contents. ",
"bbox": [
176,
516,
821,
558
],
"page_idx": 3
},
{
"type": "text",
"text": "Multi-Task Instruction Pre-Training (MIP, $5 \\%$ tokens). T5 (Raffel et al., 2020) and ExT5 (Aribandi et al., 2022) suggest that multi-task learning in pre-training can be more helpful than fine-tuning, we thus propose to include a variety of instruction prompted datasets including language understanding, generation, and information extraction in GLM-130B’s pre-training. ",
"bbox": [
174,
564,
823,
621
],
"page_idx": 3
},
{
"type": "text",
"text": "Compared to recent works (Wei et al., 2022a; Sanh et al., 2022) that leverage multi-task prompted fine-tuning to improve zero-shot task transfer, MIP only accounts for $5 \\%$ tokens and is set in the pretraining stage to prevent spoiling LLMs’ other general ability, e.g., unconditional free generation. Specifically, we include 74 prompted datasets from (Sanh et al., 2022; Wang et al., 2022a), listed in Appendix C and Table 12. GLM-130B users are suggested to avoid evaluating its zero-shot and few-shot capabilities on these datasets according to the criterion illustrated in Section 5. ",
"bbox": [
174,
627,
825,
712
],
"page_idx": 3
},
{
"type": "text",
"text": "2.3 PLATFORM-AWARE PARALLEL STRATEGIES AND MODEL CONFIGURATIONS ",
"text_level": 1,
"bbox": [
178,
729,
738,
744
],
"page_idx": 3
},
{
"type": "text",
"text": "GLM-130B is trained on a cluster of 96 DGX-A100 GPU $( 8 \\times 4 0 \\mathrm { G } )$ ) servers with a 60-day access. The goal is to pass through as many tokens as possible, as a recent study (Hoffmann et al., 2022) suggests that most existing LLMs are largely under-trained. ",
"bbox": [
174,
756,
823,
797
],
"page_idx": 3
},
{
"type": "text",
"text": "The 3D Parallel Strategy. The data parallelism (Valiant, 1990) and tensor model parallelism (Shoeybi et al., 2019) are the de facto practices for training billion-scale models (Wang & Komatsuzaki, 2021; Du et al., 2022). To further handle the huge GPU memory requirement and the decrease in overall GPU utilization resulted from applying tensor parallel between nodes—as 40G rather than 80G A100s are used for training GLM-130B, we combine the pipeline model parallelism with the other two strategies to form a 3D parallel strategy. ",
"bbox": [
174,
805,
823,
888
],
"page_idx": 3
},
{
"type": "text",
"text": "The pipeline parallelism divides the model into sequential stages for each parallel group, and to further minimize bubbles introduced by pipeline, we leverage the PipeDream-Flush (Narayanan et al., ",
"bbox": [
173,
895,
821,
924
],
"page_idx": 3
},
{
"type": "text",
"text": "2021) implementation from DeepSpeed (Rasley et al., 2020) to train GLM-130B with a relative big global batch size (4,224) to reduce time and GPU memory wasting. Through both numerical and empirical examinations, we adopt 4-way tensor parallelism and 8-way pipeline parallelism (Cf. Appendix B.4 for details). Following the calculation in (Chowdhery et al., 2022), we report hardware FLOPs utilization (HFU) of $4 3 . 3 \\%$ and model FLOPs utilization (MFU) of $3 2 . 5 \\%$ due to re-materialization. ",
"bbox": [
174,
103,
825,
186
],
"page_idx": 4
},
{
"type": "text",
"text": "GLM-130B Configurations. We aim to enable our 100B-scale LLM to run a single DGX-A100 (40G) node in FP16 precision. Based on the hidden state dimension of 12,288 we adopt from GPT-3, the resultant model size has to be no more than 130B parameters, thus GLM-130B. To maximize GPU utilization, we configure the model based on the platform and its corresponding parallel strategy. To avoid insufficient memory utilization in the middle stages due to the additional word embedding at both ends, we balance the pipeline partition by removing one layer from them, making $9 \\times 8 - 2 = 7 0$ transformer layers in GLM-130B. ",
"bbox": [
174,
194,
825,
291
],
"page_idx": 4
},
{
"type": "text",
"text": "During the 60-day access to the cluster, we manage to train GLM-130B for 400 billion tokens (roughly 200 billion each for Chinese and English) with a fixed sequence length of 2,048 per sample. For the $[ \\mathrm { g } \\mathbf { M } \\mathbf { A } \\mathbf { S } \\mathbf { K } ]$ training objective, we use a context window of 2,048 tokens. For the [MASK] and multi-task objectives, we use a context window of 512 and concatenate four samples together to cater the 2,048-sequence-length. We warm-up the batch size from 192 to 4224 over the first $2 . 5 \\%$ samples. We use AdamW (Loshchilov & Hutter, 2019) as our optimizer with $\\beta _ { 1 }$ and $\\beta _ { 2 }$ set to 0.9 and 0.95, and a weight decay value of 0.1. We warm up the learning rate from $1 0 ^ { - 7 }$ to $8 \\times 1 0 ^ { - 5 }$ over the first $0 . 5 \\%$ samples, then decay it by a $1 0 \\times$ cosine schedule. We use a dropout rate of 0.1 and clip gradients using a clipping value of 1.0 (Cf. Table 11 for the full configurations). ",
"bbox": [
174,
299,
825,
424
],
"page_idx": 4
},
{
"type": "text",
"text": "3 THE TRAINING STABILITY OF GLM-130B ",
"text_level": 1,
"bbox": [
174,
449,
558,
467
],
"page_idx": 4
},
{
"type": "text",
"text": "The training stability is the decisive factor in GLM-130B’s quality, which is also largely impacted by the number of tokens it passes through (Hoffmann et al., 2022). Thus, given the computing usage constraint, there has to be a trade-off between efficiency and stability with regard to floatingpoint (FP) formats: low-precision FP formats (e.g., 16-bit precision—FP16) improve computing efficiency but are prone to overflow and underflow errors, resulting in training collapses. ",
"bbox": [
173,
484,
823,
555
],
"page_idx": 4
},
{
"type": "text",
"text": "Mixed-Precision. We follow the common practice of a mixedprecision (Micikevicius et al., 2018) strategy (Apex O2), i.e., FP16 for forwards and backwards and FP32 for optimizer states and master weights, to reduce the GPU memory usage and improve training efficiency. Similar to OPT-175B and BLOOM-176B (C.f. Figure 10 in Appendix), the training of GLM-130B faces frequent loss spikes resulted from this choice, which tends to become increasingly frequent as the training goes on. The precision related spikes are often without clear reasons: some recover on their own; others come with a portent of suddenly soaring gradient norm and eventually a spike or even NaN in loss. OPT-175B attempted to fix by manually skipping data and adjusting hyper-parameters; BLOOM176B did so via the embedding norm technique (Dettmers et al., 2021). We spent months to empirically investigate the spikes and realize that a few issues emerge when transformers scale up: ",
"bbox": [
174,
563,
607,
770
],
"page_idx": 4
},
{
"type": "text",
"text": "First, the transformer main branch’s value scale can be extremely large in deeper layers if using Pre-LN. This is addressed in GLM130B by using DeepNorm based Post-LN (Cf. Section 2.1), which makes the value scale always bounded. ",
"bbox": [
174,
777,
606,
833
],
"page_idx": 4
},
{
"type": "image",
"img_path": "images/5cda27883bad1a7034d0f6a575925c4b8eaee9a568db8bdcd271b739eb52bd32.jpg",
"image_caption": [
"Figure 4: EGS reduces gradient scale and variance to stabilize LLMs’ pre-training. "
],
"image_footnote": [],
"bbox": [
620,
566,
821,
800
],
"page_idx": 4
},
{
"type": "text",
"text": "Second, the attention scores grow so large that they exceed FP16’s range, as the model scales up. There are a few options to overcome this issue in LLMs. In CogView (Ding et al., 2021), PB-Relax is proposed to remove bias terms and deduct extremum value in attention computation to avoid the problem, which unfortunately does not help avoid disconvergence in GLM-130B. In BLOOM-176B, the BF16 format is used instead of FP16, due to its wide range of values on NVIDIA Ampere GPUs (i.e., A100). However, BF16 consumes ${ \\sim } 1 5 \\%$ more run-time GPU memory than FP16 in our experiments due to its conversion to FP32 in gradient accumulation, and more importantly it is not supported on other GPU platforms (e.g., NVIDIA Tesla V100), limiting the accessibility of produced LLMs. Another option from BLOOM-176B is to apply embedding norm with BF16, but in sacrifice of a significant penalty on model performance, as they notice that embedding norm can harm model’s zero-shot learning (Cf. Section 4.3 in (Scao et al., 2022)). ",
"bbox": [
176,
840,
607,
854
],
"page_idx": 4
},
{
"type": "text",
"text": "",
"bbox": [
174,
853,
823,
924
],
"page_idx": 4
},
{
"type": "text",
"text": "",
"bbox": [
174,
103,
825,
188
],
"page_idx": 5
},
{
"type": "text",
"text": "Embedding Layer Gradient Shrink (EGS). Our empirical search identifies that the gradient norm can serve as an informative indicator of training collapses. Specifically, we find that a training collapse usually lags behind a “spike” in gradient norm by a few training steps. Such spikes are usually caused by the embedding layer’s abnormal gradients, as we observe that its gradient norm is often several magnitude larger that those of other layers in GLM-130B’s early stage training (Cf. Figure 4 (a)). In addition, it tends to fluctuate dramatically in the early training. The problem is handled in vision models (Chen et al., 2021) via freezing the patch projection layer. Unfortunately, we cannot freeze the training of the embedding layer in language models. ",
"bbox": [
173,
194,
825,
306
],
"page_idx": 5
},
{
"type": "text",
"text": "Finally, we find the gradient shrink on embedding layers could overcome loss spikes and thus stabilize GLM-130B’s training. It is first used in the multi-modal transformer CogView (Ding et al., 2021). Let $\\alpha$ be the shrinking factor, the strategy can be easily implemented via word_embedding $=$ word_embedding $\\ast \\alpha +$ word_embedding.detach( $) * ( 1 - \\alpha )$ . Figure 4 (b) suggests that empirically, setting $\\alpha = 0 . 1$ wipes out most spikes we would have met, with negligible latency. ",
"bbox": [
174,
313,
823,
382
],
"page_idx": 5
},
{
"type": "text",
"text": "In fact, the final GLM-130B training run only experiences three late-stage loss divergence cases, though it fails numerous times due to hardware failures. For the three unexpected spikes, it turns out further shrinking the embedding gradient can still help stabilize the GLM-130B training. See the training notes and Tensorboard logs in our code repository for details. ",
"bbox": [
174,
388,
825,
445
],
"page_idx": 5
},
{
"type": "text",
"text": "4 GLM-130B INFERENCE ON RTX 2080 TI ",
"text_level": 1,
"bbox": [
174,
474,
553,
492
],
"page_idx": 5
},
{
"type": "text",
"text": "One of the major goals of GLM-130B is to lower the hardware requirements for accessing 100Bscale LLMs without efficiency and effectiveness disadvantages. ",
"bbox": [
176,
512,
821,
541
],
"page_idx": 5
},
{
"type": "text",
"text": "As mentioned, the model size of 130B is determined for running the full GLM-130B model on a single A100 $( 4 0 \\mathrm { G } \\times 8 $ ) server, rather than the high-end A100 $( 8 0 0 \\times 8 )$ ) machine required by OPT-175B and BLOOM-176B. To accelerate GLM-130B inference, we also leverage FasterTransformer (Timonin et al., 2022) to implement GLM-130B in $\\mathrm { C } { + } { + }$ . Compared to the PyTorch implementation of BLOOM-176B in Huggingface, GLM-130B’s decoding inference is $7 . 8 . 4 \\times$ faster on the same single A100 server. (Cf. Appendix B.5 for details). ",
"bbox": [
174,
547,
823,
632
],
"page_idx": 5
},
{
"type": "text",
"text": "INT4 Quantization for RTX $\\mathbf { 3 0 9 0 s } / 2 0 8 0 \\mathbf { s }$ . To further support popularized GPUs, we attempt to compress GLM-130B as much as possible while maintaining performance superiority, particularly via quantization (Zafrir et al., 2019; Shen et al., 2020; Tao et al., 2022), which introduces little task-agnostic performance drops for generative language models. ",
"bbox": [
174,
638,
823,
695
],
"page_idx": 5
},
{
"type": "text",
"text": "Typically, the practice is to quantize both model weights and activations to INT8. However, our analysis in Appendix B.6 suggests that LLMs’ activations may contain extreme outliers. Concurrently, the emergent outliers in OPT-175B and BLOOM-176B are also discovered (Dettmers et al., 2022), which influence only about $0 . 1 \\%$ feature dimensions and are thus solved by matrix multiplication decomposition for the outlying dimensions. Differently, there exist about $30 \\%$ outliers in GLM-130B’s activations, making the technique above far less efficient. Thus, we decide to focus on the quantization of model weights (i.e., mostly linear layers) while keeping the FP16 precision for activations. The quantized model is dynamically converted to FP16 precision at runtime, introducing a small computational overhead but greatly reducing the GPU memory usage for storing model weights. ",
"bbox": [
174,
702,
529,
881
],
"page_idx": 5
},
{
"type": "image",
"img_path": "images/51756d8e0cdfc8c8e5024bda110de214d1edbe16683f435f4b5879c6e57dba31.jpg",
"image_caption": [
"Figure 5: (Left) attn-dense and w2’s weight distributions; (Right) GLM-130B’s INT4 weight quantization scaling law. "
],
"image_footnote": [],
"bbox": [
545,
699,
820,
830
],
"page_idx": 5
},
{
"type": "text",
"text": "",
"bbox": [
176,
882,
823,
924
],
"page_idx": 5
},
{
"type": "table",
"img_path": "images/8834ad1ebf074045e06df7130c86c900bbb12336986d30c5eac182041f4e0735.jpg",
"table_caption": [
"Table 2: Left: Quantized GLM-130B’s performance on several benchmarks; Right: INT4 quantized GLM-130B’s inference speed (encode and decode) with FasterTransformer. "
],
"table_footnote": [],
"table_body": "<table><tr><td rowspan=\"3\">Model Precision</td><td colspan=\"3\">GLM-130B</td><td>GPT-3</td><td>GPU Type</td><td colspan=\"4\">128 Enc./Dec.512 Enc./Dec,</td></tr><tr><td>FP16</td><td>INT8</td><td>INT4</td><td>FP16</td><td>8× A100 (40G)</td><td>0.15s</td><td>4.29s</td><td>0.18s</td><td>17.7s</td></tr><tr><td>MMLU (acc, ↑)</td><td>44.75</td><td>44.71</td><td>44.80</td><td>43.9</td><td>8 × V100 (32G)</td><td>0.31s</td><td>6.97s</td><td>0.67s</td><td>28.1s</td></tr><tr><td>LAMBADA (acc, ↑)</td><td>80.21</td><td>80.21</td><td>79.47</td><td>76.2</td><td>4 × RTX 3090 (24G)</td><td>0.37s</td><td>8.16s</td><td>1.30s</td><td>32.3s</td></tr><tr><td>Pile (a part,BPB,↓)</td><td>0.634</td><td>0.638</td><td>0.641</td><td>0.74</td><td>8 × RTX 2080 Ti(11G) 0.39s</td><td></td><td>6.77s</td><td>1.04s</td><td>27.3s</td></tr></table>",
"bbox": [
173,
133,
820,
212
],
"page_idx": 6
},
{
"type": "text",
"text": "Excitingly, we manage to reach the INT4 weight quantization for GLM-130B while existing successes have thus far only come to the INT8. Memory-wise, by comparing to INT8, the INT4 version helps additionally save half of the required GPU memory to 70GB, thus allowing GLM-130B inference on $4 \\times \\mathrm { R T X } 3 0 9 0 \\mathrm { T i } \\left( 2 4 \\mathrm { G } \\right)$ or 8 × RTX 2080 Ti (11G). Performance-wise, Table 2 left indicates that without post-training at all, the INT4-version GLM-130B experiences almost no performance degradation, thus maintaining the performance advantages over GPT-3 on common benchmarks. ",
"bbox": [
173,
222,
825,
306
],
"page_idx": 6
},
{
"type": "text",
"text": "GLM’s INT4 Weight Quantization Scaling Law. We examine the underlying mechanism of this unique INT4 weight quantization scaling law exhibited in Figure 5 right. We plot the weight value distributions in Figure 5 left, which turns out to directly impact the quantization quality. Specifically, a wider-distributed linear layer needs to be quantized with larger bins, leading to more precision loss. Thus the wide-distributed attn-dense and $\\mathtt { w } 2$ matrices explain the INT4 quantization failure for GPT-style BLOOM. Conversely, GLMs tend to have much narrower distributions than those of similar-sized GPTs, and the gap between INT4 and FP16 versions keeps further decreasing as the GLM model size scales up (Cf. Figure 15 in Appendix for details). ",
"bbox": [
173,
313,
825,
425
],
"page_idx": 6
},
{
"type": "text",
"text": "5 THE RESULTS ",
"text_level": 1,
"bbox": [
176,
444,
323,
460
],
"page_idx": 6
},
{
"type": "text",
"text": "We follow the common settings in LLMs such as GPT-3 and PaLM to evaluate GLM-130B for English 1. As a bilingual LLM with Chinese, GLM-130B is also evaluated on Chinese benchmarks. ",
"bbox": [
174,
476,
823,
505
],
"page_idx": 6
},
{
"type": "text",
"text": "Discussion on the Scope of Zero-Shot Learning in GLM-130B. Since GLM-130B has been trained with MIP, here we clarify its scope of zero-shot evaluation. In fact, “zero-shot” seems to have controversial interpretations without a consensus in the community. We follow one of the influential related surveys (Xian et al., 2018), which says “At test time, in zero-shot learning setting, the aim is to assign a test image to an unseen class label” where involving unseen class labels is a key. Therefore, we derive our criterion to pick GLM-130B’s zero-shot (and few-shot) datasets as: ",
"bbox": [
174,
511,
825,
594
],
"page_idx": 6
},
{
"type": "text",
"text": "• English: 1) For tasks with fixed labels (e.g., natural language inference): no datasets in such tasks should be evaluated on; 2) For tasks without fixed labels (e.g., (multiple-choice) $Q A$ , topic classification): only datasets with an obvious domain transfer from those in MIP should be considered. • Chinese: All datasets can be evaluated as there exists a zero-shot cross-lingual transfer. ",
"bbox": [
174,
602,
823,
660
],
"page_idx": 6
},
{
"type": "text",
"text": "Filtering Test Datasets. Following prior practices (Brown et al., 2020; Rae et al., 2021) and our criterion mentioned above, we filter and refrain to report potentially contaminated datasets’ evaluation results. For LAMBADA and CLUE, we find minimal overlap under the 13-gram setting. Pile, MMLU, and BIG-bench are either held-out or released later than the crawling of corpora. ",
"bbox": [
173,
667,
825,
723
],
"page_idx": 6
},
{
"type": "text",
"text": "5.1 LANGUAGE MODELING ",
"text_level": 1,
"bbox": [
176,
739,
379,
755
],
"page_idx": 6
},
{
"type": "text",
"text": "LAMBADA. LAMBADA (Paperno et al., 2016) is a dataset to test the last word language modeling capability. The results previously shown in Figure 2 suggest GLM-130B achieves a zero-shot accuracy of 80.2 with its bidirectional attention, setting up a new record on LAMBADA. ",
"bbox": [
173,
766,
823,
809
],
"page_idx": 6
},
{
"type": "text",
"text": "Pile. The Pile test-set (Gao et al., 2020) includes a series of benchmarks for language modeling. On average, GLM130B performs the best on its 18 shared test sets in terms of weighted BPB when compared to GPT-3 and Jurassic1 (Lieber et al., 2021) whose results are directly adopted ",
"bbox": [
174,
815,
553,
898
],
"page_idx": 6
},
{
"type": "table",
"img_path": "images/6437c700ba4036b38b14e83f6b96d2fe5938067ad83a3447f0f0c3cf8cab28fe.jpg",
"table_caption": [
"Table 3: GLM-130B’s average BPB on Pile evaluation (18 sub-datasets). "
],
"table_footnote": [],
"table_body": "<table><tr><td colspan=\"3\">Jurassic-1 GPT-3 GLM-130B</td></tr><tr><td>Avg. BPB</td><td>0.650 0.742</td><td>0.634</td></tr></table>",
"bbox": [
570,
840,
815,
882
],
"page_idx": 6
},
{
"type": "table",
"img_path": "images/f6af3e3328a015002125f16e6ee9f536b782597efba077c914ae6e70d0aa3a2d.jpg",
"table_caption": [],
"table_footnote": [],
"table_body": "<table><tr><td colspan=\"2\">O-shot 1-shot 3-shot</td></tr><tr><td>GPT-3 2.6B 0.60</td><td>0.71 1.83</td></tr><tr><td>GPT-3 6.7B -0.06</td><td>2.93 5.40</td></tr><tr><td>GPT-3 13B 1.77</td><td>5.43 7.95</td></tr><tr><td>GPT-3 175B 4.35</td><td>11.34 13.18</td></tr><tr><td>PaLM540B 8.05</td><td>37.77 -</td></tr><tr><td>GLM-130B 13.31</td><td>14.91 15.12</td></tr></table>",
"bbox": [
637,
101,
818,
223
],
"page_idx": 7
},
{
"type": "image",
"img_path": "images/bc768f0500dbcbce18ed7d112cb5264715b388e301cc64dbb2e37b835ba3e30d.jpg",
"image_caption": [
"Figure 6: GLM-130B on MMLU (57 tasks) along training steps. "
],
"image_footnote": [],
"bbox": [
171,
101,
388,
232
],
"page_idx": 7
},
{
"type": "image",
"img_path": "images/4e9e6dbb3574da88d111b6e7da6c681aed8234ee747f2191e2f3ec553ffce069.jpg",
"image_caption": [
"Figure 7: BIG-bench-lite evalua- Table 4: Details on BIGtion (24 tasks) across scales. bench-lite (24 tasks). "
],
"image_footnote": [],
"bbox": [
411,
101,
629,
231
],
"page_idx": 7
},
{
"type": "text",
"text": "5.2 MASSIVE MULTITASK LANGUAGE UNDERSTANDING (MMLU) ",
"text_level": 1,
"bbox": [
176,
277,
648,
291
],
"page_idx": 7
},
{
"type": "text",
"text": "MMLU (Hendrycks et al., 2021) is a diverse benchmark including 57 multi-choice question answering tasks concerning human knowledge ranging from high-school-level to expert-level. It is released after the crawling of Pile and serves as an ideal test-bed for LLMs’ few-shot learning. The GPT-3 result is adopted from MMLU and BLOOM-176B is tested by using the same prompts as GLM-130B’s (Cf. Appendix C.6 and Table 15 for details). ",
"bbox": [
174,
304,
823,
375
],
"page_idx": 7
},
{
"type": "text",
"text": "GLM-130B’s few-shot (5-shot) performance on MMLU approaches GPT-3 (43.9) after viewing about 300B tokens in Figure 6. It continues moving up as the training proceeds, achieving an accuracy of 44.8 when the training has to end (i.e., viewing 400B tokens in total). This aligns with the observation (Hoffmann et al., 2022) that most existing LLMs are far from adequately trained. ",
"bbox": [
174,
381,
823,
436
],
"page_idx": 7
},
{
"type": "text",
"text": "5.3 BEYOND THE IMITATION GAME BENCHMARK (BIG-BENCH) ",
"text_level": 1,
"bbox": [
174,
454,
632,
469
],
"page_idx": 7
},
{
"type": "text",
"text": "BIG-bench (Srivastava et al., 2022) benchmarks challenging tasks concerning models’ ability on reasoning, knowledge, and commonsense. Given evaluating on its 150 tasks is time-consuming for LLMs, we report the BIG-bench-lite—an official 24-task sub-collection—for now. Observed from Figure 7 and Table 4, GLM-130B outperforms GPT-3 175B and even PaLM 540B $4 \\times$ larger) in zero-shot setting. This is probably owing to GLM-130B’s bidirectional context attention and MIP, which has been proved to improve zero-shot results in unseen tasks (Wei et al., 2022a; Sanh et al., 2022). As the number of shots increases, GLM-130B’s performance keeps going up, maintaining its outperformance over GPT-3 (Cf. Appendix C.5 and Table 14 for details on each model and task). ",
"bbox": [
173,
481,
825,
593
],
"page_idx": 7
},
{
"type": "text",
"text": "Limitations and Discussions. In the experiments above, we observe that GLM-130B’s performance growth (13.31 to 15.12) with the increase of few-shot samples is not as significant as GPT-3’s (4.35 to 13.18). Here is our intuitive attempt to understand the phenomenon. ",
"bbox": [
174,
599,
825,
641
],
"page_idx": 7
},
{
"type": "text",
"text": "First, the bidirectional nature of GLM-130B could lead to strong zero-shot performance (as is indicated in zero-shot language modeling), thus getting closer to the few-shot “upper-bound” for models of similar scale (i.e., 100B-scale) than unidirectional LLMs. Second, it may be also attributed to a deficit of existing MIP paradigms (Wei et al., 2022a; Sanh et al., 2022), which only involve zero-shot prediction in the training and will be likely to bias GLM-130B for stronger zero-shot learning but relatively weaker in-context few-shot performance. To correct the bias, a potential solution we came up with would be to employ MIP with varied shots of in-context samples rather than only zero-shot samples. ",
"bbox": [
174,
648,
825,
760
],
"page_idx": 7
},
{
"type": "text",
"text": "Finally, despite almost the same GPT architecture as GPT-3, PaLM 540B’s relative growth with fewshot in-context learning is substantially more significant than GPT-3’s. We conjecture this further acceleration in performance growth is a source of PaLM’s high-quality and diverse private-collected training corpora. By combining our experiences with (Hoffmann et al., 2022)’s insights, we came to realize that better architectures, better data, and more training FLOPS should be further invested. ",
"bbox": [
174,
767,
825,
837
],
"page_idx": 7
},
{
"type": "text",
"text": "5.4 CHINESE LANGUAGE UNDERSTANDING EVALUATION (CLUE) ",
"text_level": 1,
"bbox": [
174,
854,
647,
869
],
"page_idx": 7
},
{
"type": "text",
"text": "We evaluate GLM-130B’s Chinese zero-shot performance on established Chinese NLP benchmarks, CLUE (Xu et al., 2020) and FewCLUE ( $\\mathrm { \\Delta X u }$ et al., 2021).Note that we do not include any Chinese downstream tasks in MIP. To date, we have finished testing on part of the two benchmarks, including ",
"bbox": [
176,
882,
825,
924
],
"page_idx": 7
},
{
"type": "image",
"img_path": "images/cf741e7d068482c8c779765e1751682f1682af62a7dee0e1d2c918bcee48744a.jpg",
"image_caption": [
"Figure 8: GLM-130B and ERNIE Titan 3.0 260B evaluated on zero-shot CLUE and FewCLUE. "
],
"image_footnote": [],
"bbox": [
173,
98,
820,
174
],
"page_idx": 8
},
{
"type": "text",
"text": "7 CLUE and 5 FewCLUE datasets (Cf. Appendix C.7 for details). We compare GLM-130B to the largest existing Chinese monolingual language model—the 260B ERNIE Titan 3.0 (Wang et al., 2021). We follow its setting to report zero-shot results on dev datasets. GLM-130B consistently outperforms ERNIE Titan 3.0 across 12 tasks (Cf. Figure 8). Interestingly, GLM-130B performs at least $260 \\%$ better than ERNIE on two abstractive MRC datasets (DRCD and CMRC2018), possibly due to GLM-130B’s pre-training objective that naturally resonates to abstractive MRC’s form. ",
"bbox": [
173,
212,
825,
296
],
"page_idx": 8
},
{
"type": "text",
"text": "6 RELATED WORK ",
"text_level": 1,
"bbox": [
176,
325,
343,
342
],
"page_idx": 8
},
{
"type": "text",
"text": "In this section, we review related work to GLM-130B on topics of pre-training, transferring, and inference of pre-trained LLMs (Qiu et al., 2020; Bommasani et al., 2021). ",
"bbox": [
174,
363,
823,
391
],
"page_idx": 8
},
{
"type": "text",
"text": "Pre-Training. Vanilla language modeling refers to decoder-only autoregressive models (e.g., GPT (Radford et al., 2018)), but it also recognizes any forms of self-supervised objectives on texts. Recently, transformer-based (Vaswani et al., 2017) language models present a fascinating scaling law: new abilities (Wei et al., 2022b) arise as models scale up, from 1.5B (Radford et al., 2019), 10B-scale language models (Raffel et al., 2020; Shoeybi et al., 2019; Black et al., 2022), to 100Bscale GPT-3 (Brown et al., 2020). Later, despite many 100B-scale LLMs (Lieber et al., 2021; Thoppilan et al., 2022; Rae et al., 2021; Smith et al., 2022; Chowdhery et al., 2022; Wu et al., 2021; Zeng et al., 2021; Wang et al., 2021) in both English and Chinese, they are not available to public or only accessible via limited APIs. The closeness of LLMs severely stymies its development. GLM-130B’s efforts, along with recent ElutherAI, OPT-175B (Zhang et al., 2022), and BLOOM-176B (Scao et al., 2022), aim to offer high-quality open-sourced LLMs to our community. ",
"bbox": [
174,
397,
825,
551
],
"page_idx": 8
},
{
"type": "text",
"text": "Transferring. Though fine-tuning has been a de facto way for transfer learning, the evaluation for LLMs has been focused on prompting and in-context learning due to their tremendous sizes (Brown et al., 2020; Liu et al., 2021a). Nevertheless, some recent attempts has been on parameter-efficient learning on language models (Houlsby et al., 2019) and prompt tuning (i.e., P-tuning, Li & Liang (2021); Liu et al. (2021b); Lester et al. (2021); Liu et al. (2022)). For now we do not focus on them and will leave the comprehensive testing of them on GLM-130B in future study. ",
"bbox": [
174,
558,
825,
642
],
"page_idx": 8
},
{
"type": "text",
"text": "Inference. Most public-accessible LLMs nowadays are providing their services via limited APIs.In this work, an important part of our endeavor has been on LLMs’ efficient and fast inference. Related work may include distillation (Sanh et al., 2019; Jiao et al., 2020; Wang et al., 2020), quantization (Zafrir et al., 2019; Shen et al., 2020; Tao et al., 2022), and pruning (Michel et al., 2019; Fan et al., 2019). Very recent work (Dettmers et al., 2022) shows that LLMs such as OPT-175B and BLOOM-176B can be quantized to 8 bit due to special distribution of outlier dimensions. In this work, we demonstrate GLM’s scaling law for INT4 weight quantization, which allows GLM-130B to inference on as few as $4 \\times$ RTX 3090 (24G) GPUs or $8 \\times$ RTX 2080 Ti (11G) GPUs. ",
"bbox": [
174,
648,
825,
760
],
"page_idx": 8
},
{
"type": "text",
"text": "7 CONCLUSION AND LESSONS ",
"text_level": 1,
"bbox": [
176,
789,
442,
805
],
"page_idx": 8
},
{
"type": "text",
"text": "We introduce GLM-130B, a bilingual pre-trained language model that aims to facilitate open and inclusive LLM research. GLM-130B’s technical and engineering undertakings generate insight into LLMs’ architectures, pre-training objectives, training stability and efficiency, and affordable inference. Altogether, it contributes to the high quality of GLM-130B in terms of both language performance on 112 tasks and ethical results on bias and toxicity benchmarks. Our experiences of both success and failure are condensed into the lessons for training 100B-scale LLMs, attached in the Appendix B.10. ",
"bbox": [
174,
825,
823,
922
],
"page_idx": 8
},
{
"type": "text",
"text": "ACKNOWLEDGEMENT ",
"text_level": 1,
"bbox": [
176,
103,
356,
117
],
"page_idx": 9
},
{
"type": "text",
"text": "This research was supported by Natural Science Foundation of China (NSFC) 61825602, 62276148 and Zhipu.AI. We thank all our collaborators and partners from the Knowledge Engineering Group (KEG), Parallel Architecture & Compiler technology of Mobile, Accelerated, and Networked systems Group (PACMAN), Natural Language Processing Group (THUNLP) at Tsinghua University, and Zhipu.AI. ",
"bbox": [
174,
136,
825,
207
],
"page_idx": 9
},
{
"type": "text",
"text": "ETHICS STATEMENT ",
"text_level": 1,
"bbox": [
174,
231,
343,
246
],
"page_idx": 9
},
{
"type": "text",
"text": "We hereby acknowledge that all of the co-authors of this work are aware of the provided ICLR Code of Ethics and honor the code of conduct. This work introduces an open-source Large Language Model (LLM), which could be used to generate synthetic text for harmful applications, such as telemarketing fraud, political propaganda, and personal harassment as is discussed in (Weidinger et al., 2021; Sheng et al., 2021; Dev et al., 2021). We do not anticipate any hazardous outputs, especially towards vulnerable and historically disadvantaged groups of peoples, after using the model. ",
"bbox": [
174,
265,
825,
348
],
"page_idx": 9
},
{
"type": "text",
"text": "And to better collaborate with our community to prevent and ultimately eliminate the risks technically, we make the following crucial open efforts in this work: ",
"bbox": [
173,
356,
820,
383
],
"page_idx": 9
},
{
"type": "text",
"text": "Open-Sourced LLMs for Ethical Risk Study. While some people think that restricting the access of LLMs can prevent such harmful applications, we argue that promoting LLM inclusivity can lead to better defense against potential harms caused by LLMs. Currently, only governments and large corporations can afford the considerable costs of pre-training LLMs. There is no guarantee that organizations having the the substantial financial resources will not do harm using a LLM. Without access to such LLMs, individuals cannot even realize the role of LLMs in the harm. ",
"bbox": [
174,
390,
825,
473
],
"page_idx": 9
},
{
"type": "text",
"text": "Conversely, releasing an open LLM can provide access and transparency to all the researchers and promote the research to reduce the potential harm of LLMs, like algorithms to identify the synthetic text Gehrmann et al. (2019). Also, it is known that LLMs can suffer from problems in fairness, bias, privacy, and truthfulness Zhang et al. (2021); Lin et al. (2022); Liang et al. (2021); Bender et al. (2021). An open LLM can reveal the model parameters and internal states corresponding to specific inputs instead of providing APIs to black-box models. In conclusion, researchers can conduct analysis of LLMs’ flaws in depth and propose improved algorithms to solve the problems. ",
"bbox": [
174,
481,
825,
579
],
"page_idx": 9
},
{
"type": "text",
"text": "Ethical Evaluation and Improvements. We also evaluate our model over a wide range of English ethical evaluation benchmarks, including bias measurement (Nadeem et al., 2021; Nangia et al., 2020), hate speech detection (Mollas et al., 2020), and toxic generation estimation (Gehman et al., 2020). Notwithstanding their deficiency (Blodgett et al., 2021; Jacobs & Wallach, 2021), these datasets serve as a meaningful initial step towards an open quantitative evaluation LLMs. ",
"bbox": [
174,
585,
823,
655
],
"page_idx": 9
},
{
"type": "text",
"text": "Our evaluation implies that our algorithm designs, especially the bilingual pre-training of a LLM, can significantly mitigate the biases and toxicity an LLM may present while keeping its strong language performance compared to other LLMs (Brown et al., 2020; Zhang et al., 2022) trained with monolingual English corpora (Cf. Appendix A for more details). ",
"bbox": [
176,
662,
823,
718
],
"page_idx": 9
},
{
"type": "text",
"text": "REPRODUCIBILITY ",
"text_level": 1,
"bbox": [
176,
743,
331,
758
],
"page_idx": 9
},
{
"type": "text",
"text": "Compared to mainstream closed-sourced LLMs including GPT-3 175B(Brown et al., 2020), PaLM 540B (Chowdhery et al., 2022), Gopher (Rae et al., 2021), Chinchilla (Hoffmann et al., 2022), LaMDA (Thoppilan et al., 2022), FLAN (Wei et al., 2022a), and many others, GLM-130B is opensourced and devotes to promote openness and inclusivity in LLM research from the very beginning. ",
"bbox": [
174,
776,
823,
833
],
"page_idx": 9
},
{
"type": "text",
"text": "We have paid great effort to ensure the reproducibility of our evaluation. For pre-training section, despite the unaffordable costs it needs to reproduce at present, we still make our best efforts to disclose the code, details, and the whole process of GLM-130B’s pre-training. Our endeavor to allow GLM-130B inference on few popularized GPUs such as 3090/2080 Ti also aligns with the reproducibility undertaking, as it allows most academic researchers to reproduce GLM-130B’s results on their offline machines. We also provide free APIs for individual users to test GLM-130B’s ability. ",
"bbox": [
174,
840,
823,
922
],
"page_idx": 9
},
{
"type": "text",
"text": "Pre-Training. We provide the complete training notes, Tensorboard logs, and code for our pretraining in our repository (Cf. Abstract). The pre-training hyper-parameters and cluster configuration are provided in Section 2.3 and Table 11. The training corpora composition and details for Multi-task Instruction Pre-training are provided in Section 2.2 and Appendix C.1 and C.2. ",
"bbox": [
174,
103,
823,
159
],
"page_idx": 10
},
{
"type": "text",
"text": "Evaluation. We organize all the evaluation, including language benchmarks (LAMBADA, Pile, MMLU, BIG-bench, CLUE, and FewCLUE) and ethical benchmarks (CrowS-Pairs, StereoSet, ETHOS, RealToxicPrompts), into one-command-to-run bash scripts in our code repository. Data processing details for language modeling benchmarks are provided in Section 5.1 and Appendix C.4, for MMLU are provided in Section 5.2 and Appendix C.6, for BIG-bench are provided in Section 5.3 and Appendix C.5, for CLUE and FewCLUE are provided in 5.4. For all ethical evaluation, please refer to Appendix A for details. ",
"bbox": [
174,
166,
825,
263
],
"page_idx": 10
},
{
"type": "text",
"text": "REFERENCES ",
"text_level": 1,
"bbox": [
174,
286,
285,
301
],
"page_idx": 10
},
{
"type": "text",
"text": "Oshin Agarwal, Heming Ge, Siamak Shakeri, and Rami Al-Rfou. Knowledge graph based synthetic corpus generation for knowledge-enhanced language model pre-training. In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pp. 3554–3565, 2021. ",
"bbox": [
174,
316,
825,
372
],
"page_idx": 10
},
{
"type": "text",
"text": "Vamsi Aribandi, Yi Tay, Tal Schuster, Jinfeng Rao, Huaixiu Steven Zheng, Sanket Vaibhav Mehta, Honglei Zhuang, Vinh Q Tran, Dara Bahri, Jianmo Ni, et al. Ext5: Towards extreme multi-task scaling for transfer learning. In International Conference on Learning Representations, 2022. ",
"bbox": [
176,
383,
823,
426
],
"page_idx": 10
},
{
"type": "text",
"text": "Mikel Artetxe, Shruti Bhosale, Naman Goyal, Todor Mihaylov, Myle Ott, Sam Shleifer, Xi Victoria Lin, Jingfei Du, Srinivasan Iyer, Ramakanth Pasunuru, et al. Efficient large scale language modeling with mixtures of experts. arXiv preprint arXiv:2112.10684, 2021. ",
"bbox": [
173,
436,
823,
479
],
"page_idx": 10
},
{
"type": "text",
"text": "Jimmy Lei Ba, Jamie Ryan Kiros, and Geoffrey E Hinton. Layer normalization. arXiv preprint arXiv:1607.06450, 2016. ",
"bbox": [
171,
491,
823,
520
],
"page_idx": 10
},
{
"type": "text",
"text": "Stephen Bach, Victor Sanh, Zheng Xin Yong, Albert Webson, Colin Raffel, Nihal V Nayak, Abheesht Sharma, Taewoon Kim, M Saiful Bari, Thibault Févry, et al. Promptsource: An integrated development environment and repository for natural language prompts. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics: System Demonstrations, pp. 93–104, 2022. ",
"bbox": [
174,
530,
825,
601
],
"page_idx": 10
},
{
"type": "text",
"text": "Emily M. Bender, Timnit Gebru, Angelina McMillan-Major, and Shmargaret Shmitchell. On the dangers of stochastic parrots: Can language models be too big? In FAccT ’21: 2021 ACM Conference on Fairness, Accountability, and Transparency, Virtual Event / Toronto, Canada, March 3-10, 2021, pp. 610–623. ACM, 2021. ",
"bbox": [
173,
611,
825,
667
],
"page_idx": 10
},
{
"type": "text",
"text": "Jonathan Berant, Andrew Chou, Roy Frostig, and Percy Liang. Semantic parsing on freebase from question-answer pairs. In Proceedings of the 2013 conference on empirical methods in natural language processing, pp. 1533–1544, 2013. ",
"bbox": [
173,
679,
823,
722
],
"page_idx": 10
},
{
"type": "text",
"text": "Yonatan Bisk, Rowan Zellers, Jianfeng Gao, Yejin Choi, et al. Piqa: Reasoning about physical commonsense in natural language. In Proceedings of the AAAI conference on artificial intelligence, volume 34, pp. 7432–7439, 2020. ",
"bbox": [
174,
732,
825,
775
],
"page_idx": 10
},
{
"type": "text",
"text": "Sidney Black, Stella Biderman, Eric Hallahan, Quentin Anthony, Leo Gao, Laurence Golding, Horace He, Connor Leahy, Kyle McDonell, Jason Phang, et al. Gpt-neox-20b: An open-source autoregressive language model. In Proceedings of BigScience Episode\\# 5–Workshop on Challenges & Perspectives in Creating Large Language Models, pp. 95–136, 2022. ",
"bbox": [
174,
786,
825,
843
],
"page_idx": 10
},
{
"type": "text",
"text": "Su Lin Blodgett, Gilsinia Lopez, Alexandra Olteanu, Robert Sim, and Hanna Wallach. Stereotyping norwegian salmon: An inventory of pitfalls in fairness benchmark datasets. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pp. 1004–1015, 2021. ",
"bbox": [
174,
853,
825,
922
],
"page_idx": 10
},
{
"type": "text",
"text": "Rishi Bommasani, Drew A Hudson, Ehsan Adeli, Russ Altman, Simran Arora, Sydney von Arx, Michael S Bernstein, Jeannette Bohg, Antoine Bosselut, Emma Brunskill, et al. On the opportunities and risks of foundation models. arXiv preprint arXiv:2108.07258, 2021. ",
"bbox": [
176,
103,
820,
146
],
"page_idx": 11
},
{
"type": "text",
"text": "Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. Language models are few-shot learners. Advances in neural information processing systems, 33:1877–1901, 2020. ",
"bbox": [
178,
154,
821,
196
],
"page_idx": 11
},
{
"type": "text",
"text": "Nicola De Cao, Wilker Aziz, and Ivan Titov. Editing factual knowledge in language models. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, EMNLP 2021, Virtual Event / Punta Cana, Dominican Republic, 7-11 November, 2021, pp. 6491– 6506. Association for Computational Linguistics, 2021. ",
"bbox": [
173,
204,
826,
262
],
"page_idx": 11
},
{
"type": "text",
"text": "Xavier Carreras and Lluís Màrquez. Introduction to the conll-2005 shared task: Semantic role labeling. In CoNLL, pp. 152–164, 2005. ",
"bbox": [
173,
270,
821,
299
],
"page_idx": 11
},
{
"type": "text",
"text": "Thiago Castro Ferreira, Claire Gardent, Nikolai Ilinykh, Chris van der Lee, Simon Mille, Diego Moussallem, and Anastasia Shimorina. The 2020 bilingual, bi-directional WebNLG $^ +$ shared task: Overview and evaluation results (WebNLG $^ +$ 2020). In Proceedings of the 3rd International Workshop on Natural Language Generation from the Semantic Web $( W e b N L G + ,$ ), pp. 55–76, Dublin, Ireland (Virtual), 12 2020. Association for Computational Linguistics. URL https://aclanthology.org/2020.webnlg-1.7. ",
"bbox": [
174,
306,
825,
392
],
"page_idx": 11
},
{
"type": "text",
"text": "Xinlei Chen, Saining Xie, and Kaiming He. An empirical study of training self-supervised vision transformers. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 9640–9649, 2021. ",
"bbox": [
174,
400,
825,
441
],
"page_idx": 11
},
{
"type": "text",
"text": "Ke-Li Chiu and Rohan Alexander. Detecting hate speech with gpt-3. arXiv preprint arXiv:2103.12407, 2021. ",
"bbox": [
171,
450,
823,
479
],
"page_idx": 11
},
{
"type": "text",
"text": "Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, et al. Palm: Scaling language modeling with pathways. arXiv preprint arXiv:2204.02311, 2022. ",
"bbox": [
174,
487,
823,
530
],
"page_idx": 11
},
{
"type": "text",
"text": "Peter Clark, Isaac Cowhey, Oren Etzioni, Tushar Khot, Ashish Sabharwal, Carissa Schoenick, and Oyvind Tafjord. Think you have solved question answering? try arc, the ai2 reasoning challenge. arXiv preprint arXiv:1803.05457, 2018. ",
"bbox": [
174,
537,
823,
580
],
"page_idx": 11
},
{
"type": "text",
"text": "Zihang Dai, Zhilin Yang, Yiming Yang, Jaime G Carbonell, Quoc Le, and Ruslan Salakhutdinov. Transformer-xl: Attentive language models beyond a fixed-length context. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pp. 2978–2988, 2019. ",
"bbox": [
174,
589,
823,
632
],
"page_idx": 11
},
{
"type": "text",
"text": "Tim Dettmers, Mike Lewis, Sam Shleifer, and Luke Zettlemoyer. 8-bit optimizers via block-wise quantization. arXiv preprint arXiv:2110.02861, 2021. ",
"bbox": [
171,
640,
823,
670
],
"page_idx": 11
},
{
"type": "text",
"text": "Tim Dettmers, Mike Lewis, Younes Belkada, and Luke Zettlemoyer. Llm. int8 (): 8-bit matrix multiplication for transformers at scale. arXiv preprint arXiv:2208.07339, 2022. ",
"bbox": [
169,
676,
821,
707
],
"page_idx": 11
},
{
"type": "text",
"text": "Sunipa Dev, Masoud Monajatipoor, Anaelia Ovalle, Arjun Subramonian, J. M. Phillips, and Kai Wei Chang. Harms of gender exclusivity and challenges in non-binary representation in language technologies. ArXiv, abs/2108.12084, 2021. ",
"bbox": [
174,
714,
825,
757
],
"page_idx": 11
},
{
"type": "text",
"text": "Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pp. 4171–4186, 2019. ",
"bbox": [
173,
765,
825,
821
],
"page_idx": 11
},
{
"type": "text",
"text": "Ming Ding, Zhuoyi Yang, Wenyi Hong, Wendi Zheng, Chang Zhou, Da Yin, Junyang Lin, Xu Zou, Zhou Shao, Hongxia Yang, et al. Cogview: Mastering text-to-image generation via transformers. Advances in Neural Information Processing Systems, 34:19822–19835, 2021. ",
"bbox": [
176,
829,
821,
873
],
"page_idx": 11
},
{
"type": "text",
"text": "Li Dong, Nan Yang, Wenhui Wang, Furu Wei, Xiaodong Liu, Yu Wang, Jianfeng Gao, Ming Zhou, and Hsiao-Wuen Hon. Unified language model pre-training for natural language understanding and generation. Advances in Neural Information Processing Systems, 32, 2019. ",
"bbox": [
174,
881,
825,
924
],
"page_idx": 11
},
{
"type": "text",
"text": "Zhengxiao Du, Yujie Qian, Xiao Liu, Ming Ding, Jiezhong Qiu, Zhilin Yang, and Jie Tang. Glm: General language model pretraining with autoregressive blank infilling. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 320–335, 2022. ",
"bbox": [
174,
103,
825,
159
],
"page_idx": 12
},
{
"type": "text",
"text": "Ondˇrej Dušek, David M. Howcroft, and Verena Rieser. Semantic noise matters for neural natural language generation. In Proceedings of the 12th International Conference on Natural Language Generation, pp. 421–426, Tokyo, Japan, October–November 2019. Association for Computational Linguistics. doi: 10.18653/v1/W19-8652. URL https://aclanthology.org/W19 -8652. ",
"bbox": [
173,
169,
825,
238
],
"page_idx": 12
},
{
"type": "text",
"text": "Hady Elsahar, Pavlos Vougiouklis, Arslen Remaci, Christophe Gravier, Jonathon Hare, Frederique Laforest, and Elena Simperl. T-rex: A large scale alignment of natural language with knowledge base triples. In Proceedings of the Eleventh International Conference on Language Resources and Evaluation (LREC 2018), 2018. ",
"bbox": [
173,
247,
825,
304
],
"page_idx": 12
},
{
"type": "text",
"text": "Mihail Eric, Rahul Goel, Shachi Paul, Abhishek Sethi, Sanchit Agarwal, Shuyang Gao, Adarsh Kumar, Anuj Kumar Goyal, Peter Ku, and Dilek Hakkani-Tür. Multiwoz 2.1: A consolidated multi-domain dialogue dataset with state corrections and state tracking baselines. In LREC, 2020. ",
"bbox": [
176,
313,
825,
356
],
"page_idx": 12
},
{
"type": "text",
"text": "Angela Fan, Edouard Grave, and Armand Joulin. Reducing transformer depth on demand with structured dropout. arXiv preprint arXiv:1909.11556, 2019. ",
"bbox": [
169,
364,
823,
393
],
"page_idx": 12
},
{
"type": "text",
"text": "Leo Gao, Stella Biderman, Sid Black, Laurence Golding, Travis Hoppe, Charles Foster, Jason Phang, Horace He, Anish Thite, Noa Nabeshima, et al. The pile: An 800gb dataset of diverse text for language modeling. arXiv preprint arXiv:2101.00027, 2020. ",
"bbox": [
174,
402,
823,
445
],
"page_idx": 12
},
{
"type": "text",
"text": "Samuel Gehman, Suchin Gururangan, Maarten Sap, Yejin Choi, and Noah A. Smith. Realtoxicityprompts: Evaluating Neural Toxic Degeneration in Language Models. dblp://journals/dblp, 2020. ",
"bbox": [
176,
454,
823,
497
],
"page_idx": 12
},
{
"type": "text",
"text": "Sebastian Gehrmann, Hendrik Strobelt, and Alexander Rush. GLTR: Statistical detection and visualization of generated text. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics: System Demonstrations, pp. 111–116, Florence, Italy, July 2019. Association for Computational Linguistics. ",
"bbox": [
174,
506,
825,
563
],
"page_idx": 12
},
{
"type": "text",
"text": "Sebastian Gehrmann, Tosin Adewumi, Karmanya Aggarwal, Pawan Sasanka Ammanamanchi, Aremu Anuoluwapo, Antoine Bosselut, Khyathi Raghavi Chandu, Miruna Clinciu, Dipanjan Das, Kaustubh D Dhole, et al. The gem benchmark: Natural language generation, its evaluation and metrics. GEM 2021, pp. 96, 2021. ",
"bbox": [
173,
571,
825,
628
],
"page_idx": 12
},
{
"type": "text",
"text": "Mor Geva, Daniel Khashabi, Elad Segal, Tushar Khot, Dan Roth, and Jonathan Berant. Did aristotle use a laptop? a question answering benchmark with implicit reasoning strategies. Transactions of the Association for Computational Linguistics, 9:346–361, 2021. ",
"bbox": [
173,
637,
826,
680
],
"page_idx": 12
},
{
"type": "text",
"text": "Peter Hase, Mona T. Diab, Asli Celikyilmaz, Xian Li, Zornitsa Kozareva, Veselin Stoyanov, Mohit Bansal, and Srinivasan Iyer. Do language models have beliefs? methods for detecting, updating, and visualizing model beliefs. CoRR, abs/2111.13654, 2021. ",
"bbox": [
176,
689,
825,
732
],
"page_idx": 12
},
{
"type": "text",
"text": "Ruining He, Anirudh Ravula, Bhargav Kanagal, and Joshua Ainslie. Realformer: Transformer likes residual attention. In Findings of the Association for Computational Linguistics: ACL-IJCNLP 2021, pp. 929–943, 2021. ",
"bbox": [
173,
739,
825,
784
],
"page_idx": 12
},
{
"type": "text",
"text": "Dan Hendrycks and Kevin Gimpel. Gaussian error linear units (gelus). arXiv preprint arXiv:1606.08415, 2016. ",
"bbox": [
169,
791,
825,
820
],
"page_idx": 12
},
{
"type": "text",
"text": "Dan Hendrycks, Collin Burns, Steven Basart, Andy Zou, Mantas Mazeika, Dawn Song, and Jacob Steinhardt. Measuring massive multitask language understanding. In International Conference on Learning Representations, 2021. ",
"bbox": [
174,
829,
823,
872
],
"page_idx": 12
},
{
"type": "text",
"text": "Jordan Hoffmann, Sebastian Borgeaud, Arthur Mensch, Elena Buchatskaya, Trevor Cai, Eliza Rutherford, Diego de Las Casas, Lisa Anne Hendricks, Johannes Welbl, Aidan Clark, et al. Training compute-optimal large language models. arXiv preprint arXiv:2203.15556, 2022. ",
"bbox": [
174,
882,
825,
924
],
"page_idx": 12
},
{
"type": "text",
"text": "Wenyi Hong, Ming Ding, Wendi Zheng, Xinghan Liu, and Jie Tang. Cogvideo: Large-scale pretraining for text-to-video generation via transformers. arXiv preprint arXiv:2205.15868, 2022. ",
"bbox": [
171,
103,
821,
132
],
"page_idx": 13
},
{
"type": "text",
"text": "Neil Houlsby, Andrei Giurgiu, Stanislaw Jastrzebski, Bruna Morrone, Quentin De Laroussilhe, Andrea Gesmundo, Mona Attariyan, and Sylvain Gelly. Parameter-efficient transfer learning for nlp. In International Conference on Machine Learning, pp. 2790–2799. PMLR, 2019. ",
"bbox": [
174,
142,
825,
185
],
"page_idx": 13
},
{
"type": "text",
"text": "Yanping Huang, Youlong Cheng, Ankur Bapna, Orhan Firat, Dehao Chen, Mia Chen, HyoukJoong Lee, Jiquan Ngiam, Quoc V Le, Yonghui Wu, et al. Gpipe: Efficient training of giant neural networks using pipeline parallelism. Advances in neural information processing systems, 32, 2019. ",
"bbox": [
174,
196,
825,
252
],
"page_idx": 13
},
{
"type": "text",
"text": "Abigail Z Jacobs and Hanna Wallach. Measurement and fairness. In Proceedings of the 2021 ACM conference on fairness, accountability, and transparency, pp. 375–385, 2021. ",
"bbox": [
171,
265,
823,
294
],
"page_idx": 13
},
{
"type": "text",
"text": "Xiaoqi Jiao, Yichun Yin, Lifeng Shang, Xin Jiang, Xiao Chen, Linlin Li, Fang Wang, and Qun Liu. Tinybert: Distilling bert for natural language understanding. In Findings of the Association for Computational Linguistics: EMNLP 2020, pp. 4163–4174, 2020. ",
"bbox": [
179,
304,
823,
347
],
"page_idx": 13
},
{
"type": "text",
"text": "Mandar Joshi, Eunsol Choi, Daniel S Weld, and Luke Zettlemoyer. Triviaqa: A large scale distantly supervised challenge dataset for reading comprehension. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 1601–1611, 2017. ",
"bbox": [
174,
357,
825,
414
],
"page_idx": 13
},
{
"type": "text",
"text": "Paul R Kingsbury and Martha Palmer. From treebank to propbank. Citeseer. ",
"bbox": [
174,
425,
673,
440
],
"page_idx": 13
},
{
"type": "text",
"text": "Tom Kwiatkowski, Jennimaria Palomaki, Olivia Redfield, Michael Collins, Ankur Parikh, Chris Alberti, Danielle Epstein, Illia Polosukhin, Jacob Devlin, Kenton Lee, et al. Natural questions: a benchmark for question answering research. Transactions of the Association for Computational Linguistics, 7:453–466, 2019. ",
"bbox": [
174,
452,
825,
507
],
"page_idx": 13
},
{
"type": "text",
"text": "Alexandre Lacoste, Alexandra Luccioni, Victor Schmidt, and Thomas Dandres. Quantifying the carbon emissions of machine learning. CoRR, abs/1910.09700, 2019. ",
"bbox": [
173,
518,
823,
547
],
"page_idx": 13
},
{
"type": "text",
"text": "Brian Lester, Rami Al-Rfou, and Noah Constant. The power of scale for parameter-efficient prompt tuning. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pp. 3045–3059, 2021. ",
"bbox": [
174,
559,
825,
602
],
"page_idx": 13
},
{
"type": "text",
"text": "Hector Levesque, Ernest Davis, and Leora Morgenstern. The winograd schema challenge. In Thirteenth international conference on the principles of knowledge representation and reasoning, 2012. ",
"bbox": [
174,
613,
825,
655
],
"page_idx": 13
},
{
"type": "text",
"text": "Xiang Lisa Li and Percy Liang. Prefix-tuning: Optimizing continuous prompts for generation. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pp. 4582–4597, 2021. ",
"bbox": [
173,
666,
825,
723
],
"page_idx": 13
},
{
"type": "text",
"text": "Xiangyang Li, Yu Xia, Xiang Long, Zheng Li, and Sujian Li. Exploring text-transformers in aaai 2021 shared task: Covid-19 fake news detection in english. In CONSTRAINT@AAAI, 2021. ",
"bbox": [
173,
733,
821,
762
],
"page_idx": 13
},
{
"type": "text",
"text": "Paul Pu Liang, Chiyu Wu, Louis-Philippe Morency, and Ruslan Salakhutdinov. Towards understanding and mitigating social biases in language models. In Proceedings of the 38th International Conference on Machine Learning, ICML 2021, 18-24 July 2021, Virtual Event, volume 139 of Proceedings of Machine Learning Research, pp. 6565–6576. PMLR, 2021. ",
"bbox": [
173,
773,
825,
830
],
"page_idx": 13
},
{
"type": "text",
"text": "Opher Lieber, Or Sharir, Barak Lenz, and Yoav Shoham. Jurassic-1: Technical details and evaluation. White Paper. AI21 Labs, 2021. ",
"bbox": [
171,
842,
823,
871
],
"page_idx": 13
},
{
"type": "text",
"text": "Chin-Yew Lin. ROUGE: A package for automatic evaluation of summaries. In Text Summarization Branches Out, pp. 74–81, Barcelona, Spain, July 2004. Association for Computational Linguistics. URL https://aclanthology.org/W04-1013. ",
"bbox": [
174,
882,
823,
924
],
"page_idx": 13
},
{
"type": "text",
"text": "Stephanie Lin, Jacob Hilton, and Owain Evans. TruthfulQA: Measuring how models mimic human falsehoods. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 3214–3252, Dublin, Ireland, May 2022. Association for Computational Linguistics. ",
"bbox": [
174,
103,
825,
160
],
"page_idx": 14
},
{
"type": "text",
"text": "Pengfei Liu, Weizhe Yuan, Jinlan Fu, Zhengbao Jiang, Hiroaki Hayashi, and Graham Neubig. Pretrain, prompt, and predict: A systematic survey of prompting methods in natural language processing. arXiv preprint arXiv:2107.13586, 2021a. ",
"bbox": [
173,
171,
825,
214
],
"page_idx": 14
},
{
"type": "text",
"text": "Peter J Liu, Mohammad Saleh, Etienne Pot, Ben Goodrich, Ryan Sepassi, Lukasz Kaiser, and Noam Shazeer. Generating wikipedia by summarizing long sequences. In International Conference on Learning Representations, 2018. ",
"bbox": [
174,
227,
823,
268
],
"page_idx": 14
},
{
"type": "text",
"text": "Xiao Liu, Yanan Zheng, Zhengxiao Du, Ming Ding, Yujie Qian, Zhilin Yang, and Jie Tang. Gpt understands, too. arXiv preprint arXiv:2103.10385, 2021b. ",
"bbox": [
169,
280,
823,
310
],
"page_idx": 14
},
{
"type": "text",
"text": "Xiao Liu, Kaixuan Ji, Yicheng Fu, Weng Tam, Zhengxiao Du, Zhilin Yang, and Jie Tang. P-tuning: Prompt tuning can be comparable to fine-tuning across scales and tasks. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), pp. 61–68, 2022. ",
"bbox": [
173,
320,
825,
378
],
"page_idx": 14
},
{
"type": "text",
"text": "Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. In 7th International Conference on Learning Representations, ICLR 2019, New Orleans, LA, USA, May 6-9, 2019, 2019. ",
"bbox": [
174,
390,
823,
431
],
"page_idx": 14
},
{
"type": "text",
"text": "Paul Michel, Omer Levy, and Graham Neubig. Are sixteen heads really better than one? Advances in neural information processing systems, 32, 2019. ",
"bbox": [
173,
444,
823,
473
],
"page_idx": 14
},
{
"type": "text",
"text": "Paulius Micikevicius, Sharan Narang, Jonah Alben, Gregory Diamos, Erich Elsen, David Garcia, Boris Ginsburg, Michael Houston, Oleksii Kuchaiev, Ganesh Venkatesh, and Hao Wu. Mixed precision training. In International Conference on Learning Representations, 2018. ",
"bbox": [
173,
484,
825,
529
],
"page_idx": 14
},
{
"type": "text",
"text": "Todor Mihaylov, Peter Clark, Tushar Khot, and Ashish Sabharwal. Can a suit of armor conduct electricity? a new dataset for open book question answering. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pp. 2381–2391, 2018. ",
"bbox": [
176,
540,
823,
583
],
"page_idx": 14
},
{
"type": "text",
"text": "Eric Mitchell, Charles Lin, Antoine Bosselut, Christopher D. Manning, and Chelsea Finn. Memorybased model editing at scale. In International Conference on Machine Learning, ICML 2022, 17-23 July 2022, Baltimore, Maryland, USA, volume 162 of Proceedings of Machine Learning Research, pp. 15817–15831. PMLR, 2022. ",
"bbox": [
173,
594,
825,
651
],
"page_idx": 14
},
{
"type": "text",
"text": "Ioannis Mollas, Zoe Chrysopoulou, Stamatis Karlos, and Grigorios Tsoumakas. Ethos: an online hate speech detection dataset. arXiv preprint arXiv:2006.08328, 2020. ",
"bbox": [
171,
662,
825,
693
],
"page_idx": 14
},
{
"type": "text",
"text": "Moin Nadeem, Anna Bethke, and Siva Reddy. Stereoset: Measuring stereotypical bias in pretrained language models. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pp. 5356–5371, 2021. ",
"bbox": [
173,
704,
825,
761
],
"page_idx": 14
},
{
"type": "text",
"text": "Nikita Nangia, Clara Vania, Rasika Bhalerao, and Samuel Bowman. Crows-pairs: A challenge dataset for measuring social biases in masked language models. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pp. 1953–1967, 2020. ",
"bbox": [
173,
772,
825,
829
],
"page_idx": 14
},
{
"type": "text",
"text": "Deepak Narayanan, Amar Phanishayee, Kaiyu Shi, Xie Chen, and Matei Zaharia. Memory-efficient pipeline-parallel dnn training. In International Conference on Machine Learning, pp. 7937–7947. PMLR, 2021. ",
"bbox": [
173,
840,
825,
883
],
"page_idx": 14
},
{
"type": "text",
"text": "Tomoko Ohta, Yuka Tateisi, and Jin-Dong Kim. The genia corpus: An annotated research abstract corpus in molecular biology domain. In HLT, pp. 82–86, 2002. ",
"bbox": [
173,
895,
823,
924
],
"page_idx": 14
},
{
"type": "text",
"text": "Denis Paperno, Germán Kruszewski, Angeliki Lazaridou, Ngoc-Quan Pham, Raffaella Bernardi, Sandro Pezzelle, Marco Baroni, Gemma Boleda, and Raquel Fernández. The lambada dataset: Word prediction requiring a broad discourse context. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 1525–1534, 2016. ",
"bbox": [
174,
103,
825,
160
],
"page_idx": 15
},
{
"type": "text",
"text": "David A. Patterson, Joseph Gonzalez, Quoc V. Le, Chen Liang, Lluis-Miquel Munguia, Daniel Rothchild, David R. So, Maud Texier, and Jeff Dean. Carbon emissions and large neural network training. CoRR, abs/2104.10350, 2021. ",
"bbox": [
174,
171,
823,
213
],
"page_idx": 15
},
{
"type": "text",
"text": "Sameer Pradhan, Alessandro Moschitti, Nianwen Xue, Hwee Tou Ng, Anders Björkelund, Olga Uryupina, Yuchen Zhang, and Zhi Zhong. Towards robust linguistic analysis using ontonotes. In CoNLL, pp. 143–152, 2013. ",
"bbox": [
173,
224,
825,
267
],
"page_idx": 15
},
{
"type": "text",
"text": "Ofir Press, Noah Smith, and Mike Lewis. Train short, test long: Attention with linear biases enables input length extrapolation. In International Conference on Learning Representations, 2021. ",
"bbox": [
171,
279,
823,
308
],
"page_idx": 15
},
{
"type": "text",
"text": "Amy Pu, Hyung Won Chung, Ankur Parikh, Sebastian Gehrmann, and Thibault Sellam. Learning compact metrics for MT. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pp. 751–762, Online and Punta Cana, Dominican Republic, November 2021. Association for Computational Linguistics. doi: 10.18653/v1/2021.emnlp-main.58. URL https://aclanthology.org/2021.emnlp-main.58. ",
"bbox": [
174,
318,
825,
388
],
"page_idx": 15
},
{
"type": "text",
"text": "Xipeng Qiu, Tianxiang Sun, Yige Xu, Yunfan Shao, Ning Dai, and Xuanjing Huang. Pre-trained models for natural language processing: A survey. Science China Technological Sciences, 63(10): 1872–1897, 2020. ",
"bbox": [
173,
400,
826,
443
],
"page_idx": 15
},
{
"type": "text",
"text": "Alec Radford, Karthik Narasimhan, Tim Salimans, and Ilya Sutskever. Improving language understanding with unsupervised learning. 2018. ",
"bbox": [
171,
453,
823,
482
],
"page_idx": 15
},
{
"type": "text",
"text": "Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, Ilya Sutskever, et al. Language models are unsupervised multitask learners. OpenAI blog, 1(8):9, 2019. ",
"bbox": [
169,
492,
823,
522
],
"page_idx": 15
},
{
"type": "text",
"text": "Jack W Rae, Sebastian Borgeaud, Trevor Cai, Katie Millican, Jordan Hoffmann, Francis Song, John Aslanides, Sarah Henderson, Roman Ring, Susannah Young, et al. Scaling language models: Methods, analysis & insights from training gopher. arXiv preprint arXiv:2112.11446, 2021. ",
"bbox": [
173,
532,
825,
577
],
"page_idx": 15
},
{
"type": "text",
"text": "Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, Peter J Liu, et al. Exploring the limits of transfer learning with a unified text-to-text transformer. J. Mach. Learn. Res., 21(140):1–67, 2020. ",
"bbox": [
174,
587,
825,
630
],
"page_idx": 15
},
{
"type": "text",
"text": "Aditya Ramesh, Mikhail Pavlov, Gabriel Goh, Scott Gray, Chelsea Voss, Alec Radford, Mark Chen, and Ilya Sutskever. Zero-shot text-to-image generation. In International Conference on Machine Learning, pp. 8821–8831. PMLR, 2021. ",
"bbox": [
173,
640,
823,
683
],
"page_idx": 15
},
{
"type": "text",
"text": "Jeff Rasley, Samyam Rajbhandari, Olatunji Ruwase, and Yuxiong He. Deepspeed: System optimizations enable training deep learning models with over 100 billion parameters. In Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pp. 3505–3506, 2020. ",
"bbox": [
173,
694,
825,
751
],
"page_idx": 15
},
{
"type": "text",
"text": "Sebastian Riedel, Limin Yao, and Andrew McCallum. Modeling relations and their mentions without labeled text. In ECML-PKDD, pp. 148–163, 2010. ",
"bbox": [
171,
761,
823,
791
],
"page_idx": 15
},
{
"type": "text",
"text": "Adam Roberts, Colin Raffel, and Noam Shazeer. How much knowledge can you pack into the parameters of a language model? In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pp. 5418–5426, 2020. ",
"bbox": [
174,
801,
823,
844
],
"page_idx": 15
},
{
"type": "text",
"text": "Dan Roth and Wen-tau Yih. A linear programming formulation for global inference in natural language tasks. In HLT-NAACL, pp. 1–8, 2004. ",
"bbox": [
171,
854,
823,
885
],
"page_idx": 15
},
{
"type": "text",
"text": "Rachel Rudinger, Jason Naradowsky, Brian Leonard, and Benjamin Van Durme. Gender bias in coreference resolution. In NAACL-HLT (2), 2018. ",
"bbox": [
174,
895,
823,
924
],
"page_idx": 15
},
{
"type": "text",
"text": "Chitwan Saharia, William Chan, Saurabh Saxena, Lala Li, Jay Whang, Emily Denton, Seyed Kamyar Seyed Ghasemipour, Raphael Gontijo-Lopes, Burcu Karagol Ayan, Tim Salimans, et al. Photorealistic text-to-image diffusion models with deep language understanding. In Advances in Neural Information Processing Systems. ",
"bbox": [
174,
103,
825,
160
],
"page_idx": 16
},
{
"type": "text",
"text": "Keisuke Sakaguchi, Ronan Le Bras, Chandra Bhagavatula, and Yejin Choi. Winogrande: An adversarial winograd schema challenge at scale. Communications of the ACM, 64(9):99–106, 2021. ",
"bbox": [
171,
167,
823,
196
],
"page_idx": 16
},
{
"type": "text",
"text": "Erik F. Tjong Kim Sang and Fien De Meulder. Introduction to the conll-2003 shared task: Languageindependent named entity recognition. In HLT-NAACL, pp. 142–147, 2003. ",
"bbox": [
173,
204,
821,
234
],
"page_idx": 16
},
{
"type": "text",
"text": "Victor Sanh, Lysandre Debut, Julien Chaumond, and Thomas Wolf. Distilbert, a distilled version of bert: smaller, faster, cheaper and lighter. arXiv preprint arXiv:1910.01108, 2019. ",
"bbox": [
173,
242,
823,
271
],
"page_idx": 16
},
{
"type": "text",
"text": "Victor Sanh, Albert Webson, Colin Raffel, Stephen Bach, Lintang Sutawika, Zaid Alyafeai, Antoine Chaffin, Arnaud Stiegler, Teven Le Scao, Arun Raja, et al. Multitask prompted training enables zero-shot task generalization. In The Tenth International Conference on Learning Representations, 2022. ",
"bbox": [
174,
279,
826,
335
],
"page_idx": 16
},
{
"type": "text",
"text": "Teven Le Scao, Angela Fan, Christopher Akiki, Ellie Pavlick, Suzana Ilic, Daniel Hesslow, Roman ´ Castagné, Alexandra Sasha Luccioni, François Yvon, Matthias Gallé, et al. Bloom: A 176bparameter open-access multilingual language model. arXiv preprint arXiv:2211.05100, 2022. ",
"bbox": [
176,
344,
825,
387
],
"page_idx": 16
},
{
"type": "text",
"text": "Timo Schick, Sahana Udupa, and Hinrich Schütze. Self-diagnosis and self-debiasing: A proposal for reducing corpus-based bias in nlp. Transactions of the Association for Computational Linguistics, 9:1408–1424, 2021. ",
"bbox": [
174,
395,
825,
438
],
"page_idx": 16
},
{
"type": "text",
"text": "Thomas Scialom, Paul-Alexis Dray, Sylvain Lamprier, Benjamin Piwowarski, and Jacopo Staiano. MLSUM: The multilingual summarization corpus. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pp. 8051–8067, Online, November 2020. Association for Computational Linguistics. doi: 10.18653/v1/2020.emnlp-main.647. URL https://aclanthology.org/2020.emnlp-main.647. ",
"bbox": [
173,
445,
825,
517
],
"page_idx": 16
},
{
"type": "text",
"text": "Sheng Shen, Zhen Dong, Jiayu Ye, Linjian Ma, Zhewei Yao, Amir Gholami, Michael W Mahoney, and Kurt Keutzer. Q-bert: Hessian based ultra low precision quantization of bert. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 34, pp. 8815–8821, 2020. ",
"bbox": [
174,
523,
825,
568
],
"page_idx": 16
},
{
"type": "text",
"text": "Emily Sheng, Kai-Wei Chang, P. Natarajan, and Nanyun Peng. Societal biases in language generation: Progress and challenges. In ACL, 2021. ",
"bbox": [
173,
575,
823,
604
],
"page_idx": 16
},
{
"type": "text",
"text": "Sam Shleifer, Jason Weston, and Myle Ott. Normformer: Improved transformer pretraining with extra normalization. arXiv preprint arXiv:2110.09456, 2021. ",
"bbox": [
173,
613,
825,
642
],
"page_idx": 16
},
{
"type": "text",
"text": "Mohammad Shoeybi, Mostofa Patwary, Raul Puri, Patrick LeGresley, Jared Casper, and Bryan Catanzaro. Megatron-lm: Training multi-billion parameter language models using model parallelism. arXiv preprint arXiv:1909.08053, 2019. ",
"bbox": [
176,
650,
823,
693
],
"page_idx": 16
},
{
"type": "text",
"text": "Shaden Smith, Mostofa Patwary, Brandon Norick, Patrick LeGresley, Samyam Rajbhandari, Jared Casper, Zhun Liu, Shrimai Prabhumoye, George Zerveas, Vijay Korthikanti, et al. Using deepspeed and megatron to train megatron-turing nlg 530b, a large-scale generative language model. arXiv preprint arXiv:2201.11990, 2022. ",
"bbox": [
173,
700,
825,
757
],
"page_idx": 16
},
{
"type": "text",
"text": "Aarohi Srivastava, Abhinav Rastogi, Abhishek Rao, Abu Awal Md Shoeb, Abubakar Abid, Adam Fisch, Adam R Brown, Adam Santoro, Aditya Gupta, Adrià Garriga-Alonso, et al. Beyond the imitation game: Quantifying and extrapolating the capabilities of language models. arXiv preprint arXiv:2206.04615, 2022. ",
"bbox": [
174,
765,
826,
821
],
"page_idx": 16
},
{
"type": "text",
"text": "Emma Strubell, Ananya Ganesh, and Andrew McCallum. Energy and policy considerations for deep learning in NLP. In Proceedings of the 57th Conference of the Association for Computational Linguistics, ACL 2019, Florence, Italy, July 28- August 2, 2019, Volume 1: Long Papers, pp. 3645–3650. Association for Computational Linguistics, 2019. ",
"bbox": [
173,
830,
825,
887
],
"page_idx": 16
},
{
"type": "text",
"text": "Jianlin Su, Yu Lu, Shengfeng Pan, Bo Wen, and Yunfeng Liu. Roformer: Enhanced transformer with rotary position embedding. arXiv preprint arXiv:2104.09864, 2021. ",
"bbox": [
174,
895,
821,
924
],
"page_idx": 16
},
{
"type": "text",
"text": "Alon Talmor, Jonathan Herzig, Nicholas Lourie, and Jonathan Berant. Commonsenseqa: A question answering challenge targeting commonsense knowledge. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pp. 4149–4158, 2019. ",
"bbox": [
174,
103,
825,
160
],
"page_idx": 17
},
{
"type": "text",
"text": "Chaofan Tao, Lu Hou, Wei Zhang, Lifeng Shang, Xin Jiang, Qun Liu, Ping Luo, and Ngai Wong. Compression of generative pre-trained language models via quantization. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 4821–4836, 2022. ",
"bbox": [
173,
171,
825,
227
],
"page_idx": 17
},
{
"type": "text",
"text": "Romal Thoppilan, Daniel De Freitas, Jamie Hall, Noam Shazeer, Apoorv Kulshreshtha, Heng-Tze Cheng, Alicia Jin, Taylor Bos, Leslie Baker, Yu Du, et al. Lamda: Language models for dialog applications. arXiv preprint arXiv:2201.08239, 2022. ",
"bbox": [
176,
238,
823,
281
],
"page_idx": 17
},
{
"type": "text",
"text": "Denis Timonin, Bo Yang Hsueh, and Vinh Nguyen. Accelerated inference for large transformer models using nvidia triton inference server. NVIDIA blog, 2022. ",
"bbox": [
169,
291,
823,
321
],
"page_idx": 17
},
{
"type": "text",
"text": "Leslie G Valiant. A bridging model for parallel computation. Communications of the ACM, 33(8): 103–111, 1990. ",
"bbox": [
171,
332,
823,
361
],
"page_idx": 17
},
{
"type": "text",
"text": "Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. Advances in neural information processing systems, 30, 2017. ",
"bbox": [
174,
371,
825,
415
],
"page_idx": 17
},
{
"type": "text",
"text": "David Wadden, Ulme Wennberg, Yi Luan, and Hannaneh Hajishirzi. Entity, relation, and event extraction with contextualized span representations. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), pp. 5784–5789, 2019. ",
"bbox": [
173,
425,
825,
483
],
"page_idx": 17
},
{
"type": "text",
"text": "C. Walker and Linguistic Data Consortium. ACE 2005 Multilingual Training Corpus. Linguistic Data Consortium, 2005. ISBN 9781585633760. ",
"bbox": [
171,
492,
823,
522
],
"page_idx": 17
},
{
"type": "text",
"text": "Alex Wang, Yada Pruksachatkun, Nikita Nangia, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel R. Bowman. SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systems. In NeurIPS 2019, pp. 3261–3275, 2019. ",
"bbox": [
174,
532,
825,
575
],
"page_idx": 17
},
{
"type": "text",
"text": "Ben Wang and Aran Komatsuzaki. GPT-J-6B: A 6 Billion Parameter Autoregressive Language Model. https://github.com/kingoflolz/mesh-transformer-jax, May 2021. ",
"bbox": [
173,
587,
823,
616
],
"page_idx": 17
},
{
"type": "text",
"text": "Chenguang Wang, Xiao Liu, Zui Chen, Haoyun Hong, Jie Tang, and Dawn Song. Deepstruct: Pretraining of language models for structure prediction. In Findings of the Association for Computational Linguistics: ACL 2022, pp. 803–823, 2022a. ",
"bbox": [
176,
626,
820,
670
],
"page_idx": 17
},
{
"type": "text",
"text": "Hongyu Wang, Shuming Ma, Li Dong, Shaohan Huang, Dongdong Zhang, and Furu Wei. Deepnet: Scaling transformers to 1,000 layers. arXiv preprint arXiv:2203.00555, 2022b. ",
"bbox": [
169,
680,
823,
709
],
"page_idx": 17
},
{
"type": "text",
"text": "Shuohuan Wang, Yu Sun, Yang Xiang, Zhihua Wu, Siyu Ding, Weibao Gong, Shikun Feng, Junyuan Shang, Yanbin Zhao, Chao Pang, et al. Ernie 3.0 titan: Exploring larger-scale knowledge enhanced pre-training for language understanding and generation. arXiv preprint arXiv:2112.12731, 2021. ",
"bbox": [
174,
719,
825,
776
],
"page_idx": 17
},
{
"type": "text",
"text": "Wenhui Wang, Furu Wei, Li Dong, Hangbo Bao, Nan Yang, and Ming Zhou. Minilm: Deep selfattention distillation for task-agnostic compression of pre-trained transformers. Advances in Neural Information Processing Systems, 33:5776–5788, 2020. ",
"bbox": [
174,
787,
823,
830
],
"page_idx": 17
},
{
"type": "text",
"text": "Xuezhi Wang, Jason Wei, Dale Schuurmans, Quoc Le, Ed Chi, and Denny Zhou. Rationaleaugmented ensembles in language models. arXiv preprint arXiv:2207.00747, 2022c. ",
"bbox": [
169,
842,
823,
871
],
"page_idx": 17
},
{
"type": "text",
"text": "Jason Wei, Maarten Bosma, Vincent Zhao, Kelvin Guu, Adams Wei Yu, Brian Lester, Nan Du, Andrew M Dai, and Quoc V Le. Finetuned language models are zero-shot learners. In International Conference on Learning Representations, 2022a. ",
"bbox": [
174,
881,
825,
924
],
"page_idx": 17
},
{
"type": "text",
"text": "Jason Wei, Yi Tay, Rishi Bommasani, Colin Raffel, Barret Zoph, Sebastian Borgeaud, Dani Yogatama, Maarten Bosma, Denny Zhou, Donald Metzler, et al. Emergent abilities of large language models. arXiv preprint arXiv:2206.07682, 2022b. ",
"bbox": [
176,
103,
823,
146
],
"page_idx": 18
},
{
"type": "text",
"text": "Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Ed Chi, Quoc Le, and Denny Zhou. Chain of thought prompting elicits reasoning in large language models. arXiv preprint arXiv:2201.11903, 2022c. ",
"bbox": [
174,
155,
823,
196
],
"page_idx": 18
},
{
"type": "text",
"text": "Laura Weidinger, John Mellor, Maribeth Rauh, Conor Griffin, Jonathan Uesato, Po-Sen Huang, Myra Cheng, Mia Glaese, Borja Balle, Atoosa Kasirzadeh, et al. Ethical and social risks of harm from language models. arXiv preprint arXiv:2112.04359, 2021. ",
"bbox": [
173,
205,
823,
250
],
"page_idx": 18
},
{
"type": "text",
"text": "Shaohua Wu, Xudong Zhao, Tong Yu, Rongguo Zhang, Chong Shen, Hongli Liu, Feng Li, Hong Zhu, Jiangang Luo, Liang Xu, et al. Yuan 1.0: Large-scale pre-trained language model in zeroshot and few-shot learning. arXiv preprint arXiv:2110.04725, 2021. ",
"bbox": [
176,
257,
823,
301
],
"page_idx": 18
},
{
"type": "text",
"text": "Yongqin Xian, Christoph H Lampert, Bernt Schiele, and Zeynep Akata. Zero-shot learning—a comprehensive evaluation of the good, the bad and the ugly. IEEE transactions on pattern analysis and machine intelligence, 41(9):2251–2265, 2018. ",
"bbox": [
173,
309,
823,
353
],
"page_idx": 18
},
{
"type": "text",
"text": "Ruibin Xiong, Yunchang Yang, Di He, Kai Zheng, Shuxin Zheng, Chen Xing, Huishuai Zhang, Yanyan Lan, Liwei Wang, and Tieyan Liu. On layer normalization in the transformer architecture. In International Conference on Machine Learning, pp. 10524–10533. PMLR, 2020. ",
"bbox": [
174,
361,
823,
405
],
"page_idx": 18
},
{
"type": "text",
"text": "Liang Xu, Hai Hu, Xuanwei Zhang, Lu Li, Chenjie Cao, Yudong Li, Yechen Xu, Kai Sun, Dian Yu, Cong Yu, et al. Clue: A chinese language understanding evaluation benchmark. In Proceedings of the 28th International Conference on Computational Linguistics, pp. 4762–4772, 2020. ",
"bbox": [
174,
412,
823,
457
],
"page_idx": 18
},
{
"type": "text",
"text": "Liang Xu, Xiaojing Lu, Chenyang Yuan, Xuanwei Zhang, Huilin Xu, Hu Yuan, Guoao Wei, Xiang Pan, Xin Tian, Libo Qin, et al. Fewclue: A chinese few-shot learning evaluation benchmark. arXiv preprint arXiv:2107.07498, 2021. ",
"bbox": [
174,
463,
823,
507
],
"page_idx": 18
},
{
"type": "text",
"text": "Sha Yuan, Hanyu Zhao, Zhengxiao Du, Ming Ding, Xiao Liu, Yukuo Cen, Xu Zou, Zhilin Yang, and Jie Tang. Wudaocorpora: A super large-scale chinese corpora for pre-training language models. AI Open, 2:65–68, 2021. ",
"bbox": [
173,
515,
825,
559
],
"page_idx": 18
},
{
"type": "text",
"text": "Ofir Zafrir, Guy Boudoukh, Peter Izsak, and Moshe Wasserblat. Q8bert: Quantized 8bit bert. In 2019 Fifth Workshop on Energy Efficient Machine Learning and Cognitive Computing-NeurIPS Edition (EMC2-NIPS), pp. 36–39. IEEE, 2019. ",
"bbox": [
173,
566,
825,
611
],
"page_idx": 18
},
{
"type": "text",
"text": "Wei Zeng, Xiaozhe Ren, Teng Su, Hui Wang, Yi Liao, Zhiwei Wang, Xin Jiang, ZhenZhang Yang, Kaisheng Wang, Xiaoda Zhang, et al. Pangu- $\\cdot \\backslash \\alpha$ : Large-scale autoregressive pretrained chinese language models with auto-parallel computation. arXiv preprint arXiv:2104.12369, 2021. ",
"bbox": [
174,
618,
823,
662
],
"page_idx": 18
},
{
"type": "text",
"text": "Chiyuan Zhang, Daphne Ippolito, Katherine Lee, Matthew Jagielski, Florian Tramèr, and Nicholas Carlini. Counterfactual memorization in neural language models. CoRR, abs/2112.12938, 2021. ",
"bbox": [
174,
670,
823,
700
],
"page_idx": 18
},
{
"type": "text",
"text": "Susan Zhang, Stephen Roller, Naman Goyal, Mikel Artetxe, Moya Chen, Shuohui Chen, Christopher Dewan, Mona Diab, Xian Li, Xi Victoria Lin, et al. Opt: Open pre-trained transformer language models. arXiv preprint arXiv:2205.01068, 2022. ",
"bbox": [
174,
708,
823,
751
],
"page_idx": 18
},
{
"type": "text",
"text": "Yuhao Zhang, Victor Zhong, Danqi Chen, Gabor Angeli, and Christopher D. Manning. Positionaware attention and supervised data improve slot filling. In EMNLP, pp. 35–45, 2017. ",
"bbox": [
173,
760,
823,
789
],
"page_idx": 18
},
{
"type": "text",
"text": "Ben Zhou, Daniel Khashabi, Qiang Ning, and Dan Roth. “going on a vacation” takes longer than “going for a walk”: A study of temporal commonsense understanding. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), pp. 3363–3369, 2019. ",
"bbox": [
173,
797,
826,
853
],
"page_idx": 18
},
{
"type": "text",
"text": "Chen Zhu, Ankit Singh Rawat, Manzil Zaheer, Srinadh Bhojanapalli, Daliang Li, Felix X. Yu, and Sanjiv Kumar. Modifying memories in transformer models. CoRR, abs/2012.00363, 2020. ",
"bbox": [
174,
863,
825,
892
],
"page_idx": 18
},
{
"type": "text",
"text": "Part I ",
"text_level": 1,
"bbox": [
174,
99,
236,
118
],
"page_idx": 19
},
{
"type": "text",
"text": "Appendix ",
"text_level": 1,
"bbox": [
176,
131,
316,
159
],
"page_idx": 19
},
{
"type": "text",
"text": "Table of Contents ",
"text_level": 1,
"bbox": [
174,
184,
352,
203
],
"page_idx": 19
},
{
"type": "text",
"text": "A Ethics: Evaluation on Biases and Toxicity 21 ",
"text_level": 1,
"bbox": [
214,
210,
787,
224
],
"page_idx": 19
},
{
"type": "text",
"text": "A.1 Bias Measurement: CrowS-Pairs 21 \nA.2 Bias Measurement: StereoSet 21 \nA.3 Hate Speech Detection: ETHOS 22 \nA.4 Toxic Genearation: RealToxicPrompts 22 ",
"bbox": [
235,
227,
785,
286
],
"page_idx": 19
},
{
"type": "text",
"text": "B Technical Details 23 ",
"text_level": 1,
"bbox": [
212,
300,
785,
313
],
"page_idx": 19
},
{
"type": "text",
"text": "B.1 Tokenization 23 \nB.2 Layer Normalization 24 \nB.3 Positional Encoding and Feed-forward Network 24 \nB.4 Pipeline Parallel Analysis 25 \nB.5 Inference Acceleration . 27 \nB.6 Activation Outlier Analysis 27 \nB.7 Weight Quantization . 28 \nB.8 Quantization settings 28 \nB.9 Ablation on Contribution Attribution 29 \nB.10 Lessons Learned 30 ",
"bbox": [
235,
315,
787,
467
],
"page_idx": 19
},
{
"type": "text",
"text": "C Dataset and Evaluation Details 32 ",
"text_level": 1,
"bbox": [
214,
478,
790,
493
],
"page_idx": 19
},
{
"type": "text",
"text": "C.1 Multi-task Instruction Pre-training (MIP) 32 \nC. Data and prompts in MIP for DeepStruct 32 \nC. Result Sources for GPT-3, BLOOM-176B, and OPT-175B 39 \n. Pile Test-set Evaluation 39 \nC. BIG-bench-lite Evaluation 40 \nC.6 MMLU Evaluation 40 \nChinese Language Understanding Evaluation 40 \nC.8 Natural Language Generation 41 \nC.9 Winograd-Style Tasks 43 \nC.10 Closed-book Question Answering 43 \nC.11 Commonsense Reasoning 44 \nC.12 Fixed Label Datasets: A Case Study in Natural Language Inference 44 \nC.13 SuperGLUE 44 \nC.14 Chain-of-Thought Prompting 45 ",
"bbox": [
235,
496,
787,
709
],
"page_idx": 19
},
{
"type": "text",
"text": "D Scaling and Emergent Abilities in GLM-130B 46 ",
"text_level": 1,
"bbox": [
204,
722,
785,
734
],
"page_idx": 19
},
{
"type": "text",
"text": "E Contributions 52 ",
"text_level": 1,
"bbox": [
210,
750,
787,
762
],
"page_idx": 19
},
{
"type": "text",
"text": "E.1 Preparation 52 \nE.2 Model Training 52 \nE.3 Post Training 52 \nE.4 Project Management . 52 \nE.5 Computation Sponsor 52 ",
"bbox": [
235,
765,
787,
840
],
"page_idx": 19
},
{
"type": "text",
"text": "F A Brief History of GLM-130B 53 ",
"text_level": 1,
"bbox": [
214,
852,
784,
866
],
"page_idx": 19
},
{
"type": "text",
"text": "G Broader Impact ",
"text_level": 1,
"bbox": [
214,
880,
338,
892
],
"page_idx": 19
},
{
"type": "text",
"text": "5 ",
"text_level": 1,
"bbox": [
238,
878,
776,
891
],
"page_idx": 19
},
{
"type": "text",
"text": "G.1 Impact on AI Research 55 \nG.2 Impact on Individual Developers and Small Companies . 55 ",
"bbox": [
230,
895,
787,
924
],
"page_idx": 19
},
{
"type": "text",
"text": "A ETHICS: EVALUATION ON BIASES AND TOXICITY ",
"text_level": 1,
"bbox": [
176,
184,
620,
200
],
"page_idx": 20
},
{
"type": "text",
"text": "Albeit LLMs’ strong abilities in language and beyond, which could bring substantial welfare to human beings, they can potentially produce toxic and illegal contents for evil use (Weidinger et al., 2021; Sheng et al., 2021; Dev et al., 2021; Bommasani et al., 2021). In GLM-130B, before granting model weight to applicants, in the model license we demand them to agree that they will not use it for any deeds that may be harmful to society and human beings. ",
"bbox": [
174,
215,
825,
285
],
"page_idx": 20
},
{
"type": "text",
"text": "Additionally, from a technical perspective, we argue that we must also understand LLMs’ toxic and biased behaviors and ultimately eliminate them. This aligns with our commitment to “LLM Inclusivity”, as it is necessary to include more people in the open-sourced LLM research to facilitate the process. Moreover, if an LLM is shown to be good at identifying toxic and biased content, techniques such as self-diagnoses (Schick et al., 2021) can help to reduce the harmful generation in a self-consistent post-processing procedure. Therefore, as an initial step, we evaluate GLM130B over a variety of related benchmarks to shed light on the challenging topic. Despite their limitations (Blodgett et al., 2021; Jacobs & Wallach, 2021) which should be addressed in future work, they still serve as a good start to arouse the community’s awareness of the problem. ",
"bbox": [
174,
292,
825,
417
],
"page_idx": 20
},
{
"type": "text",
"text": "A.1 BIAS MEASUREMENT: CROWS-PAIRS ",
"text_level": 1,
"bbox": [
176,
434,
478,
448
],
"page_idx": 20
},
{
"type": "text",
"text": "CrowS-Pairs (Nangia et al., 2020), or namely Crowdsourced Stereotype Pairs benchmark, is widely used for measuring biases for masked language models. It collects 1508 examples with nine different conventional biases and adopts a probing-based approach to compare the pseudolog-likelihood of a pair of stereotypical and antistereotypical sentences. Since GLM-130B is pre-trained with autoregressive blanking infilling, CrowS-Pairs evaluation is directly applicable. We compare the GPT-3 Davinci and OPT-175B’s results on CrowS-Pairs reported in (Zhang et al., 2022) with GLM-130B. ",
"bbox": [
176,
460,
491,
640
],
"page_idx": 20
},
{
"type": "table",
"img_path": "images/ffb552451ea3b8dfe682691748d9c5d4d1e14ba51fce85dcca656dfcec58d90e.jpg",
"table_caption": [
"Table 5: CrowS-Pairs (Nangia et al., 2020) Bias Measurement. The lower scores the better. "
],
"table_footnote": [],
"table_body": "<table><tr><td>Category GPT-3 OPT-175B GLM-130B</td></tr><tr><td>Gender 62.6</td><td>65.7 55.7</td></tr><tr><td>Religion 73.3</td><td>68.6 73.3</td></tr><tr><td>Race/Color 64.7</td><td>68.6 58.5</td></tr><tr><td>Sexual orientation 76.2</td><td>78.6 60.7</td></tr><tr><td>Age 64.4</td><td>67.8 63.2</td></tr><tr><td>Nationality 61.6</td><td>62.9 64.1</td></tr><tr><td>Disability 76.7</td><td>76.7 71.6</td></tr><tr><td>Physical appearance 74.6</td><td>76.2 74.6</td></tr><tr><td>Socioeconomic status 73.8</td><td>76.2 70.9</td></tr><tr><td>Overall 67.2</td><td>69.5 65.8</td></tr></table>",
"bbox": [
504,
473,
821,
636
],
"page_idx": 20
},
{
"type": "text",
"text": "Our results are presented in Table 5. GLM-130B shows fewer biases on almost all kinds of stereotypes except for religion and nationality. We speculate that it is because GLM-130B is a bilingual pre-trained LLM that learns the semantics for certain content from both English and Chinese corpora. Since CrowsS-Pairs’ stereotypes mainly draw from the US Equal Employment Opportunities Commission’s $\\operatorname { l i s t } ^ { 2 }$ , the bias distributions in two different cultures and languages may be different and consequently reconcile social biases in GLM-130B on a benchmark originally designed for English-language society. We think this is an interesting finding, as multi-lingual pre-training may help LLMs to present less harmful biases for better fairness. Finally, we also admit that GLM130B may in turn presents some special Chinese biases which currently lack testing benchmarks and require considerable future efforts to detect and prevent. ",
"bbox": [
174,
647,
825,
786
],
"page_idx": 20
},
{
"type": "text",
"text": "A.2 BIAS MEASUREMENT: STEREOSET ",
"text_level": 1,
"bbox": [
176,
804,
460,
818
],
"page_idx": 20
},
{
"type": "text",
"text": "Another widely used bias and stereotype evaluation benchmark is StereoSet (Nadeem et al., 2021), which is also adopted in (Lieber et al., 2021; Artetxe et al., 2021; Zhang et al., 2022). To balance the evaluation between bias detecting and language modeling quality, StereoSet reports a series of metrics including Language Modeling Scores (LMS), Stereotype Score (SS), and Idealized Context Association Test Score (ICAT) as an overall averaged metric. For example, given the premise “She is the twin’s mother”, StereoSet provides three candidate hypothesis: 1) “the water is deep”, 2) “she is a lazy, unkind person”, and 3) “she is a kind, caring woman”. The first option servers as a distractor to test models’ language capability and calculate LMS; the second and third statements are anti-stereotypical and stereotypical respectively and used for calculating SS. A widely-adopted technique here is to calibrate the likelihood of an option according to its length (Lieber et al., 2021; Zhang et al., 2022), as the distractor term is particularly short. ",
"bbox": [
176,
829,
825,
900
],
"page_idx": 20
},
{
"type": "text",
"text": "",
"bbox": [
174,
103,
825,
188
],
"page_idx": 21
},
{
"type": "text",
"text": "Following (Zhang et al., 2022), we normalize scores over tokens rather than characters (Lieber et al., 2021) to yield model predictions for calculating the metrics. The results are shown in Table 6. As we observe, GLM-130B exceedingly outperforms GPT-3 Davinci and OPT-175B on all metrics. Such results accurately align with our discoveries in language modeling experiments and CrowS-Pairs bias evaluation, that GLM-130B has a high quality in both language modeling and social fairness. ",
"bbox": [
174,
194,
825,
263
],
"page_idx": 21
},
{
"type": "table",
"img_path": "images/074722f226828fbedadb3f634d27bfadfa9265acdf01ba18f2d16f46f3292997.jpg",
"table_caption": [
"Table 6: StereoSet (Nadeem et al., 2021) Bias Measurement with LMS (↑), SS (↓), and ICAT (↑). "
],
"table_footnote": [],
"table_body": "<table><tr><td rowspan=\"2\">Category</td><td colspan=\"3\">Profession</td><td colspan=\"3\">Gender</td><td colspan=\"3\">Religion</td><td colspan=\"3\">Race</td><td colspan=\"3\">Overall</td></tr><tr><td>LMS</td><td>ss</td><td>ICAT</td><td>LMS</td><td>SS</td><td>ICAT</td><td>LMS</td><td>ss</td><td>ICAT</td><td>LMS</td><td>Ss</td><td>ICAT</td><td>LMS</td><td>ss</td><td>ICAT</td></tr><tr><td>GPT-3</td><td>78.4</td><td>63.4</td><td>57.5</td><td>75.6</td><td>66.5</td><td>50.6</td><td>80.8</td><td>59.0</td><td>66.3</td><td>77.0</td><td>57.4</td><td>65.7</td><td>77.6</td><td>60.8</td><td>60.8</td></tr><tr><td>OPT-175B</td><td>74.1</td><td>62.6</td><td>55.4</td><td>74.0</td><td>63.6</td><td>53.8</td><td>84.0</td><td>59.0</td><td>68.9</td><td>74.9</td><td>56.8</td><td>64.8</td><td>74.8</td><td>59.9</td><td>60.0</td></tr><tr><td>GLM-130B</td><td>86.5</td><td>59.6</td><td>69.9</td><td>83.9</td><td>63.5</td><td>61.2</td><td>91.0</td><td>53.5</td><td>84.6</td><td>85.7</td><td>54.1</td><td>78.7</td><td>86.0</td><td>57.3</td><td>73.5</td></tr></table>",
"bbox": [
173,
292,
821,
378
],
"page_idx": 21
},
{
"type": "text",
"text": "A.3 HATE SPEECH DETECTION: ETHOS ",
"text_level": 1,
"bbox": [
176,
392,
470,
407
],
"page_idx": 21
},
{
"type": "text",
"text": "Social media corpus may contain hate speeches, and to investigate to what extent LLMs know and can help to identify them is crucial. We adopt the ETHOS dataset originally proposed in (Mollas et al., 2020) to detect sexism and racism speech on zero-shot or few-shot datasets created by (Chiu & Alexander, 2021). GPT-3 Davinci (a public-accessible variant of GPT-3 175B) and OPT 175B are also tested on the benchmark (whose results are reported in (Zhang et al., 2022)). For binary classification including Zero-shot, One-shot, and Few-shot (binary) (which answers “yes” or “no”), we report binary F1; for multiclass classification (which answers “yes”, “no”, or “neither”), we report micro F1. We adopt almost the same prompts as in (Chiu & Alexander, 2021), except aligning the Few-shot (binary) prompt to the form used in One-shot and adding the word “Classification” before the colon in the original Few-shot (multiclass) prompt. ",
"bbox": [
173,
419,
825,
558
],
"page_idx": 21
},
{
"type": "text",
"text": "Results are shown in Table 7. We find that GLM-130B outperforms two other LLMs among four different settings. On one hand, GLM130B’s pre-training over unsupervised diverse corpora from online forums and social media including sections such as “hackernews”, “stackexchange”, and “pile_cc” can endow our model with the background knowledge to identify those speeches. On the other hand, the MIP training may also improve GLM-130B’s zero-shot and few-shot capabilities. ",
"bbox": [
174,
564,
491,
717
],
"page_idx": 21
},
{
"type": "text",
"text": "Table 7: ETHOS (Mollas et al., 2020) Hate speech detection. “(bi)” and “(mul)” denote binary and multiclass classification respectively. All scores are F1 and the higher the better. ",
"bbox": [
504,
564,
823,
619
],
"page_idx": 21
},
{
"type": "table",
"img_path": "images/eed18b33148c91c98f80a02a48e8ded0d8e6111e7a94a7db61a719b27f8d3380.jpg",
"table_caption": [],
"table_footnote": [],
"table_body": "<table><tr><td>GPT-3</td><td>OPT-175B</td><td>GLM-130B</td></tr><tr><td>Zero-shot</td><td>66.7</td><td>68.8</td></tr><tr><td>One-shot</td><td>71.3</td><td>79.1</td></tr><tr><td>Few-shot (bi)</td><td>75.9</td><td>79.7</td></tr><tr><td>35.4 Few-shot (mul) 67.2</td><td>81.2</td><td>85.8</td></tr></table>",
"bbox": [
509,
631,
816,
712
],
"page_idx": 21
},
{
"type": "text",
"text": "A.4 TOXIC GENEARATION: REALTOXICPROMPTS ",
"text_level": 1,
"bbox": [
174,
734,
531,
748
],
"page_idx": 21
},
{
"type": "text",
"text": "Evaluating the toxicity of generation by given prompts is an important part of a model’s safe deployment. We evaluate the toxic generation of GLM-130B on the RealToxicPrompts (Gehman et al., 2020) dataset. Following its settings, we use nucleus sampling $( p = 0 . 9 $ ) to generate 25 continuations for each of the 10K random sampled prompts, limiting the maximum generated length to 128 tokens. Then we report the mean toxicity probabilities of 25 continuations evaluated by Perspective $\\mathrm { A P I } ^ { 3 }$ . In order to make a fair comparison ",
"bbox": [
174,
761,
529,
900
],
"page_idx": 21
},
{
"type": "image",
"img_path": "images/08773a74b3cd771639013ca94c05ccd8eeccf3abb07ec9d9a9a95bd17e6f5871.jpg",
"image_caption": [
"Figure 9: RealToxicPrompts (Gehman et al., 2020) evaluation. Lower continuation toxicity probability is better. "
],
"image_footnote": [],
"bbox": [
544,
731,
823,
873
],
"page_idx": 21
},
{
"type": "image",
"img_path": "images/c67c925396528fc4c06822d4368a2a80da44553e5b09b35c0d856a9a9173b334.jpg",
"image_caption": [
"Figure 10: Handling training collapses and instability is the first priority when training LLMs. "
],
"image_footnote": [],
"bbox": [
174,
102,
823,
477
],
"page_idx": 22
},
{
"type": "text",
"text": "under different tokenization methods, we only report \nthe toxicity score of the first complete sentence of a \ncontinuation as we found that the score returned by the Perspective API seems to increase with sentence length. ",
"bbox": [
174,
534,
825,
590
],
"page_idx": 22
},
{
"type": "text",
"text": "Results are shown in Figure 9. Generally, as the toxicity of the given prompt increases, the toxicity probability of the continuation increases accordingly in both models. Compared to GPT-3 Davinci, GLM-130B has a lower toxicity rate in all cases, indicating that GLM-130B is less prone to generating toxic content. ",
"bbox": [
174,
597,
825,
654
],
"page_idx": 22
},
{
"type": "text",
"text": "B TECHNICAL DETAILS ",
"text_level": 1,
"bbox": [
176,
675,
387,
691
],
"page_idx": 22
},
{
"type": "text",
"text": "In this section, we introduce additional details about the technical issues we have identified and solved throughout the GLM-130B training. Along with concurrent open-source LLM efforts, we believe that those published details could serve as great cornerstones to future LLM training. ",
"bbox": [
174,
708,
825,
751
],
"page_idx": 22
},
{
"type": "text",
"text": "B.1 TOKENIZATION ",
"text_level": 1,
"bbox": [
176,
770,
325,
784
],
"page_idx": 22
},
{
"type": "text",
"text": "For the tokenization of the corpus, we implement a text tokenizer based on the package icetk with several adjustments. As an image-text unified tokenizer, the vocabulary size of icetk is 150000. The first 20000 tokens are image tokens and the rest are text tokens. The text tokenizer of icetk is formulated and trained by sentencepiece4, on a 25GB bilingual corpus equally distributed with English and Chinese contents. We divide tokens recognized by the tokenizer into four categories. The common tokens are assigned from No.20000 to No.20099, consisting of punctuations, numbers and spaces free of extended definition. No.20100 to No.83822 are English tokens and No.83823 to ",
"bbox": [
174,
796,
825,
895
],
"page_idx": 22
},
{
"type": "text",
"text": "No.145653 are Chinese tokens. Tokens after No.145653 are other special tokens including concatenated punctuations and pieces from other languages, etc. ",
"bbox": [
173,
103,
821,
132
],
"page_idx": 23
},
{
"type": "text",
"text": "During our implementation, We ignore the first 20000 image tokens and simply utilize the latter 130000 intended for text tokenization. we disable the ignoring of linebreak to tokenize the linebreak mark \\n into No. 20004 token $< \\mathrm { n } >$ . On the basis of inherent tokens, we add special tokens [MASK] and [gMASK] for model prediction. We also add special tokens ${ < S \\mathrm { O p } > }$ , <eop>, <eos> for sentence and passage separation. ",
"bbox": [
174,
138,
823,
208
],
"page_idx": 23
},
{
"type": "text",
"text": "B.2 LAYER NORMALIZATION ",
"text_level": 1,
"bbox": [
174,
224,
390,
239
],
"page_idx": 23
},
{
"type": "text",
"text": "Here we briefly introduce the history of layer normalization in language modeling problems, and how its variants perform in recent LLMs including our experiments for them on GLM-130B. ",
"bbox": [
173,
251,
823,
280
],
"page_idx": 23
},
{
"type": "text",
"text": "Post-LN (Vaswani et al., 2017). Post-LN is jointly proposed with the transformer architecture and is placed between the residual blocks. It is then adopted by BERT (Devlin et al., 2019) for bidirectional language model pre-training. Nevertheless, Post-LN was later accused of transformers’ slow and vulnerable converging (Xiong et al., 2020) and the Pre-LN emerged as a substitute. ",
"bbox": [
174,
286,
825,
343
],
"page_idx": 23
},
{
"type": "text",
"text": "Pre-LN (Xiong et al., 2020). On the contrary, Pre-LN is located in the residual blocks to reduce exploding gradients and becomes dominant in existing language models, including all recent LLMs. However, OPT-175B (Zhang et al., 2022), BLOOM (Scao et al., 2022), and text-to-image model CogView Ding et al. (2021) later observe that Pre-LN is still unable to handle the vulnerable training when models scale up to 100B or meet multi-modal data. This is also justified in GLM-130B’s preliminary experiments, where Pre-LN consistently crashes in its early stage training. ",
"bbox": [
173,
349,
825,
434
],
"page_idx": 23
},
{
"type": "text",
"text": "Additionally, another problem rooted in Pre-LN transformers is that it may harm the model performance after tuning compared to Post-LN. This is observed in (He et al., 2021). ",
"bbox": [
171,
439,
820,
468
],
"page_idx": 23
},
{
"type": "text",
"text": "Sandwich-LN (Ding et al., 2021). As a remedy, on top of Pre-LN, CogView (later in Normformer (Shleifer et al., 2021)) develops Sandwich-LN which appends extra normalization to the end of each residual branch. Accompanied with PB-Relax (Precision-Bottleneck Relaxation) techniques, they stabilize the training of a 4-billion text-to-image generation model. Despite its superiority over Pre-LN, sadly Sandwich-LN is also proved to collapse in GLM-130B training; let alone the potential consequent weaker tuning performance caused by its Pre-LN nature. ",
"bbox": [
173,
474,
825,
559
],
"page_idx": 23
},
{
"type": "text",
"text": "B.3 POSITIONAL ENCODING AND FEED-FORWARD NETWORK ",
"text_level": 1,
"bbox": [
173,
575,
612,
590
],
"page_idx": 23
},
{
"type": "text",
"text": "Positional Encoding Vanilla transformer adopts absolute (or sinuous) position encoding, and is later evolved into relative positional encoding (Dai et al., 2019). Relative PEs can capture word relevance better than absolute positional encoding. Rotary Positional Embedding (RoPE) (Su et al., 2021) is a relative position encoding implemented in the form of absolute position encoding, and its core idea is shown in the following equation. ",
"bbox": [
173,
602,
825,
671
],
"page_idx": 23
},
{
"type": "equation",
"img_path": "images/7c39b448c929c0ce05529312005fb62c9869e153cab7f74f6aa516197f78ccb3.jpg",
"text": "$$\n\\left( \\pmb { R _ { m } q } \\right) ^ { \\top } \\left( \\pmb { R _ { n } k } \\right) = q ^ { \\top } \\pmb { R _ { m } ^ { \\top } \\pmb { R _ { n } k } } = q ^ { \\top } \\pmb { R _ { n - m } k }\n$$",
"text_format": "latex",
"bbox": [
348,
678,
650,
698
],
"page_idx": 23
},
{
"type": "text",
"text": "The product of $q$ at position $m$ and $k$ at position $n$ is related to their distance $n - m$ , which reflects the relativity of the position encoding. The definition of $\\pmb { R }$ in the above equation is ",
"bbox": [
171,
712,
823,
741
],
"page_idx": 23
},
{
"type": "equation",
"img_path": "images/15bfbab5f50ac332839b347a3ee762c3b49ac9e470a27caf5cbea359ec1d77a1.jpg",
"text": "$$\n\\pmb { R _ { \\theta , m } ^ { d } } = \\left( \\begin{array} { c c c c c c c c } { \\cos m \\theta _ { 1 } } & { - \\sin m \\theta _ { 1 } } & { 0 } & { 0 } & { \\cdots } & { 0 } & { 0 } \\\\ { \\sin m \\theta _ { 1 } } & { \\cos m \\theta _ { 1 } } & { 0 } & { 0 } & { \\cdots } & { 0 } & { 0 } \\\\ { 0 } & { 0 } & { \\cos m \\theta _ { 2 } } & { - \\sin m \\theta _ { 2 } } & { \\cdots } & { 0 } & { 0 } \\\\ { 0 } & { 0 } & { \\sin m \\theta _ { 2 } } & { \\cos m \\theta _ { 2 } } & { \\cdots } & { 0 } & { 0 } \\\\ { \\vdots } & { \\vdots } & { \\vdots } & { \\vdots } & { \\ddots } & { \\vdots } & { \\vdots } \\\\ { 0 } & { 0 } & { 0 } & { 0 } & { \\cdots } & { \\cos m \\theta _ { d / 2 } } & { - \\sin m \\theta _ { d / 2 } } \\\\ { 0 } & { 0 } & { 0 } & { 0 } & { \\cdots } & { \\sin m \\theta _ { d / 2 } } & { \\cos m \\theta _ { d / 2 } } \\end{array} \\right) .\n$$",
"text_format": "latex",
"bbox": [
181,
746,
797,
861
],
"page_idx": 23
},
{
"type": "text",
"text": "To allow its value to decay as the distance increases, $\\theta$ takes the value ",
"bbox": [
174,
872,
630,
887
],
"page_idx": 23
},
{
"type": "equation",
"img_path": "images/b021461a2b5904156e6410fd967e6010763dcac7ad5bc405b2f767265ae20292.jpg",
"text": "$$\n\\theta = \\left. \\theta _ { i } = 1 0 0 0 0 ^ { \\frac { - 2 ( i - 1 ) } { d } } , \\quad i \\in \\left[ 1 , 2 , \\cdots , { \\frac { d } { 2 } } \\right] \\right.\n$$",
"text_format": "latex",
"bbox": [
338,
893,
658,
929
],
"page_idx": 23
},
{
"type": "text",
"text": "A two-dimensional absolute position encoding method is proposed in vanilla GLM for modeling both intra- and inter-span position information. In GLM-130B, different from the two-dimensional positional encoding used in vanilla GLM, we turn back to conventional one-dimensional positional encoding. However, we originally thought that two-dimensional form cannot be directly applied to $\\mathrm { R o P E } ^ { 5 }$ . As a substitute plan, in GLM-130B we simply remove the second dimension used in the original GLM as we find that the unidirectional attention mask sub-matrices for [MASK] generation indicate the token order as well. This observation results in our transforming GLM-130B’s positional encoding into a one-dimensional one according to the following strategies: ",
"bbox": [
173,
103,
825,
215
],
"page_idx": 24
},
{
"type": "text",
"text": "• For sequences corrupted by short spans, we discard the second-dimensional position encoding. • For sequences corrupted by a long span at the end, we change the positional ids to one-dimensional $0 , 1 , \\cdots , s - 1$ , and generated tokens will just prolong the first-dimensional positional encoding from the last context token $s - 1$ . ",
"bbox": [
173,
222,
825,
280
],
"page_idx": 24
},
{
"type": "text",
"text": "Feed-forward Network Some recent efforts to improve transformer architecture have been on the FFN, including replacing it with GLU (adopted in PaLM). Research shows that using GLU can improve model performance, which is consistent with our experimental results (Cf. Table 8). Specifically, we use GLU with the GeLU (Hendrycks & Gimpel, 2016) activation. as ",
"bbox": [
173,
295,
825,
352
],
"page_idx": 24
},
{
"type": "equation",
"img_path": "images/22107530ea396a9bd3fe7f93edafd226368fa4aaa293e3a49bc70bcac9249739.jpg",
"text": "$$\n\\operatorname { F F N } _ { \\operatorname { G e G L U } } \\left( \\pmb { x } ; W _ { 1 } , V , W _ { 2 } \\right) = \\left( \\operatorname { G e L U } ( \\pmb { x } W _ { 1 } ) \\otimes \\pmb { x } V \\right) W _ { 2 }\n$$",
"text_format": "latex",
"bbox": [
302,
358,
696,
377
],
"page_idx": 24
},
{
"type": "text",
"text": "In order to keep the same parameter as the vanilla FFN, the feed-forward size $d _ { \\mathrm { { f f n } } }$ (which is usually $4 d _ { \\mathrm { H } }$ , where $d _ { \\mathrm { H } }$ is the hidden dimension) is reduced to $\\textstyle { \\frac { 8 } { 3 } } d _ { \\mathrm { H } }$ as the $V$ is additionally introduced. ",
"bbox": [
173,
390,
823,
420
],
"page_idx": 24
},
{
"type": "table",
"img_path": "images/92edee97bab72c732d5eda0392648a0731ea41aa35f65c49d87dea104309d28a.jpg",
"table_caption": [
"Table 8: Ablation Study for PE and FFN on $\\mathrm { G L M _ { B a s e } }$ "
],
"table_footnote": [],
"table_body": "<table><tr><td>Model</td><td>Test PPL</td></tr><tr><td>GLMBase</td><td>24.58</td></tr><tr><td>+ ALiBi</td><td>24.14</td></tr><tr><td>+RoPE</td><td>22.95</td></tr><tr><td>+RoPE+GeGLU</td><td>22.31</td></tr></table>",
"bbox": [
622,
473,
813,
560
],
"page_idx": 24
},
{
"type": "text",
"text": "Ablation Study on PE and FFN In order to validate our PE and FFN choices, we test them in our experiments by pre-training $\\mathrm { G L M _ { B a s e } }$ (110M) over a random 50G Chinese and English mixed corpus. We compare absolute PE with two recent popular relative PE variants, RoPE (Chowdhery et al., 2022) and ALiBi (Press et al., 2021). For FFN, we compare vanilla FFN with Gate Linear Unit with GeLU activations. Results from Table 8 show that both ALiBi and RoPE improve perplexity on the test set, and the improvement is more significant with RoPE while using GeGLU can further improve the model’s performance. ",
"bbox": [
174,
434,
599,
574
],
"page_idx": 24
},
{
"type": "text",
"text": "B.4 PIPELINE PARALLEL ANALYSIS",
"text_level": 1,
"bbox": [
176,
590,
434,
604
],
"page_idx": 24
},
{
"type": "text",
"text": "In pipeline parallelism, each stage consists of three operations (Cf. Figure 11(a)): forward (denoted as F), backward (denoted as B), and optimizer step (denoted as U). However, naive sequential pipeline implementation leads to an unbearable amount of bubbles. The improved Gpipe (Huang et al., 2019) (Cf. Figure 11(b)) strategy reduces bubbles drastically via splitting data into microbatches; the more micro-batches there are, the more stages can compute simultaneously in an iteration. The recent PipeDream-Flush (Narayanan et al., 2021) (Cf. Figure 11(c)) additionally optimizes the GPU memory usage by interweaving forward and backward from different stages to reduce forward activation’s memory occupation. ",
"bbox": [
173,
616,
825,
728
],
"page_idx": 24
},
{
"type": "text",
"text": "We analyze the bubble share in GLM-130B’s pre-training by assuming that the number of pipeline segments is $p$ , the number of micro-batches is $m$ , and the time for forward and backward per microbatch are $t _ { f }$ and $t _ { b }$ . In ideal case, forward and backward take $t _ { \\mathrm { i d e a l } } = m ( t _ { f } + t _ { b } )$ . But in practice, the default pipeline delivery strategy causes $p - 1$ forward propagation and $p - 1$ backward propagation bubbles, respectively, for a total time of ${ \\bar { t } } _ { \\mathrm { b u b b l e } } = ( p - 1 ) { \\bar { ( } } t _ { f } ^ { - } + t _ { b } )$ , so that the bubble occupancy is ",
"bbox": [
174,
734,
825,
806
],
"page_idx": 24
},
{
"type": "equation",
"img_path": "images/3847be85aa99a1ae5867e02f7a85163641f628ae0115601a81c7a78273c81d30.jpg",
"text": "$$\n\\mathrm { \\ b u b b l e - r a t i o } = { \\frac { t _ { \\mathrm { b u b b l e } } } { t _ { \\mathrm { i d e a l } } + t _ { \\mathrm { b u b b l e } } } } = { \\frac { p - 1 } { m + p - 1 } }\n$$",
"text_format": "latex",
"bbox": [
346,
813,
650,
844
],
"page_idx": 24
},
{
"type": "text",
"text": "For larger numbers of micro-batches, the bubble percentage will be reduced to an acceptable level. In particular, experiments in GPipe Huang et al. (2019) show that when $m \\geq 4 p$ , the total percentage of pipeline bubble time is reduced to a negligible level due to the forward recomputation technique in backpropagation that allows some overlap in computational communication, thus showing that the bubbles introduced in parallel by the pipeline model do not seriously deplete the training efficiency. ",
"bbox": [
176,
858,
823,
887
],
"page_idx": 24
},
{
"type": "image",
"img_path": "images/a96eb3848f98214e82b1d04e1d931ed77e78fa3ba2749ac14aaaf26481722d78.jpg",
"image_caption": [
"(a) Naive pipeline implementation, which can be extremely inefficient. "
],
"image_footnote": [],
"bbox": [
183,
99,
831,
218
],
"page_idx": 25
},
{
"type": "image",
"img_path": "images/7e097da26a924a78e2067e9e562dba64d650231ddaa84fe3f23aa55b2d62a697.jpg",
"image_caption": [
"(b) GPipe (Huang et al., 2019) implementation. "
],
"image_footnote": [],
"bbox": [
179,
250,
830,
362
],
"page_idx": 25
},
{
"type": "image",
"img_path": "images/36308eab87c4dc4bffb3cea67d031f68ec29f4d6fbc206fe0e2dfd880037a8ec.jpg",
"image_caption": [
"",
"(c) Pipedream (Narayanan et al., 2021) implementation (used in GLM-130B). Figure 11: Different pipeline strategies and their conceptual comparison. "
],
"image_footnote": [],
"bbox": [
183,
393,
833,
518
],
"page_idx": 25
},
{
"type": "text",
"text": "",
"bbox": [
174,
583,
825,
626
],
"page_idx": 25
},
{
"type": "text",
"text": "In general, in order to make full use of the hardware, it is common to place models into model parallel groups consisting of multiple nodes and try to use the full memory of each node. In this case, we can freely adjust the ratio of pipeline model parallelism and tensor model parallelism. Since data parallelism hardly affects the computation time, we assume that the scale of data parallelism is $d = 1$ , the total number of nodes is $n$ , the scale of tensor model parallelism is $t$ , and the scale of pipeline model parallelism is $p$ , and satisfies $n = t \\times p$ , the bubble share in this case is ",
"bbox": [
173,
632,
825,
717
],
"page_idx": 25
},
{
"type": "equation",
"img_path": "images/003beb6e0c11efa6db561de001d7b6f94305ce3cc95fc5e12d4041c765ca3bef.jpg",
"text": "$$\n\\mathrm { b u b b l e - r a t i o } = { \\frac { n / t - 1 } { m + n / t - 1 } }\n$$",
"text_format": "latex",
"bbox": [
400,
737,
596,
771
],
"page_idx": 25
},
{
"type": "text",
"text": "From the above equation, we can see that increasing the size of tensor parallelism will further reduce the bubble ratio. However, the tensor parallelism scale cannot be increased indefinitely, which would lead to a reduction in computational granularity and greatly increase the communication cost across a certain threshold. Therefore, we can conclude that the size of tensor model parallelism should increase slowly as the model size increases, but not more than the number of graphics cards in a single machine. In the training of GLM-130B, the experiments show that the optimal tensor parallelism scale is $t = 4$ and does not scale up to the scale of $t = 8$ in the DGX-A100 system. The other parameters are $m = 1 7 6 , p = 8$ , and the bubble share is calculated to be only $3 . 8 \\%$ , which is sufficient to demonstrate the efficiency of pipeline model parallelism. ",
"bbox": [
173,
797,
825,
924
],
"page_idx": 25
},
{
"type": "table",
"img_path": "images/c1f7a01b5144d69959a19f3ed5272867731042b40722118e8dd837d7f5f3f423.jpg",
"table_caption": [
"Table 9: Decoding speed in our real trials between BLOOM-176B (Scao et al., 2022) (from Huggingface Transformers) and GLM-130B’s implementation in 16-bit precision with $8 \\times \\mathrm { A l 0 0 }$ (80G). "
],
"table_footnote": [],
"table_body": "<table><tr><td>Decode Tokens</td><td>128</td><td>512</td><td>1024</td><td>2048</td></tr><tr><td>BLOOM-176B</td><td>36.76s</td><td>137.91s</td><td>287.93s</td><td>631.81s</td></tr><tr><td>GLM-130B</td><td>4.40s (×8.4)</td><td>18.77s (×7.3)</td><td>39.81s (×7.2)</td><td>89.88s (×7.0)</td></tr></table>",
"bbox": [
235,
137,
758,
193
],
"page_idx": 26
},
{
"type": "image",
"img_path": "images/e71b7646c6ec61977504538c7bb8a99c10f56c1aebce1f8a2cb7186d4f7242f4.jpg",
"image_caption": [
"Figure 12: Distribution of outliers in GLM-130B’s activations. The vertical axis denotes the hidden state dimensions (4,096 rather than 12,288 as this is a parallel segment), and the horizontal denotes tokens in a input sentence. Using a $1 2 8 \\times 1 2 8$ 2D histogram to get a better view of the distribution of outliers. The figure on the right swaps some of the vertical coordinates so that it can be clearly seen that the outlier occur about $30 \\%$ of its dimensions. "
],
"image_footnote": [],
"bbox": [
178,
213,
790,
362
],
"page_idx": 26
},
{
"type": "text",
"text": "B.5 INFERENCE ACCELERATION ",
"text_level": 1,
"bbox": [
176,
460,
411,
474
],
"page_idx": 26
},
{
"type": "text",
"text": "A model’s plain PyTorch implementation is easy to read and run, but it can be intolerably slow for LLMs. Based on NVIDIA’s FasterTransformer6 we spend two months implementing GLM-130B into $\\mathrm { C } { + } { + }$ to speed up inference, including the following main optimizations: ",
"bbox": [
173,
486,
825,
529
],
"page_idx": 26
},
{
"type": "text",
"text": "• Optimize time-costing operations such as GeGLU, Layer Normalization, and SoftMax. \n• Reduce the number of GPU kernel calls (e.g., fuse MultiheadAttention into one computation kernel). \n• Specify the algorithm of the best performance when calling cuBLAS. \n• Improve the computing efficiency by transposing the model parameters in advance. \n• Use half2 in FP16 computation to double the half’s access bandwidth and computing throughput. ",
"bbox": [
173,
535,
825,
628
],
"page_idx": 26
},
{
"type": "text",
"text": "We currently pack up the full FasterTransformer implementation for GLM-130B into a plug-andplay docker image for users’ convenience, and we are still working on adapting it to our Pytorch implementation by only changing one line of code. A comparison between our speeding up GLM130B implementation and the so far default available BLOOM-176B implementation in Huggingface Transformers7 is shown in Table 9. Our implementation for GLM-130B can be 7.0 to 8.4 times faster than BLOOM-176B’s Pytorch implementation. The exertion to accelerate LLM for tolerable response speed could be extremely crucial to its popularization. ",
"bbox": [
173,
636,
825,
733
],
"page_idx": 26
},
{
"type": "text",
"text": "B.6 ACTIVATION OUTLIER ANALYSIS ",
"text_level": 1,
"bbox": [
176,
752,
447,
766
],
"page_idx": 26
},
{
"type": "text",
"text": "As is described in prior sections, GLM-130B’s weight can be quantized into INT4 to drastically cut down parameter redundancy in the inference. However, we also find that GLM-130B’s activations (i.e., hidden states between layers) cannot be properly quantized, as they contain value outliers as is also suggested in concurrent literature (Dettmers et al., 2022). ",
"bbox": [
174,
777,
825,
834
],
"page_idx": 26
},
{
"type": "text",
"text": "What is special in GLM-130B is that $30 \\%$ of its dimensions may present value outliers (Cf. Figure 12), while other GPT-based LLMs (e.g., OPT-175B and BLOOM 176B) only has very few outlying dimensions (Dettmers et al., 2022). Therefore, the solution to decompose matrix multiplication for higher-precision computation in outlying dimensions proposed in (Dettmers et al., 2022) is not applicable to GLM-130B. ",
"bbox": [
176,
840,
825,
883
],
"page_idx": 26
},
{
"type": "text",
"text": "",
"bbox": [
173,
103,
821,
131
],
"page_idx": 27
},
{
"type": "text",
"text": "We study whether these outliers can be ignored in LLM quantization, and the answer is interestingly “no”. These values can be several orders of magnitude larger than ordinary activation values (Cf. Figure 13). While most values (accounts for $9 9 . 9 8 \\%$ dimensions in a hidden state) stay less them 6, those two outlying dimensions can reach 50 or even over 100. They are speculated to be some important clues for GLM-130B and potentially other LLMs to memorize some fixed world or language knowledge, and thus removing or omitting them in quantization can lead to significant performance degradation. ",
"bbox": [
174,
138,
622,
265
],
"page_idx": 27
},
{
"type": "image",
"img_path": "images/1b2c2a68649c2516e4c5a6a77950542b0e7f807a6d377488dcc67eef22b8b90d.jpg",
"image_caption": [
"Figure 13: GLM-130B’s activation outliers’ absolute value scale. "
],
"image_footnote": [],
"bbox": [
642,
131,
821,
229
],
"page_idx": 27
},
{
"type": "text",
"text": "B.7 WEIGHT QUANTIZATION",
"text_level": 1,
"bbox": [
176,
281,
390,
296
],
"page_idx": 27
},
{
"type": "text",
"text": "B.7.1 PRELIMINARIES ",
"text_level": 1,
"bbox": [
174,
308,
343,
321
],
"page_idx": 27
},
{
"type": "text",
"text": "Absmax Quantization is a symmetric quantization that a range of $[ - \\mathrm { a b s m a x } ( x )$ , absmax $( x ) ]$ is mapped to $[ - ( 2 ^ { b } - 1 ) , 2 ^ { b } - 1 ]$ for $x$ . ",
"bbox": [
174,
332,
823,
361
],
"page_idx": 27
},
{
"type": "equation",
"img_path": "images/bafb457a3bba93fd81e4c16616a8eea2269d7b102ffd3da67049d06fe7c84d86.jpg",
"text": "$$\n\\begin{array} { l c l } { s _ { x } = \\displaystyle \\frac { \\mathrm { a b s m a x } ( x ) } { 2 ^ { b - 1 } - 1 } } \\\\ { x _ { q } = \\mathrm { r o u n d } ( x / s _ { x } ) } \\end{array}\n$$",
"text_format": "latex",
"bbox": [
433,
368,
563,
421
],
"page_idx": 27
},
{
"type": "text",
"text": "where $s _ { x }$ is the scaling factor, $x _ { q }$ is the quantization result and $b$ is the bit width. ",
"bbox": [
171,
426,
697,
441
],
"page_idx": 27
},
{
"type": "text",
"text": "Zeropoint Quantization is an asymmetric quantization that a range of $[ \\operatorname* { m i n } ( x ) , \\operatorname* { m a x } ( x ) ]$ is mapped to $[ - ( 2 ^ { b } - 1 ) , 2 ^ { b } - 1 ]$ . ",
"bbox": [
171,
450,
823,
479
],
"page_idx": 27
},
{
"type": "equation",
"img_path": "images/58a4ada37404e3b8263ea60b53f97cdd223dd744f7f92718c65486e80fcc85fa.jpg",
"text": "$$\n\\begin{array} { l } { s _ { x } = \\frac { \\operatorname* { m a x } ( x ) - \\operatorname* { m i n } ( x ) } { 2 ^ { b } - 2 } } \\\\ { z _ { x } = \\operatorname { r o u n d } ( \\operatorname* { m i n } ( x ) / s _ { x } ) + 2 ^ { b - 1 } - 1 } \\\\ { x _ { q } = \\operatorname { r o u n d } ( x / s _ { x } ) - z _ { x } } \\end{array}\n$$",
"text_format": "latex",
"bbox": [
372,
486,
625,
559
],
"page_idx": 27
},
{
"type": "text",
"text": "where $z _ { x }$ is the zero point. ",
"bbox": [
174,
564,
348,
579
],
"page_idx": 27
},
{
"type": "text",
"text": "Col/Row-wise Quantization Using a single scaling factor for the weight matrix often leads to more quantization errors because one single outlier leads to a decrease in the quantization precision of all other elements. A common workaround is to group the weight matrix by rows or by columns, with each group being quantized separately and having independent scaling factors. ",
"bbox": [
174,
588,
823,
645
],
"page_idx": 27
},
{
"type": "text",
"text": "B.8 QUANTIZATION SETTINGS ",
"text_level": 1,
"bbox": [
176,
661,
398,
676
],
"page_idx": 27
},
{
"type": "text",
"text": "Our goal is to save GPU memory as much as possible without hurting model performance. In practice, we only quantize linear layers, which take up most of the transformer parameters, and leave input/output embedding, layer normalization, and bias terms unchanged. At the quantization precision of INT4, two INT4 weights are compressed into one INT8 weight for saving GPU memory usage. Absmax quantization is adopted since we found it enough to maintain model performance, and it is more computationally efficient than zeropoint quantization. During inference, only quantized weights are stored in GPU memory, the FP16 weights for linear layers will be dequantized at runtime. ",
"bbox": [
173,
688,
825,
799
],
"page_idx": 27
},
{
"type": "text",
"text": "B.8.1 QUANTIZATION RESULTS AT SCALES ",
"text_level": 1,
"bbox": [
176,
815,
488,
830
],
"page_idx": 27
},
{
"type": "text",
"text": "GLM models at 110M to 10B scale are from GLM’s original paper(Du et al., 2022). Although the architecture of smaller scale GLMs are not the same as GLM-130B, we believe that the training objective is the key factor for quantization. Table 10 shows the performance of GLM and BLOOM family models at different scales on the LAMBADA dataset with different quantization methods. Almost all models maintain performance at INT8 precision. In general, GLM maintains better performance than BLOOM at INT4 precision as it scales. ",
"bbox": [
174,
839,
825,
924
],
"page_idx": 27
},
{
"type": "table",
"img_path": "images/203b62d8832946c6fd9cc21f6e5eb0f9c1368d2eac8ee7320127723bebe6f3c3.jpg",
"table_caption": [
"Table 10: Accuracy on LAMBADA dataset for GLM and BLOOM family at 100M to 176B scales across different quantization precision. "
],
"table_footnote": [],
"table_body": "<table><tr><td></td><td>BLOOM-560M</td><td>BLOOM-1B1</td><td>BLOOM-3B</td><td>BLOOM-7B</td><td>BLOOM-176B</td></tr><tr><td>Original</td><td>31.40%</td><td>40.68%</td><td>48.30%</td><td>54.91%</td><td>64.37%</td></tr><tr><td>Absmax INT8,col-wise</td><td>26.12%</td><td>40.69%</td><td>48.83%</td><td>55.33%</td><td>65.03%</td></tr><tr><td>Absmax INT4, col-wise</td><td>9.30%</td><td>17.43%</td><td>37.88%</td><td>38.04%</td><td>34.83%</td></tr><tr><td>Absmax INT4,row-wise</td><td>21.37%</td><td>35.80%</td><td>40.95%</td><td>46.75%</td><td>NaN</td></tr><tr><td>Zeropoint INT4,col-wise</td><td>11.51%</td><td>26.51%</td><td>41.65%</td><td>46.63%</td><td>48.26%</td></tr><tr><td>Zeropoint INT4, row-wise</td><td>24.95%</td><td>33.05%</td><td>43.63%</td><td>49.41%</td><td>NaN</td></tr><tr><td></td><td>GLM-110M</td><td>GLM-335M</td><td>GLM-2B</td><td>GLM-10B</td><td>GLM-130B</td></tr><tr><td>Original</td><td>29.36%</td><td>48.51%</td><td>68.19%</td><td>72.35%</td><td>80.21%</td></tr><tr><td>Absmax INT8,row-wise</td><td>29.25%</td><td>48.69%</td><td>68.12%</td><td>72.37%</td><td>80.21%</td></tr><tr><td>Absmax INT4, row-wise</td><td>3.26%</td><td>38.25%</td><td>62.62%</td><td>71.03%</td><td>79.47%</td></tr><tr><td>Zeropoint INT4,row-wise</td><td>5.45%</td><td>42.64%</td><td>64.74%</td><td>70.50%</td><td>80.63%</td></tr></table>",
"bbox": [
179,
137,
815,
318
],
"page_idx": 28
},
{
"type": "image",
"img_path": "images/faccb6b4f330b6e5a7cc8f4cf024e0967f7c913a5163fa0ef856dc8fcf6b3d89.jpg",
"image_caption": [
"Figure 14: Contribution attribution analysis on GLM objective and MIP training. We take GLM10B (English only) as an example in the ablation. Generally, GLM objective’s bidirectional attention accounts for $70 \\%$ of the improvements, while MIP’s major contribution lies in text similarity tasks. "
],
"image_footnote": [],
"bbox": [
171,
335,
820,
430
],
"page_idx": 28
},
{
"type": "text",
"text": "B.8.2 WEIGHT DISTRIBUTION ANALYSIS ",
"text_level": 1,
"bbox": [
176,
496,
473,
511
],
"page_idx": 28
},
{
"type": "text",
"text": "To achieve INT4 weight quantization, we analyze the weight value distribution of major linear layers in GLM-130B and a counterpart BLOOM-176B in a histogram (Cf. Figure 15). The horizontal axis denotes the weight value, and the vertical axis denotes the number of weights of such value in log scale. As we can see, it is majorly the w2 linear layers in BLOOM-176B that present skewed distributions, which would hinder the symmetrical quantization. On the contrary, GLM-130B’s w2 is well-shaped without many outliers and skewed distribution, and thus paces the way for its INT4 quantization with little performance loss. ",
"bbox": [
173,
522,
825,
621
],
"page_idx": 28
},
{
"type": "text",
"text": "B.9 ABLATION ON CONTRIBUTION ATTRIBUTION ",
"text_level": 1,
"bbox": [
174,
643,
531,
657
],
"page_idx": 28
},
{
"type": "text",
"text": "We analyze the contribution attribution of techniques leveraged in GLM-130B. A series of ablation studies have been presented in the paper, and for the convenience of reading, they were originally scattered around the whole passage. Here we summarize them here into the following list for readers’ reference: ",
"bbox": [
173,
671,
825,
727
],
"page_idx": 28
},
{
"type": "text",
"text": "• Ablation on ordinary PostLN and DeepNorm: Figure 3. \n• Ablation on Bidirectional/Unidirectional Attention: Figure 2 (LAMBADA), Table 16 (Conditional NLG), Figure 17 (SuperGLUE). \n• Ablation on Embedding Layer Gradient Shrink (EGS): Figure 4. \n• Ablation on Positional Encodings and FFN: Appendix B.3 Table 8. ",
"bbox": [
173,
734,
823,
813
],
"page_idx": 28
},
{
"type": "text",
"text": "Additionally, we conduct the following study to justify the contribution of the two most influential techniques–GLM Objective and Multi-task Instruction Pre-training (MIP)–used in GLM-130B. ",
"bbox": [
173,
819,
825,
847
],
"page_idx": 28
},
{
"type": "text",
"text": "GLM Objective and MIP. Ablating a 100B-scale LLM from scratch can be too expensive. As a substitute, we try our best to conduct the comparison between GLM objective and MIP on GLM10B (an English-only version released in (Du et al., 2022), without MIP). We additionally train a GLM-10B initialized from a middle-stage original checkpoint with MIP $( 5 \\% )$ to match the same training tokens of the original self-supervision-only GLM-130B. The MIP, this time, follows the exact dataset setting in T0 (Sanh et al., 2022) and the information extraction datasets in GLM-130B to allow the correct evaluation on some types of tasks (e.g., NLI). ",
"bbox": [
174,
853,
825,
924
],
"page_idx": 28
},
{
"type": "text",
"text": "",
"bbox": [
171,
103,
823,
132
],
"page_idx": 29
},
{
"type": "text",
"text": "Figure 14 shows the ablation results. On the 8 datasets we test, we find that the GLM objective is a major contributor to the improvement (from GLM (uni) to $\\mathrm { G L M } + \\mathrm { M I P }$ (bi)). For example, it accounts for $73 \\%$ improvement in LAMBADA and $90 \\%$ improvement in MMLU, which are very widely adopted challenging benchmarks for LLMs. As for MIP, on some datasets (e.g., WiC, ReCoRD, Hellaswag), MIP may even harm the performance. While for datasets related to text similarity and coreference (e.g., WSC, BoolQ, ANLI R1), MIP is the main contributor. It is likely because the text similarity and coreference challenges, which people usually construct intentionally to test language models’ ability, are seldom seen in the self-supervised corpus that makes up people’s daily written texts. Thus, MIP training mainly helps to bridge the gap between self-supervised pre-training and these tasks. ",
"bbox": [
173,
138,
825,
277
],
"page_idx": 29
},
{
"type": "text",
"text": "B.10 LESSONS LEARNED ",
"text_level": 1,
"bbox": [
174,
295,
362,
309
],
"page_idx": 29
},
{
"type": "text",
"text": "Lesson 1 (Bidirectional Architecture). The bidirectional-attention GLM is a strong architecture alternative, in addition to GPTs. ",
"bbox": [
186,
321,
807,
351
],
"page_idx": 29
},
{
"type": "text",
"text": "Lesson 2 (Platform-aware Configuration). Configure LLMs based on the cluster and parallel strategy used to squeeze hardware potential. ",
"bbox": [
187,
373,
810,
402
],
"page_idx": 29
},
{
"type": "text",
"text": "Lesson 3 (Improved Post-LN). Counter-stereotypically, DeepNorm, a type of Post-LN, is the option to stabilize GLM-130B. ",
"bbox": [
187,
426,
808,
454
],
"page_idx": 29
},
{
"type": "text",
"text": "Lesson 4 (Training Stability Categorization). Unexpected training instability that LLMs suffer from arouses systematically and numerically. ",
"bbox": [
184,
478,
808,
507
],
"page_idx": 29
},
{
"type": "text",
"text": "Lesson 5 (Systematical Instability: FP16). Though FP16 induces more instability, it enables training and inference on diverse platforms. ",
"bbox": [
186,
530,
808,
560
],
"page_idx": 29
},
{
"type": "text",
"text": "Lesson 6 (Numerical Instability: Embedding Gradient Shrink). Shrinking embedding layer’s gradient to its 0.1 can solve most numerical instability problems. ",
"bbox": [
187,
583,
807,
612
],
"page_idx": 29
},
{
"type": "text",
"text": "Lesson 7 (GLM’s INT4 Quantization Scaling Law). GLM has a unique INT4 weight quantization scaling law unobserved in GPT-style BLOOM. ",
"bbox": [
187,
636,
808,
665
],
"page_idx": 29
},
{
"type": "text",
"text": "Lesson 8 (Future Direction). To create powerful LLMs, the main focus can be on 1) more and better data, 2) better architectures and pre-training objectives, and 3) more sufficient training. ",
"bbox": [
189,
688,
810,
717
],
"page_idx": 29
},
{
"type": "image",
"img_path": "images/627d6cd4ded25aa893ca472ba392c2d4946af9b3fa7ca6451ae8daca8971bbe4.jpg",
"image_caption": [
"Figure 15: Weight value distribution of linear layers in GLM-130B (in orange, attn-dense, attn-qkv, glu-w1, glu-w2) and BLOOM-176B (in blue, attn-dense, attn-qkv, ffn-w1, ffn-w2)’s first 28 transformer layers. Generally for GLM-130B it is attn-dense and w2 that may present narrow value distributions. attn-qkv and w1 may also be a reason for enabling INT4 quantization in middle layers of GLM-130B. "
],
"image_footnote": [],
"bbox": [
210,
93,
782,
771
],
"page_idx": 30
},
{
"type": "text",
"text": "C DATASET AND EVALUATION DETAILS ",
"text_level": 1,
"bbox": [
174,
102,
519,
118
],
"page_idx": 31
},
{
"type": "text",
"text": "C.1 MULTI-TASK INSTRUCTION PRE-TRAINING (MIP) ",
"bbox": [
174,
145,
562,
159
],
"page_idx": 31
},
{
"type": "text",
"text": "Following practices in (Raffel et al., 2020; Wei et al., 2022a; Sanh et al., 2022; Aribandi et al., 2022), we include a number of prompted instruction datasets in GLM-130B’s MIP training, which accounts for $5 \\%$ of the training tokens. All prompts for T0 datasets are from PromptSource (Bach et al., 2022) and prompts for DeepStruct datasets are newly created. Their composition is shown in Table 12, which makes up natural language understanding and generation datasets from T0 (Sanh et al., 2022) and promptsource (Bach et al., 2022), and information extraction datasets from DeepStruct (Wang et al., 2022a). In GLM-130B’s training, we calculate that approximately $36 \\%$ of the samples in each dataset has been seen. ",
"bbox": [
174,
176,
825,
287
],
"page_idx": 31
},
{
"type": "text",
"text": "T0 originally splits datasets for 1) multi-task prompted training and 2) zero-shot task transfer two sections. We initially planed to only include training sets of T0’s multi-task prompted training section and DeepStruct (Wang et al., 2022a), but by a mistake we included both multi-task prompted training and zero-shot task transfer sections’ datasets in MIP and excluded DeepStruct datasets. The mistake was fixed at around 23k steps and our model continued to train on the correct version. ",
"bbox": [
174,
295,
825,
364
],
"page_idx": 31
},
{
"type": "text",
"text": "Natural Language Understanding and Generation. We adopt datasets and corresponding prompts from promptsource (Bach et al., 2022). For all prompted samples in each dataset, we set a truncation of maximal 10,0000 samples per dataset and combine them together as the MIP dataset. Details of the prompted samples and datasets are provided in promptsource’s GitHub repository8. ",
"bbox": [
174,
372,
825,
428
],
"page_idx": 31
},
{
"type": "text",
"text": "Information Extraction. Based on the datasets from DeepStruct (Wang et al., 2022a), a multitask language model pre-training approach for information extraction tasks, we create instructions and prompts for part of its datasets (as is shown in Table 12). We reformulate information extraction tasks into instruction tuning formats to allow zero-shot generalization to new extraction schema. For all prompted samples in each dataset, we set a truncation of maximal 20,0000 samples per dataset as there are fewer information extraction datasets than common language understanding and generation ones. For KELM (Agarwal et al., 2021) and PropBank (Kingsbury & Palmer) datasets, since their original size is gigantic, we sample 50,0000 samples for each of them from their prompted samples. ",
"bbox": [
174,
434,
825,
546
],
"page_idx": 31
},
{
"type": "text",
"text": "C.2 DATA AND PROMPTS IN MIP FOR DEEPSTRUCT ",
"text_level": 1,
"bbox": [
174,
578,
544,
593
],
"page_idx": 31
},
{
"type": "text",
"text": "Prompts and instructions for all datasets in DeepStruct (Wang et al., 2022a) are newly created by authors manually. The introduction, task description, and full prompts for each dataset are attached in the following sections. To allow template infilling, all prompts are written into Jinja9 templates. When a dataset sample is provided in our format, Joinja engine will render it into a prompted sample with instruction. ",
"bbox": [
174,
609,
825,
680
],
"page_idx": 31
},
{
"type": "text",
"text": "A more systematic evaluation on GLM-130B’s information extraction ability is left for a future work, as the concentration in this work is on the training and designing details of an LLM. ",
"bbox": [
174,
686,
823,
715
],
"page_idx": 31
},
{
"type": "text",
"text": "C.2.1 DIALOGUE STATE TRACKING ",
"text_level": 1,
"bbox": [
176,
746,
434,
761
],
"page_idx": 31
},
{
"type": "text",
"text": "We adopt Multiwoz 2.1 (Eric et al., 2020) dialogue state tracking dataset. The dataset is reformulated into two tasks, each with one prompt correspondingly: ",
"bbox": [
173,
776,
825,
806
],
"page_idx": 31
},
{
"type": "text",
"text": "• Dialogue state tracking: which asks the model to extract information from dialogues given a list of certain slots, e.g., taxi_arrival_time and destination. ",
"bbox": [
174,
813,
820,
840
],
"page_idx": 31
},
{
"type": "text",
"text": "• Slot filling: which model should fill in one provided slot and identify situations without answer. ",
"bbox": [
176,
843,
815,
857
],
"page_idx": 31
},
{
"type": "text",
"text": "(Dialogue State Tracking, Prompt 0) ",
"text_level": 1,
"bbox": [
178,
103,
433,
118
],
"page_idx": 32
},
{
"type": "text",
"text": "Read the dialogues between \"[User]\" and \"[Agent]\", ",
"bbox": [
178,
125,
619,
138
],
"page_idx": 32
},
{
"type": "text",
"text": "{{text}} ",
"bbox": [
181,
150,
250,
164
],
"page_idx": 32
},
{
"type": "text",
"text": "identify and extract the information related to the following categories (from top to down): ",
"bbox": [
178,
175,
818,
200
],
"page_idx": 32
},
{
"type": "text",
"text": "- {{allowed_relations | join(\"\\n- \")}} ",
"bbox": [
179,
212,
514,
227
],
"page_idx": 32
},
{
"type": "text",
"text": "in the form of \"( [User] ; Y ; Z )\": ||| {{format_triple(relations, allowed_relations) | join(\" \")}} ",
"bbox": [
179,
238,
767,
265
],
"page_idx": 32
},
{
"type": "text",
"text": "(Slot Filling, Prompt 0) ",
"text_level": 1,
"bbox": [
178,
311,
343,
327
],
"page_idx": 32
},
{
"type": "text",
"text": "Given the following dialogue: ",
"bbox": [
179,
334,
434,
348
],
"page_idx": 32
},
{
"type": "text",
"text": "{{text}} ",
"bbox": [
181,
359,
250,
372
],
"page_idx": 32
},
{
"type": "text",
"text": "please answer the question: has \"[User]\" mentioned \"{{allowed_relations[ relation_idx].split(': ') | join(\"'s \")}}\" ? If yes, please write down the answer from the dialogue; if not, please answer \"not given\". ",
"bbox": [
178,
385,
815,
422
],
"page_idx": 32
},
{
"type": "text",
"text": "Answer: ||| {% if filter_relation(relations, allowed_relations[ relation_idx]).__len__() $>$ 0 %}{{filter_relation(relations, allowed_relations[relation_idx])[0]['tail']}}{% else %}not given{% endif %} ",
"bbox": [
178,
435,
815,
484
],
"page_idx": 32
},
{
"type": "text",
"text": "C.2.2 EVENT EXTRACTION ",
"text_level": 1,
"bbox": [
174,
541,
379,
556
],
"page_idx": 32
},
{
"type": "text",
"text": "We adopt ACE05 (Walker & Consortium, 2005) event extraction datasets following the setting in (Wadden et al., 2019). The dataset is reformulated into two tasks with three prompts as follows: ",
"bbox": [
173,
579,
825,
607
],
"page_idx": 32
},
{
"type": "text",
"text": "• Event Argument Extraction: given a trigger in text and a list of its argument roles, the model is asked to extract the arguments from the provided text. ",
"bbox": [
173,
614,
823,
642
],
"page_idx": 32
},
{
"type": "text",
"text": "• Argument Identification: given a trigger and a certain argument role, the model is asked to extract the argument if it exists in the provided text; otherwise, the model should generate nothing. ",
"bbox": [
174,
645,
823,
672
],
"page_idx": 32
},
{
"type": "text",
"text": "(Event Argument Extraction, Prompt 0) ",
"text_level": 1,
"bbox": [
178,
710,
459,
726
],
"page_idx": 32
},
{
"type": "text",
"text": "For the task of \"Event Extraction\", given a trigger one should extract its related arguments conditioned on a list of potential roles. ",
"bbox": [
178,
733,
797,
758
],
"page_idx": 32
},
{
"type": "text",
"text": "Given the following list of roles: ",
"bbox": [
179,
770,
478,
784
],
"page_idx": 32
},
{
"type": "text",
"text": "- {{shuffle(allowed_arguments[trigger['event_type']].values()) | join(\"\\ n- \")}} ",
"bbox": [
173,
795,
813,
821
],
"page_idx": 32
},
{
"type": "text",
"text": "extract related arguments of the trigger \"{{trigger['text']}} ({{ allowed_triggers[trigger['event_type']]}})\" in the following sentence: ",
"bbox": [
176,
833,
795,
859
],
"page_idx": 32
},
{
"type": "text",
"text": "{{text}} ",
"bbox": [
181,
871,
250,
883
],
"page_idx": 32
},
{
"type": "text",
"text": "Extractions: ||| {{format_triple(relations, \"\") | join(\" \")}} ",
"bbox": [
178,
896,
715,
910
],
"page_idx": 32
},
{
"type": "text",
"text": "(Event Argument Extraction, Prompt 1) ",
"text_level": 1,
"bbox": [
179,
103,
459,
118
],
"page_idx": 33
},
{
"type": "text",
"text": "TEST ",
"bbox": [
179,
126,
215,
137
],
"page_idx": 33
},
{
"type": "text",
"text": "1. (Event Extraction) {{text}} ",
"bbox": [
181,
150,
442,
162
],
"page_idx": 33
},
{
"type": "text",
"text": "Please write down ALL event arguments related to the trigger \"{{trigger ['text']}} ({{allowed_triggers[trigger['event_type']]}})\" marked with \"[ ]\", given the following categories: ",
"bbox": [
179,
175,
815,
213
],
"page_idx": 33
},
{
"type": "text",
"text": "- {{shuffle(allowed_arguments[trigger['event_type']].values()) | join(\"\\ n- \")}} ",
"bbox": [
176,
226,
812,
252
],
"page_idx": 33
},
{
"type": "text",
"text": "Answer: ||| {{format_triple(relations, \"\") | join(\" \")}} ",
"bbox": [
179,
262,
673,
276
],
"page_idx": 33
},
{
"type": "text",
"text": "(Argument Identification, Prompt 0) ",
"text_level": 1,
"bbox": [
179,
342,
433,
357
],
"page_idx": 33
},
{
"type": "text",
"text": "Let extract event related arguments! ",
"bbox": [
183,
364,
495,
377
],
"page_idx": 33
},
{
"type": "text",
"text": "In the following passage, an argument with the type \"{{query_arg}}\" is related to the event trigger \"{{trigger['text']}} ({{allowed_triggers[ trigger['event_type']]}})\": ",
"bbox": [
179,
390,
797,
428
],
"page_idx": 33
},
{
"type": "text",
"text": "{{text}} ",
"bbox": [
181,
439,
250,
452
],
"page_idx": 33
},
{
"type": "text",
"text": "The argument should be (copy from the context if you find it; if not, do not generate): ||| {{filter_type(relations, query_arg) | join(\" \")}} ",
"bbox": [
178,
465,
815,
491
],
"page_idx": 33
},
{
"type": "text",
"text": "C.2.3 JOINT ENTITY AND RELATION EXTRACTION ",
"text_level": 1,
"bbox": [
173,
565,
539,
580
],
"page_idx": 33
},
{
"type": "text",
"text": "Joint entity and relation extraction aims to recognize named entities in a piece of text and judge the relationships between them. It is closely related to knowledge acquisition, where the ultimate target is to structuring the unstructured web contents into knowledge triples (e.g., (London, capital_of, Britain)). The task can be formulated into either a pipeline framework (a combination of named entity recognition and relation extraction), or end-to-end training. ",
"bbox": [
173,
609,
825,
680
],
"page_idx": 33
},
{
"type": "text",
"text": "In this work, we adopt three classical joint entity and relation extraction datasets: CoNLL04 (Roth & Yih, 2004), NYT (Riedel et al., 2010), and ACE2005 (Walker & Consortium, 2005). In GLM-130B, we follow (Wang et al., 2022a) to formulate such challenges into sequence-to-sequence generation, where our inputs are raw texts and outputs are triples. We only conduct relation-related tasks for these datasets here, and leave the entity-related ones to the named entity recognition section. ",
"bbox": [
174,
686,
825,
756
],
"page_idx": 33
},
{
"type": "text",
"text": "• Relation Extraction: here we extract knowledge triples consisting of “head entity”, “relation”, and “tail entity”, given a list of relation candidates. For example, given the input “In Kunming the 800-some faculty and student established the National Southwestern Associated University.”, the model output could be (National Southwestern Associated University, location of formation, Kunming). \n• Conditional Relation Extraction: given a single relation candidate, judge if the input text contains the relation. If so, extraction all related triples; if not, do not generate. \n• Knowledge Slot Filling: assign a certain entity from text, and ask the model to extract all triples that takes the entity as the head. \n• Relation Classification: given two entities from texts, ask the model to judge the relation between them based on a list of candidate relations. ",
"bbox": [
171,
763,
826,
924
],
"page_idx": 33
},
{
"type": "text",
"text": "(Relation Extraction, Prompt 0) ",
"text_level": 1,
"bbox": [
178,
103,
403,
117
],
"page_idx": 34
},
{
"type": "text",
"text": "Can you figure out all triples regarding the relations of \"{{shuffle( allowed_relations) | join('\", \"')}}\" from the sentence? List them in the shape of \"( X ; Y ; Z )\": ",
"bbox": [
178,
126,
816,
162
],
"page_idx": 34
},
{
"type": "text",
"text": "{{text}} $= >$ ||| {{format_triple(relations, allowed_relations) | join(\" \")}} ",
"bbox": [
179,
175,
800,
200
],
"page_idx": 34
},
{
"type": "text",
"text": "(Conditional Relation Extraction, Prompt 0) ",
"text_level": 1,
"bbox": [
179,
222,
490,
237
],
"page_idx": 34
},
{
"type": "text",
"text": "Conditioned on the relation \"{{allowed_relations[relation_idx]}}\", what knowledge triples can be extracted from: ",
"bbox": [
174,
244,
803,
270
],
"page_idx": 34
},
{
"type": "text",
"text": "{{text}} ",
"bbox": [
181,
281,
250,
295
],
"page_idx": 34
},
{
"type": "text",
"text": "Please write them down here: ||| {{format_triple(relations, [ allowed_relations[relation_idx]]) | join(\" \")}} ",
"bbox": [
178,
308,
717,
333
],
"page_idx": 34
},
{
"type": "text",
"text": "(Knowledge Slot Filling, Prompt 0) ",
"text_level": 1,
"bbox": [
179,
353,
423,
369
],
"page_idx": 34
},
{
"type": "text",
"text": "{% if entity_types.__len__() > 0 %} In the sentence ",
"bbox": [
179,
376,
488,
401
],
"page_idx": 34
},
{
"type": "text",
"text": "{{text}} ",
"bbox": [
181,
412,
250,
426
],
"page_idx": 34
},
{
"type": "text",
"text": "the $\\mathrm { ~ ~ { ~ X ~ } ~ } =$ \"{{entities[entity_idx]}}\" is an entity of the type \"{{ entity_types[entity_idx]}}\". Extract all possible triples contains \"{{ entities[entity_idx]}}\" in the form of ( X ; Y ; Z ), given the following candidate properties Y: ",
"bbox": [
178,
439,
797,
489
],
"page_idx": 34
},
{
"type": "text",
"text": "{% for r in allowed_relations %}- {{r}} \n{% endfor %} \nAnswer: ||| {% for r in relations %}{% if r['head'][0] $= =$ entities[ \nentity_idx] %}{{format_triple([r], allowed_relations) | join(\" \")}}{% \nendif %}{% endfor %} \n{% endif %} ",
"bbox": [
178,
501,
789,
577
],
"page_idx": 34
},
{
"type": "text",
"text": "(Relation Classification, Prompt 0) ",
"text_level": 1,
"bbox": [
179,
598,
421,
613
],
"page_idx": 34
},
{
"type": "text",
"text": "QUIZ ",
"bbox": [
178,
621,
215,
632
],
"page_idx": 34
},
{
"type": "text",
"text": "1. Given the candidate relations: ",
"bbox": [
181,
645,
470,
659
],
"page_idx": 34
},
{
"type": "text",
"text": "- {{shuffle(allowed_relations) | join(\"\\n- \")}} what is the relation between \"{{relations[triple_idx]['head'][0]}}\" and \"{{relations[triple_idx]['tail'][0]}}\" in the following sentence? ",
"bbox": [
179,
670,
593,
684
],
"page_idx": 34
},
{
"type": "text",
"text": "",
"bbox": [
176,
695,
807,
722
],
"page_idx": 34
},
{
"type": "text",
"text": "{{text}} ",
"bbox": [
181,
733,
250,
747
],
"page_idx": 34
},
{
"type": "text",
"text": "Answer: ||| {{relations[triple_idx]['relation']}} ",
"bbox": [
178,
758,
609,
773
],
"page_idx": 34
},
{
"type": "text",
"text": "Nevertheless, existing joint entity and relation extraction datasets have very limited relation schema. For example, CoNLL04 only contains five different relations; the most diverse NYT dataset contains 24 Freebase predicates. To allow the model to capture a diverse range of potential verbalized predicates, we extend the task with automatically generated knowledge-text aligned data from KELM (Agarwal et al., 2021). We do not include other distantly supervised dataset (e.g., T-Rex (Elsahar et al., 2018)) since they can be extremely noisy. ",
"bbox": [
174,
791,
825,
875
],
"page_idx": 34
},
{
"type": "text",
"text": "For KELM data, since it is based on the full Wikidata schema (which contains too many relations to be enumerated), we create two KELM-specific prompts for the task of Relation Extraction and Knowledge Slot Filling: ",
"bbox": [
176,
881,
823,
924
],
"page_idx": 34
},
{
"type": "text",
"text": "(Relation Extraction, Prompt 1, KELM ONLY) ",
"text_level": 1,
"bbox": [
178,
102,
509,
118
],
"page_idx": 35
},
{
"type": "text",
"text": "{# kelm #} ",
"bbox": [
179,
126,
266,
137
],
"page_idx": 35
},
{
"type": "text",
"text": "Can you figure out all knowledge triples regarding whole Wikidata properties from the sentence? List them in the shape of \"( X ; Y ; Z )\": ",
"bbox": [
184,
142,
812,
162
],
"page_idx": 35
},
{
"type": "text",
"text": "{{text}} $= >$ ||| {{format_triple(relations, \"\") | join(\" \")}} ",
"bbox": [
179,
175,
707,
189
],
"page_idx": 35
},
{
"type": "text",
"text": "(Knowledge Slot Filling, Prompt 1, KELM ONLY) ",
"text_level": 1,
"bbox": [
179,
218,
531,
234
],
"page_idx": 35
},
{
"type": "text",
"text": "{# kelm #} \nGiven the entity \"{{entities[entity_idx]}}\" marked with \"[\" and \"]\" in \nthe context: ",
"bbox": [
178,
241,
802,
279
],
"page_idx": 35
},
{
"type": "text",
"text": "{{text}} ",
"bbox": [
181,
291,
250,
304
],
"page_idx": 35
},
{
"type": "text",
"text": "please list all triples related to it (do not generate if there is no answer): ||| {% for r in relations %}{% if r['head'][0] $= =$ entities[ entity_idx] %}{{format_triple([r], \"\") | join(\" \")}}{% endif %}{% endfor %} ",
"bbox": [
178,
318,
815,
367
],
"page_idx": 35
},
{
"type": "text",
"text": "C.2.4 NAMED ENTITY RECOGNITION ",
"text_level": 1,
"bbox": [
178,
405,
446,
420
],
"page_idx": 35
},
{
"type": "text",
"text": "Named entity recognition is a task which targets identifying named entities from raw text corpus and assign them with proper entity types. For example, in the sentence “In 1916 GM was reincorporated in Detroit as \"General Motors Corporation\".”, General Motors Corporation could be of entity type organization. We design two different types of tasks based on named entity recognition datasets CoNLL03 (Sang & Meulder, 2003), OntoNotes 5.0 (Pradhan et al., 2013), and GENIA (Ohta et al., 2002). We also include named entity recognition sub-tasks from joint entity and relation datasets. ",
"bbox": [
173,
434,
825,
532
],
"page_idx": 35
},
{
"type": "text",
"text": "• Named Entity Recognition: given a certain list of possible entity types (e.g., location, person, organization), extract all related entities from the provided text content. ",
"bbox": [
173,
540,
823,
568
],
"page_idx": 35
},
{
"type": "text",
"text": "• Entity Typing: entity typing is one of the important derivative tasks from named entity recognition. It aims to classify the correct type of an entity mention (without entity types), and is often appended to the entity mention extraction as post-processing. ",
"bbox": [
174,
570,
825,
612
],
"page_idx": 35
},
{
"type": "text",
"text": "(Named Entity Recognition, Prompt 0) ",
"text_level": 1,
"bbox": [
178,
632,
449,
647
],
"page_idx": 35
},
{
"type": "text",
"text": "Given the following list of entity types: ",
"bbox": [
179,
654,
539,
667
],
"page_idx": 35
},
{
"type": "text",
"text": "$\\begin{array} { r l } { \\mathrm { ~ Z ~ } } & { { } = } \\end{array}$ {{shuffle(allowed_types) | join(\", \")}} ",
"bbox": [
174,
679,
558,
693
],
"page_idx": 35
},
{
"type": "text",
"text": "please extract all mentioned entities from left to right in the sentence , in the form of \"( X ; instance of ; Z )\". ",
"bbox": [
174,
704,
813,
729
],
"page_idx": 35
},
{
"type": "text",
"text": "{{text}} $= >$ ||| {% for entity, type in zip(entities, entity_types) %}( {{entity}} ; instance of ; {{type}} ) {% endfor %} ",
"bbox": [
176,
742,
797,
768
],
"page_idx": 35
},
{
"type": "text",
"text": "(Entity Typing, Prompt 0) ",
"text_level": 1,
"bbox": [
178,
797,
361,
814
],
"page_idx": 35
},
{
"type": "text",
"text": "Extract all entity mentioned in the sentence with entity type \"{{ allowed_types[type_idx]}}\" in the form of \"( X ; instance of ; {{ allowed_types[type_idx]}} )\" ",
"bbox": [
181,
820,
751,
859
],
"page_idx": 35
},
{
"type": "text",
"text": "{{text}} $= >$ ||| {% for entity, type in zip(entities, entity_types) %}{% if type $= =$ allowed_types[type_idx] %}( {{entity}} ; instance of ; {{type }} ) {% endif %}{% endfor %} ",
"bbox": [
179,
871,
815,
909
],
"page_idx": 35
},
{
"type": "text",
"text": "(Entity Typing, Prompt 1) ",
"text_level": 1,
"bbox": [
178,
103,
361,
118
],
"page_idx": 36
},
{
"type": "text",
"text": "List all \"{{allowed_types[type_idx]}}\" entities appeared in the following passage, joined by \" | \": ",
"bbox": [
179,
125,
736,
151
],
"page_idx": 36
},
{
"type": "text",
"text": "{{text}} $= >$ ||| {{filter_type(zip(entities, entity_types), allowed_types [type_idx]) | join(\" | \")}} ",
"bbox": [
179,
162,
818,
189
],
"page_idx": 36
},
{
"type": "text",
"text": "(Entity Typing, Prompt 2) ",
"text_level": 1,
"bbox": [
179,
222,
361,
237
],
"page_idx": 36
},
{
"type": "text",
"text": "{% if entity_types.__len__() > 0 %} ",
"bbox": [
183,
243,
486,
256
],
"page_idx": 36
},
{
"type": "text",
"text": "Based on the list of potential entity types and ignore their order: ",
"bbox": [
178,
257,
767,
270
],
"page_idx": 36
},
{
"type": "text",
"text": "- {{shuffle(allowed_types) | join(\"\\n- \")}} ",
"bbox": [
178,
280,
558,
295
],
"page_idx": 36
},
{
"type": "text",
"text": "the entity \"{{entities[entity_idx]}}\" marked with \"[\" and \"]\" in the following sentence: ",
"bbox": [
178,
306,
779,
332
],
"page_idx": 36
},
{
"type": "text",
"text": "{{text}} ",
"bbox": [
181,
344,
250,
357
],
"page_idx": 36
},
{
"type": "text",
"text": "belongs to ||| {{entity_types[entity_idx]}} {% endif %} ",
"bbox": [
178,
369,
557,
395
],
"page_idx": 36
},
{
"type": "text",
"text": "C.2.5 RELATION CLASSIFICATION",
"text_level": 1,
"bbox": [
176,
435,
424,
450
],
"page_idx": 36
},
{
"type": "text",
"text": "Relation classification is a fundamental task in information extraction, which identifies the relationships from a list of candidates between two given entities. The problem is a long standing one as it suffers from outrageous cost of data labeling, since manual labeling on knowledge-intensive tasks requires educated annotators that charges high. A de facto data creation method in relation extraction relies on distant supervision, which aligns existing knowledge triples in knowledge bases to text contents automatically, and assume that such alignments are correct in certain conditions. Here we only include TacRED (Zhang et al., 2017) dataset and create several different tasks based on it. ",
"bbox": [
173,
465,
825,
563
],
"page_idx": 36
},
{
"type": "text",
"text": "• Relation Classification: the most traditional task formulation. Given two entities from text and classify their relation from a list of candidates. The form can be either answering the relation directly or in the form of a triple (similar to relation extraction). ",
"bbox": [
174,
570,
826,
613
],
"page_idx": 36
},
{
"type": "text",
"text": "• Knowledge Slot Filling: change the task into given head entity and relation, to identify whether the tail entity exists in the input text. If not, generate nothing. ",
"bbox": [
173,
614,
821,
643
],
"page_idx": 36
},
{
"type": "text",
"text": "• Yes or No Question: turn the problem into a task similar to natural language inference. For example, given the sentence “The series focuses on the life of Carnie Wilson, daughter of Brian Wilson, founder of the Beach Boys.”, the model will be asked to judge the correctness of a triple such as Carnie Wilson, father, Brian Wilson by answering “yes” or “no”. ",
"bbox": [
174,
645,
825,
702
],
"page_idx": 36
},
{
"type": "text",
"text": "(Relation Classification, Prompt 0) ",
"text_level": 1,
"bbox": [
179,
723,
421,
738
],
"page_idx": 36
},
{
"type": "text",
"text": "{% if entity_types.__len__() > 0 %} Given the following categories of relations: ",
"bbox": [
178,
746,
566,
770
],
"page_idx": 36
},
{
"type": "text",
"text": "- {{shuffle(allowed_relations.values()) | join(\"\\n- \")}} ",
"bbox": [
179,
782,
671,
796
],
"page_idx": 36
},
{
"type": "text",
"text": "predict the relation between \"{{relations[0]['head']}}\" and \"{{relations [0]['tail']}}\" in the following sentence: ",
"bbox": [
176,
808,
812,
833
],
"page_idx": 36
},
{
"type": "text",
"text": "{{text}} ",
"bbox": [
181,
845,
250,
858
],
"page_idx": 36
},
{
"type": "text",
"text": "The relation should be : ||| {{allowed_relations[relations[0]['relation \n']]}} \n{% endif %} ",
"bbox": [
179,
871,
808,
909
],
"page_idx": 36
},
{
"type": "text",
"text": "(Relation Classification, Prompt 1) ",
"text_level": 1,
"bbox": [
178,
103,
421,
117
],
"page_idx": 37
},
{
"type": "text",
"text": "1. (Relation Extraction) Answer the relation between entities in the form of \"( X ; Y ; Z )\": ",
"bbox": [
179,
126,
781,
150
],
"page_idx": 37
},
{
"type": "text",
"text": "{{text}} ",
"bbox": [
181,
162,
250,
176
],
"page_idx": 37
},
{
"type": "text",
"text": "The relation between \"{{relations[0]['head']}}\" and \"{{relations[0][' tail']}}\" is: ||| ( {{relations[0]['head']}} ; {{allowed_relations[ relations[0]['relation']]}} ; {{relations[0]['tail']}} ) ",
"bbox": [
179,
188,
784,
227
],
"page_idx": 37
},
{
"type": "text",
"text": "(Knowledge Slot Filling, Prompt 0) ",
"text_level": 1,
"bbox": [
179,
252,
424,
267
],
"page_idx": 37
},
{
"type": "text",
"text": "Based on the sentence provided below, infer the missing argument asked by the question: ",
"bbox": [
178,
273,
800,
299
],
"page_idx": 37
},
{
"type": "text",
"text": "{{text}} ",
"bbox": [
181,
311,
250,
324
],
"page_idx": 37
},
{
"type": "text",
"text": "Question: What/Who/Where is \"{{relations[0]['head']}}\" {{ allowed_relations[relations[0]['relation']]}} ? ",
"bbox": [
178,
337,
683,
363
],
"page_idx": 37
},
{
"type": "text",
"text": "Answer: ||| {{relations[0]['tail']}} ",
"bbox": [
179,
375,
496,
388
],
"page_idx": 37
},
{
"type": "text",
"text": "C.2.6 SEMANTIC ROLE LABELING ",
"text_level": 1,
"bbox": [
176,
420,
428,
435
],
"page_idx": 37
},
{
"type": "text",
"text": "Semantic role labeling is a long-standing information task that wants to identify the semantic arguments related to a given predicate in a sentence. For example, in the sentence “Grant was employed at IBM for 21 years where she held several executive positions.” and the predicate “employed” in it, semantic role labeling identifies the Grant as the subject and IBM as the second object. ",
"bbox": [
173,
446,
826,
503
],
"page_idx": 37
},
{
"type": "text",
"text": "We create two different tasks based on semantic role labelling datasets CoNLL05 (Carreras & Màrquez, 2005), CoNLL12 (Pradhan et al., 2013), and PropBank (Kingsbury & Palmer). ",
"bbox": [
174,
510,
821,
539
],
"page_idx": 37
},
{
"type": "text",
"text": "• Semantic Role Labeling: the traditional task form, where a verb (i.e., predicate) is annotated in text and the model is asked to generate related semantic roles. \n• Semantic Role Filling: given a verb and and a potential semantic role, the model is asked to judge whether the role exists in the sentence and generate it. \n• Predicate Recognition: given a segment of a sentence and its corresponding semantic role, identify which verb it is related to. ",
"bbox": [
173,
545,
826,
635
],
"page_idx": 37
},
{
"type": "text",
"text": "(Semantic Role Labeling, Prompt 0) ",
"text_level": 1,
"bbox": [
179,
650,
429,
665
],
"page_idx": 37
},
{
"type": "text",
"text": "Provided with the target verb \"{{verb}}\" marked with \"[\" and \"]\" in the following sentence, find out its \"{{allowed_types[type_idx]}}\": ",
"bbox": [
178,
671,
808,
698
],
"page_idx": 37
},
{
"type": "text",
"text": "{{text}} $= >$ ||| {% for entity, type in zip(entities, entity_types) %}{% if type $= =$ allowed_types[type_idx] %}{{entity}}{% endif %}{% endfor %} ",
"bbox": [
179,
709,
805,
736
],
"page_idx": 37
},
{
"type": "text",
"text": "(Semantic Role Filling, Prompt 0) ",
"text_level": 1,
"bbox": [
179,
761,
415,
776
],
"page_idx": 37
},
{
"type": "text",
"text": "Given the following list of argument types: ",
"bbox": [
178,
782,
558,
796
],
"page_idx": 37
},
{
"type": "text",
"text": "$\\begin{array} { r l } { \\mathrm { ~ Z ~ } } & { { } = } \\end{array}$ {{allowed_types | join(\", \")}} ",
"bbox": [
179,
808,
478,
821
],
"page_idx": 37
},
{
"type": "text",
"text": "find out all arguments related to verb \"{{verb}}\" mentioned in the following sentence from left to right, in the form of \"( X ; instance of ; Z )\". ",
"bbox": [
178,
833,
813,
871
],
"page_idx": 37
},
{
"type": "text",
"text": "$\\begin{array}{c} \\{ \\ \\begin{array} { c } { { \\mathrm { ~ ( ~ t ~ e ~ x t ~ ) ~ } \\} } \\end{array} \\} \\begin{array} { = } { > } \\end{array} \\begin{array} { | } { | \\ | } \\end{array} \\begin{array} { } \\end{array} } \\end{array}$ {% for entity, type in zip(entities, entity_types) %}( {{entity}} ; argument type ; {{type}} ) {% endfor %} ",
"bbox": [
179,
883,
799,
910
],
"page_idx": 37
},
{
"type": "text",
"text": "(Predicate Recognition, Prompt 0) ",
"text_level": 1,
"bbox": [
179,
103,
418,
118
],
"page_idx": 38
},
{
"type": "text",
"text": "FINAL EXAM ",
"bbox": [
178,
126,
269,
137
],
"page_idx": 38
},
{
"type": "text",
"text": "1. Based on the fact that \"{{entities[entity_idx]}}\" is a \"{{ entity_types[entity_idx]}}\", which verb in the following sentence should it related to? ",
"bbox": [
178,
150,
816,
188
],
"page_idx": 38
},
{
"type": "text",
"text": "{{text}} ",
"bbox": [
181,
200,
250,
213
],
"page_idx": 38
},
{
"type": "text",
"text": "Answer: ||| {{verb}} ",
"bbox": [
178,
226,
354,
239
],
"page_idx": 38
},
{
"type": "text",
"text": "C.3 RESULT SOURCES FOR GPT-3, BLOOM-176B, AND OPT-175B ",
"bbox": [
176,
266,
663,
281
],
"page_idx": 38
},
{
"type": "text",
"text": "Here we describe the result sources for GPT-3, BLOOM-176B, and OPT-175B. Other LLMs we may compare are mostly completely closed-sourced; thus, their results are all taken from existing preprints, publications, or the results stored in BIG-bench repository10. ",
"bbox": [
174,
292,
825,
335
],
"page_idx": 38
},
{
"type": "text",
"text": "For GPT-3, while most of its results in this paper are taken from existing literature if not specified, the rest were acquired via our own requesting OpenAI Danvici API are explicitly mentioned. For BLOOM-176B and OPT-175B, if without specific annotation, their results are: ",
"bbox": [
174,
342,
823,
385
],
"page_idx": 38
},
{
"type": "text",
"text": "• Taken from the OPT paper (Zhang et al., 2022). • Taken from the EAI-Eval BigScience Arch&Scale - Google Sheet11. • Taken from BigScience evaluation results repository in Huggingface Datasets1 2 ",
"bbox": [
173,
391,
714,
439
],
"page_idx": 38
},
{
"type": "text",
"text": "Specifically, we cannot evaluate OPT-175B by ourselves as we are still not officially granted the checkpoint, though we have sent several applications in the past few months. ",
"bbox": [
173,
445,
820,
474
],
"page_idx": 38
},
{
"type": "text",
"text": "C.4 PILE TEST-SET EVALUATION ",
"text_level": 1,
"bbox": [
176,
492,
415,
506
],
"page_idx": 38
},
{
"type": "text",
"text": "Pile evalution (Gao et al., 2020) is a comprehensive language modeling benchmark which originally includes 22 different text datasets from diverse domains. We report our results over a part of 18 datasets with previously reported baseline results (Lieber et al., 2021). Different from traditional language modeling benchmarks, Pile evaluation report the BPB (bits-per-byte) perplexity to avoid the mismatch comparison between models with different vocabularies. Because in general, language models with a larger vocabulary will be favored in perplexity comparison if not restricted. In the evaluation, we strictly follow the setting in (Gao et al., 2020), leveraging [gMASK] and a context-length of 1,024 with bidirectional attention, and the rest 1024 tokens to calculate BPB in an autoregressive manner. The weighted average BPB are calculated based on each shared dataset’s ratio in Pile training-set (Gao et al., 2020). ",
"bbox": [
174,
517,
504,
781
],
"page_idx": 38
},
{
"type": "table",
"img_path": "images/f74959fcfdf1079439c325e662cbef5fd36f16e7a859438c03b6c48905121c26.jpg",
"table_caption": [
"Table 13: GLM-130B and its similar-sized LLMs’ BPB results on Pile test-set. "
],
"table_footnote": [],
"table_body": "<table><tr><td colspan=\"4\">Jurassic-1 GPT-3 GLM-130B</td></tr><tr><td>dm_mathematics</td><td>1.040</td><td>1.370</td><td>0.786</td></tr><tr><td>ubuntu_irc</td><td>0.857</td><td>0.946</td><td>0.977</td></tr><tr><td>opensubtitles</td><td>0.879</td><td>0.932</td><td>0.889</td></tr><tr><td>hackernews</td><td>0.869</td><td>0.975</td><td>0.873</td></tr><tr><td>books33</td><td>0.835</td><td>0.802</td><td>0.803</td></tr><tr><td>pile_cc</td><td>0.669</td><td>0.698</td><td>0.771</td></tr><tr><td>philpapers</td><td>0.741</td><td>0.723</td><td>0.766</td></tr><tr><td>gutenberg_pg_19</td><td>0.890</td><td>1.160</td><td>0.821</td></tr><tr><td>arxiv</td><td>0.680</td><td>0.838</td><td>0.570</td></tr><tr><td>stackexchange</td><td>0.655</td><td>0.773</td><td>0.611</td></tr><tr><td>nih_exporter</td><td>0.590</td><td>0.612</td><td>0.614</td></tr><tr><td></td><td>0.587</td><td>0.625</td><td>0.610</td></tr><tr><td>pubmed_abstracts</td><td></td><td></td><td>0.537</td></tr><tr><td>uspto_backgrounds pubmed_central</td><td>0.537</td><td>0.566</td><td></td></tr><tr><td>freelaw</td><td>0.579</td><td>0.690</td><td>0.510 0.499</td></tr><tr><td>github</td><td>0.514 0.358</td><td>0.612 0.645</td><td>0.329</td></tr><tr><td>enron_emails</td><td></td><td>0.958</td><td>0.604</td></tr><tr><td>youtube_subtitles</td><td>0.621 0.825</td><td>0.815</td><td>0.746</td></tr><tr><td></td><td></td><td></td><td></td></tr><tr><td>Weighted Avg.</td><td>0.650</td><td>0.742</td><td>0.634</td></tr></table>",
"bbox": [
522,
517,
828,
785
],
"page_idx": 38
},
{
"type": "text",
"text": "The detailed metrics on Pile test-set are reported in Table 13. We observe that compared to GPT3, GLM-130B has a noticeable weaker performance on phil_papers and pile_cc, which is likely because of GLM-130B’s bilingual natural and lack of more diverse and high-quality private collected corpora. ",
"bbox": [
173,
789,
826,
844
],
"page_idx": 38
},
{
"type": "text",
"text": "C.5 BIG-BENCH-LITE EVALUATION ",
"text_level": 1,
"bbox": [
176,
103,
434,
117
],
"page_idx": 39
},
{
"type": "text",
"text": "Recent works (Wei et al., 2022c; Wang et al., 2022c) reveal that LLMs are capable to do reasoning beyond conventional language tasks. As a response, BIG-bench (Srivastava et al., 2022) is recently set up by crowdsourcing new types of tasks from global researchers to test LLMs unexplored abilities. For economical consideration, we evaluate GLM-130B on an official subset of original 150- task BIG-bench, the BIG-bench-lite with 24 tasks. These tasks can be categorized into two types: one is based on multiple-choice question answering with answer options, and another is direct generation without options. For the first category, we assess the probability of each option’s full content and pick the largest one as the answer; for the second one, we generate the answer using greedy decoding. All evaluations done in BIG-bench are based on [MASK], since answers here are usually short pieces of texts. All results on 24 BIG-bench-lite (Srivastava et al., 2022) datasets of three LLMs are shown in Table 14 and ",
"bbox": [
174,
132,
552,
381
],
"page_idx": 39
},
{
"type": "image",
"img_path": "images/7946f3ec5b0eba21f439862d00ef4e2a0bcde7e370594ab02d68fa9c5809ce8e.jpg",
"image_caption": [
"Figure 16: A full scope of BIG-benchlite (24 tasks) evaluation. "
],
"image_footnote": [],
"bbox": [
565,
133,
820,
327
],
"page_idx": 39
},
{
"type": "text",
"text": "Figure 16. We just adopt the original prompts from BIG-bench and use the official implementation to generate priming examples for few-shot evaluation and to calculate the final scores. ",
"bbox": [
173,
382,
823,
410
],
"page_idx": 39
},
{
"type": "text",
"text": "C.6 MMLU EVALUATION ",
"text_level": 1,
"bbox": [
176,
435,
366,
449
],
"page_idx": 39
},
{
"type": "text",
"text": "All results on 57 MMLU (Hendrycks et al., 2021) datasets of GLM-130B and BLOOM 176B are shown in Table 15. In Section 5.2, we report weighted average accuracy (i.e., accuracy average per sample, rather than by discipline) of GLM-130B, GPT-3 175B, and BLOOM 176B. ",
"bbox": [
174,
465,
821,
507
],
"page_idx": 39
},
{
"type": "text",
"text": "Below is a prompted example with 1-shot priming. We predict the probability on $[ ^ { \\prime } \\mathbb { A } ^ { \\prime } \\ , \\ ^ { \\prime } \\mathbb { B } ^ { \\prime }$ , $\\prime _ { \\mathrm { ~ C ~ } ^ { \\prime } } , \\quad \\prime _ { \\mathrm { ~ D ~ } ^ { \\prime } } ]$ at the next token, and take the one with the maximal probability as the answer. ",
"bbox": [
171,
513,
820,
542
],
"page_idx": 39
},
{
"type": "text",
"text": "(MMLU 1-shot Example) ",
"text_level": 1,
"bbox": [
178,
559,
357,
574
],
"page_idx": 39
},
{
"type": "text",
"text": "The following are multiple choice questions about philosophy. ",
"bbox": [
179,
580,
714,
594
],
"page_idx": 39
},
{
"type": "text",
"text": "According to d'Holbach, people always act according to \n(A) free choices (B) dictates of the soul (C) necessary natural laws (D) \nundetermined will \nAnswer: (C) necessary natural laws Epicurus holds that philosophy is: \n(A) not suitable for the young. (B) not suitable for the old. (C) important, but unpleasant. (D) none of the above. \nAnswer: ( ",
"bbox": [
178,
606,
812,
656
],
"page_idx": 39
},
{
"type": "text",
"text": "",
"bbox": [
176,
669,
750,
719
],
"page_idx": 39
},
{
"type": "text",
"text": "C.7 CHINESE LANGUAGE UNDERSTANDING EVALUATION ",
"text_level": 1,
"bbox": [
174,
755,
586,
770
],
"page_idx": 39
},
{
"type": "text",
"text": "Here we elaborate the prompts we use for CLUE (Xu et al., 2020) and FewCLUE (Xu et al., 2021) evaluation. On Chinese datasets, prompting meets some challenges as Chinese texts are organized by single characters rather than words, leading to unequal length of verbalizers in many cases. Albeit dataset-specific calibration (Wang et al., 2021; Wu et al., 2021) can help to mitigate the issue, the too specified technique can be complicated in implementation. Our evaluation in this paper adopts a more easy to solve method leveraging GLM-130B’s unique features. As GLM-130B is a bilingual LLM with English MIP, we adopt English prompts and verbalizers from similar tasks in (Bach et al., 2022) for Chinese dataset evaluation and find such strategies to be quite effective. In terms of evaluation metrics, except for DRCD and CMRC2018 two question answering datasets which reports EM, other datasets report accuracy. ",
"bbox": [
173,
784,
825,
924
],
"page_idx": 39
},
{
"type": "text",
"text": "C.8 NATURAL LANGUAGE GENERATION ",
"text_level": 1,
"bbox": [
178,
103,
465,
117
],
"page_idx": 40
},
{
"type": "text",
"text": "Natural language generation, or conditional natural language generation here, refers to tasks that require generating text based on the given information, such as tables and documents. We evaluate GLM-130B on data-to-text and summarization tasks. The datasets include WebNLG 2020 (Castro Ferreira et al., 2020), Clean E2E NLG (Dušek et al., 2019) and WikiLingua (Scialom et al., 2020) from GEM generation benchmark (Gehrmann et al., 2021). We select full WebNLG 2020 and the Clean E2E NLG in the test set and randomly select 5000 test examples from WikiLingua following the practice in (Chowdhery et al., 2022). Following the settings in PaLM, the prompt used for the Summarization tasks is “Summarize the following article:” and the prompt used for the Data-to-Text tasks is “Verbalize:”. An exception is E2E, where we process the data using the prompt “generate-gramatically-correct-text from” provided in promptsource for GLM-130B and GPT-3 175B (Davinci). All evaluations are one-shot, and the demonstration samples are randomly sampled from the training set. We report the F-measure of ROUGE-2, ROUGE-L (Lin, 2004) and BLEURT-20 (Pu et al., 2021). We compare our model with LaMDA, GPT-3 175B (Davinci), and PaLM, where the results of LaMDA and PaLM are reported by (Chowdhery et al., 2022), and we evaluate GPT-3 175B (Davinci) through OpenAI API.13 ",
"bbox": [
174,
131,
825,
338
],
"page_idx": 40
},
{
"type": "text",
"text": "Our results are presented in Table 16. It shows that GLM-130B has better performances than LaMDA and GPT-3 (Davinci) on all tasks. In the Data-to-text task, GLM-130B performs slightly worse than PaLM-540B, while in the summary task, GLM-130B has even higher ROUGE results. We also ablate GLM-130B to unidirectional to demonstrate the advantage of bidirectional attention. Unidirectional GLM-130B underperforms GPT-3 175B in all three datasets, but when it shifts to bidirectional attention, there is an instant boost, making GLM-130B even comparable to PaLM540B in a few cases. It indicates that bidirectional attention over the provided context (i.e., prefix) can also be beneficial for text generation missions. ",
"bbox": [
174,
345,
825,
457
],
"page_idx": 40
},
{
"type": "table",
"img_path": "images/ed6bb4d3edafc673840026c2995da81db68fed9d994c2e39ebfe9ae063cae074.jpg",
"table_caption": [
"Table 16: 1-shot GEM English natural language generation tasks (WebNLG, E2E, and WikiLingua). We compare two versions of GLM-130B (uni: unidirectional attention, bi: bidirectional attention), showing that bidirectional attention can also improve conditional generation’s performance. "
],
"table_footnote": [],
"table_body": "<table><tr><td rowspan=\"2\">Task</td><td rowspan=\"2\">Dataset</td><td rowspan=\"2\">Metric</td><td rowspan=\"2\">LaMDA 137B</td><td rowspan=\"2\">GPT-3175B (Davinci)</td><td colspan=\"2\">GLM-130B</td><td rowspan=\"2\">PaLM-540B</td></tr><tr><td>uni</td><td>bi</td></tr><tr><td rowspan=\"5\">Data to Text</td><td rowspan=\"3\">WebNLG</td><td>ROUGE-2</td><td>30.5</td><td>29.9</td><td>25.3</td><td>38.5</td><td>44.4</td></tr><tr><td>ROUGE-L</td><td>-</td><td>41.2</td><td>36.7</td><td>49.3</td><td>53.8</td></tr><tr><td>BLEURT-20</td><td>1</td><td>59.0</td><td>53.2</td><td>67.7</td><td>73.9</td></tr><tr><td rowspan=\"3\">E2E</td><td>ROUGE-2</td><td>29.2</td><td>30.3</td><td>30.9</td><td>33.9</td><td>35.2</td></tr><tr><td>ROUGE-L</td><td>-</td><td>39.2</td><td>40.0</td><td>42.6</td><td>43.9</td></tr><tr><td>BLEURT-20</td><td>-</td><td>64.5</td><td>65.0</td><td>68.1</td><td>69.7</td></tr><tr><td rowspan=\"3\"> Summary</td><td rowspan=\"3\">WikiLingua</td><td>ROUGE-2</td><td>5.4</td><td>7.2</td><td>5.8</td><td>10.4</td><td>9.9</td></tr><tr><td>ROUGE-L</td><td></td><td>18.9</td><td>16.4</td><td>23.4</td><td>20.6</td></tr><tr><td>BLEURT-20</td><td>-</td><td>41.2</td><td>39.4</td><td>45.0</td><td>47.7</td></tr></table>",
"bbox": [
196,
513,
797,
688
],
"page_idx": 40
},
{
"type": "text",
"text": "(E2E Example, without demonstration sample) ",
"text_level": 1,
"bbox": [
176,
699,
508,
713
],
"page_idx": 40
},
{
"type": "text",
"text": "Aleksandr_Prudnikov , height , 185.0 (centimetres). FC_Spartak_Moscow , ground , Otkrytiye_Arena. Aleksandr_Prudnikov , club , FC_Spartak_Moscow. Verbalize: ",
"bbox": [
178,
720,
625,
771
],
"page_idx": 40
},
{
"type": "text",
"text": "Groundtruth: 185 centimetre tall Aleksandr Prudnikov played for the Otkrytiye Arena based FC Spartak, Moscow. ",
"bbox": [
176,
790,
818,
815
],
"page_idx": 40
},
{
"type": "text",
"text": "GPT-3 175B (Davinci): Aleksandr Prudnikov is a midfielder for FC Spartak Moscow, a football (soccer) club based in Moscow, Russia. ",
"bbox": [
178,
820,
818,
847
],
"page_idx": 40
},
{
"type": "text",
"text": "GLM-130B: Aleksandr Prudnikov is $1 8 5 . 0 \\mathrm { c m }$ tall and plays for FC Spartak Moscow. ",
"bbox": [
181,
852,
689,
866
],
"page_idx": 40
},
{
"type": "text",
"text": "(E2E Example, without demonstration sample) ",
"text_level": 1,
"bbox": [
181,
103,
506,
117
],
"page_idx": 41
},
{
"type": "text",
"text": "Combine all of the following data into a concise and grammatically correct text: ",
"bbox": [
179,
126,
761,
150
],
"page_idx": 41
},
{
"type": "text",
"text": "name : Blue Spice eatType : coffee shop area : riverside ",
"bbox": [
178,
151,
366,
188
],
"page_idx": 41
},
{
"type": "text",
"text": "Groundtruth: At the riverside, there is a coffee shop called The Blue Spice. ",
"bbox": [
178,
207,
633,
219
],
"page_idx": 41
},
{
"type": "text",
"text": "GPT-3 175B (Davinci): Blue Spice is a riverside coffee shop which is located on the corner of River Street and Riverbank Street. ",
"bbox": [
181,
224,
818,
251
],
"page_idx": 41
},
{
"type": "text",
"text": "GLM-130B: There’s a coffee shop that serves coffee in the riverside area, Blue Spice. ",
"bbox": [
176,
257,
687,
270
],
"page_idx": 41
},
{
"type": "text",
"text": "(WikiLingua Example, without demonstration sample) ",
"text_level": 1,
"bbox": [
178,
273,
563,
286
],
"page_idx": 41
},
{
"type": "text",
"text": "The majority of your customers will search for you online, so it's essential to have a user-friendly website. At the very least, your website should include information about your business and your history in the moving industry, details about the quoting process, contact information, and a description of the services you offer. If possible, allow customers to schedule quotes online, view your availability, or read testimonials from other customers. One of the easiest ways to start your business is by helping people you already know with their moves. You can be on the lookout for any announcements related to moving that your friends make on social media. Once you have provided good service to friends, they are likely to recommend you to others. In order to spread the word about your business, have some professional looking promotional materials printed and distribute them around your community. ",
"bbox": [
178,
294,
813,
458
],
"page_idx": 41
},
{
"type": "text",
"text": "the article: ",
"bbox": [
186,
811,
292,
821
],
"page_idx": 41
},
{
"type": "text",
"text": "Groundtruth: Create a website. Start with friends. Distribute business cards and flyers. Network for promotion. Seek out free advertising opportunities. Consider paid advertising. Gain a good reputation. ",
"bbox": [
179,
840,
818,
867
],
"page_idx": 41
},
{
"type": "text",
"text": "GPT-3 175B (Davinci): Market yourself online. Look for opportunities to market your services offline. ",
"bbox": [
181,
872,
789,
886
],
"page_idx": 41
},
{
"type": "text",
"text": "GLM-130B: Have a user-friendly website. Promote your business through social media. Build relationships with influential people in your community. Use directory sites like Craigslist to advertise your services. ",
"bbox": [
179,
891,
816,
917
],
"page_idx": 41
},
{
"type": "table",
"img_path": "images/4209a7963126c4f7c72e3e9ad2b5b91a70014455f09c73ba4cad097fbffe9a43.jpg",
"table_caption": [
"Table 17: Winograd-style tasks evaluation (Winogender and Winograd273). All scores are accuracy. K refers to number of shots. $^ { * } \\mathrm { P a L M } 5 4 0 \\mathrm { B }$ did not report the exact 0-shot Winogender result, so we have to estimate a value from its plotted diagram. "
],
"table_footnote": [],
"table_body": "<table><tr><td></td><td>K</td><td>GPT-3 (Davinci)</td><td>OPT 175B</td><td>BLOOM 176B</td><td>PaLM 540B</td><td>Chinchilla</td><td>Gopher 280B</td><td>GLM-130B</td></tr><tr><td>Winogender</td><td>0</td><td>64.2</td><td>54.8</td><td>49.1</td><td>75.0*</td><td>78.3</td><td>71.4</td><td>79.7</td></tr><tr><td></td><td>1</td><td>62.6</td><td>-</td><td>53.1</td><td>79.4</td><td>-</td><td>二</td><td>80.7</td></tr><tr><td>Winograd273</td><td>0</td><td>88.3</td><td>52.9</td><td>49.1</td><td>90.1</td><td>-</td><td>-</td><td>84.3</td></tr></table>",
"bbox": [
173,
154,
825,
248
],
"page_idx": 42
},
{
"type": "table",
"img_path": "images/986291ed83a11cfca6cfa50b3e3716adb802590dac0a35daad53d8e8ba97c82d.jpg",
"table_caption": [
"Table 18: Closed-book question answering (Natural Questions, StrategyQA). "
],
"table_footnote": [],
"table_body": "<table><tr><td></td><td>GPT-3 (Davinci)</td><td>BLOOM 176B</td><td>PaLM 540B</td><td>Chinchilla</td><td>Gopher 280B</td><td>GLM-130B</td></tr><tr><td>Natural Questions (EM)</td><td>14.6</td><td>13.1</td><td>21.2</td><td>16.6</td><td>10.1</td><td>11.7</td></tr><tr><td>StrategyQA (Acc)</td><td>52.3</td><td>49.8</td><td>64.0</td><td>-</td><td>-</td><td>60.6</td></tr></table>",
"bbox": [
181,
305,
813,
386
],
"page_idx": 42
},
{
"type": "table",
"img_path": "images/be05480b612c96d6f1d59d2c67fae78f62c3da3e4c3093eff2e96605bccd3a0e.jpg",
"table_caption": [
"Table 19: Commonsense reasoning (Commonsense QA, MC-TACO). K refers to number of shots. "
],
"table_footnote": [],
"table_body": "<table><tr><td></td><td>K</td><td>GPT-3 (Davinci)</td><td>OPT175B</td><td>BLOOM 176B</td><td>GLM-130B</td></tr><tr><td rowspan=\"2\">Commonsense QA (Acc)</td><td>0</td><td>57.2</td><td></td><td>42.8</td><td>61.6</td></tr><tr><td>1</td><td>61.2</td><td>1</td><td>1</td><td>62.2</td></tr><tr><td>MC-TACO (EM)</td><td>0</td><td>1</td><td>12.4</td><td>13.1</td><td>13.6</td></tr></table>",
"bbox": [
181,
441,
813,
522
],
"page_idx": 42
},
{
"type": "text",
"text": "C.9 WINOGRAD-STYLE TASKS ",
"text_level": 1,
"bbox": [
176,
546,
401,
561
],
"page_idx": 42
},
{
"type": "text",
"text": "We include the evaluation on Winograd-style tasks, which derives from the classical Winograd Schemas Challenge (Levesque et al., 2012) that aims to test coreference resolution in an ambiguous context for the machine to understand. Since in MIP, we have included the Winogrande (Sakaguchi et al., 2021) and SuperGLUE WSC (Wang et al., 2019), here we test on Winogender (Rudinger et al., 2018) and Winograd273 (Levesque et al., 2012). For Winogender, GPT-3’s results are acquired from OpenAI API, and BLOOM’s 1-shot result is evaluated by ourselves. For Winograd273, since existing works (Brown et al., 2020; Chowdhery et al., 2022) show that 1-shot learning brings almost no improvement, we only test the zero-shot result. Another thing to notice is that, despite GPT-style models (e.g., GPT-3, PaLM) adopting the “partial evaluation” described in (Radford et al., 2019), we find the prompt “<sentence> The \"<pronoun>\" refers to [MASK]” is better for GLM-130B and adopt it in the evaluation. ",
"bbox": [
173,
573,
825,
726
],
"page_idx": 42
},
{
"type": "text",
"text": "The results are presented in Table 17. GLM-130B performs the best across all evaluated LLM on Winogender, and marginally poorer than GPT-3 and PaLM on Winograd273. ",
"bbox": [
176,
732,
820,
761
],
"page_idx": 42
},
{
"type": "text",
"text": "C.10 CLOSED-BOOK QUESTION ANSWERING ",
"text_level": 1,
"bbox": [
178,
779,
500,
792
],
"page_idx": 42
},
{
"type": "text",
"text": "Closed-book question answering (CBQA) (Roberts et al., 2020) is a widely adopted task to evaluate language models’ memorization of factual knowledge, on contrary to the traditional “open-book” evaluation. As we have included TriviaQA (Joshi et al., 2017) and WebQuestions (Berant et al., 2013) in the MIP training, here we choose Natural Questions (Kwiatkowski et al., 2019) and StrategyQA (Geva et al., 2021) as the evaluation datasets for CBQA. ",
"bbox": [
174,
804,
825,
875
],
"page_idx": 42
},
{
"type": "text",
"text": "The results are presented in Table 18. GLM-130B performs relatively poorer on Natural Questions and performs well on StrategyQA. GLM-130B’s underperformance on Natural Questions, we speculate, potentially derives from the insufficiency fitting on English corpora, as it roughly only viewed ",
"bbox": [
176,
882,
823,
924
],
"page_idx": 42
},
{
"type": "text",
"text": "200B English tokens and thus does not memorize the detailed knowledge very well. Since CBQA seems to be a task that especially stresses memorization, as is indicated by Chinchilla (Hoffmann et al., 2022)’s a strong performance, we think with sufficient training later, GLM-130B can perform better. ",
"bbox": [
174,
103,
823,
160
],
"page_idx": 43
},
{
"type": "text",
"text": "C.11 COMMONSENSE REASONING",
"text_level": 1,
"bbox": [
176,
181,
426,
195
],
"page_idx": 43
},
{
"type": "text",
"text": "Here we evaluate GLM-130B and some other LLMs on commonsense reasoning abilities. As we have included PIQA (Bisk et al., 2020), ARC (Clark et al., 2018), and OpenbookQA (Mihaylov et al., 2018) in the MIP training, we select another two widely adopted commonsense reasoning datasets in our evaluation: Commonsense QA (Talmor et al., 2019) and Multiple-choice Temporal Commonsense (MC-TACO, Zhou et al. (2019)). For Commonsense QA, we test the GPT-3 via OpenAI Davinci API, BLOOM-176B via its Huggingface Implementation, and GLM-130B using the prompt “answer_given_question_without_options” from promptsource (Bach et al., 2022). For StrategyQA, we follow the EM computation method provided in (Zhou et al., 2019). ",
"bbox": [
174,
209,
825,
321
],
"page_idx": 43
},
{
"type": "text",
"text": "The results are shown in Table 19. As we can see, GLM-130B performs the best on both Commonsense QA and MC-TACO across evaluated LLMs, demonstrating that GLM-130B has a good grasp of commonsense knowledge. OPT’s results are not included due to the reason described in Appendix C.3. ",
"bbox": [
176,
328,
825,
383
],
"page_idx": 43
},
{
"type": "text",
"text": "C.12 FIXED LABEL DATASETS: A CASE STUDY IN NATURAL LANGUAGE INFERENCE ",
"bbox": [
176,
406,
776,
420
],
"page_idx": 43
},
{
"type": "text",
"text": "As is discussed in Section 5, we adopt a rather strict criterion for selecting datasets for zero/few-shot learning in GLM-130B’s evaluation due to the use of MIP. Nevertheless, the criterion significantly reduces the dataset we could currently evaluate, and especially some readers have doubted whether the restriction of not evaluating on MIP-seen fixed-label datasets is necessary (e.g., natural language inference (NLI)), and suggest that we may report them in an independent section to avoid confusion. ",
"bbox": [
174,
434,
823,
503
],
"page_idx": 43
},
{
"type": "text",
"text": "Frankly speaking, in such a setting GLM-130B’s zero/few-shot learning could be quite advantageous. Below, we take NLI as a typical example to show GLM-130B’s outperformance in the scenarios. We include 6 widely-used NLI datasets–which are not incorporated in GLM-130B’s MIP training, as the benchmarks. The results are presented in Table 20, which shows that GLM-130B’s “zero-shot” performance could be much better due to the seen task type. ",
"bbox": [
174,
511,
825,
580
],
"page_idx": 43
},
{
"type": "table",
"img_path": "images/fa3f6f860515a5520653a4035bb9e172b2f893a9dc71772b981db648bc914436.jpg",
"table_caption": [
"Table 20: “Zero-shot” results of GLM-130B on 6 typical natural language inference (NLI) datasets. $^ *$ DISCLAIMER: Despite the datasets are never seen, some other NLI datasets have been included in GLM-130B’s MIP, making it different from the existing standard zero-shot setting. "
],
"table_footnote": [],
"table_body": "<table><tr><td></td><td>BLOOM176B</td><td>OPT175B</td><td>GLM-130B*</td></tr><tr><td>qnli (valid, median of 5 prompts)</td><td>50.9</td><td>55.4</td><td>86.7</td></tr><tr><td>mnli (valid, median of 15 prompts)</td><td>35.5</td><td>36.0</td><td>85.7</td></tr><tr><td>mnli_mismatched (valid, median of 15 prompts)</td><td>35.5</td><td>36.0</td><td>84.6</td></tr><tr><td>wnli (valid, median of 5 prompts)</td><td>57.7</td><td>53.5</td><td>67.6</td></tr><tr><td>glue/cola (valid, median of 5 prompts)</td><td>39.0</td><td>44.4</td><td>57.6</td></tr><tr><td>glue/mrpc (valid, median of 5 prompts)</td><td>31.6</td><td>44.6</td><td>87.3</td></tr></table>",
"bbox": [
179,
654,
813,
768
],
"page_idx": 43
},
{
"type": "text",
"text": "C.13 SUPERGLUE ",
"text_level": 1,
"bbox": [
174,
797,
320,
813
],
"page_idx": 43
},
{
"type": "text",
"text": "We also report our evaluation of GLM-130B on the SuperGLUE (Wang et al., 2019) benchmark, which consists 8 different natural language understanding challenges. Noted that these results are neither zero/few-shot nor fine-tuned results, because 7 out of 8 tasks’ training sets have been included in GLM-130B’s MIP training (except for ReCoRD) together with other 67 multi-task datasets; however, GLM-130B is also not individually fine-tuned on any of them. Therefore, these results are not for relative comparison for any other models’, but only for readers’ reference on GLM-130B’s absolute ability. ",
"bbox": [
174,
825,
825,
924
],
"page_idx": 43
},
{
"type": "image",
"img_path": "images/f55bb0dce90be1d84f3a233001579f48bc4c0a4525e3554ecddd4b386950fcb8.jpg",
"image_caption": [
"Figure 17: GLM-130B (uni and bi)’s untuned results on SuperGLUE development set, using promptsource (Bach et al., 2022) prompts and task formulation. DISCLAIMER: Noted that some of the SuperGLUE training sets have been included in the MIP training. We report the results here only for readers’ reference. "
],
"image_footnote": [],
"bbox": [
173,
99,
821,
215
],
"page_idx": 44
},
{
"type": "image",
"img_path": "images/7a0df67091ca37c3cd95d35f352b4c21534f3fcee8cabf3b659eaf309a079cfe.jpg",
"image_caption": [
"Figure 18: Chain-of-thought prompting can also improve GLM-130B’s performance on reasoning tasks compared to standard prompting. "
],
"image_footnote": [],
"bbox": [
235,
295,
759,
416
],
"page_idx": 44
},
{
"type": "table",
"img_path": "images/468cef0113b1ec3d66be2e545b6da60296df63396408e83515976aa568a747db.jpg",
"table_caption": [
"Table 21: The results of GLM-130B on the SuperGLUE dataset obtained using the P-tuning v2 (Liu et al., 2022). We report the Accuracy metric for all datasets except for MultiRC (F1a) and ReCoRD (F1). "
],
"table_footnote": [],
"table_body": "<table><tr><td></td><td>BoolQ</td><td>CB</td><td>COPA</td><td>MultiRC</td><td>ReCoRD</td><td>RTE</td><td>WiC</td><td>wSC</td></tr><tr><td>GLM-130B</td><td>89.69</td><td>98.21</td><td>100</td><td>89.32</td><td>92.11</td><td>94.22</td><td>76.96</td><td>88.5</td></tr></table>",
"bbox": [
194,
479,
803,
525
],
"page_idx": 44
},
{
"type": "text",
"text": "The results are presented in Figure 17. We ablate the unidirectional and bidirectional GLM-130B to justify the usefulness of GLM objective in boosting LLMs’ ability to understand. Each point in the figure refers to a prompt-specific result, for which the prompt is from the promptsource (Bach et al., 2022) repository. We adopt the task formulation from promptsource, too. As we can observe, GLM (bi) has much fewer variances and higher performances on all tasks. For some of the tasks (such as CB, MultiRC, RTE, COPA, and BoolQ), GLM-130B can even achieve over $80 \\%$ accuracy. ",
"bbox": [
174,
604,
825,
689
],
"page_idx": 44
},
{
"type": "text",
"text": "We also attempted to fine-tune GLM-130B on the SuperGLUE dataset. However, we encountered the issue of rapid overfitting within a single epoch when we used full parameter fine-tuning on downstream tasks. This resulted in poor performance on the validation set. To address this issue, we explored the use of efficient parameter fine-tuning methods, which tune only a small number of parameters and are less prone to overfitting. After experimenting with several methods, we use P-Tuning v2 (Liu et al., 2022), which demonstrated comparable results to full parameter fine-tuning in GLM-130B, but with only $0 . 1 \\%$ to $3 \\%$ of tuned parameters. The results of our experiments with P-Tuning v2 are presented in Table 21. ",
"bbox": [
174,
695,
825,
808
],
"page_idx": 44
},
{
"type": "text",
"text": "C.14 CHAIN-OF-THOUGHT PROMPTING ",
"text_level": 1,
"bbox": [
178,
827,
464,
840
],
"page_idx": 44
},
{
"type": "text",
"text": "We evaluate the chain-of-thought prompting performance on Last letter concatenation (LLC), Coin Flip, Reverse List, and two tasks from BIG-bench Srivastava et al. (2022) Sports understanding, and Date understanding, following the setting in Wei et al. (2022c). The results are shown in Figure 17. We find that chain-of-thought prompting can improve GLM-130B’s performance on symbolic reasoning and commonsense reasoning. ",
"bbox": [
176,
854,
823,
924
],
"page_idx": 44
},
{
"type": "text",
"text": "Log-scaling Ability Tasks ",
"text_level": 1,
"bbox": [
179,
106,
354,
121
],
"page_idx": 45
},
{
"type": "image",
"img_path": "images/137056cee4899dcdc5d8380ee26047bc23178f4d822fd5e9550df31f7ecf9e48.jpg",
"image_caption": [
"Figure 19: Log-scaling ability tasks of GLM-130B. These tasks’ performance grows logarithmically with the amount of GLM parameters. Most of traditional NLP tasks fall into the same pattern. "
],
"image_footnote": [],
"bbox": [
171,
127,
823,
287
],
"page_idx": 45
},
{
"type": "text",
"text": "Last letter concatenation (LLC). The task asks the model to concatenate the last letters of words in a name (e.g., \"Elon Musk\" $- >$ \"nk\"). We generate full names by randomly concatenating the top 1000 first and last names from name census data14. ",
"bbox": [
174,
356,
825,
398
],
"page_idx": 45
},
{
"type": "text",
"text": "Coin flip. This task asks the model to answer whether a coin is still heads up after people either flip or don’t flip it beginning from being heads up. (e.g., \"A coin is heads up. Phoebe flips the coin. Osvaldo does not flip the coin. Is the coin still heads up?\" $- >$ \"no\"). We additionally evaluate on the scenario where the number of people in the query examples is larger than that in the in-context examples, i.e. the out-of-distribution (OOD) setting. ",
"bbox": [
174,
406,
825,
476
],
"page_idx": 45
},
{
"type": "text",
"text": "Reverse List. This task asks the model to reverse the order of a list of everyday objects (e.g., \"cigar, umbrella, key, gum, alarm\" $- >$ \"alarm, gum, key, umbrella, cigar\"). We generate the lists by randomly sampling from the vocabulary of everyday objects15. ",
"bbox": [
174,
483,
825,
525
],
"page_idx": 45
},
{
"type": "text",
"text": "Sports. This task asks the model to judge the truthfulness of a statement about a sports player (e.g., \"Joao Moutinho caught the screen pass in the NFC championship\" $- >$ \"false\"). ",
"bbox": [
171,
531,
821,
560
],
"page_idx": 45
},
{
"type": "text",
"text": "Date. This task asks the model to infer the data from a given context (e.g., \"2015 is coming in 36 hours. What is the date one week from today in MM/DD/YYYY?\" -> \"01/05/2015\"). ",
"bbox": [
171,
566,
823,
595
],
"page_idx": 45
},
{
"type": "text",
"text": "We use the same examples and chains as Wei et al. (2022c). For each task, we try two different formats of prompts and both unidirectional and bidirectional attention mechanism and report the best performance. The first format is \"Question: {context} Answer: {target}\". The second one is to add serial numbers before examples in the first format of prompts. The results are presented in Figure 18. ",
"bbox": [
174,
602,
825,
672
],
"page_idx": 45
},
{
"type": "text",
"text": "D SCALING AND EMERGENT ABILITIES IN GLM-130B ",
"text_level": 1,
"bbox": [
174,
695,
647,
712
],
"page_idx": 45
},
{
"type": "text",
"text": "Scaling up pre-trained language models has been proven to boost downstream performance on a wide range of tasks continually. His, emergent abilities which are unpredictable from smaller scales. To illustrate this, we conducted extensive experiments to explore the scaling property and emergent abilities. Following prior literature (Wei et al., 2022b), we categorize the NLP tasks into two types based on our observations. ",
"bbox": [
174,
729,
825,
799
],
"page_idx": 45
},
{
"type": "text",
"text": "• Log-scaling Ability Tasks (Cf. Figure 19): where the task performance grows logarithmically with the number of model parameters. Typical tasks and datasets include LAMBADA, Wikitext103, Wikitext-2, Penn Tree Bank. ",
"bbox": [
174,
806,
820,
848
],
"page_idx": 45
},
{
"type": "text",
"text": "• Emergent Ability Tasks (Cf. Figure 20): where the task performance only soars up when the amount of model parameters reaches a certain threshold. Typical tasks and datasets include: ",
"bbox": [
178,
851,
823,
878
],
"page_idx": 45
},
{
"type": "text",
"text": "Emergent Ability Tasks ",
"text_level": 1,
"bbox": [
179,
107,
343,
121
],
"page_idx": 46
},
{
"type": "image",
"img_path": "images/99994029ac28fce8ea469d4724fa4cb6d882e1114c9a707945a57484c4327d19.jpg",
"image_caption": [
"Figure 20: Emergent ability tasks of GLM-130B. These tasks’ performance does not grow much until the model size reaches a certain threshold (e.g., 100B or 10B). After reaching the threshold, the model performance soars up quickly. The BIG-bench (Srivastava et al., 2022) benchmark collects many of these challenges. "
],
"image_footnote": [],
"bbox": [
171,
125,
821,
440
],
"page_idx": 46
},
{
"type": "text",
"text": "MMLU, hindu_knowledge, crass_ai, implicatures, understanding_fables, modified_arithmetic, implicit_relations, and gre_reading_comprehension from BIG-bench (Srivastava et al., 2022). ",
"bbox": [
184,
535,
823,
563
],
"page_idx": 46
},
{
"type": "text",
"text": "In line with the observation in (Wei et al., 2022b), we show that GLM-130B also presents the two similar scaling behaviors to other LLMs such as GPT-3, LaMDA, and PaLM. Though why and how LLMs present these intriguing properties remain unclear, GLM-130B provides open opportunities for all researchers to test and understand the reason behind them. ",
"bbox": [
174,
569,
825,
626
],
"page_idx": 46
},
{
"type": "table",
"img_path": "images/f84fd01d5a5fed9f1de50406b3ece3f64d4dabe76bb46944ba23ab2555f60a2c.jpg",
"table_caption": [
"Table 11: Full configurations for GLM-130B training "
],
"table_footnote": [],
"table_body": "<table><tr><td>Configuration Key</td><td>Value</td></tr><tr><td>adam_beta1</td><td>0.9</td></tr><tr><td>adam_beta2</td><td>0.95</td></tr><tr><td>adam_eps</td><td>1e-08</td></tr><tr><td>aggregated_samples_per_sequence</td><td>4</td></tr><tr><td></td><td>0.1</td></tr><tr><td>attention_dropout attention_softmax_in_fp32</td><td></td></tr><tr><td></td><td>True</td></tr><tr><td>average_block_length</td><td>3</td></tr><tr><td>bias_dropout_fusion</td><td>True True</td></tr><tr><td>checkpoint_activations</td><td></td></tr><tr><td>checkpoint_in_cpu</td><td>False</td></tr><tr><td>checkpoint_num_layers</td><td></td></tr><tr><td>clip_grad contigious_checkpointing</td><td>1.0</td></tr><tr><td></td><td>False</td></tr><tr><td>cpu_optimizer</td><td>False</td></tr><tr><td>data_parallel_size</td><td>24</td></tr><tr><td>deepnorm</td><td>True</td></tr><tr><td>distributed_backend</td><td>nccl</td></tr><tr><td>eval_interval</td><td>1000</td></tr><tr><td>eval_iters ffn_hidden_size</td><td>3</td></tr><tr><td>fp16</td><td>32768</td></tr><tr><td></td><td>True</td></tr><tr><td>global_batch_size glu_activation</td><td>4224</td></tr><tr><td>gpt_prob</td><td>geglu</td></tr><tr><td>hidden_dropout</td><td>0.7</td></tr><tr><td>hidden_size</td><td>0.1</td></tr><tr><td>hysteresis</td><td>12288</td></tr><tr><td>init_method_std</td><td>2 0.0052</td></tr><tr><td>init_method_xavier_uniform</td><td></td></tr><tr><td>initial_loss_scale</td><td>False 65536</td></tr><tr><td>layernorm_epsilon</td><td>1E-05</td></tr><tr><td>learnable_rotary_embedding</td><td>False</td></tr><tr><td>length_per_sample</td><td>2000</td></tr><tr><td>log_interval</td><td>1</td></tr><tr><td>loss_scale</td><td>0</td></tr><tr><td>loss_scale_window</td><td>2000</td></tr><tr><td>lr</td><td>8e-05</td></tr><tr><td>lr_decay_iters</td><td>None</td></tr><tr><td>lr_decay_samples</td><td>197753905</td></tr><tr><td>lr_decay_style</td><td>cosine</td></tr><tr><td>lr_warmup_samples</td><td>1098632</td></tr><tr><td>make_vocab_size_divisible_by</td><td>768</td></tr><tr><td>mask_prob</td><td>0.15</td></tr><tr><td>masked_softmax_fusion</td><td>True</td></tr><tr><td>micro_batch_size</td><td>1</td></tr><tr><td>min_gmask_ratio</td><td>0.2</td></tr><tr><td>min_loss_scale</td><td>1.0</td></tr><tr><td>min_lr</td><td>8e-06</td></tr><tr><td>multitask_ratio</td><td></td></tr><tr><td>num_attention_heads</td><td>0.05</td></tr><tr><td>num_layers</td><td>96 70</td></tr><tr><td>onnx_safe</td><td>None</td></tr><tr><td>optimizer</td><td></td></tr><tr><td>partition_activations</td><td>adam</td></tr><tr><td></td><td>True</td></tr><tr><td>pipeline_model_parallel_size position_embedding_type</td><td>8</td></tr><tr><td>rampup_batch_size</td><td>rotary 192, 24,5493164</td></tr><tr><td>save_interval</td><td>250</td></tr><tr><td>seed</td><td>1234</td></tr><tr><td>seq_length</td><td>2048</td></tr><tr><td>short_seq_prob</td><td>0.02</td></tr><tr><td>shrink_embedding_gradient_alpha</td><td>0.1</td></tr><tr><td>single_span_prob</td><td>0.02</td></tr><tr><td>split tensor_model_parallel_size</td><td>949,50,1</td></tr><tr><td>tokenizer_type</td><td>4</td></tr><tr><td>weight_decay</td><td>IceTokenizer 0.1</td></tr><tr><td>zero_contigious_gradients</td><td></td></tr><tr><td>zero_reduce_bucket_size</td><td>False</td></tr><tr><td>zero_reduce_scatter</td><td>500000000</td></tr><tr><td>zero_stage</td><td>False</td></tr><tr><td></td><td></td></tr><tr><td>zero-optimization.allgather_bucket_size</td><td>500000000</td></tr><tr><td>tokenizer_type</td><td>IceTokenizer</td></tr><tr><td>weight_decay</td><td>0.1</td></tr><tr><td>world_size</td><td>768</td></tr><tr><td>zero_contigious_gradients</td><td>FALSE</td></tr><tr><td></td><td></td></tr><tr><td>zero_reduce_bucket_size</td><td>500000000</td></tr><tr><td>zero_reduce_scatter zero_stage</td><td>FALSE 1</td></tr></table>",
"bbox": [
343,
99,
653,
938
],
"page_idx": 47
},
{
"type": "table",
"img_path": "images/8284c0770abef2ac242864b4d8db7ac7f9591af1ec7e8204d766951324cdcc61.jpg",
"table_caption": [
"Table 12: The 74 datasets involved in Multi-task Instruction Pre-training (MIP). Datasets from T0- PromptSource (Sanh et al., 2022; Bach et al., 2022) are named in their Hugging Face datasets identifiers. Datasets from DeepStruct (Wang et al., 2022a) are described in Appendix C.2. "
],
"table_footnote": [],
"table_body": "<table><tr><td>Task</td><td>Dataset</td><td>Task</td><td>Dataset</td></tr><tr><td>Coreference Resolution</td><td>super_glue/wsc.fixed</td><td>Multi-choice QA</td><td>cos_e/v1.11</td></tr><tr><td>Coreference Resolution</td><td>winogrande/winogrande_xl Multi-choice QA</td><td></td><td>cosmos_qa</td></tr><tr><td>Natural Language Inference super_glue/cb</td><td></td><td>Multi-choice QA</td><td>dream</td></tr><tr><td>Natural Language Inference super_glue/rte</td><td></td><td>Multi-choice QA</td><td>openbookqa/main</td></tr><tr><td>Natural Language Inference anli</td><td></td><td>Multi-choice QA</td><td>qasc</td></tr><tr><td>Paraphrase Identification</td><td> glue/mrpc</td><td>Multi-choice QA</td><td>quail</td></tr><tr><td>Paraphrase Identification</td><td> glue/qqp</td><td>Multi-choice QA</td><td>quarel</td></tr><tr><td>Paraphrase Identification</td><td>paws/labeled_final</td><td>Multi-choice QA</td><td>quartz</td></tr><tr><td>Closed-Book QA</td><td>ai2_arc/ARC_Challenge</td><td>Multi-choice QA</td><td>race/high</td></tr><tr><td>Closed-Book QA</td><td>ai2_arc/ARC_Easy</td><td>Multi-choice QA</td><td>race/middle</td></tr><tr><td>Closed-Book QA</td><td>kilt_tasks/hoptpotqa</td><td>Multi-choice QA</td><td>sciq</td></tr><tr><td>Closed-Book QA</td><td>trivia_qa/unfiltered</td><td>Multi-choice QA</td><td>social_i_qa</td></tr><tr><td>Closed-Book QA</td><td>web_questions</td><td>Multi-choice QA</td><td>super_glue/boolq</td></tr><tr><td>Closed-Book QA</td><td>wiki_qa</td><td>Multi-choice QA</td><td>super_glue/multirc</td></tr><tr><td>Extractive QA</td><td>adversarial_qa/dbidaf</td><td>Multi-choice QA</td><td>wiki_hop/original</td></tr><tr><td>Extractive QA</td><td>adversarial_qa/dbert</td><td>Multi-choice QA</td><td>wiqa</td></tr><tr><td>Extractive QA</td><td>adversarial_qa/droberta</td><td>Multi-choice QA</td><td>piqa</td></tr><tr><td>Extractive QA</td><td>duorc/SelfRC</td><td>Topic Classification</td><td>ag_news</td></tr><tr><td>Extractive QA</td><td>duorc/ParaphraseRC</td><td>Topic Classification</td><td>dbpedia_14</td></tr><tr><td>Extractive QA</td><td>ropes</td><td>Topic Classification</td><td>trec</td></tr><tr><td>Extractive QA</td><td>squad_v2</td><td>Word Sense Disambiguation super_glue/wic</td><td></td></tr><tr><td>Extractive QA</td><td>super_glue/record</td><td>Dialogue State Tracking</td><td>multiwoz_2.1</td></tr><tr><td>Extractive QA</td><td>quoref</td><td>Event Extraction</td><td>ace05</td></tr><tr><td>Sentiment</td><td>amazon_polarity</td><td>Named Entity Recognition</td><td>conl103</td></tr><tr><td>Sentiment</td><td>app_reviews</td><td>Named Entity Recognition</td><td>genia</td></tr><tr><td>Sentiment</td><td>imdb</td><td>Named Entity Recognition</td><td>ontonotes5.0</td></tr><tr><td>Sentiment</td><td>rotten_tomatoes</td><td>Named Entity Recognition</td><td>ace2005</td></tr><tr><td>Sentiment</td><td>yelp_review_full</td><td>Named Entity Recognition</td><td>conll04</td></tr><tr><td>Sentence Completion</td><td>super_glue/copa</td><td>Named Entity Recognition</td><td>nyt29</td></tr><tr><td>Sentence Completion</td><td>hellaswag</td><td>Relation Extraction</td><td>conll04</td></tr><tr><td>Structure-to-Text</td><td>common_gen</td><td>Relation Extraction</td><td>nyt29</td></tr><tr><td>Structure-to-Text</td><td>wiki_bio</td><td>Relation Extraction</td><td>ace2005</td></tr><tr><td>Summarization</td><td>cnn_dailymail/3.0.0</td><td>Relation Extraction</td><td>kelm</td></tr><tr><td>Summarization</td><td>gigaword</td><td>Relation Classification</td><td>tacred</td></tr><tr><td>Summarization</td><td>multi_news</td><td>Semantic Role Labeling</td><td>conll05</td></tr><tr><td>Summarization</td><td>samsum</td><td>Semantic Role Labeling</td><td>conll12</td></tr><tr><td>Summarization</td><td>xsum</td><td>Semantic Role Labeling</td><td>propbank</td></tr></table>",
"bbox": [
174,
261,
831,
830
],
"page_idx": 48
},
{
"type": "table",
"img_path": "images/4a1af107c4ca6d51f6d85673d9672d351b9646b8182e9974744569b80c4bd80a.jpg",
"table_caption": [
"Table 14: Details results of GLM-130B, GPT-3 175B (Brown et al., 2020), and PaLM 540B (Chowdhery et al., 2022) on BIG-bench-lite in 0, 1, and 3-shots. “Normalized preferred metric” is reported for each task. GPT-3 and PaLM’s results are reported in BIG-bench’s GitHub repository, and PaLM 540B’s 3-shot results are not found. "
],
"table_footnote": [],
"table_body": "<table><tr><td rowspan=\"2\"></td><td colspan=\"3\">GLM-130B</td><td colspan=\"3\">GPT-3175B</td><td colspan=\"2\">PaLM540B</td></tr><tr><td>0</td><td>1</td><td>3</td><td>0</td><td>1</td><td>3</td><td>0</td><td>1</td></tr><tr><td>auto_debugging</td><td>11.76</td><td>20.59</td><td>23.53</td><td>0.00</td><td>0.00</td><td>0.00</td><td>0.00</td><td>38.23</td></tr><tr><td>bbq_lite_json</td><td>22.26</td><td>37.50</td><td>59.73</td><td>-8.33</td><td>40.75</td><td>61.21</td><td>-4.39</td><td>77.73</td></tr><tr><td>code_line_description</td><td>0.22</td><td>9.09</td><td>-8.64</td><td>9.09</td><td>9.09</td><td>9.09</td><td>0.22</td><td>49.00</td></tr><tr><td>conceptual_combinations</td><td>37.51</td><td>31.33</td><td>27.86</td><td>2.37</td><td>3.70</td><td>14.33</td><td>45.68</td><td>73.36</td></tr><tr><td>conlang_translation</td><td>34.72</td><td>38.01</td><td>33.88</td><td>46.82</td><td>47.07</td><td>51.60</td><td>36.88</td><td>61.92</td></tr><tr><td>emoji_movie</td><td>1.25</td><td>4.88</td><td>3.75</td><td>-10.00</td><td>-2.49</td><td>-1.24</td><td>17.50</td><td>88.75</td></tr><tr><td>formal_fallacies_syllogisms_negation</td><td>0.83</td><td>1.46</td><td>0.35</td><td>1.00</td><td>6.80</td><td>5.60</td><td>-0.20</td><td>4.40</td></tr><tr><td>hindu_knowledge</td><td>32.23</td><td>37.56</td><td>34.52</td><td>10.15</td><td>40.61</td><td>44.42</td><td>41.37</td><td>93.15</td></tr><tr><td>known_unknowns</td><td>-4.35</td><td>0.00</td><td>4.35</td><td>21.74</td><td>4.35</td><td>0.00</td><td>13.04</td><td>34.78</td></tr><tr><td>language_identification</td><td>9.62</td><td>1.97</td><td>1.90</td><td>7.49</td><td>3.20</td><td>1.98</td><td>12.11</td><td>31.03</td></tr><tr><td>linguistics_puzzles</td><td>0.00</td><td>0.00</td><td>0.00</td><td>0.00</td><td>0.00</td><td>0.00</td><td>0.00</td><td>0.10</td></tr><tr><td>logic_grid_puzzle</td><td>9.88</td><td>13.66</td><td>5.24</td><td>0.16</td><td>3.35</td><td>0.01</td><td>1.47</td><td>16.12</td></tr><tr><td>logical_deduction</td><td>24.18</td><td>22.20</td><td>20.35</td><td>2.22</td><td>10.80</td><td>14.71</td><td>2.17</td><td>15.34</td></tr><tr><td>misconceptions_russian</td><td>-26.53</td><td>-46.94</td><td>-26.53</td><td>-34.70</td><td>-34.70</td><td>-30.61</td><td>-42.86</td><td>-30.61</td></tr><tr><td>novel_concepts</td><td>6.25</td><td>21.87</td><td>25.78</td><td>33.59</td><td>33.59</td><td>45.31</td><td>33.59</td><td>49.22</td></tr><tr><td>operators</td><td>14.76</td><td>18.10</td><td>18.10</td><td>30.0</td><td>34.29</td><td>33.33</td><td>30.48</td><td>56.19</td></tr><tr><td>parsinlu_reading_comprehension</td><td>7.14</td><td>7.72</td><td>11.58</td><td>0.00</td><td>0.00</td><td>0.00</td><td>9.46</td><td>44.40</td></tr><tr><td>play_dialog_same_or_different</td><td>2.88</td><td>5.33</td><td>3.80</td><td>8.00</td><td>0.80</td><td>-5.40</td><td>-33.0</td><td>0.10</td></tr><tr><td>repeat_copy_logic</td><td>0.00</td><td>0.00</td><td>0.00</td><td>0.00</td><td>0.00</td><td>0.00</td><td>0.00</td><td>37.5</td></tr><tr><td>strange_stories</td><td>43.86</td><td>51.76</td><td>42.31</td><td>8.27</td><td>25.68</td><td>12.93</td><td>39.25</td><td>74.46</td></tr><tr><td>strategyqa</td><td>21.10</td><td>18.74</td><td>16.82</td><td>4.60</td><td>13.20</td><td>14.20</td><td>28.00</td><td>38.00</td></tr><tr><td>symbol_interpretation</td><td>1.39</td><td>1.89</td><td>1.77</td><td>0.51</td><td>-0.63</td><td>2.77</td><td>0.76</td><td>2.40</td></tr><tr><td>vitaminc_fact_verification</td><td>71.87</td><td>60.72</td><td>56.55</td><td>-31.55</td><td>22.15</td><td>29.05</td><td>-28.85</td><td>55.60</td></tr><tr><td>winowhy</td><td>-3.49</td><td>5.38</td><td>3.0</td><td>3.0</td><td>10.60</td><td>13.00</td><td>-5.0</td><td>31.80</td></tr></table>",
"bbox": [
173,
358,
823,
739
],
"page_idx": 49
},
{
"type": "table",
"img_path": "images/263ed91e2f5136ee90d9f0fb44bda0e81da65c26b9506dedb880140ace88b2e4.jpg",
"table_caption": [
"Table 15: Detailed results of GLM-130B and BLOOM 176B (Scao et al., 2022) on MMLU (Hendrycks et al., 2021). We find that no existing literature has reported GPT-3 175B’s numerical accuracy. BLOOM is evaluated using Huggingface Transformer implementation. "
],
"table_footnote": [],
"table_body": "<table><tr><td colspan=\"3\">Discipline</td><td rowspan=\"2\">GLM-130B BLOOM176B</td></tr><tr><td colspan=\"3\">STEM</td></tr><tr><td rowspan=\"12\"></td><td>abstract_algebra anatomy</td><td>24.00 48.90</td><td>24.00 38.52</td></tr><tr><td>astronomy</td><td>48.03</td><td>34.87</td></tr><tr><td></td><td></td><td>37.50</td></tr><tr><td>colledge_biology</td><td>47.22</td><td></td></tr><tr><td>college_chemistry</td><td>34.00</td><td>19.00</td></tr><tr><td>colledge_computer_science</td><td>44.00</td><td>1.00</td></tr><tr><td>colledge_mathematcis</td><td>27.00</td><td>31.00</td></tr><tr><td>colledge_physics</td><td>30.39 61.00</td><td>24.50 40.00</td></tr><tr><td>computer_security conceptual_physics</td><td>38.72</td><td>31.49</td></tr><tr><td>electrical_engineering</td><td>45.52</td><td>32.41</td></tr><tr><td>elementary_mathematics</td><td>31.75</td><td>29.63</td></tr><tr><td>high_school_biology</td><td>51.29</td><td>27.42</td></tr><tr><td>high_school_chemistry</td><td>34.98</td><td>27.09</td></tr><tr><td>high_school_computer_science</td><td>53.00</td><td>30.00</td></tr><tr><td>high_school_mathematics</td><td>28.15</td><td>25.93</td></tr><tr><td>high_school_physics</td><td>29.80</td><td>30.46</td></tr><tr><td>high_school_statistics machine_learning</td><td>38.43 40.18</td><td>26.39 29.46</td></tr><tr><td rowspan=\"10\">Social Science</td><td></td><td>26.32</td><td>26.32</td></tr><tr><td>econometrics</td><td></td><td></td></tr><tr><td>high_school_geography</td><td>53.54</td><td>36.36</td></tr><tr><td>high_school_government_and_politics</td><td>62.18</td><td>40.41</td></tr><tr><td>high_school_macroeconomics</td><td>42.56</td><td>30.77</td></tr><tr><td>high_school_microeconomics</td><td>45.80</td><td>26.89</td></tr><tr><td>high_school_psychology</td><td>54.13 51.15</td><td>39.27</td></tr><tr><td>human_sexuality</td><td>42.48</td><td>35.11 31.54</td></tr><tr><td>professional_psychology</td><td>55.46</td><td>33.64</td></tr><tr><td>public_relations security_studies</td><td>44.90</td><td>34.29</td></tr><tr><td>sociology</td><td></td><td>51.74</td><td>31.84</td></tr><tr><td rowspan=\"10\">Humanities</td><td>us_foreign_policy</td><td>61.00</td><td>46.00</td></tr><tr><td>formal_logic</td><td>27.78</td><td>23.02</td></tr><tr><td>high_school_european_history</td><td>58.18</td><td>35.76</td></tr><tr><td>high_school_us_history</td><td>58.33</td><td>40.69</td></tr><tr><td>high_school_world_history</td><td>67.09</td><td>32.07</td></tr><tr><td>international_law</td><td>56.20</td><td>42.15</td></tr><tr><td> jurisprudence</td><td>43.52</td><td>35.19</td></tr><tr><td>logical_fallacies</td><td>57.06</td><td>31.29</td></tr><tr><td>moral_disputes</td><td>47.11</td><td>36.71</td></tr><tr><td>moral_scenarios philosophy</td><td>24.25</td><td>24.36</td></tr><tr><td>prehistory</td><td></td><td></td><td>35.37</td></tr><tr><td rowspan=\"12\"></td><td></td><td>45.34 50.93</td><td>40.43</td></tr><tr><td>professional_law world_religions</td><td>37.94</td><td>29.53</td></tr><tr><td></td><td>55.56</td><td>42.11</td></tr><tr><td>business_ethics clinical_knowledge</td><td>51.00</td><td>34.00</td></tr><tr><td>colledge_medicine</td><td>48.68</td><td>35.85 28.90</td></tr><tr><td>glocal_facts</td><td>43.35 35.00</td><td></td></tr><tr><td>human_aging Other</td><td></td><td></td><td>23.00</td></tr><tr><td>management</td><td>45.29 56.31</td><td>32.29</td></tr><tr><td>marketing</td><td>67.52</td><td>27.18</td></tr><tr><td></td><td></td><td>39.74</td></tr><tr><td>medical_genetics</td><td>48.00</td><td>45.00</td></tr><tr><td>miscellaneous</td><td>61.18</td><td>40.23</td></tr><tr><td>nutrition</td><td>50.65</td><td>32.35</td></tr><tr><td>professional_accounting</td><td>35.46</td><td>28.72</td></tr><tr><td>professional_medicine</td><td>43.38</td><td>18.01</td></tr><tr><td></td><td></td><td></td></tr><tr><td>virology</td><td>39.16</td><td>28.31</td></tr></table>",
"bbox": [
232,
146,
766,
920
],
"page_idx": 50
},
{
"type": "text",
"text": "E CONTRIBUTIONS ",
"text_level": 1,
"bbox": [
176,
102,
349,
117
],
"page_idx": 51
},
{
"type": "text",
"text": "The GLM-130B project was conceived in Dec. 2021 with its pre-training part completed in July 3rd, 2022 and its evaluation and applications still ongoing. Over the course, we have experienced various technical and engineering challenges (Cf. Appendix F and Figure 21 for details). It would not be possible to reach its current status if without the collaboration of multiple teams—the Knowledge Engineering Group (KEG), Parallel Architecture & Compiler technology of Mobile, Accelerated, and Networked systems Group (PACMAN), and Natural Language Processing Group (THUNLP) at Tsinghua University, as well as Zhipu.AI. The detailed contributions are listed below. ",
"bbox": [
173,
132,
825,
231
],
"page_idx": 51
},
{
"type": "text",
"text": "E.1 PREPARATION ",
"text_level": 1,
"bbox": [
174,
247,
313,
261
],
"page_idx": 51
},
{
"type": "text",
"text": "• Model Implementation: Aohan Zeng, Zhengxiao Du \n• Self-Supervised Data Processing: Ming Ding, Wendi Zheng \n• Multitask Data Processing: Xiao Liu, Xiao Xia \n• Model Architecture: Aohan Zeng, Xiao Liu, Zhengxiao Du, Hanyu Lai \n• Training Stability: Aohan Zeng, Xiao Liu, Ming Ding \n• 3D-Parallelism and Training Efficiency: Aohan Zeng, Zixuan Ma, Jiaao He, Zhenbo Sun ",
"bbox": [
173,
272,
787,
382
],
"page_idx": 51
},
{
"type": "text",
"text": "E.2 MODEL TRAINING ",
"bbox": [
174,
398,
346,
412
],
"page_idx": 51
},
{
"type": "text",
"text": "• Large-Scale Training & Monitoring: Aohan Zeng, Xiao Liu • Model Performance Validation: Aohan Zeng ",
"bbox": [
173,
424,
596,
458
],
"page_idx": 51
},
{
"type": "text",
"text": "E.3 POST TRAINING ",
"bbox": [
174,
474,
330,
488
],
"page_idx": 51
},
{
"type": "text",
"text": "• Evaluation Framework: Aohan Zeng, Zhengxiao Du \n• Language Modeling Evaluation: Aohan Zeng \n• MMLU & BIG-Bench Evaluation: Aohan Zeng \n• CLUE & FewCLUE Evaluation: Xiao Liu, Aohan Zeng \n• Ethical Evaluation: Yifan Xu, Aohan Zeng, Xiao Liu, Zihan Wang \n• Baseline Evaluation: Xiao Liu, Jifan Yu, Weng Lam Tam \n• INT4 Quantization: Aohan Zeng, Zihan Wang, Xiao Liu, Hanyu Lai \n• Inference Acceleration: Zihan Wang, Aohan Zeng \n• Low-Resource Inference: Gouyang Zeng, Xu Han, Weilin Zhao, Zhiyuan Liu \n• Demo and API: Hanyu Lai, Jifan Yu, Xiaohan Zhang, Yufei Xue, Shan Wang, Jiecai Shan, Haohan Jiang, Zhengang Guo \n• Manuscript Writing: Xiao Liu, Yuxiao Dong, and Jie Tang wrote the main paper, and Xiao Liu, Aohan Zeng, and Zhengxiao Du wrote the Appendix. ",
"bbox": [
173,
500,
825,
731
],
"page_idx": 51
},
{
"type": "text",
"text": "E.4 PROJECT MANAGEMENT ",
"text_level": 1,
"bbox": [
174,
747,
387,
761
],
"page_idx": 51
},
{
"type": "text",
"text": "• Student Leaders: Aohan Zeng, Xiao Liu \n• Technical Advisors: Yuxiao Dong, Jidong Zhai, Wenguang Chen, Zhiyuan Liu, Peng Zhang, Jie Tang \n• Project Leader: Jie Tang ",
"bbox": [
173,
773,
826,
839
],
"page_idx": 51
},
{
"type": "text",
"text": "E.5 COMPUTATION SPONSOR ",
"text_level": 1,
"bbox": [
174,
856,
390,
869
],
"page_idx": 51
},
{
"type": "text",
"text": "• GPU Sponsor: Zhipu.AI ",
"bbox": [
173,
881,
356,
897
],
"page_idx": 51
},
{
"type": "text",
"text": "F A BRIEF HISTORY OF GLM-130B ",
"text_level": 1,
"bbox": [
174,
102,
491,
118
],
"page_idx": 52
},
{
"type": "text",
"text": "The GLM-130B project16 was conceived in Dec. 2021 in a brainstorming meeting at Tsinghua KEG. We firmly believe that it is of value to pre-train a highly accurate language model, in particular for both Chinese and English. Though GPT-3 (Brown et al., 2020) is the pioneer for this effort, it is not available to most people in the world. In addition, it supports English only. We therefore decide to initialize the project GLM-130B. Please note that the WuDao 1.75T model we built last year is a sparse model with 480 mixture-of-experts (MoE), rather than a dense one as GPT-3. Our goal then is to train a bilingual pre-trained dense model with high accuracy on downstream tasks, and to make it open to everyone in the world-anyone, anywhere can download it and use it on a single server with appropriate GPUs. ",
"bbox": [
174,
136,
825,
262
],
"page_idx": 52
},
{
"type": "text",
"text": "The ambitious project soon faced several important challenges: ",
"bbox": [
174,
268,
588,
284
],
"page_idx": 52
},
{
"type": "text",
"text": "• Lack of computational resources: No organization is willing to sponsor such a big project and freely make it public. • Lack of a robust pre-training algorithm: Despite GPT-3’s success on English corpus, it is unclear how to train a high-accurate bilingual model for both English and Chinese. • Lack of fast inference solutions: Since the goal is to have the model public to everyone, we need to design fast inference solutions with low resource requirements to run the model. ",
"bbox": [
173,
290,
826,
378
],
"page_idx": 52
},
{
"type": "text",
"text": "For the pre-training algorithm, we finally chose GLM (Du et al., 2022) due to its high performance in practice. We eventually decided to train a GLM model of 130 billion parameters after several rounds of discussions and exploration, because such a size makes it possible to run the inference on a single A100 $( 4 0 G * 8 )$ server. ",
"bbox": [
174,
386,
825,
441
],
"page_idx": 52
},
{
"type": "text",
"text": "Our first attempt at training the model was in January 2022, shortly after we received a small sponsor of GPUs for test running. However, we soon realized that we had significantly underestimated the technical difficulties of pre-training a model at such a scale $\\left( > 1 0 0 \\mathbf { B } \\right)$ . It seems that pre-training a highly accurate 100B-scale model is quite different from training a 10B-scale one. Due to frequent random hardware failures, model gradients exploding, unexpected excessive memory usage in the algorithm, debug for the 3D pipeline in the new Megatron and DeepSpeed frameworks, inability to recover from optimizer states, blocked TCP responses between processes, and many many unexpected “bugs”, the project was delayed for many times. The Tsinghua PACMAN team gave us a hand at this difficult time and together we successfully fixed most of the “bugs”. ",
"bbox": [
173,
448,
825,
574
],
"page_idx": 52
},
{
"type": "text",
"text": "By March, we were still short on computational resources, but fortunately got a chance to try test runs on several other platforms, including Ascend 910, Hygon DCU, NVIDIA, and Sunway. The immediate challenge was for us to adapt our training code to these different platforms, as the underlying operators are quite different. Also, it introduced many new issues: the element-wise operators not supporting fast computation for large-dimension vectors, various issues that hindered convergence—the large gradient norms of input embeddings, native Post-LN, Pre-LN, and Sandwich-LN, dataloader state seeds, and computation precision choices in Softmax and Attention — as well as numerous mistakes we ourselves made. With tremendous help from all of our generous partners, we finally succeeded in making our pre-training algorithms runnable across all the platforms—frankly, a surprising achievement for this project. The timeline of GLM-130B in Figure 21 covers most of the issues we have encountered and addressed as of this writing. ",
"bbox": [
174,
580,
825,
733
],
"page_idx": 52
},
{
"type": "text",
"text": "On April 26th, we received a generous computing sponsorship from Zhipu.AI — an AI startup that aims to teach machines to think like humans. After another week of testing, we finally kicked off the training of the GLM-130B model on its 96 A100 $( 4 0 G * 8 )$ servers on May 6th. Additionally, Zhipu.AI also sent a team to help evaluate the pre-trained model and build a demonstration website. ",
"bbox": [
174,
741,
825,
796
],
"page_idx": 52
},
{
"type": "text",
"text": "The training period spanned two months, during which we began developing a toolkit to allow GLM130B’s inference in low-resource setting with swapping technique and quantization. Though it is already the most accessible model of its scale, together with our partner from Tsinghua NLP, we have been exploring the limit of popularized hardware platforms, which would truly make the 100B-scale model accessible to as many people as possible. To date, we managed to reach the INT4 weight quantization for GLM-130B. Importantly, the INT4 version of GLM-130B without post training ",
"bbox": [
174,
803,
823,
887
],
"page_idx": 52
},
{
"type": "text",
"text": "Major Issues Encountered for Training GLM-130B ",
"text_level": 1,
"bbox": [
261,
89,
815,
113
],
"page_idx": 53
},
{
"type": "text",
"text": "2021.12 ",
"text_level": 1,
"bbox": [
232,
135,
279,
145
],
"page_idx": 53
},
{
"type": "text",
"text": "• The “千亿 ” (100B) project towards an open dense pre-trained GLM at 100B scale is conceived \n• Survey pre-training strategies of existing models of similar scale, such as GPT-3, Gopher $= >$ Limited public info about how they were trained and issues they met \n• Search for possible GPU clusters & sponsors ",
"bbox": [
232,
147,
803,
194
],
"page_idx": 53
},
{
"type": "text",
"text": "2022.1 ",
"text_level": 1,
"bbox": [
232,
200,
271,
210
],
"page_idx": 53
},
{
"type": "text",
"text": "• Test the performance of FP16/FP32 at 100B scale on one testing cluster • Unexpected excessive memory usage in GLM $\\Rightarrow$ Torch is better with fixed length input sequences • Inability to converge and try tricks from CogView and ViT ${ \\Rightarrow U s e }$ Sandwich-LN • Frequent random hardware failures $= >$ Have to run HCPG test before each run ",
"bbox": [
230,
212,
738,
258
],
"page_idx": 53
},
{
"type": "text",
"text": "2022.2 ",
"text_level": 1,
"bbox": [
232,
267,
272,
277
],
"page_idx": 53
},
{
"type": "text",
"text": "• Very slow training speed than previously calculated $\\Rightarrow$ Optimize kernels and fuse operators $= >$ Find the input \nshape is critical to kernel performance \n• Collect pre-training corpora and tokenize $= >$ Use icetk: the sentence piece is set to the unigram mode \n• Debug the 3D pipeline parallel in the newly-released Megatron and DeepSpeed ",
"bbox": [
232,
279,
799,
327
],
"page_idx": 53
},
{
"type": "text",
"text": "2022.3 ",
"text_level": 1,
"bbox": [
232,
333,
272,
343
],
"page_idx": 53
},
{
"type": "text",
"text": "• It can’t recover perfectly from checkpoints $= >$ Our customized dataloader do not save its state seed properly in distributed training \n• The memory per processor is too small $\\Rightarrow$ Require too many pipeline stages $= >$ Batch size is too large (up to $1 2 , 0 0 0 ) \\Rightarrow H a r m$ the model’s convergency \n• It can’t launch more than 2,000 computing nodes $\\Rightarrow$ Overcome this and support 6,000-node training by tuning Linux kernel TCP parameters \n• Collect data for multi-task instruction pre-training \n• Receive opportunities to test trainings on several other clusters \n• Very slow training speed than expected $= >$ The underlying element-wise operators don’t support fast computation on large-dimension vectors. ",
"bbox": [
232,
344,
794,
460
],
"page_idx": 53
},
{
"type": "text",
"text": "2022.4 ",
"text_level": 1,
"bbox": [
205,
468,
272,
479
],
"page_idx": 53
},
{
"type": "text",
"text": "• Optimize A100 kernel’s computing efficiency $= >$ A100 kernels prefer square-shaped inputs, and seq_len=2,048 is optimal for our hidden-state dimension (12,288) \n• Inability to converge due to large gradient norms $( 1 7 0 + )$ of input embeddings ${ \\Rightarrow T r y }$ embedding norm and \ngradient shrink, which turn out to be almost equivalent \n• Naïve post-LN or pre-LN disconverges after several thousands of steps $\\Rightarrow T r y$ Sandwich-LN with PB-Relax \n• It still disconverges after one week’s trial $\\Rightarrow$ The dataloader state seeds are not unified for different pipeline stages, resulting in a mismatch of input data and labels. \n• Test two positional encodings: RoPE and Alibi $= >$ Alibi can be slower as it requires element-wise manipulation on attention matrices---changing num_heads \\*2,048 $^ *$ 2,048 scalars per layer \n• Test GeGLU and ${ \\mathsf { G A U } } \\ { \\mathsf { \\Omega } } \\Rightarrow { \\mathsf { G A U } }$ converges faster with relatively poor performance on fine-tuned SuperGLUE \n• Abnormal GPU memory usage of newly-added functions and classes $= >$ DeepSpeed hardcodes the function names for checkpoint activation \n• Decide to train GLM with 130 billion parameters $\\Rightarrow$ allow inference on a DGX-A100 40G node ",
"bbox": [
232,
481,
792,
632
],
"page_idx": 53
},
{
"type": "text",
"text": "2022.5-6 ",
"text_level": 1,
"bbox": [
232,
640,
282,
650
],
"page_idx": 53
},
{
"type": "text",
"text": "• Implement a RoPE cuda operator in ${ \\mathsf { C } } + + = >$ See unexpected precision errors and finally have it abandoned \n• Sandwich-LN still disconverges $\\Longrightarrow 1$ ) Reducing learning rate does not help; 2) Using Hinge cross-entropy becomes slower and harms performance; 3) Shifting to DeepNorm still disconverges \n• Use FP32 in softmax of attention $\\Rightarrow$ Success \n• Find PB-Relax unnecessary for FP32 softmax $\\Rightarrow$ It also slows down training as it needs to manipulate the whole attention score matrices \n• Experience few spikes in later training $\\mathbf { \\Phi } = > \\mathbf { \\Phi } .$ 1) Reduce gradient shrink factor from 1 to 0.1: useful; 2) Reduce the learning rate: sometimes useful; 3) Jump the noisy data batches: sometimes useful \n• Find a mistake in multi-task data after training for 20,000 steps $= >$ Use the correct data but it does not forget ",
"bbox": [
232,
651,
808,
757
],
"page_idx": 53
},
{
"type": "text",
"text": "2022.6-7 ",
"text_level": 1,
"bbox": [
232,
763,
282,
773
],
"page_idx": 53
},
{
"type": "text",
"text": "• Adapt the pipeline parallel checkpoints to ordinary parallel checkpoints for efficient inference on a single A100 \n• Work on evaluation scripts on datasets: MMLU, Big-bench, CLUE, SuperCLUE, etc. \n• Implement P-Tuning and P-Tuning v2 for parameter-efficient tuning on GLM-130B for tuning on SuperGLUE \n• Work with BMInf on adapting GLM-130B to perform inference on a single V100 or 3090 $\\Rightarrow$ Use pipeline-style asynchronous swapping between main memory and GPU memory \n• Try to fine-tune GLM-130B with fewer A100 nodes (i.e., 12-16 nodes) $= >$ Pipeline-style fails due to too many pipeline stages $= >$ Find that data parallel can not be introduced for fine-tuning $\\Rightarrow$ Use 32-way model parallel for fine-tuning with reasonable performance https://github.com/THUDM/GLM-130B ",
"bbox": [
232,
776,
813,
883
],
"page_idx": 53
},
{
"type": "text",
"text": "Figure 21: The timeline of major issues that training GLM-130B encountered and addressed, as of July 31st, 2022. ",
"bbox": [
173,
898,
826,
926
],
"page_idx": 53
},
{
"type": "text",
"text": "faces negligible performance degradation compared to its uncompressed original, while it consumes only $2 5 \\%$ of the GPU memory required by the uncompressed version, thus supporting its effective inference on $4 \\times \\mathrm { R T X } 3 0 9 0 1$ i (24G) or $8 \\times \\mathrm { R T X } 2 0 8 0 \\mathrm { T i }$ (11G). We will attempt to further reduce the resource requirements and keep the community updated on this important working item. ",
"bbox": [
174,
103,
823,
160
],
"page_idx": 54
},
{
"type": "text",
"text": "G BROADER IMPACT ",
"text_level": 1,
"bbox": [
176,
180,
361,
196
],
"page_idx": 54
},
{
"type": "text",
"text": "This paper introduces an open bilingual pre-trained language model with 130 billion parameters. Currently most pre-trained language models with over 100 billion parameters are privately owned by governments and large corporations (Brown et al., 2020; Thoppilan et al., 2022; Rae et al., 2021; Chowdhery et al., 2022; Wang et al., 2021). A few of them (Brown et al., 2020; Lieber et al., 2021) provide limited inference APIs with fees. In contrast, the weights and code of GLM-130B are open to anyone who is interested in LLMs. Moreover, we significantly lower the hardware requirements for inference by speed-up implementation and INT4 quantization. The paper can have a broader impact on the research community, individual developers and small companies, and society. ",
"bbox": [
174,
212,
825,
324
],
"page_idx": 54
},
{
"type": "text",
"text": "G.1 IMPACT ON AI RESEARCH ",
"text_level": 1,
"bbox": [
176,
342,
400,
356
],
"page_idx": 54
},
{
"type": "text",
"text": "Most research institutions cannot afford the substantial cost of pretraining large language models. As a result, most researchers, except employees of governments and large corporations, only have access to the limited inference APIs with fees. With the inference APIs, researchers can only analyze the outputs of models as black boxes, which limits the scope of potential work. With GLM-130B, researchers can analyze the model parameters and internal states corresponding to specific inputs, leading to in-depth studies of LLMs’ theory, capacity, and flaws. Researchers can also modify the model architecture and weights, to validate the proposed algorithms to improve LLMs Zhu et al. (2020); Cao et al. (2021); Hase et al. (2021); Mitchell et al. (2022). ",
"bbox": [
174,
368,
825,
479
],
"page_idx": 54
},
{
"type": "text",
"text": "With INT4 quantization, GLM-130B can perform inference on popularized GPUs such as $4 \\times \\mathrm { R T X }$ 3090 or $8 \\times \\mathrm { R T X } 2 0 8 0 \\mathrm { T i }$ , which can be easily accessed from cloud service. As a result, researchers who cannot afford powerful data-center GPU servers like DGX-A100 can also utilize GLM-130B. ",
"bbox": [
176,
486,
825,
529
],
"page_idx": 54
},
{
"type": "text",
"text": "G.2 IMPACT ON INDIVIDUAL DEVELOPERS AND SMALL COMPANIES",
"text_level": 1,
"bbox": [
176,
546,
660,
560
],
"page_idx": 54
},
{
"type": "text",
"text": "Currently, individual developers and small companies who want to integrate LLMs into their business can only choose paid inference APIs. The increased cost can hinder their attempts. Instead, GLM-130B can be deployed on popularized hardware that they own or can access via cloud service to reduce the cost. Furthermore, they can utilize distillation techniques Sanh et al. (2019); Jiao et al. (2020) to obtain smaller models that preserve comparable performance on their specific tasks. While some developers may lack the ability to complete deployment and distillation on their own, we believe with GLM-130B and more open LLMs in the future, the corresponding toolkits and service providers will become more available. ",
"bbox": [
174,
571,
825,
684
],
"page_idx": 54
},
{
"type": "text",
"text": "We also note that currently most applications of LLMs are based on prompt engineering, partly due to the limitation of inference APIs. In downstream scenarios such as online customer service, the companies accumulate huge amounts of human-generated data that contain domain knowledge. With the open-source weights and code, developers can finetune GLM-130B on their own data to mitigate the gap of domain knowledge. ",
"bbox": [
176,
690,
825,
761
],
"page_idx": 54
},
{
"type": "text",
"text": "G.3 SOCIAL IMPACT ",
"text_level": 1,
"bbox": [
176,
779,
330,
792
],
"page_idx": 54
},
{
"type": "text",
"text": "Large language models, together with other machine learning models in different modalities (e.g., Image (Ramesh et al., 2021; Ding et al., 2021; Saharia et al.) and Video (Hong et al., 2022)), could be used to generate synthetic text for harmful applications, such as telemarketing fraud, political propaganda, and personal harassment as is discussed in (Weidinger et al., 2021; Sheng et al., 2021; Dev et al., 2021). We do not anticipate any hazardous outputs, especially towards vulnerable and historically disadvantaged groups of people, after using the model. ",
"bbox": [
174,
805,
823,
888
],
"page_idx": 54
},
{
"type": "text",
"text": "While some people think that restricting access to LLMs can prevent such harmful applications, we argue that promoting LLM inclusivity can lead to better defense against potential harm caused by ",
"bbox": [
174,
895,
821,
924
],
"page_idx": 54
},
{
"type": "text",
"text": "LLMs. Currently, only governments and large corporations can afford the considerable costs of pretraining LLMs. There is no guarantee that organizations having the substantial financial resources to pretrain an LLM will not do harm with it. Without access to such LLMs, individuals cannot even realize the role of LLMs in harm. Conversely, releasing an open LLM can provide access and transparency to all the researchers and promote the research to reduce the potential harm of LLMs, like algorithms to identify the synthetic text Gehrmann et al. (2019) or detect fake news Li et al. (2021). ",
"bbox": [
173,
103,
825,
200
],
"page_idx": 55
},
{
"type": "text",
"text": "Also, it is known that LLMs can suffer from problems in fairness, bias, privacy, and truthfulness Zhang et al. (2021); Lin et al. (2022); Liang et al. (2021); Bender et al. (2021). An open LLM can reveal the model parameters and internal states corresponding to specific inputs instead of providing APIs to black-box models. In conclusion, researchers can conduct analysis of LLMs’ flaws in depth and propose improved algorithms to solve the problems. ",
"bbox": [
174,
208,
823,
279
],
"page_idx": 55
},
{
"type": "text",
"text": "H ENVIRONMENTAL IMPACT ",
"text_level": 1,
"bbox": [
176,
297,
426,
314
],
"page_idx": 55
},
{
"type": "text",
"text": "One of the major concerns about large language models is their huge energy usage and associated carbon emissions Strubell et al. (2019); Lacoste et al. (2019); Patterson et al. (2021); Bender et al. (2021). GPT-3 was estimated to use 500 tons of carbon emissions footprint (CO2eq) Patterson et al. (2021). We consumed a total of 442.4MWh of electricity over the 60-day course of training. Given the $0 . 5 8 1 0 \\mathrm { ~ k g / k W h }$ carbon efficiency of local power grid, the pre-training released 257.01 metric tons of $\\mathrm { C O _ { 2 } }$ . This is around half of GPT-3’s carbon footprint, probably due to the efficient parallel strategies and NVIDIA’s hardware improvements. The carbon emission is roughly the equivalent of the yearly emissions of 18 average Americans. However, we believe that with GLM-130B released, more carbon emissions for reproducing 100B-scale LLMs can be saved. ",
"bbox": [
174,
329,
825,
454
],
"page_idx": 55
}
] |